scheduler.smarty
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<h2>{i18n}Task Scheduler Management{/i18n}</h2>
{* Display the list of tasks *}
<p>
<span class="descriptiveText">
{i18n}The scheduler runs document indexing and various house keeping tasks, etc in the background.
{/i18n}
</span>
</p>
<table class="kt_collection" cellspacing = "0" cellpadding = "4">
{if $aHeadings}
<thead>
<tr>
{foreach from=$aHeadings item=head}
<th>
{$head}
</th>
{/foreach}
</tr>
</thead>
{/if}
{if $aList}
{foreach from=$aList item=task}
<tr class="{cycle name=rows values=",odd"}">
<td width='2%'>
{$i++}
</td>
<td>
{$task->getTask()}
</td>
<td id="tblCol"><a href="#" onclick="javascript: showFrequencyDiv('{$task->getId()}');">
<div id="div{$task->getId()}">
{$task->getFrequency()}
</div></a>
</td>
<td>
<div id="runDiv{$task->getId()}">
{$task->getRunTime()}
</div>
</td>
<td>
<div id="prevDiv{$task->getId()}" style="display:none; visibility:hidden;">
<input type="hidden" name="prev{$task->getId()}" id="prev{$task->getId()}" value="{$task->getPrevious()}" />
</div>
{$task->getPrevious(TRUE)}
</td>
<td>
{$task->getRunDuration()}
</td>
<td>
{$task->getAlterFreqLink()} {$task->getRunNowLink()}
</td>
</tr>
{/foreach}
{else}
<tr>
<td class="descriptiveText" colspan="7">
{i18n}No tasks have been scheduled{/i18n}
</td>
</tr>
{/if}
</table>
<div id="formDiv" style="display: none; visibility: hidden;">
<form name="changefreq" id="changefreq" method="post" action="{$sUrl}">
<select name="frequency" id="frequency">
{html_options values=$aFrequencies output=$aFrequencies}
</select>
<input type="hidden" name="fId" id="fId" value="" />
<input type="button" name="save" id="save" onclick='javascript: saveFreq("{$sUrl}");' value="Save" />
</form>
</div>
<p>
{$sClear}
</p>