Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:58 JST
Index: slashjp/plugins/Stats/templates/calculate;stats;default diff -u slashjp/plugins/Stats/templates/calculate;stats;default:1.1.1.1 slashjp/plugins/Stats/templates/calculate;stats;default:1.2 --- slashjp/plugins/Stats/templates/calculate;stats;default:1.1.1.1 Wed Jan 28 06:55:09 2004 +++ slashjp/plugins/Stats/templates/calculate;stats;default Wed Jul 12 20:41:58 2006 @@ -165,4 +165,4 @@ __seclev__ 1000 __version__ -$Id: calculate;stats;default,v 1.1.1.1 2004/01/27 21:55:09 oliver Exp $ +$Id: calculate;stats;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/csv;stats;default diff -u slashjp/plugins/Stats/templates/csv;stats;default:1.1.1.1 slashjp/plugins/Stats/templates/csv;stats;default:1.2 --- slashjp/plugins/Stats/templates/csv;stats;default:1.1.1.1 Wed Jan 28 06:55:09 2004 +++ slashjp/plugins/Stats/templates/csv;stats;default Wed Jul 12 20:41:58 2006 @@ -31,4 +31,4 @@ __seclev__ 1000 __version__ -$Id: csv;stats;default,v 1.1.1.1 2004/01/27 21:55:09 oliver Exp $ +$Id: csv;stats;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/data;adminmail;default diff -u slashjp/plugins/Stats/templates/data;adminmail;default:1.1.1.1 slashjp/plugins/Stats/templates/data;adminmail;default:1.2 --- slashjp/plugins/Stats/templates/data;adminmail;default:1.1.1.1 Wed Jan 28 06:55:09 2004 +++ slashjp/plugins/Stats/templates/data;adminmail;default Wed Jul 12 20:41:58 2006 @@ -26,4 +26,4 @@ __seclev__ 500 __version__ -$Id: data;adminmail;default,v 1.1.1.1 2004/01/27 21:55:09 oliver Exp $ +$Id: data;adminmail;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/display;adminmail;default diff -u slashjp/plugins/Stats/templates/display;adminmail;default:1.3 slashjp/plugins/Stats/templates/display;adminmail;default:1.4 --- slashjp/plugins/Stats/templates/display;adminmail;default:1.3 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/display;adminmail;default Wed Jul 12 20:41:58 2006 @@ -64,7 +64,6 @@ [% END -%] [% END %] - accesslog: [% accesslog %] rows total formkeys: [% formkeys %] rows total comments: [% comments %] posted yesterday submissions: [% submissions %] submissions @@ -201,4 +200,4 @@ __seclev__ 100 __version__ -$Id: display;adminmail;default,v 1.3 2004/12/31 12:37:16 oliver Exp $ +$Id: display;adminmail;default,v 1.4 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/display;modmail;default diff -u slashjp/plugins/Stats/templates/display;modmail;default:1.3 slashjp/plugins/Stats/templates/display;modmail;default:1.4 --- slashjp/plugins/Stats/templates/display;modmail;default:1.3 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/display;modmail;default Wed Jul 12 20:41:58 2006 @@ -70,4 +70,4 @@ __seclev__ 100 __version__ -$Id: display;modmail;default,v 1.3 2004/12/31 12:37:16 oliver Exp $ +$Id: display;modmail;default,v 1.4 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/graph;stats;default diff -u slashjp/plugins/Stats/templates/graph;stats;default:1.1.1.1 slashjp/plugins/Stats/templates/graph;stats;default:1.2 --- slashjp/plugins/Stats/templates/graph;stats;default:1.1.1.1 Wed Jan 28 06:55:09 2004 +++ slashjp/plugins/Stats/templates/graph;stats;default Wed Jul 12 20:41:58 2006 @@ -84,4 +84,4 @@ __seclev__ 1000 __version__ -$Id: graph;stats;default,v 1.1.1.1 2004/01/27 21:55:09 oliver Exp $ +$Id: graph;stats;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/graphs;stats;default diff -u slashjp/plugins/Stats/templates/graphs;stats;default:1.3 slashjp/plugins/Stats/templates/graphs;stats;default:1.4 --- slashjp/plugins/Stats/templates/graphs;stats;default:1.3 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/graphs;stats;default Wed Jul 12 20:41:58 2006 @@ -86,8 +86,8 @@ CASE 'Hits'; IF (form.stats_skid && form.stats_skid != 0); - %] <B>[% gtitle %]</B> graph for [% form.stats_skid %] is unavailable. - Try the <B>Pages</B> graph instead. + %] <b>[% gtitle %]</b> graph for [% form.stats_skid %] is unavailable. + Try the <b>Pages</b> graph instead. [% # PROCESS make_graph # showtotal => 1, @@ -330,4 +330,4 @@ __seclev__ 1000 __version__ -$Id: graphs;stats;default,v 1.3 2004/12/31 12:37:16 oliver Exp $ +$Id: graphs;stats;default,v 1.4 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/list;stats;default diff -u slashjp/plugins/Stats/templates/list;stats;default:1.3 slashjp/plugins/Stats/templates/list;stats;default:1.4 --- slashjp/plugins/Stats/templates/list;stats;default:1.3 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/list;stats;default Wed Jul 12 20:41:58 2006 @@ -11,10 +11,10 @@ __name__ list __template__ - +<div class="generalbody"> [% IF form.stats_skid.defined && form.type != 'graphs' && stats_data.${form.stats_skid}.names %] [% PROCESS dumphead %] - <P> + <p> [% PROCESS doform label => "Individual Categories", select_box => Slash.createSelect('stats_name', stats_data.${form.stats_skid}.names, form.stats_name, 1) %] @@ -43,7 +43,7 @@ [% ELSIF form.graphname %] [% PROCESS graphshead %] - <P> + <p> [% PROCESS graphs gtitle => form.graphname %] [% ELSIF form.op == 'list' && form.type != 'graphs' %] @@ -54,70 +54,71 @@ [% ELSE %] [% PROCESS report %] - <P> + <p> [% PROCESS graphshead %] - <P> + <p> [% PROCESS dumphead %] [% END %] [% BLOCK dostats %] - <P><I>[% myname %]</I><BR> + <p><i>[% myname %]</i><br> [% stats_total = 0 %] [% FOREACH day = stats_data.${form.stats_skid}.keys.sort; NEXT IF day == "names"; stats_num = stats_data.${form.stats_skid}.${day}.${myname} + 0; stats_total = stats_total + stats_num %] - [% day %]: [% stats_num %]<BR> + [% day %]: [% stats_num %]<br> [% END %] - <B>Total: [% stats_total %]</B> + <b>Total: [% stats_total %]</b> [% PROCESS make_graph statdata => [myname] %] [% END %] [% BLOCK doform %] - [% PROCESS formLabel value => label, comment => comment %] - <FORM METHOD="POST" ACTION="[% env.script_name %]"> - [% select_box %] - - Range: [% PROCESS stats_days %] - - <INPUT TYPE="hidden" NAME="stats_skid" VALUE="[% form.stats_skid %]"> - <INPUT TYPE="hidden" NAME="op" VALUE="list"> - <INPUT TYPE="submit"> - </FORM> + <form method="post" action="[% env.script_name %]"> + <fieldset> + <legend>List</legend> + [% PROCESS formLabel value => label, comment => comment %] + [% select_box %] + Range: [% PROCESS stats_days %] + <input type="hidden" name="stats_skid" value="[% form.stats_skid %]"> + <input type="hidden" name="op" value="list"> + <input type="submit" class="button"> + </fieldset> + </form> [% END %] [% BLOCK dumphead %] - [% PROCESS titlebar title => "Available Raw Stats for $constants.sitename", width => '100%' %] - - <FORM METHOD="POST" ACTION="[% env.script_name %]"> - - [% PROCESS formLabel value => "Section" %] - [% Slash.createSelect('stats_skid', skins, form.stats_skid, 1) %] - - <INPUT TYPE="hidden" NAME="op" VALUE="list"> - <INPUT TYPE="submit"> - </FORM> + [% PROCESS titlebar title => "Available Raw Stats for $constants.sitename" %] + <form method="post" action="[% env.script_name %]"> + <fieldset> + <legend>Stats</legend> + [% PROCESS formLabel value => "Section" %] + [% Slash.createSelect('stats_skid', skins, form.stats_skid, 1) %] + <input type="hidden" name="op" value="list"> + <input type="submit" class="button"> + </fieldset> + </form> [% END %] [% BLOCK graphshead %] - [% PROCESS titlebar title => "Available Graphs for $constants.sitename", width => '100%' %] - - <FORM METHOD="POST" ACTION="[% env.script_name %]"> - - [% PROCESS formLabel value => "Graphs" %] - [% PROCESS graphs # get mygraphs defined %] - [% Slash.createSelect('graphname', mygraphs, form.graphname, 1) %] - Range: [% PROCESS stats_days %] - Sections: [% Slash.createSelect('stats_skid', skins, form.stats_skid, 1) %] - - <INPUT TYPE="hidden" NAME="op" VALUE="list"> - <INPUT TYPE="hidden" NAME="type" VALUE="graphs"> - <INPUT TYPE="submit"> - </FORM> + [% PROCESS titlebar title => "Available Graphs for $constants.sitename" %] + <form method="post" action="[% env.script_name %]"> + <fieldset> + <legend>Graphs</legend> + [% PROCESS formLabel value => "Graphs" %] + [% PROCESS graphs # get mygraphs defined %] + [% Slash.createSelect('graphname', mygraphs, form.graphname, 1) %] + Range: [% PROCESS stats_days %] + Sections: [% Slash.createSelect('stats_skid', skins, form.stats_skid, 1) %] + <input type="hidden" name="op" value="list"> + <input type="hidden" name="type" value="graphs"> + <input type="submit" class="button"> + </fieldset> + </form> [% END %] - +</div> __seclev__ 1000 __version__ -$Id: list;stats;default,v 1.3 2004/12/31 12:37:16 oliver Exp $ +$Id: list;stats;default,v 1.4 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/make_graph;stats;default diff -u slashjp/plugins/Stats/templates/make_graph;stats;default:1.2 slashjp/plugins/Stats/templates/make_graph;stats;default:1.3 --- slashjp/plugins/Stats/templates/make_graph;stats;default:1.2 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/make_graph;stats;default Wed Jul 12 20:41:58 2006 @@ -16,32 +16,32 @@ END; IF (gtitle); - gtitle = gtitle | fixparam; + gtitle = gtitle | strip_paramattr; gtitle = '&title=' _ gtitle; END; UNLESS skid.defined; skid = form.stats_skid; END; - skid = skid | fixparam; + skid = skid | strip_paramattr; statstring = ''; FOREACH stat = statdata; IF (stat.0); - nstat = stat.0 | fixparam; + nstat = stat.0 | strip_paramattr; - nskid = stat.1 | fixparam; + nskid = stat.1 | strip_paramattr; IF (!nskid); nskid = skid; END; - nlabel = stat.2 | fixparam; - IF (!nskid); + nlabel = stat.2 | strip_paramattr; + IF (!nlabel); nlabel = ''; END; ELSE; - nstat = stat | fixparam; + nstat = stat | strip_paramattr; nskid = skid; nlabel = ''; END; @@ -49,14 +49,14 @@ statstring = statstring _ '&stats_graph_multiple=' _ nstat _ ',' _ nskid _ ',' _ nlabel; END; statstring = BLOCK -%] -&type=[% type | fixparam %]&stats_days=[% days | fixparam %]&byweekavg=[% byweekavg | fixparam %]&showtotal=[% showtotal | fixparam %][% statstring %][% gtitle %] +&type=[% type | strip_paramattr %]&stats_days=[% days | strip_paramattr %]&byweekavg=[% byweekavg | strip_paramattr %]&showtotal=[% showtotal | strip_paramattr %][% statstring %][% gtitle %] [%- END %] -<P> -<A HREF="[% gSkin.rootdir %]/stats.pl?op=table[% statstring %]" -><IMG SRC="[% gSkin.rootdir %]/stats.pl?op=graph[% statstring %]"></A> -</P> +<p> +<a href="[% gSkin.rootdir %]/stats.pl?op=table[% statstring %]" +><img src="[% gSkin.rootdir %]/stats.pl?op=graph[% statstring %]"></a> +</p> __seclev__ 1000 __version__ -$Id: make_graph;stats;default,v 1.2 2004/12/31 12:37:16 oliver Exp $ +$Id: make_graph;stats;default,v 1.3 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/report;stats;default diff -u slashjp/plugins/Stats/templates/report;stats;default:1.3 slashjp/plugins/Stats/templates/report;stats;default:1.4 --- slashjp/plugins/Stats/templates/report;stats;default:1.3 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/report;stats;default Wed Jul 12 20:41:58 2006 @@ -125,14 +125,14 @@ %] [% - "Relocated links<BR>"; + "Relocated links<br>"; FOREACH key = stats_data_big.names.sort; - "$key<BR>"; + "$key<br>"; PROCESS make_graph skid => '0', type => 'area', statdata => [ key ]; - "<P>"; + "<p>"; END; END; @@ -161,18 +161,21 @@ [% PROCESS titlebar title => ((reports.${form.report} || 'Available Reports') _ ' for ' _ constants.sitename), width => '100%' %] -<FORM METHOD="POST" ACTION="[% env.script_name %]"> +<form method="post" action="[% env.script_name %]"> + <fieldset> + <legend>Reports</legend> [% PROCESS formLabel value => "Reports" %] [% Slash.createSelect('report', reports, form.report, 1) %] Range: [% PROCESS stats_days %] Sections: [% Slash.createSelect('stats_skid', skins, form.stats_skid, 1) %] - <INPUT TYPE="hidden" NAME="op" VALUE="report"> - <INPUT TYPE="submit"> -</FORM> + <input type="hidden" name="op" value="report"> + <input type="submit"> + </fieldset> +</form> [% reportblock %] __seclev__ 1000 __version__ -$Id: report;stats;default,v 1.3 2004/12/31 12:37:16 oliver Exp $ +$Id: report;stats;default,v 1.4 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/stats_days;stats;default diff -u slashjp/plugins/Stats/templates/stats_days;stats;default:1.1.1.1 slashjp/plugins/Stats/templates/stats_days;stats;default:1.2 --- slashjp/plugins/Stats/templates/stats_days;stats;default:1.1.1.1 Wed Jan 28 06:55:10 2004 +++ slashjp/plugins/Stats/templates/stats_days;stats;default Wed Jul 12 20:41:58 2006 @@ -19,4 +19,4 @@ __seclev__ 1000 __version__ -$Id: stats_days;stats;default,v 1.1.1.1 2004/01/27 21:55:10 oliver Exp $ +$Id: stats_days;stats;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Stats/templates/table;stats;default diff -u slashjp/plugins/Stats/templates/table;stats;default:1.2 slashjp/plugins/Stats/templates/table;stats;default:1.3 --- slashjp/plugins/Stats/templates/table;stats;default:1.2 Fri Dec 31 21:37:16 2004 +++ slashjp/plugins/Stats/templates/table;stats;default Wed Jul 12 20:41:58 2006 @@ -13,40 +13,40 @@ __template__ [% PROCESS calculate %] -<H2 ALIGN="CENTER">[% period %] Report for [% constants.sitename %]</H2> +<h2 align="CENTER">[% period %] Report for [% constants.sitename %]</h2> -<P ALIGN="CENTER"> -<A HREF="[% gSkin.rootdir %]/stats.pl?[% env.query_string | replace('op=table', 'op=csv') %]" ->Download CSV data for spreadsheet</A> -</P> +<p align="CENTER"> +<a href="[% gSkin.rootdir %]/stats.pl?[% env.query_string | replace('op=table', 'op=csv') %]" +>Download CSV data for spreadsheet</a> +</p> -<P ALIGN="CENTER"> -<TABLE BORDER="2" CELLPADDING="2" CELLSPACING="2"> +<p align="CENTER"> +<table border="2" cellpadding="2" cellspacing="2"> - <TR> - <TH></TH> + <tr> + <th></th> [% pct = 100 div alldata.size; FOREACH this = alldata; NEXT IF loop.index == 0; myindex = loop.index - 1 %] - <TH WIDTH="[% pct %]%">[% alltypes.${myindex} %]</TH> + <th width="[% pct %]%">[% alltypes.${myindex} %]</th> [% END %] - </TR> + </tr> [% FOREACH day = days %] - <TR> - <TH>[% day %]</TH> + <tr> + <th>[% day %]</th> [% myindex = loop.index; FOREACH this = alldata; NEXT IF loop.index == 0 %] - <TD ALIGN="RIGHT">[% Slash.commify(this.${myindex}) %]</TD> + <td align="RIGHT">[% Slash.commify(this.${myindex}) %]</td> [% END %] - </TR> + </tr> [% END %] -</TABLE> -</P> +</table> +</p> __seclev__ 1000 __version__ -$Id: table;stats;default,v 1.2 2004/12/31 12:37:16 oliver Exp $ +$Id: table;stats;default,v 1.3 2006/07/12 11:41:58 sugi Exp $