source: trunk/template/yoga/admin/history.tpl @ 1727

Last change on this file since 1727 was 1727, checked in by plg, 17 years ago

Modification: new data model for history, more compact, more efficient. A
summary table is used as cache for history stats display.

New: a Perl script fill_history.pl was added to simulate a high load on
history table (making the efficiency of the new data model obvious).

Modification: function prepend_append_array_items moved from
include/functions_search.inc.php to include/functions_search.inc.php since
this function is used in new file admin/history.php

Modification: admin/images/*_stats.img.php replaced by a simpler and more
generic admin/images/stats.img.php unique file.

New: a history detail search page was added. Currently, only start and end
dates can be modified, it's just a beginning.

File size: 2.5 KB
Line 
1<div class="titrePage">
2  <ul class="categoryActions">
3    <li>
4      <a
5        href="{U_HELP}"
6        onclick="popuphelp(this.href); return false;"
7        title="{lang:Help}"
8      >
9        <img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)">
10      </a>
11    </li>
12  </ul>
13  <h2>{lang:History}</h2>
14</div>
15
16<form class="filter" method="post" name="filter" action="{F_ACTION}">
17<fieldset>
18  <legend>{lang:Filter}</legend>
19  <ul>
20    <li><label>{lang:search_date_from}</label></li>
21    <li>
22      <select name="start_day">
23        <!-- BEGIN start_day -->
24        <option {start_day.SELECTED} value="{start_day.VALUE}">{start_day.OPTION}</option>
25        <!-- END start_day -->
26      </select>
27      <select name="start_month">
28        <!-- BEGIN start_month -->
29        <option {start_month.SELECTED} value="{start_month.VALUE}">{start_month.OPTION}</option>
30        <!-- END start_month -->
31      </select>
32      <input name="start_year" value="{START_YEAR}" type="text" size="4" maxlength="4" >
33    </li>
34  </ul>
35  <ul>
36    <li><label>{lang:search_date_to}</label></li>
37    <li>
38      <select name="end_day">
39        <!-- BEGIN end_day -->
40        <option {end_day.SELECTED} value="{end_day.VALUE}">{end_day.OPTION}</option>
41        <!-- END end_day -->
42      </select>
43      <select name="end_month">
44        <!-- BEGIN end_month -->
45        <option {end_month.SELECTED} value="{end_month.VALUE}">{end_month.OPTION}</option>
46        <!-- END end_month -->
47      </select>
48      <input name="end_year" value="{END_YEAR}" type="text" size="4" maxlength="4" >
49    </li>
50  </ul>
51
52  <input type="submit" name="submit" value="{lang:submit}" {TAG_INPUT_ENABLED}/>
53</fieldset>
54</form>
55
56<h3>{L_DATE_TITLE}</h3>
57
58<!-- BEGIN navigation -->
59<div class="admin">
60{navigation.NAVBAR}
61</div>
62<!-- END navigation -->
63
64<table class="table2" id="detailedStats">
65  <tr class="throw">
66    <th>{lang:date}</th>
67    <th>{lang:time}</th>
68    <th>{lang:user}</th>
69    <th>{lang:IP}</th>
70    <th>{lang:image}</th>
71    <th>{lang:section}</th>
72    <th>{lang:category}</th>
73    <th>{lang:tags}</th>
74  </tr>
75<!-- BEGIN detail -->
76  <tr class="{detail.T_CLASS}">
77    <td class="hour">{detail.DATE}</td>
78    <td class="hour">{detail.TIME}</td>
79    <td>{detail.USER}</td>
80    <td>{detail.IP}</td>
81    <td>{detail.IMAGE}</td>
82    <td>{detail.SECTION}</td>
83    <td>{detail.CATEGORY}</td>
84    <td>{detail.TAGS}</td>
85  </tr>
86<!-- END detail -->
87</table>
88
89<!-- BEGIN navigation -->
90<div class="admin">
91{navigation.NAVBAR}
92</div>
93<!-- END navigation -->
Note: See TracBrowser for help on using the repository browser.