Merge remote-tracking branch 'origin/new/bug_7143'
[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 </head>
6 <body id="tools_scheduler" class="tools">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'circ-search.inc' %]
9
10 <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>
11
12 <div id="doc3" class="yui-t2">
13
14    <div id="bd">
15     <div id="yui-main">
16     <div class="yui-b">
17
18 <div id="main">
19
20 [% IF ( job_add_failed ) %]
21 <div class="dialog message">Failed to add scheduled task</div>
22 [% END %]
23
24 <form name="form1" action="scheduler.pl" method="post">
25 <input type="hidden" name="mode" value="job_add" />
26
27 <fieldset class="rows">
28 <legend>Task Scheduler</legend><ol>
29 <li><span class="label">Current server time is:</span>
30 [% time %]</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 <img src="[% themelang %]/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarStartdate" style="cursor: pointer;" />
35
36 <script type="text/javascript">
37 //<![CDATA[
38                                 Calendar.setup({
39                                         inputField : "startdate",
40                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
41                                         button : "openCalendarStartdate"
42                                 });
43 //]]>
44 </script>
45 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
46 </li>
47 <li><label for="report">Report:</label>
48 <select name="report" id="report">
49 [% FOREACH savedreport IN savedreports %]
50     [% IF ( savedreport.selected ) %]
51         <option value="[% savedreport.id %]" selected="selected">[% savedreport.report_name %]</option>
52     [% ELSE %]
53         <option value="[% savedreport.id %]">[% savedreport.report_name %]</option>
54     [% END %]
55 [% END %]
56 </select>
57 </li>
58 <li><label for="format">Output Format:</label>
59 <select name="format" id="format">
60 <option value="text">Text</option>
61 <option value="url">url</option>
62 </select>
63 </li>
64 <li><label for="email">Email:</label>
65
66 <input type="text" name="email" id="email" size="50" />
67 </li>
68 </ol></fieldset>
69 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
70 </form>
71   
72 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
73 <table>
74 <tr>
75 <th>Date/Time</th>
76 <th>Action</th>
77 <th>&nbsp;</th>
78 </tr>
79 [% FOREACH JOB IN JOBS %]
80 <form action="scheduler.pl" method="post">
81 <input type="hidden" name="mode" value="job_change" />
82
83 <tr>
84 <td>[% JOB.TIME %]</td>
85 <td>[% JOB.TAG %]</td>
86 <td><input type="submit" name="delete" value="Delete" /></td>
87 </tr>
88 <input type="hidden" name="jobid" value="[% JOB.JOBID %]" />
89 </form>
90 [% END %]
91 </table>[% END %]
92
93
94 </div>
95 </div>
96 </div>
97 <div class="yui-b noprint">
98 [% INCLUDE 'tools-menu.inc' %]
99 [% INCLUDE 'guided-reports-view.inc' %]
100 </div>
101 </div>
102 [% INCLUDE 'intranet-bottom.inc' %]