Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl
DeAndre Carroll e3e84a747f Bug#: 1989
Changed date popups in scheduler.tmpl to a date picker element
Made corresponding changes to scheduler.pl

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-04 09:22:29 -05:00

102 lines
3.1 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Task Scheduler</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="circ-search.inc" -->
<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>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div id="main">
<!-- TMPL_IF NAME="job_add_failed" -->
<div class="dialog message">Failed to add scheduled task</div>
<!-- /TMPL_IF -->
<form name="form1" action="scheduler.pl" method="post">
<input type="hidden" name="mode" value="job_add" />
<fieldset class="rows">
<legend>Task Scheduler</legend><ol>
<li><span class="label">Current server time is:</span>
<!-- TMPL_VAR NAME="time" --></li>
<li><label for="starttime">Time:</label>
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
<li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarStartdate" style="cursor: pointer;" />
<script type="text/javascript">
//<![CDATA[
Calendar.setup({
inputField : "startdate",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "openCalendarStartdate"
});
//]]>
</script>
</li>
<li><label for="report">Report:</label>
<select name="report" id="report">
<!-- TMPL_LOOP NAME="savedreports" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="id" -->" selected="selected"><!-- TMPL_VAR NAME="report_name"--></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="report_name"--></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
</li>
<li><label for="format">Output Format:</label>
<select name="format" id="format">
<option value="text">Text</option>
<option value="url">URL</option>
</select>
</li>
<li><label for="email">Email:</label>
<input type="text" name="email" id="email" size="50" />
</li>
</ol></fieldset>
<fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
</form>
<!-- TMPL_IF NAME="JOBS" --><h2>Jobs already entered</h2>
<table>
<tr>
<th>Date/Time</th>
<th>Action</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="JOBS" -->
<form action="scheduler.pl" method="post">
<input type="hidden" name="mode" value="job_change" />
<tr>
<td><!-- TMPL_VAR NAME="TIME" --></td>
<td><!-- TMPL_VAR NAME="TAG" --></td>
<td><input type="submit" name="delete" value="Delete" /></td>
</tr>
<input type="hidden" name="jobid" value="<!-- TMPL_VAR NAME="JOBID" -->" />
</form>
<!-- /TMPL_LOOP -->
</table><!-- /TMPL_IF -->
</div>
</div>
</div>
<div class="yui-b noprint">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
<!-- TMPL_INCLUDE NAME="guided-reports-view.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->