Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:55 JST
Index: slashjp/plugins/Remarks/templates/config_remarks;misc;default diff -u /dev/null slashjp/plugins/Remarks/templates/config_remarks;misc;default:1.1 --- /dev/null Wed Jul 12 20:41:55 2006 +++ slashjp/plugins/Remarks/templates/config_remarks;misc;default Wed Jul 12 20:41:55 2006 @@ -0,0 +1,23 @@ +__section__ +default +__description__ +You should describe stuff here. +__title__ +Useless title to template +__page__ +misc +__lang__ +en_US +__name__ +config_remarks +__seclev__ +10000 +__template__ +[% priority = user.remarks_min_priority || 0 %] +[% filter = user.remarks_filter || "" %] +[% limit = user.remarks_limit || 10 %] +Min Priority: <input type="text" id="remarks_min_priority" name="remarks_min_priority" value="[% priority %]" size="1" onkeyup="remarks_config_save()"><br> +Filter: <input type="text" id="remarks_filter" name="remarks_filter" value="[% filter %]" size="20" onkeyup="remarks_config_save()"><br> +Number to show: <input type="text" id="remarks_limit" name="remarks_limit" value="[% limit %]" size="2" onkeyup="remarks_config_save()"><br> +<input id="remarks_new" type="text" size="60"> +<input type="button" id="remarks_new_button" value="Say" onclick="remarks_create();"> Index: slashjp/plugins/Remarks/templates/data;remarks;default diff -u /dev/null slashjp/plugins/Remarks/templates/data;remarks;default:1.1 --- /dev/null Wed Jul 12 20:41:55 2006 +++ slashjp/plugins/Remarks/templates/data;remarks;default Wed Jul 12 20:41:55 2006 @@ -0,0 +1,29 @@ +__section__ +default +__description__ +Repository for random data elements. + +* value = the name of the data element to retrieve + +Each data element may have any number of other variables. +__title__ + +__page__ +remarks +__lang__ +en_US +__name__ +data +__template__ +[% SWITCH value %] + +[% CASE 'title' %] + [% returnme.data_constant = 1 %] + [% constants.sitename %] Remarks + +[% END %] + +__seclev__ +10000 +__version__ +$Id: data;remarks;default,v 1.1 2006/07/12 11:41:55 sugi Exp $ Index: slashjp/plugins/Remarks/templates/display;remarks;default diff -u /dev/null slashjp/plugins/Remarks/templates/display;remarks;default:1.1 --- /dev/null Wed Jul 12 20:41:55 2006 +++ slashjp/plugins/Remarks/templates/display;remarks;default Wed Jul 12 20:41:55 2006 @@ -0,0 +1,54 @@ +__section__ +default +__description__ +__title__ + +__page__ +remarks +__lang__ +en_US +__name__ +display +__template__ + +[% IF print_whole %] +<!-- reload this div every 30 seconds --> +<script type="text/javascript">remarks_fetch(30, [% remarks_max %]);</script> + +<div id="remarks_whole"> +[% END; + + IF print_div || print_whole %] + <input type="hidden" id="remarks_max" name="remarks_max" value="[% remarks_max %]"> + [% PROCESS ajax_reskey_tag reskey_label => 'remarks_reskey', reskey_name => 'ajax_admin' %] + +<div id="remarks_table"> +[% END %] + +<table class="data" width="100%"> + <tr class="data_head"> + <th colspan="5">Remarks (Last Updated [% Slash.timeCalc(Slash.db.getTime, '%Y-%m-%d %H:%M:%S %Z', 0) %]) <a href="javascript:remarks_popup()">[Config]</a></th> + </tr> +[% i = 1; FOREACH remark = remarks_ref; i = i == 1 ? 2 : 1 %] + <tr class="data_hl[% i %]"> <!-- remark.id:[% remark.rid %] --> + <td>[% Slash.timeCalc(remark.time, '%H:%M:%S', 0) %]</td> + <td>[% IF !Slash.isAnon(remark.uid); Slash.db.getUser(remark.uid, 'nickname'); END %]</td> + <td>[% remark.priority || 0 %]</td> + <td>[% Slash.chopEntity(remark.remark, 120) %]</td> + <td>[% IF remark.stoid; + thisstory = Slash.db.getStory(remark.stoid); + IF thisstory %]<a href="[% gSkin.rootdir %]/admin.pl?sid=[% thisstory.sid %]&op=edit" + >Edit</a>[% + END; + END -%] + </td> + </tr> +[% END # FOREACH %] +</table> +[% IF print_div || print_whole %]</div>[% END %] +[% IF print_whole %]</div>[% END %] + +__seclev__ +10000 +__version__ +$Id: display;remarks;default,v 1.1 2006/07/12 11:41:55 sugi Exp $