4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Tools › Task scheduler</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="tools_scheduler" class="tools">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <strong>Task scheduler</strong></div>
15 <div class="main container-fluid">
17 <div class="col-sm-10 col-sm-push-2">
20 [% IF ( job_add_failed ) %]
21 <div class="dialog message">Failed to add scheduled task</div>
24 <form name="form1" action="scheduler.pl" method="post">
25 <input type="hidden" name="mode" value="job_add" />
27 <fieldset class="rows">
28 <legend>Task scheduler</legend><ol>
29 <li><span class="label">Current server time is:</span>
30 [% time | html %]</li>
31 <li><label for="starttime">Time:</label>
32 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
33 <li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
34 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
36 <li><label for="report">Report:</label>
37 <select name="report" id="report">
38 [% FOREACH savedreport IN savedreports %]
39 [% IF ( savedreport.selected ) %]
40 <option value="[% savedreport.id | html %]" selected="selected">[% savedreport.report_name | html %]</option>
42 <option value="[% savedreport.id | html %]">[% savedreport.report_name | html %]</option>
48 <label for="format">Output format:</label>
49 <select name="format" id="format">
50 <option value="text">Text (TSV)</option>
51 <option value="csv">CSV</option>
52 <option value="html">HTML</option>
55 <li><label for="email">Email:</label>
57 <input type="text" name="email" id="email" size="50" />
60 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
63 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
70 [% FOREACH JOB IN JOBS %]
71 <form action="scheduler.pl" method="post">
72 <input type="hidden" name="mode" value="job_change" />
75 <td>[% JOB.TIME | html %]</td>
76 <td>[% JOB.TAG | html %]</td>
77 <td><input type="submit" name="delete" value="Delete" /></td>
79 <input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
85 </div> <!-- /.col-sm-10.col-sm-push-2 -->
87 <div class="col-sm-2 col-sm-pull-10">
89 [% INCLUDE 'tools-menu.inc' %]
90 [% INCLUDE 'guided-reports-view.inc' %]
92 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
95 [% MACRO jsinclude BLOCK %]
96 [% Asset.js("js/tools-menu.js") | $raw %]
97 [% INCLUDE 'calendar.inc' %]
99 $(document).ready(function(){
100 $("#startdate").datepicker({ minDate: "+0D" });
105 [% INCLUDE 'intranet-bottom.inc' %]