Bug 15099: Move admin/categorie.pl to admin/categories.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / scheduler.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Task scheduler</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/JavaScript">
6 //<![CDATA[
7     $(document).ready(function(){
8         $("#startdate").datepicker({ minDate: "+0D" });
9     });
10 //]]>
11 </script>
12 </head>
13 <body id="tools_scheduler" class="tools">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'circ-search.inc' %]
16
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <strong>Task scheduler</strong></div>
18
19 <div id="doc3" class="yui-t2">
20
21    <div id="bd">
22     <div id="yui-main">
23     <div class="yui-b">
24
25 <div id="main">
26
27 [% IF ( job_add_failed ) %]
28 <div class="dialog message">Failed to add scheduled task</div>
29 [% END %]
30
31 <form name="form1" action="scheduler.pl" method="post">
32 <input type="hidden" name="mode" value="job_add" />
33
34 <fieldset class="rows">
35 <legend>Task scheduler</legend><ol>
36 <li><span class="label">Current server time is:</span>
37 [% time %]</li>
38 <li><label for="starttime">Time:</label>
39 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
40 <li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
41 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
42 </li>
43 <li><label for="report">Report:</label>
44 <select name="report" id="report">
45 [% FOREACH savedreport IN savedreports %]
46     [% IF ( savedreport.selected ) %]
47         <option value="[% savedreport.id %]" selected="selected">[% savedreport.report_name %]</option>
48     [% ELSE %]
49         <option value="[% savedreport.id %]">[% savedreport.report_name %]</option>
50     [% END %]
51 [% END %]
52 </select>
53 </li>
54 <li><label for="format">Output format:</label>
55 <select name="format" id="format">
56 <option value="text">Text</option>
57 <option value="url">URL</option>
58 </select>
59 </li>
60 <li><label for="email">Email:</label>
61
62 <input type="text" name="email" id="email" size="50" />
63 </li>
64 </ol></fieldset>
65 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
66 </form>
67   
68 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
69 <table>
70 <tr>
71 <th>Date/Time</th>
72 <th>Action</th>
73 <th>&nbsp;</th>
74 </tr>
75 [% FOREACH JOB IN JOBS %]
76 <form action="scheduler.pl" method="post">
77 <input type="hidden" name="mode" value="job_change" />
78
79 <tr>
80 <td>[% JOB.TIME %]</td>
81 <td>[% JOB.TAG %]</td>
82 <td><input type="submit" name="delete" value="Delete" /></td>
83 </tr>
84 <input type="hidden" name="jobid" value="[% JOB.JOBID %]" />
85 </form>
86 [% END %]
87 </table>[% END %]
88
89
90 </div>
91 </div>
92 </div>
93 <div class="yui-b noprint">
94 [% INCLUDE 'tools-menu.inc' %]
95 [% INCLUDE 'guided-reports-view.inc' %]
96 </div>
97 </div>
98 [% INCLUDE 'intranet-bottom.inc' %]