indexerrors.smarty
1.66 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
{literal}
<script type="text/javascript">
function doReschedule(rescheduleAction)
{
var hiddenVal = document.getElementById("rescheduleValue");
hiddenVal.value = rescheduleAction;
document.scheduleForm.submit();
}
</script>
{/literal}
<h2>{i18n}Document Indexing Diagnostics{/i18n}</h2>
<p class="descriptiveText">{i18n}This report will help to diagnose problems with document indexing.{/i18n}</p>
<br>
{if $index_errors}
<form name="scheduleForm" action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="rescheduleValue" id="rescheduleValue" value="" />
<table class=kt_collection>
<thead>
<tr>
<th width="10"></th>
<th ><nobr>{i18n}Filename{/i18n}</th>
<th width="100"><nobr>{i18n}Extractor{/i18n}</th>
<th width="100"><nobr>{i18n}Index Date{/i18n}</th>
</tr>
</thead>
<tbody>
{foreach key=key from=$index_errors item=indexError}
<tr>
<td class="centered"><input type="checkbox" name="index_error[{$indexError.document_id}]" value="1"/></td>
<td><a href="/view.php?fDocumentId={$indexError.document_id}">{$indexError.filename|truncate:40:'...'}</a></td>
<td>{if $indexError.extractor}{$indexError.extractor}{else}<p><font color="#FF9933">{i18n}n/a{/i18n}</font></p>{/if}</td>
<td>{$indexError.indexdate}</td>
</tr>
<tr>
<td> </td>
<td colspan=4><pre>{$indexError.status_msg}</pre></td>
</tr>
{/foreach}
</tbody>
</table>
<br>
<input type="button" name="Reschedule" value="{i18n}Reschedule{/i18n}" onclick="doReschedule('reschedule');"/>
<input type="button" name="Reschedule All" value="{i18n}Reschedule All{/i18n}" onclick="doReschedule('rescheduleall');"/>
{else}
<h3>{i18n}There are no indexing issues.{/i18n}</h3>
{/if}
</form>