From 5d9a865fe1931869d3d9edb19f64d66783a0f4f4 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 16 Jan 2007 23:39:39 +0000 Subject: 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 --- template/yoga/admin/element_set_global.tpl | 2 + template/yoga/admin/history.tpl | 93 ++++++++++++++++++++++++++++++ template/yoga/admin/stats.tpl | 40 ++----------- 3 files changed, 99 insertions(+), 36 deletions(-) create mode 100644 template/yoga/admin/history.tpl (limited to 'template/yoga/admin') diff --git a/template/yoga/admin/element_set_global.tpl b/template/yoga/admin/element_set_global.tpl index 88acd3a50..6b1bab8ca 100644 --- a/template/yoga/admin/element_set_global.tpl +++ b/template/yoga/admin/element_set_global.tpl @@ -159,6 +159,8 @@
  • + +
  • 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 @@ +
    + +

    {lang:History}

    +
    + +
    +
    + {lang:Filter} +
      +
    • +
    • + + + +
    • +
    +
      +
    • +
    • + + + +
    • +
    + + +
    +
    + +

    {L_DATE_TITLE}

    + + +
    +{navigation.NAVBAR} +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    {lang:date}{lang:time}{lang:user}{lang:IP}{lang:image}{lang:section}{lang:category}{lang:tags}
    {detail.DATE}{detail.TIME}{detail.USER}{detail.IP}{detail.IMAGE}{detail.SECTION}{detail.CATEGORY}{detail.TAGS}
    + + +
    +{navigation.NAVBAR} +
    + diff --git a/template/yoga/admin/stats.tpl b/template/yoga/admin/stats.tpl index 75de81f79..edf7d9a3c 100644 --- a/template/yoga/admin/stats.tpl +++ b/template/yoga/admin/stats.tpl @@ -2,50 +2,18 @@

    {lang:title_history}

    {L_STAT_TITLE}

    -{L_STAT_MONTHLY_ALT} -

    {L_STAT_DETAIL_TITLE}

    +{lang:history chart} + - - - - + + - -
    {L_VALUE}{L_PAGES_SEEN}{L_VISITORS}{L_PICTURES}{PERIOD_LABEL}{lang:Pages seen}
    {statrow.VALUE} {statrow.PAGES}{statrow.VISITORS}{statrow.IMAGES}
    - -

    {L_DATE_TITLE}

    - - - - - - - - - - - - - - - - - - - -
    {L_STAT_HOUR}{L_STAT_LOGIN}{L_STAT_ADDR}{L_STAT_CATEGORY}{L_STAT_FILE}{L_STAT_PICTURE}
    {detail.HOUR}{detail.LOGIN}{detail.IP}{detail.CATEGORY}{detail.FILE}{detail.PICTURE}
    - - -
    -{navigation.NAV_BAR} -
    - -- cgit v1.2.3