Yoshihisa Fukuhara
higef****@users*****
2005年 12月 19日 (月) 15:46:28 JST
Index: affelio/apps/bb/templates/comment.tmpl
diff -u /dev/null affelio/apps/bb/templates/comment.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/comment.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,223 @@
+<!-- NEW mode -->
+<TMPL_IF NAME="NEW">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Add new comment">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afAppBbTable">
+ <form method="post" action="comment.cgi">
+ <table>
+ <tr>
+ <td>
+ <input type="hidden" name="mode" value="confirm_topic" />
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <AF_M text="Title">:
+ </td>
+ </tr>
+ <tr><td><input class="text" type="text" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" /></td></tr>
+ <tr><td><AF_M text="description">:</td></tr>
+ <tr><td><textarea name="description" rows="4" cols="40"><TMPL_VAR NAME="DESCRIPTION"></textarea></td></tr>
+ <tr><td><AF_M text="User name">:</td></tr>
+ <tr><td><TMPL_VAR NAME="USER"></td></tr>
+ <TMPL_IF NAME="STATUS_EDIT">
+ <tr><td><AF_M text="Status">:</td></tr>
+ <tr><td>
+ <select name="status">
+ <option value="0"><AF_M text="Default"></option>
+ <option value="1"><AF_M text="Sticky"></option>
+ <option value="2"><AF_M text="Announcement"></option>
+ </select>
+ </td></tr>
+ </TMPL_IF>
+ <tr><td>
+ <input type="submit" name="confirm_comment" value="<AF_M text="Confirm">" />
+ </td></tr>
+ </table>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- Confirm -->
+<TMPL_IF NAME="CONFIRM">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr><td align="left"><AF_M text="Add new comment with following information."></td></tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="comment.cgi">
+ <table>
+ <tr>
+ <td width="120"><AF_M text="Subject"></td>
+ <td><TMPL_VAR ESCAPE="HTML" NAME="TITLE"></td>
+ </tr>
+ <tr>
+ <td><AF_M text="User name"></td>
+ <td><TMPL_VAR ESCAPE="HTML" NAME="USER"></td>
+ </tr>
+ <tr>
+ <td><TMPL_IF PB_USER>URL<TMPL_ELSE>Affelio address</TMPL_IF></td>
+ <td><TMPL_VAR ESCAPE="HTML" NAME="AFID"></td>
+ </tr>
+ <tr>
+ <td><AF_M text="Comment"></td>
+ <td><TMPL_IF NAME="ICON"><img src="./resource/face/<TMPL_VAR NAME="ICON">"></TMPL_IF><TMPL_VAR NAME="COMMENT_SHOW"></td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">" />
+ <input type="hidden" name="reply_title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="user_name" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="hidden" name="pwd" value="<TMPL_VAR NAME="PWD">" />
+ <input type="hidden" name="comment" value="<TMPL_VAR ESCAPE="HTML" NAME="COMMENT">" />
+ <input type="hidden" name="icon" value="<TMPL_VAR ESCAPE="HTML" NAME="ICON">" />
+ <input type="hidden" name="mode" value="submit_comment" />
+ <input type="submit" name="submit" value="<AF_M text="Submit">">
+ </form>
+ <form method="post" action="view_topic.cgi">
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">" />
+ <input type="hidden" name="user_name" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="hidden" name="pwd" value="<TMPL_VAR NAME="PWD">" />
+ <input type="hidden" name="reply_title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="comment" value="<TMPL_VAR ESCAPE="HTML" NAME="COMMENT">" />
+ <input type="submit" name="noname" value="<AF_M text="Return">">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- DELETE mode -->
+<TMPL_IF NAME="CONFIRM_DELETE">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Delete your comment">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="comment.cgi">
+ <table>
+ <tr>
+ <td width="120">
+ <input type="hidden" name="mode" value="delete_comment" />
+ <input type="hidden" name="action" value="do_delete" />
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">" />
+ <input type="hidden" name="r_id" value="<TMPL_VAR NAME="R_ID">" />
+ <input type="hidden" name="user_name" value="<TMPL_VAR NAME="USER">" />
+ <input type="hidden" name="afid" value="<TMPL_VAR NAME="AFID">" />
+ <AF_M text="Title">
+ </td>
+ <td>
+ <TMPL_VAR ESCAPE="HTML" NAME="TITLE">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Nickname"></td><td><TMPL_VAR NAME="USER">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Comment"></td><td><TMPL_VAR NAME="COMMENT">
+ </td>
+ </tr>
+ <TMPL_IF NAME="PWD">
+ <tr>
+ <td>
+ <AF_M text="Password">
+ </td>
+ <td>
+ <input type="password" name="pwd">
+ </td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="submit" name="do_delete" value="<AF_M text="Delete">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+
+<!-- Done SUBMIT-->
+<TMPL_IF NAME="SUBMIT">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Thank you for your comment.">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubMessageTable">
+ <form method="post" action="view_topic.cgi">
+ <table>
+ <tr>
+ <td>
+ <AF_M text="Return to the topic."><BR><br>
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
+ <input type="submit" name="noname" value="<AF_M text="Return">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- Done DELETE-->
+<TMPL_IF NAME="DONE_DELETE">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="The comment was deleted.">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubMessageTable">
+ <form method="post" action="view_topic.cgi">
+ <table>
+ <tr>
+ <td>
+ <AF_M text="Return to the topic."><BR><br>
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
+ <input type="submit" name="noname" value="<AF_M text="Return">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
Index: affelio/apps/bb/templates/error.tmpl
diff -u /dev/null affelio/apps/bb/templates/error.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/error.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,29 @@
+<div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Error">
+ </td>
+ <td align="right">
+ <font size="-2">(<TMPL_VAR NAME="V_TYPE"> <AF_M text="mode">)</font>
+ <a href="javascript:void(0);" onClick="showHide('c0');">
+ <font size="-2">login/logout</font></a>
+ </td>
+ </tr>
+ </table>
+ <div class="sidehide" id="c0">
+ <AF_M text="Current Login"> : <TMPL_VAR NAME="AF_ID"><BR>
+ <AF_M text="Current mode"> :<TMPL_VAR NAME="V_TYPE">
+ <BR>
+ <FORM class="afPubLoginarea" ACTION="../../bin/loginexec.cgi" METHOD="POST">
+ <AF_M text="Login ID">: <INPUT TYPE="text" NAME="username" SIZE="20">
+ <AF_M text="Password">: <INPUT TYPE="password" NAME="password" SIZE="10">
+ <INPUT TYPE="submit" NAME="button" VALUE="<AF_M text="Login">">
+ <A HREF="../../bin/logoutexec.cgi"><AF_M text="Logout"></A>
+ </FORM>
+ </div>
+</div><!--afPubContentHeading-->
+
+<div class="information">
+ <p><TMPL_VAR NAME="MSG"></p>
+</div>
Index: affelio/apps/bb/templates/forum.tmpl
diff -u /dev/null affelio/apps/bb/templates/forum.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/forum.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,251 @@
+<!-- Add new forum -->
+<TMPL_IF NAME="NEW">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Add new forum">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="forum.cgi">
+ <table>
+ <tr>
+ <td>
+ <input type="hidden" name="mode" value="confirm_forum" />
+ <input type="hidden" name="c_id" value="<TMPL_VAR NAME="C_ID">" />
+ <AF_M text="Title">
+ </td>
+ <td>
+ <input class="text" type="text" size="80" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="description">
+ </td>
+ <td>
+ <textarea name="description" rows="4" cols="80"><TMPL_VAR NAME="DESCRIPTION"></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Nickname">
+ </td>
+ <td>
+ <TMPL_IF NAME="PB_USER">
+ <input class="text" type="text" size="80" name="user" value="<TMPL_VAR NAME="USER">" />
+ <TMPL_ELSE>
+ <TMPL_VAR NAME="USER">
+ </TMPL_IF>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <TMPL_IF NAME="PB_USER">
+ <AF_M text="URL">
+ </td>
+ <td>
+ <input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">" />
+ <TMPL_ELSE>
+ <AF_M text="Affelio address"></td><td><TMPL_VAR NAME="AFID">
+ </TMPL_IF>
+ </td>
+ </tr>
+ <TMPL_IF NAME="PB_USER">
+ <tr>
+ <td>
+ <AF_M text="Password">
+ </td>
+ <td>
+ <input type="password" name="pwd" />
+ </td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="submit" name="confirm_forum" value="<AF_M text="Confirm">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- Confirm -->
+<TMPL_IF NAME="CONFIRM">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Add new forum with following information.">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="forum.cgi">
+ <table>
+ <tr><td width="120"><AF_M text="Title"></td><td><TMPL_VAR ESCAPE="HTML" NAME="TITLE"></td></tr>
+ <tr><td><AF_M text="Description"></td><td><TMPL_VAR NAME="DESCRIPTION_SHOW"></td></tr>
+ <tr><td><AF_M text="Nickname"></td><td><TMPL_VAR ESCAPE="HTML" NAME="USER"></td></tr>
+ <tr><td>
+ <TMPL_IF NAME="PB_USER">
+ <AF_M text="URL">
+ </td><td>
+ <TMPL_VAR ESCAPE="HTML" NAME="AFID">
+ <TMPL_ELSE>
+ <AF_M text="Affelio address"></td><td><TMPL_VAR ESCAPE="HTML" NAME="AFID">
+ </TMPL_IF>
+ </td></tr>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="hidden" name="c_id" value="<TMPL_VAR NAME="C_ID">" />
+ <input type="hidden" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ <input type="hidden" name="description" value="<TMPL_VAR ESCAPE="HTML" NAME="DESCRIPTION">" />
+ <input type="hidden" name="mode" value="submit_forum" />
+ <TMPL_IF NAME="PB_USER">
+ <input type="hidden" name="pwd" value="<TMPL_VAR ESCAPE="HTML" NAME="PWD">" />
+ <input type="hidden" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ </TMPL_IF>
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="submit" name="submit" value="<AF_M text="Submit">">
+ </form>
+ <form method="post" action="forum.cgi">
+ <input type="hidden" name="c_id" value="<TMPL_VAR NAME="C_ID">" />
+ <input type="hidden" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="description" value="<TMPL_VAR ESCAPE="HTML" NAME="DESCRIPTION">" />
+ <TMPL_IF NAME="PB_USER">
+ <input type="hidden" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ </TMPL_IF>
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="hidden" name="mode" value="add_forum" />
+ <input type="submit" name="noname" value="<AF_M text="Return">">
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- EDIT mode -->
+<TMPL_IF NAME="EDIT">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Edit the forum">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="forum.cgi">
+ <table>
+ <tr>
+ <td>
+ <input type="hidden" name="mode" value="edit_forum" />
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <AF_M text="Title">
+ </td>
+ <td>
+ <input type="text" size="80" name="title" value="<TMPL_VAR NAME="TITLE">">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Description">
+ </td>
+ <td>
+ <textarea name="description" rows="8" cols="80"><TMPL_VAR NAME="DESCRIPTION"></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Nickname">
+ </td>
+ <td>
+ <input type="text" name="user" value="<TMPL_VAR NAME="USER">">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="URL">
+ </td>
+ <td>
+ <input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">">
+ </td>
+ </tr>
+ <TMPL_IF NAME="PWD">
+ <tr>
+ <td>
+ <AF_M text="Password"></td><td><input type="password" name="pwd">
+ </td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td>
+ <AF_M text="Action">
+ </td>
+ <td>
+ <select name="action">
+ <option value="do_update"><AF_M text="Update"></option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="submit" value="<AF_M text="Submit">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+
+<!-- Done-->
+<TMPL_IF NAME="DONE">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="<TMPL_VAR NAME="MSG">">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubMessageTable">
+ <form method="post" action="view_forum.cgi">
+ <table>
+ <tr>
+ <td>
+ <AF_M text="Return to the forum."><BR><br>
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">">
+ <input type="submit" name="noname" value="<AF_M text="Return">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
Index: affelio/apps/bb/templates/index.tmpl
diff -u /dev/null affelio/apps/bb/templates/index.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/index.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,104 @@
+<div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <TMPL_VAR ESCAPE="HTML" NAME="PAGE_TITLE">
+ </td>
+ </tr>
+ </table>
+</div>
+
+<!--
+<div class="afPubModeList">
+</div>
+-->
+
+<div class="afPubContent">
+<!--==============================================-->
+
+<TMPL_IF NAME="HAS_CATEGORY">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <th width="30"> </th>
+ <th width="610">Forum</th>
+ <th width="30">Topics</th>
+ <th width="30">Posts</th>
+ <th width="100">Last Post</th>
+ </tr>
+ <TMPL_LOOP NAME="CATEGORIES">
+ <tr>
+ <td colspan="5" class="afAppBbCategory">
+ <TMPL_VAR ESCAPE="HTML" NAME="TITLE">
+ </td>
+ </tr>
+ <TMPL_IF NAME="HAS_FORUM">
+ <TMPL_LOOP NAME="FORUM">
+ <tr>
+ <td>
+ <img src="./resource/file_box.gif">
+ </td>
+ <td>
+ <a href="view_forum.cgi?f_id=<TMPL_VAR NAME="F_ID">">
+ <TMPL_VAR ESCAPE="HTML" NAME="TITLE">
+ </a><br>
+ <TMPL_VAR NAME="DESCRIPTION"> (<AF_M text="Moderator">:
+ <TMPL_IF NAME="AFID">
+ <a href="<TMPL_VAR ESCAPE="HTML" NAME="AFID">">
+ <TMPL_VAR NAME="USER">
+ </a>
+ <TMPL_ELSE>
+ <TMPL_VAR NAME="USER">
+ </TMPL_IF>
+ )
+ </td>
+ <td class="afAppBbColor2">
+ <TMPL_VAR NAME="TOPICS">
+ </td>
+ <td class="afAppBbColor1">
+ <TMPL_VAR NAME="POSTS">
+ </td>
+ <td class="afAppBbColor2">
+ <small>
+ <TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"> <TMPL_VAR NAME="TIME"><br>
+ by
+ <TMPL_IF NAME="LAST_AFID">
+ <a href="<TMPL_VAR NAME="LAST_AFID">"><TMPL_VAR NAME="LAST_USER"></a>
+ <TMPL_ELSE>
+ <TMPL_VAR NAME="LAST_USER">
+ </TMPL_IF>
+ </small>
+ </td>
+ </tr>
+ </TMPL_LOOP>
+ </TMPL_IF>
+ </TMPL_LOOP>
+ </table>
+ </div>
+ </div>
+<TMPL_ELSE>
+ <AF_M text="Please make a new category.">
+</TMPL_IF>
+
+<TMPL_IF NAME="HAS_CATEGORY">
+ <TMPL_IF NAME="EDITABLE">
+ <div class="afPubMessageTable">
+ <form method="post" action="forum.cgi">
+ <select name="c_id">
+ <TMPL_LOOP NAME="SELECT_LIST">
+ <option value="<TMPL_VAR NAME="C_ID">">
+ <TMPL_VAR NAME="TITLE">
+ </option>
+ </TMPL_LOOP>
+ </select>
+ <input type="hidden" name="mode" value="add_forum" />
+ <input type="submit" name="add_forum" value="<AF_M text="Add forum">" />
+ </form>
+ </div>
+ </TMPL_IF>
+ </TMPL_IF>
+
+
+</div>
+
Index: affelio/apps/bb/templates/topic.tmpl
diff -u /dev/null affelio/apps/bb/templates/topic.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/topic.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,319 @@
+<!-- add NEW mode -->
+<TMPL_IF NAME="NEW">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left"><AF_M text="Add new topic"></td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="topic.cgi">
+ <table>
+ <tr>
+ <td>
+ <input type="hidden" name="mode" value="confirm_topic" />
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <AF_M text="Title">
+ </td>
+ <td>
+ <input class="text" type="text" size="80" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="description">
+ </td>
+ <td>
+ <textarea name="description" rows="6" cols="80"><TMPL_VAR NAME="DESCRIPTION"></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td><AF_M text="User name"></td>
+ <td>
+ <TMPL_IF PB_USER>
+ <input type="text" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">">
+ <TMPL_ELSE>
+ <TMPL_VAR ESCAPE="HTML" NAME="USER">
+ </TMPL_IF>
+ </td>
+ </tr>
+ <TMPL_IF PB_USER>
+ <tr>
+ <td>
+ <AF_M text="URL">
+ </td>
+ <td>
+ <input type="text" size="80" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="afid">">
+ </td>
+ </tr>
+ <TMPL_ELSE>
+ <tr>
+ <td>
+ <AF_M text="Affelio address">
+ </td>
+ <td>
+ <TMPL_VAR ESCAPE="HTML" NAME="AFID">
+ </td>
+ </tr>
+ </TMPL_IF>
+ <TMPL_IF PB_USER>
+ <tr>
+ <td>
+ <AF_M text="Password">
+ </td>
+ <td>
+ <input type="password" name="pwd">
+ </td>
+ </tr>
+ </TMPL_IF>
+ <TMPL_IF NAME="STATUS_EDIT">
+ <tr>
+ <td>
+ <AF_M text="Status">
+ </td>
+ <td>
+ <select name="status">
+ <option value="0"><AF_M text="Default"></option>
+ <option value="1"><AF_M text="Sticky"></option>
+ <option value="2"><AF_M text="Announcement"></option>
+ </select>
+ </td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="submit" name="confirm_topic" value="<AF_M text="Confirm">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- Confirm -->
+<TMPL_IF NAME="CONFIRM">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="Add new topic with following information.">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <form method="post" action="topic.cgi">
+ <div class="afAppBbTable">
+ <table>
+ <tr>
+ <td width="120"><AF_M text="Title"></td><td> <TMPL_VAR ESCAPE="HTML" NAME="TITLE"></td>
+ </tr><tr>
+ <td><AF_M text="Description"></td><td> <TMPL_VAR NAME="DESCRIPTION_SHOW"></td>
+ </tr><tr>
+ <td><AF_M text="User name"></td><td><TMPL_VAR ESCAPE="HTML" NAME="USER"></td>
+ </tr>
+ <TMPL_IF PB_USER>
+ <tr>
+ <td><AF_M text="URL"></td><td><TMPL_VAR ESCAPE="HTML" NAME="AFID"></td>
+ </tr>
+ <TMPL_ELSE>
+ <tr>
+ <td><AF_M text="Affelio address"></td><td><TMPL_VAR ESCAPE="HTML" NAME="AFID"></td>
+ </tr>
+ </TMPL_IF>
+ <TMPL_IF STATUS_EDIT>
+ <tr>
+ <td><AF_M text="Status"></td>
+ <td><TMPL_VAR NAME="STATUS_STR"></td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <input type="hidden" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="description" value="<TMPL_VAR ESCAPE="HTML" NAME="DESCRIPTION">" />
+ <TMPL_IF STATUS_EDIT>
+ <input type="hidden" name="status" value="<TMPL_VAR NAME="STATUS">" />
+ <TMPL_ELSE>
+ <input type="hidden" name="status" value="0" />
+ </TMPL_IF>
+ <input type="hidden" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="hidden" name="pwd" value="<TMPL_VAR ESCAPE="HTML" NAME="PWD">" />
+ <input type="hidden" name="mode" value="submit_topic" />
+ <input type="submit" name="submit" value="<AF_M text="Submit">">
+ </form>
+ <form method="post" action="topic.cgi">
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <input type="hidden" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
+ <input type="hidden" name="description" value="<TMPL_VAR ESCAPE="HTML" NAME="DESCRIPTION">" />
+ <input type="hidden" name="status" value="<TMPL_VAR NAME="STATUS">" />
+ <input type="hidden" name="user" value="<TMPL_VAR ESCAPE="HTML" NAME="USER">" />
+ <input type="hidden" name="afid" value="<TMPL_VAR ESCAPE="HTML" NAME="AFID">" />
+ <input type="hidden" name="mode" value="add_topic" />
+ <input type="submit" name="noname" value="<AF_M text="Return">">
+ </td>
+ </tr>
+ </table>
+ </div>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- EDIT mode -->
+<TMPL_IF NAME="EDIT">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left"><AF_M text="Edit the topic"></td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="topic.cgi">
+ <table>
+ <tr>
+ <td>
+ <input type="hidden" name="mode" value="edit_topic" />
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">" />
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <AF_M text="Title">
+ </td>
+ <td>
+ <input type="text" size="80" name="title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Description">
+ </td><td>
+ <textarea name="description" rows="8" cols="80"><TMPL_VAR ESCAPE="HTML" NAME="DESCRIPTION"></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Nickname">
+ </td><td>
+ <input type="text" name="user" value="<TMPL_VAR NAME="USER">">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="URL"></td><td><input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">">
+ </td>
+ </tr>
+ <TMPL_IF NAME="PWD">
+ <tr>
+ <td>
+ <AF_M text="Password"></td><td><input type="password" name="pwd">
+ </td>
+ </tr>
+ </TMPL_IF>
+ <TMPL_IF NAME="SUPER">
+ <tr>
+ <td><AF_M text="Status"></td>
+ <td>
+ <select name="status">
+ <option value="0"><AF_M text="Default"></option>
+ <option value="1"><AF_M text="Sticky"></option>
+ <option value="2"><AF_M text="Announcement"></option>
+ </select>
+ </td>
+ </tr>
+ <TMPL_ELSE>
+ <input type="hidden" name="status" value="<TMPL_VAR NAME="STATUS">
+ </TMPL_IF>
+ <tr>
+ <td><AF_M text="Action"></td>
+ <td>
+ <select name="action">
+ <option value="do_update"><AF_M text="Update"></option>
+ <option value="lock"><AF_M text="Lock or Unlock"></option>
+ <TMPL_IF NAME="CAN_DELETE">
+ <option value="confirm_delete"><AF_M text="Delete"></option>
+ </TMPL_IF>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="submit" value="<AF_M text="Submit">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+ </div>
+</TMPL_IF>
+
+<!-- Done-->
+<TMPL_IF NAME="DONE">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="<TMPL_VAR NAME="MSG">">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <form method="post" action="view_topic.cgi">
+ <div class="afPubMessageTable">
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
+ <table>
+ <tr>
+ <td>
+ <AF_M text="Return to the topic."><BR><br>
+ <input type="submit" name="noname" value="<AF_M text="Return">" />
+ </td>
+ </tr>
+ </table>
+ </div>
+ </form>
+ </div>
+</TMPL_IF>
+
+
+<!-- Confirm delete -->
+<TMPL_IF NAME="CONFIRM_DELETE">
+ <div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <AF_M text="<TMPL_VAR NAME="MSG">">
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="afPubContent">
+ <form method="post" action="topic.cgi">
+ <div class="afPubMessageTable">
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">">
+ <input type="hidden" name="action" value="do_delete">
+ <input type="hidden" name="mode" value="edit_topic">
+ <table>
+ <tr>
+ <td>
+ <input type="submit" name="noname" value="<AF_M text="Delete">" />
+ </td>
+ </tr>
+ </table>
+ </div>
+ </form>
+ </div>
+</TMPL_IF>
Index: affelio/apps/bb/templates/view_forum.tmpl
diff -u /dev/null affelio/apps/bb/templates/view_forum.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/view_forum.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,112 @@
+<div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr>
+ <td align="left">
+ <a href="index.cgi"><TMPL_VAR NAME="PAGE_TITLE"></a> > <TMPL_VAR NAME="CATEGORY">
+ </td>
+ </tr>
+ </table>
+</div>
+
+<!--
+<div class="afPubModeList">
+</div>
+-->
+
+<div class="afPubContent"><!--PubContent-->
+
+<div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <td class="afAppBbForum">
+ <TMPL_VAR ESCAPE="HTML" NAME="FORUM_NAME">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <TMPL_VAR NAME="FORUM_DESCRIPTION"><br>
+ <AF_M text="Moderator">:<TMPL_IF NAME="AFID"><a href="<TMPL_VAR NAME="AFID">"><TMPL_VAR NAME="MODERATOR"></a><TMPL_ELSE><TMPL_VAR NAME="MODERATOR"></TMPL_IF> (<TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"> <TMPL_VAR NAME="TIME">)
+ <TMPL_IF CAN_EDIT>
+ <div class="afAppBbEditBtn">
+ [<a href="forum.cgi?mode=edit_forum&f_id=<TMPL_VAR NAME="F_ID">"><AF_M text="Edit"></a>]
+ </div>
+ </TMPL_IF>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+
+<TMPL_IF NAME="HAS_TOPIC">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <th width="30"> </th>
+ <th width="540">Topics</th>
+ <th width="30">Replies</th>
+ <th width="70">Author</th>
+ <th width="30">Views</th>
+ <th width="100">Last Post</th>
+ </tr>
+ <TMPL_LOOP NAME="TOPIC_LIST">
+ <tr>
+ <td>
+ <img src="resource/<TMPL_VAR NAME="ICON">">
+ </td>
+ <td>
+ <a href="view_topic.cgi?t_id=<TMPL_VAR NAME="T_ID">"><TMPL_VAR ESCAPE="HTML" NAME="TITLE"></a><br>
+ <TMPL_VAR NAME="ABST">
+ </td>
+ <td class="afAppBbColor1">
+ <TMPL_VAR NAME="POSTS">
+ </td>
+ <td class="afAppBbColor2">
+ <TMPL_IF NAME="AFID">
+ <a href="<TMPL_VAR NAME="AFID">"><TMPL_VAR NAME="USER"></a><TMPL_ELSE><TMPL_VAR NAME="USER">
+ </TMPL_IF>
+ </td>
+ <td class="afAppBbColor1">
+ <TMPL_VAR NAME="VIEWS">
+ </td>
+ <td class="afAppBbColor2">
+ <small>
+ <TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"> <TMPL_VAR NAME="TIME">
+ <br>by
+ <TMPL_IF NAME="LAST_AFID">
+ <a href="<TMPL_VAR NAME="LAST_AFID">"><TMPL_VAR NAME="LAST_USER"></a><TMPL_ELSE><TMPL_VAR NAME="LAST_USER">
+ </TMPL_IF>
+ </small>
+ </td>
+ </tr>
+ </TMPL_LOOP>
+ </table>
+ </div>
+ </div>
+<TMPL_ELSE>
+ <div class="afPubContentBlock">
+ <div class="afPubMessageTable">
+ <AF_M text="Please make a new topic.">
+ </div>
+ </div>
+</TMPL_IF>
+
+<TMPL_IF NAME="CAN_ADD">
+ <div class="afPubContentBlock">
+ <div class="afPubMessageTable">
+ <br>
+ <form method="post" action="topic.cgi">
+ <input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
+ <input type="hidden" name="mode" value="add_topic" />
+ <input type="submit" name="add_topic" value="<AF_M text="Add topic">" />
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
+<TMPL_IF NAME="OPT_MSG">
+ <TMPL_VAR NAME="OPT_MSG">
+</TMPL_IF>
+
+</div><!--PubContent-->
+
Index: affelio/apps/bb/templates/view_topic.tmpl
diff -u /dev/null affelio/apps/bb/templates/view_topic.tmpl:1.1
--- /dev/null Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/view_topic.tmpl Mon Dec 19 15:46:28 2005
@@ -0,0 +1,187 @@
+<div class="afPubContentHeading">
+ <table border="0" cellspacing="0" width=100%>
+ <tr><td align="left"><a href="index.cgi"><TMPL_VAR NAME="PAGE_TITLE"></a> > <TMPL_VAR NAME="CATEGORY"> > <a href="./view_forum.cgi?f_id=<TMPL_VAR NAME="F_ID">"><TMPL_VAR NAME="FORUM"></a>
+ </td></tr>
+ </table>
+</div>
+
+<!--
+<div class="afPubModeList">
+</div>
+-->
+
+<div class="afPubContent"><!--PubContent-->
+
+
+<div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <td class="afAppBbPageIndex">
+ Page:
+ <TMPL_LOOP NAME="PAGE_INDEX">
+ <a href="./view_topic.cgi?t_id=<TMPL_VAR NAME="T_ID">&f_id=<TMPL_VAR NAME="f_id">&page=<TMPL_VAR NAME="P_ID">"><TMPL_VAR NAME="PAGE"></a>,
+ </TMPL_LOOP>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+
+<div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <td class="afAppBbTopicTitle">
+ <TMPL_VAR ESCAPE="HTML" NAME="TOPIC_NAME">
+ </td>
+ </tr>
+ <tr>
+ <td class="afAppBbTopicHeader">
+ <AF_M text="Author">:
+ <TMPL_IF NAME="TOPIC_AFID">
+ <a href="<TMPL_VAR NAME="TOPIC_AFID">"><TMPL_VAR NAME="TOPIC_USER"></a>
+ <TMPL_ELSE>
+ <TMPL_VAR NAME="TOPIC_USER">
+ </TMPL_IF>
+
+ (<TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"> <TMPL_VAR NAME="TIME">)
+ <br>
+ </td>
+ </tr>
+ <tr>
+ <td class="afAppBbTopicContent">
+ <TMPL_VAR NAME="TOPIC_DESCRIPTION">
+ <TMPL_IF CAN_EDIT>
+ <div class="afAppBbEditBtn">
+ [<a href="topic.cgi?mode=edit_topic&f_id=<TMPL_VAR NAME="F_ID">&t_id=<TMPL_VAR NAME="T_ID">"><AF_M text="Edit"></a>]
+ </div>
+ </TMPL_IF>
+ </td>
+ </tr>
+ <TMPL_IF NAME="HAS_REPLY">
+ <TMPL_LOOP NAME="REPLY_LIST">
+ <tr>
+ <td width="670" class="afAppBbResTitle">
+ <b>No.<TMPL_VAR NAME="R_ID">
+
+ <TMPL_IF NAME="AFID">
+ <a href="<TMPL_VAR NAME="AFID">"><TMPL_VAR NAME="USER"></a>
+ <TMPL_ELSE>
+ <TMPL_VAR NAME="USER">
+ </TMPL_IF>
+
+ <TMPL_VAR ESCAPE="HTML" NAME="TITLE"></b>
+
+ (<TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"> <TMPL_VAR NAME="TIME">)
+ </td>
+ </tr>
+ <tr>
+ <td width="670" class="afAppBbRes">
+ <TMPL_IF NAME="ICON"><IMG src="./resource/face/<TMPL_VAR NAME="ICON">"></TMPL_IF>
+ <TMPL_VAR NAME="COMMENT">
+ <TMPL_IF CAN_EDIT>
+ <div class="afAppBbEditBtn">
+ [<a href="comment.cgi?mode=delete_comment&t_id=<TMPL_VAR NAME="T_ID">&r_id=<TMPL_VAR NAME="R_ID">"><AF_M text="Delete"></a>]
+ </div>
+ </TMPL_IF>
+ </td>
+ </tr>
+ </TMPL_LOOP>
+ </TMPL_IF>
+ </table>
+ </div>
+</div>
+
+<div class="afPubContentBlock">
+<div class="afAppBbTable">
+<table border="0" cellpadding="5" width=100%>
+ <tr>
+ <td class="afAppBbPageIndex">
+ Page:
+ <TMPL_LOOP NAME="PAGE_INDEX">
+ <a href="./view_topic.cgi?t_id=<TMPL_VAR NAME="T_ID">&f_id=<TMPL_VAR NAME="f_id">&page=<TMPL_VAR NAME="P_ID">"><TMPL_VAR NAME="PAGE"></a>,
+ </TMPL_LOOP>
+ </td>
+ </tr>
+</table>
+</div>
+</div>
+
+
+<TMPL_IF NAME="CAN_REPLY">
+ <div class="afPubContentBlock">
+ <div class="afAppBbTable">
+ <form method="post" action="comment.cgi" name="reply_form">
+ <table border="0" cellpadding="5" width=100%>
+ <tr>
+ <td>
+ <AF_M text="Subject">
+ </td>
+ <td>
+ <input type="text" size="80" name="reply_title" value="<TMPL_VAR NAME="REPLY_TITLE">">
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <AF_M text="Nickname">
+ </td>
+ <td>
+ <TMPL_IF PB_USER><input type="text" name="user_name" value="<TMPL_VAR NAME="USER_NAME">"><TMPL_ELSE><TMPL_VAR NAME="USER_NAME"></TMPL_IF>
+ </td>
+ </tr>
+ <tr>
+ <TMPL_IF PB_USER>
+ <td>URL</td>
+ <td><input type="text" name="afid" size="80" value="<TMPL_VAR NAME="AFID">"></td>
+ <TMPL_ELSE>
+ <td>Affelio address</td><td><TMPL_VAR NAME="AFID"></td>
+ </TMPL_IF>
+ </tr>
+ <tr>
+ <td><AF_M text="Comment"></td>
+ <td><textarea name="comment" rows="8" cols="80"><TMPL_VAR NAME="COMMENT"></textarea
+ </td>
+ </tr>
+ <TMPL_IF PB_USER>
+ <tr>
+ <td><AF_M text="Password"></td>
+ <td><input type="password" name="pwd"></td>
+ </tr>
+ </TMPL_IF>
+ <TMPL_IF NAME="FACE_LIST">
+ <tr>
+ <td>
+ <AF_M text="Face icons"><br><small><a href="http://homepage1.nifty.com/gangan/" target="_blank">- ããããæ -</a></small>
+ </td>
+ <td>
+ <TMPL_LOOP NAME="FACE_LIST">
+ <a href="javascript:face();function face(){document.reply_form.icon.value='<TMPL_VAR NAME=FACE>';document.reply_form.icon_tmp.value='<TMPL_VAR NAME=FACE>';}">
+ <img src="./resource/face/<TMPL_VAR NAME="FACE">" border="0">
+ </a>
+ </TMPL_LOOP>
+ <br>
+ <input type="text" name="icon_tmp" disabled>
+ </td>
+ </tr>
+ </TMPL_IF>
+ <tr>
+ <td> </td>
+ <td>
+ <input type="hidden" name="icon">
+ <input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">" />
+ <input type="hidden" name="mode" value="confirm_comment" />
+ <input type="submit" name="new_comment" value="<AF_M text="Submit">" />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </div>
+</TMPL_IF>
+
+<TMPL_IF NAME="OPT_MSG">
+ <TMPL_VAR NAME="OPT_MSG">
+</TMPL_IF>
+
+</div><!--PubContent-->