diff options
author | plegall <plg@piwigo.org> | 2007-01-16 23:39:39 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2007-01-16 23:39:39 +0000 |
commit | 5d9a865fe1931869d3d9edb19f64d66783a0f4f4 (patch) | |
tree | 35805541591d81cbb9a7758ddb3e2da538a2237d /template/yoga/admin/history.tpl | |
parent | 62149d74a9724bba01c5ae5b8b99fa00e0a60fe7 (diff) |
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.
git-svn-id: http://piwigo.org/svn/trunk@1727 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | template/yoga/admin/history.tpl | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/template/yoga/admin/history.tpl b/template/yoga/admin/history.tpl new file mode 100644 index 000000000..91f5fb4c6 --- /dev/null +++ b/template/yoga/admin/history.tpl @@ -0,0 +1,93 @@ +<div class="titrePage"> + <ul class="categoryActions"> + <li> + <a + href="{U_HELP}" + onclick="popuphelp(this.href); return false;" + title="{lang:Help}" + > + <img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"> + </a> + </li> + </ul> + <h2>{lang:History}</h2> +</div> + +<form class="filter" method="post" name="filter" action="{F_ACTION}"> +<fieldset> + <legend>{lang:Filter}</legend> + <ul> + <li><label>{lang:search_date_from}</label></li> + <li> + <select name="start_day"> + <!-- BEGIN start_day --> + <option {start_day.SELECTED} value="{start_day.VALUE}">{start_day.OPTION}</option> + <!-- END start_day --> + </select> + <select name="start_month"> + <!-- BEGIN start_month --> + <option {start_month.SELECTED} value="{start_month.VALUE}">{start_month.OPTION}</option> + <!-- END start_month --> + </select> + <input name="start_year" value="{START_YEAR}" type="text" size="4" maxlength="4" > + </li> + </ul> + <ul> + <li><label>{lang:search_date_to}</label></li> + <li> + <select name="end_day"> + <!-- BEGIN end_day --> + <option {end_day.SELECTED} value="{end_day.VALUE}">{end_day.OPTION}</option> + <!-- END end_day --> + </select> + <select name="end_month"> + <!-- BEGIN end_month --> + <option {end_month.SELECTED} value="{end_month.VALUE}">{end_month.OPTION}</option> + <!-- END end_month --> + </select> + <input name="end_year" value="{END_YEAR}" type="text" size="4" maxlength="4" > + </li> + </ul> + + <input type="submit" name="submit" value="{lang:submit}" {TAG_INPUT_ENABLED}/> +</fieldset> +</form> + +<h3>{L_DATE_TITLE}</h3> + +<!-- BEGIN navigation --> +<div class="admin"> +{navigation.NAVBAR} +</div> +<!-- END navigation --> + +<table class="table2" id="detailedStats"> + <tr class="throw"> + <th>{lang:date}</th> + <th>{lang:time}</th> + <th>{lang:user}</th> + <th>{lang:IP}</th> + <th>{lang:image}</th> + <th>{lang:section}</th> + <th>{lang:category}</th> + <th>{lang:tags}</th> + </tr> +<!-- BEGIN detail --> + <tr class="{detail.T_CLASS}"> + <td class="hour">{detail.DATE}</td> + <td class="hour">{detail.TIME}</td> + <td>{detail.USER}</td> + <td>{detail.IP}</td> + <td>{detail.IMAGE}</td> + <td>{detail.SECTION}</td> + <td>{detail.CATEGORY}</td> + <td>{detail.TAGS}</td> + </tr> +<!-- END detail --> +</table> + +<!-- BEGIN navigation --> +<div class="admin"> +{navigation.NAVBAR} +</div> +<!-- END navigation --> |