Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:58 JST
Index: slashjp/plugins/Sections/templates/data;sections;default diff -u slashjp/plugins/Sections/templates/data;sections;default:1.1.1.1 slashjp/plugins/Sections/templates/data;sections;default:1.2 --- slashjp/plugins/Sections/templates/data;sections;default:1.1.1.1 Wed Jan 28 06:55:07 2004 +++ slashjp/plugins/Sections/templates/data;sections;default Wed Jul 12 20:41:58 2006 @@ -23,20 +23,20 @@ [% CASE 'notadmin' %] [% returnme.data_constant = 1 %] - <PRE>I woke up in the Soho bar when a policeman knew my name. He said, + <pre>I woke up in the Soho bar when a policeman knew my name. He said, "You can go sleep at home tonite if you can get up and walk away." I staggered back to the underground and a breeze threw back my head. I remember throwing punches around and preachin' from my chair. - From 'Who Are You' by God (aka Pete Townshend)<BR></PRE> + From 'Who Are You' by God (aka Pete Townshend)<br></pre> [% CASE 'insert' %] - Inserted [% section %]<BR> + Inserted [% section %]<br> [% CASE 'update' %] - Updated [% section %]<BR> + Updated [% section %]<br> [% CASE 'failed' %] - Failed to create/update [% section %]<BR> + Failed to create/update [% section %]<br> [% CASE 'addhead' %] [% returnme.data_constant = 1 %] @@ -53,15 +53,15 @@ Saving [% form.section | strip_nohtml %] Section [% CASE 'subsection_added' %] - Subsection '[% form.new_subsection %]' added.<BR><BR> + Subsection '[% form.new_subsection %]' added.<br><br> [% CASE 'subsection_removed' %] - Operation "[% form.action %]" completed.<BR> - Subsection #[% form.DEL_subsection %] removed.<BR><BR> + Operation "[% form.action %]" completed.<br> + Subsection #[% form.DEL_subsection %] removed.<br><br> [% END %] __seclev__ 10000 __version__ -$Id: data;sections;default,v 1.1.1.1 2004/01/27 21:55:07 oliver Exp $ +$Id: data;sections;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Sections/templates/delSectCancel;sections;default diff -u slashjp/plugins/Sections/templates/delSectCancel;sections;default:1.1.1.1 slashjp/plugins/Sections/templates/delSectCancel;sections;default:1.2 --- slashjp/plugins/Sections/templates/delSectCancel;sections;default:1.1.1.1 Wed Jan 28 06:55:07 2004 +++ slashjp/plugins/Sections/templates/delSectCancel;sections;default Wed Jul 12 20:41:58 2006 @@ -12,8 +12,8 @@ __name__ delSectCancel __template__ -<B>Canceled deletion of [% section %].</B><BR> +<b>Canceled deletion of [% section %].</b><br> __seclev__ 10000 __version__ -$Id: delSectCancel;sections;default,v 1.1.1.1 2004/01/27 21:55:07 oliver Exp $ +$Id: delSectCancel;sections;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Sections/templates/delSectConfirm;sections;default diff -u slashjp/plugins/Sections/templates/delSectConfirm;sections;default:1.1.1.1 slashjp/plugins/Sections/templates/delSectConfirm;sections;default:1.2 --- slashjp/plugins/Sections/templates/delSectConfirm;sections;default:1.1.1.1 Wed Jan 28 06:55:07 2004 +++ slashjp/plugins/Sections/templates/delSectConfirm;sections;default Wed Jul 12 20:41:58 2006 @@ -19,4 +19,4 @@ __seclev__ 10000 __version__ -$Id: delSectConfirm;sections;default,v 1.1.1.1 2004/01/27 21:55:07 oliver Exp $ +$Id: delSectConfirm;sections;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Sections/templates/delSection;sections;default diff -u slashjp/plugins/Sections/templates/delSection;sections;default:1.1.1.1 slashjp/plugins/Sections/templates/delSection;sections;default:1.2 --- slashjp/plugins/Sections/templates/delSection;sections;default:1.1.1.1 Wed Jan 28 06:55:07 2004 +++ slashjp/plugins/Sections/templates/delSection;sections;default Wed Jul 12 20:41:58 2006 @@ -13,16 +13,16 @@ __name__ delSection __template__ - <FORM ACTION="[% env.script_name %]" METHOD="POST"> - <P> + <form action="[% env.script_name %]" method="post"> + <p> Do you really want to delete the [% section %] section? - <INPUT TYPE="HIDDEN" NAME="section" VALUE="[% section %]"> - <INPUT TYPE="SUBMIT" NAME="deletesection_cancel" VALUE="Cancel"> - <INPUT TYPE="SUBMIT" NAME="deletesection_confirm" VALUE="Delete [% section %]"> - </P> - </FORM> + <input type="hidden" name="section" value="[% section %]"> + <input type="submit" name="deletesection_cancel" value="Cancel"> + <input type="submit" name="deletesection_confirm" value="Delete [% section %]"> + </p> + </form> __seclev__ 10000 __version__ -$Id: delSection;sections;default,v 1.1.1.1 2004/01/27 21:55:07 oliver Exp $ +$Id: delSection;sections;default,v 1.2 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Sections/templates/editSection;sections;default diff -u slashjp/plugins/Sections/templates/editSection;sections;default:1.2 slashjp/plugins/Sections/templates/editSection;sections;default:1.3 --- slashjp/plugins/Sections/templates/editSection;sections;default:1.2 Fri Dec 31 21:37:15 2004 +++ slashjp/plugins/Sections/templates/editSection;sections;default Wed Jul 12 20:41:58 2006 @@ -19,39 +19,39 @@ editSection __template__ [ -<A HREF="[% gSkin.rootdir %]/admin.pl?section=[% section %]">Stories</A> | -<A HREF="[% gSkin.rootdir %]/submit.pl?section=[% section %]&op=list">Submissions</A> | -<A HREF="[% gSkin.rootdir %]/index.pl?section=[% section %]">Preview</A> +<a href="[% gSkin.rootdir %]/admin.pl?section=[% section %]">Stories</a> | +<a href="[% gSkin.rootdir %]/submit.pl?section=[% section %]&op=list">Submissions</a> | +<a href="[% gSkin.rootdir %]/index.pl?section=[% section %]">Preview</a> ] [% # Conditions for subsection delete confirmation. If true, show subform. IF form.DEL_subsection && !form.confirm; key = "del_subsection_${form.DEL_subsection}" %] -<FORM ACTION="[% env.script_name %]" METHOD="POST"> - <B>Subsection action</B>: [% form.$key %]? - <INPUT TYPE="HIDDEN" NAME="section" VALUE="[% form.section | strip_attribute %]"> - <INPUT TYPE="HIDDEN" NAME="op" VALUE="editsection"> - <INPUT TYPE="HIDDEN" NAME="action" VALUE="[% form.$key %]"> - <INPUT TYPE="HIDDEN" NAME="DEL_subsection" VALUE="[% form.DEL_subsection | strip_attribute %]"> - <INPUT TYPE="SUBMIT" NAME="confirm" VALUE="Yes"> - <INPUT TYPE="SUBMIT" NAME="nonconfirm" VALUE="No"> -</FORM> -<BR><BR> +<form action="[% env.script_name %]" method="post"> + <b>Subsection action</b>: [% form.$key %]? + <input type="hidden" name="section" value="[% form.section | strip_attribute %]"> + <input type="hidden" name="op" value="editsection"> + <input type="hidden" name="action" value="[% form.$key %]"> + <input type="hidden" name="DEL_subsection" value="[% form.DEL_subsection | strip_attribute %]"> + <input type="submit" name="confirm" value="Yes"> + <input type="submit" name="nonconfirm" value="No"> +</form> +<br><br> [% END %] -<FORM ACTION="[% env.script_name %]" METHOD="POST"> - <TABLE><TR><TD VALIGN="TOP"> +<form action="[% env.script_name %]" method="post"> + <table><tr><td valign="TOP"> [% PROCESS formLabel value => "Section name" comment => "must be unique" %] - <INPUT TYPE="TEXT" NAME="section" VALUE="[% section | strip_attribute %]"> - <BR><BR> + <input type="text" name="section" value="[% section | strip_attribute %]"> + <br><br> [% PROCESS formLabel value="Article Count" comment="how many articles to display on section index" %] - <INPUT TYPE="TEXT" NAME="artcount" SIZE="4" VALUE="[% this_section.artcount %]"> - 1/3rd of these will display intro text, 2/3rds just headers<BR><BR> + <input type="text" name="artcount" size="4" value="[% this_section.artcount %]"> + 1/3rd of these will display intro text, 2/3rds just headers<br><br> [% PROCESS formLabel value="Title" comment="be descriptive" %] - <INPUT TYPE="TEXT" NAME="title" SIZE="30" VALUE="[% - this_section.title %]"><BR> + <input type="text" name="title" size="30" value="[% + this_section.title %]"><br> [% IF qid.length %] [% PROCESS formLabel value="Polls for this section" comment="" %] @@ -61,149 +61,149 @@ [% PROCESS formLabel value="Type" comment="" %] [% types = Slash.db.getDescriptions("section-types") %] [% Slash.createSelect("type", types, this_section.type, 1) %] - <P> + <p> [% PROCESS formLabel value="Issue mode" comment="" %] [% issue %] - <P> + <p> [% PROCESS formLabel value="URL" comment="if the section has its own url" %] - <INPUT TYPE="TEXT" NAME="url" SIZE="30" VALUE="[% this_section.url %]"><BR> + <input type="text" name="url" size="30" value="[% this_section.url %]"><br> [% PROCESS formLabel value = "Hostname" comment = "Hostname we should match against" %] - <INPUT TYPE="TEXT" NAME="hostname" SIZE="30" VALUE="[% this_section.hostname %]"><BR> + <input type="text" name="hostname" size="30" value="[% this_section.hostname %]"><br> [% PROCESS formLabel value => "Cookiedomain" comment => "if the section requires that you give out a special cookie" %] - <BR><INPUT TYPE="TEXT" NAME="cookiedomain" SIZE="30" VALUE="[% this_section.cookiedomain %]"><BR> + <br><input type="text" name="cookiedomain" size="30" value="[% this_section.cookiedomain %]"><br> [% PROCESS formLabel value => "Index Handler" comment => "the script that acts as / queries" %] - <BR><INPUT TYPE="TEXT" NAME="index_handler" SIZE="30" VALUE="[% this_section.index_handler %]"><BR> + <br><input type="text" name="index_handler" size="30" value="[% this_section.index_handler %]"><br> [% IF blocks.size %] [% PROCESS formLabel value => "Edit Section slashboxes" comment => "blocks" %] [% FOREACH block = blocks %] - <LI> - <B><A HREF="[% gSkin.rootdir %]/admin.pl?op=blocks&bid=[% block.bid %]">[% block.title %]</A></B> - <A HREF="[% block.url %]">[% block.url %]</A> + <li> + <b><a href="[% gSkin.rootdir %]/admin.pl?op=blocks&bid=[% block.bid %]">[% block.title %]</a></b> + <a href="[% block.url %]">[% block.url %]</a> [% IF block.ordernum && block.ordernum > 0 %] [% ' (default)' %] [% END %] [% END %] [% END %] - <BR> - <BR> + <br> + <br> - <INPUT TYPE="HIDDEN" NAME="subsections" VALUE="[% subsections.join(',') %]"> + <input type="hidden" name="subsections" value="[% subsections.join(',') %]"> [% INCLUDE titlebar title=>"Subsections" width=>"99%" %] - <TABLE BORDER=0 WIDTH="70%"> - <TR> - <TD COLSPAN=3> - <TABLE BORDER=0 WIDTH="100%"> - <TR> - <TD WIDTH=75%"> + <table border=0 width="70%"> + <tr> + <td colspan=3> + <table border=0 width="100%"> + <tr> + <td width=75%"> Enter name of new subsection: - <INPUT TYPE="TEXT" NAME="new_subsection" VALUE=""> - </TD><TD> - <INPUT TYPE="SUBMIT" VALUE="Add Subsection"> - </TD> - </TR> - </TABLE> - <BR><BR> - </TD> - </TR> + <input type="text" name="new_subsection" value=""> + </td><td> + <input type="submit" value="Add Subsection"> + </td> + </tr> + </table> + <br><br> + </td> + </tr> [% IF subsections.size %] - <TR> - <TH BGCOLOR="[% user.colors.bg_2 %]">Subsection</TH> - <TH BGCOLOR="[% user.colors.bg_2 %]">Article Count</TH> - <TH BGCOLOR="[% user.colors.bg_2 %]">Remove Subsection</TH> - </TR> + <tr> + <th bgcolor="[% user.colors.bg_2 %]">Subsection</th> + <th bgcolor="[% user.colors.bg_2 %]">Article Count</th> + <th bgcolor="[% user.colors.bg_2 %]">Remove Subsection</th> + </tr> [% END %] [% FOR ss=subsections %] - <TR ALIGN="CENTER"> - <TD WIDTH="33%"> - <INPUT TYPE="TEXT" NAME="subsection_title_[% ss.id %]" VALUE="[% ss.title %]"> - </TD> - <TD> - <INPUT TYPE="TEXT" NAME="subsection_artcount_[% ss.id %]" VALUE="[% ss.artcount %]" SIZE=4> - </TD> - <TD> - <INPUT TYPE="SUBMIT" NAME="del_subsection_[% ss.id %]" VALUE="Remove [% ss.title %]"> - </TD> - </TR> + <tr align="CENTER"> + <td width="33%"> + <input type="text" name="subsection_title_[% ss.id %]" value="[% ss.title %]"> + </td> + <td> + <input type="text" name="subsection_artcount_[% ss.id %]" value="[% ss.artcount %]" size=4> + </td> + <td> + <input type="submit" name="del_subsection_[% ss.id %]" value="Remove [% ss.title %]"> + </td> + </tr> [% END %] - </TABLE> - <BR><BR> + </table> + <br><br> [% IF form.addextra; extras.push(['','']); END; IF extras.size; INCLUDE titlebar title=>"Extra Story Fields", width=>"99%"; id = 1 %] - <TABLE BORDER=0 WIDTH=\"40%\">\n"; + <table border=0 width=\"40%\">\n"; [% FOR e=extras %] [% UNLESS loop.first %] - <TR> - <TD BGCOLOR="[% user.colors.bg_0 %]" COLSPAN="4"> + <tr> + <td bgcolor="[% user.colors.bg_0 %]" colspan="4"> [% INCLUDE spacer %] - </TD> - </TR><TR> - <TD BGCOLOR="[% user.colors.bg_3 %]" COLSPAN="4"> + </td> + </tr><tr> + <td bgcolor="[% user.colors.bg_3 %]" colspan="4"> [% INCLUDE spacer %] - </TD> - </TR><TR> - <TD BGCOLOR="[% user.colors.bg_0 %]" COLSPAN="4"> + </td> + </tr><tr> + <td bgcolor="[% user.colors.bg_0 %]" colspan="4"> [% INCLUDE spacer %] - </TD> - </TR> + </td> + </tr> [% END %] - <TR> - <TD> + <tr> + <td> [% PROCESS formLabel value=>"Field Name:" comment='' %] - <INPUT TYPE="TEXT" NAME="extraname_[% id %]" VALUE="[% e.1 %]"> - </TD> + <input type="text" name="extraname_[% id %]" value="[% e.1 %]"> + </td> - <TD> + <td> [% PROCESS formLabel value=>"Field Text:" %] - <INPUT TYPE="TEXT" NAME="extraval_[% id %]" VALUE="[% e.0 %]"> + <input type="text" name="extraval_[% id %]" value="[% e.0 %]"> [% nbsp=' '; nbsp.repeat(4) %] - </TD> + </td> - <TD> + <td> [% PROCESS formLabel value="Field Type:" %] [% Slash.createSelect( "extratype_$id", extra_types, e.type, 1) %] - </TD> + </td> - <TD VALIGN="BOTTOM" ALIGN="RIGHT"> - <INPUT TYPE="CHECKBOX" NAME="extradel_[% id %]"> Del?</TD> - </TR> + <td valign="BOTTOM" align="RIGHT"> + <input type="checkbox" name="extradel_[% id %]"> Del?</td> + </tr> [% id = id + 1; END %] - </TABLE> <INPUT TYPE="SUBMIT" NAME="addextra" VALUE="add extra"> - <P> + </table> <input type="submit" name="addextra" value="add extra"> + <p> [% ELSE %] - <BR><INPUT TYPE="SUBMIT" NAME="addextra" VALUE="add extra"> + <br><input type="submit" name="addextra" value="add extra"> [% END %] - <BR><INPUT TYPE="SUBMIT" NAME="savesection" VALUE="save section"> - <BR><INPUT TYPE="SUBMIT" NAME="deletesection" VALUE="delete section"> - </TD> - <TD VALIGN="TOP"> + <br><input type="submit" name="savesection" value="save section"> + <br><input type="submit" name="deletesection" value="delete section"> + </td> + <td valign="TOP"> [% IF this_section.type != 'collected' %] [% PROCESS formLabel value => "Topics" comment => "topics assigned to this section" %] - <UL> + <ul> [% FOREACH tid = topics.sort %] - <LI> - <A HREF="[% gSkin.rootdir %]/admin.pl?op=topics&nexttid=[% tid %]">[% topics.$tid %]</A> - </LI> + <li> + <a href="[% gSkin.rootdir %]/admin.pl?op=topics&nexttid=[% tid %]">[% topics.$tid %]</a> + </li> [% END %] - </UL> + </ul> [% END %] - </TD> - </TR> - </TABLE> -</FORM> + </td> + </tr> + </table> +</form> __seclev__ 10000 __version__ -$Id: editSection;sections;default,v 1.2 2004/12/31 12:37:15 oliver Exp $ +$Id: editSection;sections;default,v 1.3 2006/07/12 11:41:58 sugi Exp $ Index: slashjp/plugins/Sections/templates/listSections;sections;default diff -u slashjp/plugins/Sections/templates/listSections;sections;default:1.2 slashjp/plugins/Sections/templates/listSections;sections;default:1.3 --- slashjp/plugins/Sections/templates/listSections;sections;default:1.2 Fri Dec 24 05:13:45 2004 +++ slashjp/plugins/Sections/templates/listSections;sections;default Wed Jul 12 20:41:58 2006 @@ -14,14 +14,14 @@ listSections __template__ [% FOREACH section = sections %][% IF section.1 %] -<P><B><A HREF="[% env.script_name %]?section=[% section.0 %]&op=editsection">[% section.0 %]</A></B> [% section.1 %]</P>[% END %] +<p><b><a href="[% env.script_name %]?section=[% section.0 %]&op=editsection">[% section.0 %]</a></b> [% section.1 %]</p>[% END %] [% END %] -<FORM ACTION="[% env.script_name %]"> - <INPUT TYPE="SUBMIT" NAME="addsection" VALUE="add section"> -</FORM> +<form action="[% env.script_name %]"> + <input type="submit" name="addsection" value="add section"> +</form> __seclev__ 10000 __version__ -$Id: listSections;sections;default,v 1.2 2004/12/23 20:13:45 oliver Exp $ +$Id: listSections;sections;default,v 1.3 2006/07/12 11:41:58 sugi Exp $