[Affelio-cvs 1181] CVS update: affelio/apps/bb/templates

Back to archive index

Yoshihisa Fukuhara higef****@users*****
2006年 3月 23日 (木) 12:46:14 JST


Index: affelio/apps/bb/templates/comment.tmpl
diff -u affelio/apps/bb/templates/comment.tmpl:1.1 affelio/apps/bb/templates/comment.tmpl:1.2
--- affelio/apps/bb/templates/comment.tmpl:1.1	Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/comment.tmpl	Thu Mar 23 12:46:14 2006
@@ -11,11 +11,12 @@
 	</div>
  	<div class="afPubContent">
 		<div class="afAppBbTable">
-			<form method="post" action="comment.cgi">
+			<form method="post" action="index.cgi">
 				<table>
 					<tr>
 						<td>
-							<input type="hidden" name="mode" value="confirm_topic" />
+							<input type="hidden" name="mode" value="comment" />
+							<input type="hidden" name="action" value="confirm_comment" />
 							<input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
 							<AF_M text="Title">:
 						</td>
@@ -54,7 +55,7 @@
 	<div class="afPubContent">
 		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="comment.cgi">
+				<form method="post" action="index.cgi">
 					<table>
 						<tr>
 							<td width="120"><AF_M text="Subject"></td>
@@ -77,17 +78,19 @@
 							<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="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 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="hidden" name="mode" value="comment" />	
+								<input type="hidden" name="action" value="submit_comment" />	
 								<input type="submit" name="submit" value="<AF_M text="Submit">">
 								</form>
-								<form method="post" action="view_topic.cgi">
+								<form method="post" action="index.cgi">
+								<input type="hidden" name="mode" value="view_topic" />
 								<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="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 NAME="PWD">" />
 								<input type="hidden" name="reply_title" value="<TMPL_VAR ESCAPE="HTML" NAME="TITLE">" />
@@ -116,15 +119,15 @@
 	<div class="afPubContent">
 	 	<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="comment.cgi">
+				<form method="post" action="index.cgi">
 					<table>
 						<tr>
 							<td width="120">
-								<input type="hidden" name="mode" value="delete_comment" />
+								<input type="hidden" name="mode" value="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="user" value="<TMPL_VAR NAME="USER">" />
 								<input type="hidden" name="afid" value="<TMPL_VAR NAME="AFID">" />
 								<AF_M text="Title">
 							</td>
@@ -179,11 +182,12 @@
 	</div>
 	<div class="afPubContent">
 		<div class="afPubMessageTable">
-			<form method="post" action="view_topic.cgi">
+			<form method="post" action="index.cgi">
 				<table>
 					<tr>
 						<td>
 							<AF_M text="Return to the topic."><BR><br>
+							<input type="hidden" name="mode" value="view_topic">
 							<input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
 							<input type="submit" name="noname" value="<AF_M text="Return">" />
 						</td>
@@ -207,11 +211,12 @@
 	</div>
 	<div class="afPubContent">
 		<div class="afPubMessageTable">
-			<form method="post" action="view_topic.cgi">
+			<form method="post" action="index.cgi">
 				<table>
 					<tr>
 						<td>
 							<AF_M text="Return to the topic."><BR><br>
+							<input type="hidden" name="mode" value="view_topic">
 							<input type="hidden" name="t_id" value="<TMPL_VAR NAME="T_ID">">
 							<input type="submit" name="noname" value="<AF_M text="Return">" />
 						</td>
Index: affelio/apps/bb/templates/forum.tmpl
diff -u affelio/apps/bb/templates/forum.tmpl:1.1 affelio/apps/bb/templates/forum.tmpl:1.2
--- affelio/apps/bb/templates/forum.tmpl:1.1	Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/forum.tmpl	Thu Mar 23 12:46:14 2006
@@ -12,11 +12,12 @@
  	<div class="afPubContent">
 		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="forum.cgi">
+				<form method="post" action="index.cgi">
 					<table>
 						<tr>
 							<td>
-								<input type="hidden" name="mode" value="confirm_forum" />
+								<input type="hidden" name="mode" value="forum" />
+								<input type="hidden" name="action" value="confirm_forum" />
 								<input type="hidden" name="c_id" value="<TMPL_VAR NAME="C_ID">" />
 								<AF_M text="Title">
 							</td>
@@ -93,7 +94,7 @@
 	<div class="afPubContent">
 		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="forum.cgi">
+				<form method="post" action="index.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>	
@@ -114,7 +115,8 @@
 								<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" />
+								<input type="hidden" name="mode" value="forum" />
+								<input type="hidden" name="action" 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">" />
@@ -122,7 +124,7 @@
 								<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">
+								<form method="post" action="index.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">" />
@@ -130,7 +132,8 @@
 									<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="hidden" name="mode" value="forum" />	
+								<input type="hidden" name="action" value="add_forum" />	
 								<input type="submit" name="noname" value="<AF_M text="Return">">
 							</td>
 						</tr>
@@ -155,11 +158,10 @@
  	<div class="afPubContent">
  		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="forum.cgi">
+				<form method="post" action="index.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>
@@ -180,7 +182,12 @@
 								<AF_M text="Nickname">
 							</td>
 							<td>
+							<TMPL_IF NAME="PWD">
 								<input type="text" name="user" value="<TMPL_VAR NAME="USER">">
+							<TMPL_ELSE>
+								<input type="hidden" name="user" value="<TMPL_VAR NAME="USER">">
+								<TMPL_VAR NAME="USER">
+							</TMPL_IF>
 							</td>
 						</tr>
 						<tr>
@@ -188,7 +195,12 @@
 								<AF_M text="URL">
 							</td>
 							<td>
+							<TMPL_IF NAME="PWD">
 								<input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">">
+							<TMPL_ELSE>
+								<input type="hidden" name="afid" value="<TMPL_VAR NAME="AFID">">
+								<TMPL_VAR NAME="AFID">
+							</TMPL_IF>
 							</td>
 						</tr>
 						<TMPL_IF NAME="PWD">
@@ -199,18 +211,33 @@
 							</tr>
 						</TMPL_IF>
 						<tr>
+							<td><AF_M text="Category"></td>
+							<td>
+								<select name="new_category">
+								<TMPL_LOOP NAME="CATEGORY_LIST">
+									<option value="<TMPL_VAR NAME="C_ID">" <TMPL_IF NAME="SELECTED">SELECTED</TMPL_IF>><TMPL_VAR NAME="TITLE"></option>
+								</TMPL_LOOP>
+								</select>
+							</td>
+						</tr>
+						<tr>
 							<td>
 								<AF_M text="Action">
 							</td>
 							<td>
 								<select name="action">
-									<option value="do_update"><AF_M text="Update"></option>
+									<option value="update_forum"><AF_M text="Update"></option>
+									<TMPL_IF NAME="CAN_DELETE">
+									<option value="delete_forum"><AF_M text="Delete"></option>
+									</TMPL_IF>
 								</select>
 							</td>
 						</tr>
 						<tr>
 							<td>&nbsp;</td>
 							<td>
+<!--								<input type="hidden" name="mode" value="edit_forum" />-->
+								<input type="hidden" name="mode" value="forum" />
 								<input type="submit" value="<AF_M text="Submit">" />
 							</td>
 						</tr>
@@ -235,12 +262,11 @@
 	</div>
 	<div class="afPubContent">
 		<div class="afPubMessageTable">
-			<form method="post" action="view_forum.cgi">
+			<form method="post" action="index.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">">
+							<AF_M text="Return to the index."><BR><br>
 							<input type="submit" name="noname" value="<AF_M text="Return">" />
 						</td>
 					</tr>
Index: affelio/apps/bb/templates/index.tmpl
diff -u affelio/apps/bb/templates/index.tmpl:1.1 affelio/apps/bb/templates/index.tmpl:1.2
--- affelio/apps/bb/templates/index.tmpl:1.1	Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/index.tmpl	Thu Mar 23 12:46:14 2006
@@ -1,10 +1,18 @@
 <div class="afPubContentHeading">
-	<table border="0" cellspacing="0" width=100%>
-		<tr>
-			<td align="left">
+     <table width="100%" cellspacing="0">
+     	    <tr>
+		<td align="left" valign="top">
 				<TMPL_VAR ESCAPE="HTML" NAME="PAGE_TITLE">
-			</td>
-		</tr>
+	    	</td>
+	    	<td align="right" valign="top">
+		    <TMPL_IF NAME="CATEGORY_EDIT">
+		    	     <form method="post" action="index.cgi" style="padding:0px; margin:0px;">
+<input type="hidden" name="mode" value="category" />
+<input type="hidden" name="action" value="add_category" />
+<input type="submit" value="<AF_M text='Add a new category'>" /></form>
+		</TMPL_IF>
+		</td>
+	</tr>
 	</table>
 </div>
 
@@ -22,25 +30,36 @@
 			<table border="0" cellpadding="5" width=100%>
 				<tr>
 					<th width="30">&nbsp;</th>
-					<th width="610">Forum</th>
-					<th width="30">Topics</th>
-					<th width="30">Posts</th>
-					<th width="100">Last Post</th>
+					<th width="570"><AF_M text="Forum"></th>
+					<th width="50"><AF_M text="Topics"></th>
+					<th width="50"><AF_M text="Posts"></th>
+					<th width="100"><AF_M text="Last Post"></th>
 				</tr>
 				<TMPL_LOOP NAME="CATEGORIES">
 					<tr>
-						<td colspan="5" class="afAppBbCategory">
+						<td colspan="2" class="afAppBbCategory">
 							<TMPL_VAR ESCAPE="HTML" NAME="TITLE">
+							</td>
+						<td colspan="3" class="afAppBbCategoryBtn">
+						<TMPL_IF NAME="CATEGORY_EDIT">
+[<a href="index.cgi?mode=category&c_id=<TMPL_VAR NAME="C_ID">&action=edit_category"><AF_M text="Edit Category"></a>]
+						</TMPL_IF>
+						<TMPL_IF NAME="FORUM_EDIT">
+&nbsp;
+[<a href="index.cgi?mode=forum&c_id=<TMPL_VAR NAME="C_ID">&action=add_forum"><AF_M text="Add forum"></a>]
+						</TMPL_IF>
 						</td>
 					</tr>
 					<TMPL_IF NAME="HAS_FORUM">
 						<TMPL_LOOP NAME="FORUM">
 							<tr>
 								<td>
+									<a href="index.cgi?mode=view_forum&f_id=<TMPL_VAR NAME="F_ID">">
 									<img src="./resource/file_box.gif">
+									</a>
 								</td>
 								<td>
-									<a href="view_forum.cgi?f_id=<TMPL_VAR NAME="F_ID">">
+									<a href="index.cgi?mode=view_forum&f_id=<TMPL_VAR NAME="F_ID">">
 										<TMPL_VAR ESCAPE="HTML" NAME="TITLE">
 									</a><br>
 									<TMPL_VAR NAME="DESCRIPTION">&nbsp;&nbsp;(<AF_M text="Moderator">:
@@ -72,6 +91,8 @@
 								</td>
 							</tr>
 						</TMPL_LOOP>
+					<TMPL_ELSE>
+					<tr><td colspan="5"><AF_M text="<TMPL_VAR NAME="MSG">"></td></tr>
 					</TMPL_IF>
 				</TMPL_LOOP>
 			</table>
@@ -81,24 +102,5 @@
 	<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 affelio/apps/bb/templates/topic.tmpl:1.1 affelio/apps/bb/templates/topic.tmpl:1.2
--- affelio/apps/bb/templates/topic.tmpl:1.1	Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/topic.tmpl	Thu Mar 23 12:46:14 2006
@@ -10,11 +10,12 @@
 	<div class="afPubContent">
 		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="topic.cgi">
+				<form method="post" action="index.cgi">
 					<table>
 						<tr>
 							<td>
-								<input type="hidden" name="mode" value="confirm_topic" />
+								<input type="hidden" name="mode" value="topic" />
+								<input type="hidden" name="action" value="confirm_topic" />
 								<input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />
 								<AF_M text="Title">
 							</td>
@@ -109,7 +110,7 @@
 	</div>
 	<div class="afPubContent">
 		<div class="afPubContentBlock">
-			<form method="post" action="topic.cgi">
+			<form method="post" action="index.cgi">
 				<div class="afAppBbTable">
 					<table>
 						<tr>
@@ -148,17 +149,19 @@
 								<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="hidden" name="mode" value="topic" />
+								<input type="hidden" name="action" value="submit_topic" />
 								<input type="submit" name="submit" value="<AF_M text="Submit">">
 								</form>
-								<form method="post" action="topic.cgi">
+								<form method="post" action="index.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="hidden" name="mode" value="topic" />
+								<input type="hidden" name="action" value="add_topic" />
 								<input type="submit" name="noname" value="<AF_M text="Return">">
 							</td>
 						</tr>
@@ -181,11 +184,12 @@
 	<div class="afPubContent">
 		<div class="afPubContentBlock">
 			<div class="afAppBbTable">
-				<form method="post" action="topic.cgi">
+				<form method="post" action="index.cgi">
 					<table>
 						<tr>
 							<td>
-								<input type="hidden" name="mode" value="edit_topic" />
+								<input type="hidden" name="mode" value="topic" />
+<!--								<input type="hidden" name="action" 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">
@@ -204,13 +208,27 @@
 						<tr>
 							<td>
 								<AF_M text="Nickname">
-							</td><td>
+							</td>
+							<td>
+							<TMPL_IF NAME="PWD">
 								<input type="text" name="user" value="<TMPL_VAR NAME="USER">">
+							<TMPL_ELSE>
+								<input type="hidden" name="user" value="<TMPL_VAR NAME="USER">">
+								<TMPL_VAR NAME="USER">
+							</TMPL_IF>
 							</td>
 						</tr>
 						<tr>
 							<td>
-								<AF_M text="URL"></td><td><input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">">
+								<AF_M text="URL">
+							</td>
+							<td>
+							<TMPL_IF NAME="PWD">
+								<input type="text" size="80" name="afid" value="<TMPL_VAR NAME="AFID">">
+							<TMPL_ELSE>
+								<input type="hidden" name="afid" value="<TMPL_VAR NAME="AFID">">
+								<TMPL_VAR NAME="AFID">
+							</TMPL_IF>
 							</td>
 						</tr>
 						<TMPL_IF NAME="PWD">
@@ -220,7 +238,17 @@
 								</td>
 							</tr>
 						</TMPL_IF>
-						<TMPL_IF NAME="SUPER">
+							<tr>
+								<td><AF_M text="Forum"></td>
+								<td>
+									<select name="new_forum">
+									<TMPL_LOOP NAME="FORUM_LIST">
+										<option value="<TMPL_VAR NAME="F_ID">" <TMPL_IF NAME="SELECTED">SELECTED</TMPL_IF>><TMPL_VAR NAME="TITLE"></option>
+									</TMPL_LOOP>
+									</select>
+								</td>
+							</tr>
+						<TMPL_IF NAME="STATUS_EDIT">
 							<tr>
 								<td><AF_M text="Status"></td>
 								<td>
@@ -232,14 +260,16 @@
 								</td>
 							</tr>
 						<TMPL_ELSE>
-							<input type="hidden" name="status" value="<TMPL_VAR NAME="STATUS">
+							<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="STATUS_EDIT">
+										<option value="lock"><AF_M text="Lock or Unlock"></option>
+									</TMPL_IF>
 									<TMPL_IF NAME="CAN_DELETE">
 										<option value="confirm_delete"><AF_M text="Delete"></option>
 									</TMPL_IF>
@@ -271,13 +301,12 @@
 		</table>
 	</div>
 	<div class="afPubContent">
-		<form method="post" action="view_topic.cgi">
+		<form method="post" action="index.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>
+							<AF_M text="Return to the top page."><BR><br>
 							<input type="submit" name="noname" value="<AF_M text="Return">" />
 						</td>
 					</tr>
@@ -300,12 +329,16 @@
 		</table>
 	</div>
 	<div class="afPubContent">
-		<form method="post" action="topic.cgi">
+		<form method="post" action="index.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">">
+				<TMPL_IF PB_USER>
+				<input type="hidden" name="pwd" value="<TMPL_VAR NAME="PWD">">
+				<input type="hidden" name="user" value="<TMPL_VAR NAME="USER">">
+				</TMPL_IF>
 				<input type="hidden" name="action" value="do_delete">
-				<input type="hidden" name="mode" value="edit_topic">
+				<input type="hidden" name="mode" value="topic">
 				<table>
 					<tr>
 						<td>
Index: affelio/apps/bb/templates/view_forum.tmpl
diff -u affelio/apps/bb/templates/view_forum.tmpl:1.1 affelio/apps/bb/templates/view_forum.tmpl:1.2
--- affelio/apps/bb/templates/view_forum.tmpl:1.1	Mon Dec 19 15:46:28 2005
+++ affelio/apps/bb/templates/view_forum.tmpl	Thu Mar 23 12:46:14 2006
@@ -1,9 +1,19 @@
 <div class="afPubContentHeading">
-	<table border="0" cellspacing="0" width=100%>
+     <table width="100%" cellspacing="0">
 		<tr>
-			<td align="left">
+			<td align="left" valign="top">
 				<a href="index.cgi"><TMPL_VAR NAME="PAGE_TITLE"></a>&nbsp;&gt;&nbsp;<TMPL_VAR NAME="CATEGORY">
 			</td>
+			<TMPL_IF NAME="CAN_ADD">    
+		    	<td align="right" valign="top">
+			<form method="post" action="index.cgi" style="padding:0px; margin:0px;">
+				<input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />	
+				<input type="hidden" name="mode" value="topic" />	
+				<input type="hidden" name="action" value="add_topic" />	
+				<input type="submit" name="add_topic" value="<AF_M text="Add new topic">" />
+				</form>
+			</td>
+			</TMPL_IF>
 		</tr>
 	</table>
 </div>
@@ -29,7 +39,7 @@
 					<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>&nbsp;&nbsp;&nbsp;&nbsp;(<TMPL_VAR NAME="YEAR">/<TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY">&nbsp;<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>]
+							[<a href="index.cgi?mode=forum&action=edit_forum&f_id=<TMPL_VAR NAME="F_ID">"><AF_M text="Edit"></a>]
 						</div>
 					</TMPL_IF>
 				</td>
@@ -44,19 +54,21 @@
 			<table border="0" cellpadding="5" width=100%>
 				<tr>
 					<th width="30">&nbsp;</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>
+					<th width="540"><AF_M text="Topic"></th>
+					<th width="30"><AF_M text="Replies"></th>
+					<th width="70"><AF_M text="Author"></th>
+					<th width="30"><AF_M text="Views"></th>
+					<th width="100"><AF_M text="Last Post"></th>
 				</tr>
 				<TMPL_LOOP NAME="TOPIC_LIST">
 					<tr>
 						<td>
+							<a href="index.cgi?mode=view_topic&t_id=<TMPL_VAR NAME="T_ID">">
 							<img src="resource/<TMPL_VAR NAME="ICON">">
+							</a>
 						</td>
 						<td>
-							<a href="view_topic.cgi?t_id=<TMPL_VAR NAME="T_ID">"><TMPL_VAR ESCAPE="HTML" NAME="TITLE"></a><br>
+							<a href="index.cgi?mode=view_topic&t_id=<TMPL_VAR NAME="T_ID">"><TMPL_VAR ESCAPE="HTML" NAME="TITLE"></a><br>
 							<TMPL_VAR NAME="ABST">
 						</td>
 						<td class="afAppBbColor1">
@@ -93,17 +105,19 @@
 </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 class="afPubContentBlock">
+	<div class="afPubMessageTable">
+	<form method="post" action="index.cgi">
+		<input type="hidden" name="f_id" value="<TMPL_VAR NAME="F_ID">" />	
+		<input type="hidden" name="mode" value="topic" />	
+		<input type="hidden" name="action" value="add_topic" />	
+		<input type="submit" name="add_topic" value="<AF_M text="Add new topic">" />
+	</form>
 	</div>
+</div>
 </TMPL_IF>
+
+
 <TMPL_IF NAME="OPT_MSG">
 	<TMPL_VAR NAME="OPT_MSG">
 </TMPL_IF>
Index: affelio/apps/bb/templates/view_topic.tmpl
diff -u affelio/apps/bb/templates/view_topic.tmpl:1.2 affelio/apps/bb/templates/view_topic.tmpl:1.3
--- affelio/apps/bb/templates/view_topic.tmpl:1.2	Tue Dec 20 16:56:52 2005
+++ affelio/apps/bb/templates/view_topic.tmpl	Thu Mar 23 12:46:14 2006
@@ -1,6 +1,6 @@
 <div class="afPubContentHeading">
 	<table border="0" cellspacing="0" width=100%>
-		<tr><td align="left"><a href="index.cgi"><TMPL_VAR NAME="PAGE_TITLE"></a>&nbsp;&gt;&nbsp;<TMPL_VAR NAME="CATEGORY">&nbsp;&gt;&nbsp;<a href="./view_forum.cgi?f_id=<TMPL_VAR NAME="F_ID">"><TMPL_VAR NAME="FORUM"></a>
+		<tr><td align="left"><a href="index.cgi"><TMPL_VAR NAME="PAGE_TITLE"></a>&nbsp;&gt;&nbsp;<TMPL_VAR NAME="CATEGORY">&nbsp;&gt;&nbsp;<a href="./index.cgi?mode=view_forum&f_id=<TMPL_VAR NAME="F_ID">"><TMPL_VAR NAME="FORUM"></a>
 		</td></tr>
 	</table>
 </div>
@@ -20,7 +20,7 @@
 				<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>,
+						<a href="./index.cgi?mode=view_topic&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>
@@ -54,7 +54,7 @@
 					<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>]
+							[<a href="index.cgi?mode=topic&action=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>
@@ -82,7 +82,7 @@
 							<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>]
+									[<a href="index.cgi?mode=comment&action=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>
@@ -100,7 +100,7 @@
 		<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>,
+			   <a href="./index.cgi?mode=view_topic&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>
@@ -112,7 +112,7 @@
 <TMPL_IF NAME="CAN_REPLY">
 	<div class="afPubContentBlock">
 		<div class="afAppBbTable">
-			<form method="post" action="comment.cgi" name="reply_form">
+			<form method="post" action="index.cgi" name="reply_form">
 				<table border="0" cellpadding="5" width=100%>
 					<tr>
 						<td>
@@ -127,7 +127,7 @@
 							<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>
+							<TMPL_IF PB_USER><input type="text" name="user" value="<TMPL_VAR NAME="USER_NAME">"><TMPL_ELSE><TMPL_VAR NAME="USER_NAME"></TMPL_IF>
 						</td>
 					</tr>
 					<tr>
@@ -170,7 +170,8 @@
 						<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="hidden" name="mode" value="comment" />
+							<input type="hidden" name="action" value="confirm_comment" />
 							<input type="submit" name="new_comment" value="<AF_M text="Submit">" />
 						</td>
 					</tr>


Affelio-cvs メーリングリストの案内
Back to archive index