2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Task scheduler</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="tools_scheduler" class="tools">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'circ-search.inc' %]
11 <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>
13 <div id="doc3" class="yui-t2">
21 [% IF ( job_add_failed ) %]
22 <div class="dialog message">Failed to add scheduled task</div>
25 <form name="form1" action="scheduler.pl" method="post">
26 <input type="hidden" name="mode" value="job_add" />
28 <fieldset class="rows">
29 <legend>Task scheduler</legend><ol>
30 <li><span class="label">Current server time is:</span>
32 <li><label for="starttime">Time:</label>
33 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
34 <li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
35 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
37 <li><label for="report">Report:</label>
38 <select name="report" id="report">
39 [% FOREACH savedreport IN savedreports %]
40 [% IF ( savedreport.selected ) %]
41 <option value="[% savedreport.id %]" selected="selected">[% savedreport.report_name %]</option>
43 <option value="[% savedreport.id %]">[% savedreport.report_name %]</option>
48 <li><label for="format">Output format:</label>
49 <select name="format" id="format">
50 <option value="text">Text</option>
51 <option value="url">URL</option>
54 <li><label for="email">Email:</label>
56 <input type="text" name="email" id="email" size="50" />
59 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
62 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
69 [% FOREACH JOB IN JOBS %]
70 <form action="scheduler.pl" method="post">
71 <input type="hidden" name="mode" value="job_change" />
74 <td>[% JOB.TIME %]</td>
75 <td>[% JOB.TAG %]</td>
76 <td><input type="submit" name="delete" value="Delete" /></td>
78 <input type="hidden" name="jobid" value="[% JOB.JOBID %]" />
87 <div class="yui-b noprint">
88 [% INCLUDE 'tools-menu.inc' %]
89 [% INCLUDE 'guided-reports-view.inc' %]
93 [% MACRO jsinclude BLOCK %]
94 <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
95 [% INCLUDE 'calendar.inc' %]
96 <script type="text/javascript">
97 $(document).ready(function(){
98 $("#startdate").datepicker({ minDate: "+0D" });
103 [% INCLUDE 'intranet-bottom.inc' %]