[xoops-cvslog 155] CVS update: xoops2jp/html/modules/newbb/admin

Back to archive index

onokazu onoka****@users*****
2005年 6月 11日 (土) 11:50:13 JST


Index: xoops2jp/html/modules/newbb/admin/admin_forums.php
diff -u xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.2 xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.2.2.1
--- xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.2	Mon May 30 20:05:19 2005
+++ xoops2jp/html/modules/newbb/admin/admin_forums.php	Sat Jun 11 11:50:12 2005
@@ -6,7 +6,7 @@
     copyright            : (C) 2001 The phpBB Group
     email                : suppo****@phpbb*****
 
-    $Id: admin_forums.php,v 1.2.6.2 2005/05/30 11:05:19 onokazu Exp $
+    $Id: admin_forums.php,v 1.2.6.2.2.1 2005/06/11 02:50:12 onokazu Exp $
  ***************************************************************************/
 
 /***************************************************************************
@@ -158,21 +158,21 @@
         echo "<a href='./index.php'><h4>"._MD_A_FORUMCONF."</h4></a>";
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_EDITTHISFORUM;?></b></span></td>
         </tr>
         <tr class='bg1' align='left'>
-        <td colspan=2><input type="CHECKBOX" name='delete' value="1"><span class='fg2'> <?php echo _MD_A_DTFTWARAPITF;?></span></td>
+        <td colspan=2><input type="checkbox" name='delete' value="1" /><span class='fg2'> <?php echo _MD_A_DTFTWARAPITF;?></span></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'><?php echo _MD_A_FORUMNAME;?></span></td>
-        <td><input type='text' name='name' SIZE="40" MAXLENGTH="150" value="<?php echo $name?>"></td>
+        <td><input type='text' name='name' size="40" maxlength="150" value="<?php echo $name?>" /></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'><?php echo _MD_A_FORUMDESCRIPTION;?></span></td>
-        <td><TEXTAREA name='desc' ROWS="15" COLS="45" WRAP="VIRTUAL"><?php echo $desc?></TEXTAREA></td>
+        <td><textarea name='desc' rows="15" cols="45" wrap="virtual"><?php echo $desc?></textarea></td>
         </tr>
         <tr class='bg1' align='left'>
         <td valign="top"><span class='fg2'><?php echo _MD_A_MODERATOR;?></span></td>
@@ -180,7 +180,7 @@
         <?php
         $sql = "SELECT u.uname, u.uid FROM ".$xoopsDB->prefix("users")." u, ".$xoopsDB->prefix("bb_forum_mods")." f WHERE f.forum_id = $forum AND u.uid = f.user_id";
         if ( !$r = $xoopsDB->query($sql) ) {
-            echo"</td></tr></table>";
+            echo"</td></tr></table></td></tr></table></form></td></tr></table>";
             xoops_cp_footer();
             exit();
         }
@@ -205,7 +205,7 @@
         }
         $sql .= "ORDER BY uname";
         if ( !$r = $xoopsDB->query($sql) ) {
-            echo"</td></tr></table>";
+            echo"</td></tr></table></td></tr></table></form></td></tr></table>";
             xoops_cp_footer();
             exit();
         }
@@ -213,9 +213,9 @@
             do {
                 $s = "";
                 if ( $row['uid'] == $myrow['forum_moderator'] ) {
-                    $s = "SELECTED";
+                    $s = " selected='selected'";
                 }
-                echo "<option value=\"".$row['uid']."\" $s>".$row['uname']."</option>\n";
+                echo "<option value=\"".$row['uid']."\"$s>".$row['uname']."</option>\n";
             } while ( $row = $xoopsDB->fetchArray($r) );
         } else {
             echo "<option value=\"0\">"._MD_A_NONE."</option>\n";
@@ -237,9 +237,9 @@
             do {
                 $s = "";
                 if ( $row['cat_id'] == $myrow['cat_id'] ) {
-                    $s = "SELECTED";
+                    $s = " selected='selected'";
                 }
-                echo "<option value=\"".$row['cat_id']."\" $s>".$row['cat_title']."</option>\n";
+                echo "<option value=\"".$row['cat_id']."\"$s>".$row['cat_title']."</option>\n";
             } while ( $row = $xoopsDB->fetchArray($r) );
         } else {
             echo "<option value=\"0\">"._MD_A_NONE."</option>\n";
@@ -249,22 +249,22 @@
         <?php
         $access1 = $access2 = $access3 = '';
         if ( $myrow['forum_access'] == 1 ) {
-            $access1 = "SELECTED";
+            $access1 = " selected='selected'";
         }
         if ( $myrow['forum_access'] == 2 ) {
-            $access2 = "SELECTED";
+            $access2 = " selected='selected'";
         }
         if ( $myrow['forum_access'] == 3 ) {
-            $access3 = "SELECTED";
+            $access3 = " selected='selected'";
         }
         ?>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'>Access Level:</span></td>
         <td><select name='forum_access'>
-        <option value="2" <?php echo $access2?>><?php echo _MD_A_ANONYMOUSPOST;?></option>
-        <option value="1" <?php echo $access1?>><?php echo _MD_A_REGISTERUSERONLY;?></option>
-        <option value="3" <?php echo $access3?>><?php echo _MD_A_MODERATORANDADMINONLY;?></option>
+        <option value="2"<?php echo $access2?>><?php echo _MD_A_ANONYMOUSPOST;?></option>
+        <option value="1"<?php echo $access1?>><?php echo _MD_A_REGISTERUSERONLY;?></option>
+        <option value="3"<?php echo $access3?>><?php echo _MD_A_MODERATORANDADMINONLY;?></option>
         </select>
         </td>
         </tr>
@@ -274,27 +274,27 @@
         <?php
         $pub = $priv = '';
         if ( $myrow['forum_type'] == 1 ) {
-            $priv = "SELECTED";
+            $priv = " selected='selected'";
         } else {
-            $pub = "SELECTED";
+            $pub = " selected='selected'";
         }
         ?>
-        <option value="0" <?php echo $pub?>><?php echo _MD_A_PUBLIC;?></option>
-        <option value="1" <?php echo $priv?>><?php echo _MD_A_PRIVATE;?></option>
+        <option value="0"<?php echo $pub?>><?php echo _MD_A_PUBLIC;?></option>
+        <option value="1"<?php echo $priv?>><?php echo _MD_A_PRIVATE;?></option>
         </select>
         </td>
         </tr>
         <?php
         $html_yes = $html_no = $sig_yes = $sig_no = "";
         if ( $myrow['allow_html'] == 1 ) {
-            $html_yes = "checked='checked'";
+            $html_yes = " checked='checked'";
         } else {
-            $html_no = "checked='checked'";
+            $html_no = " checked='checked'";
         }
         if ( $myrow['allow_sig'] == 1) {
-            $sig_yes = "checked='checked'";
+            $sig_yes = " checked='checked'";
         } else {
-            $sig_no = "checked='checked'";
+            $sig_no = " checked='checked'";
         }
         echo "<tr class='bg1' align='left'><td><span class='fg2'>". _MD_A_ALLOWHTML ."</span></td>          <td><input type='radio' name='html' value='1'".$html_yes." />"._MD_A_YES."<input type='radio' name='html' value='0'".$html_no." />"._MD_A_NO ."</td></tr>
         <tr class='bg1' align='left'><td><span class='fg2'>". _MD_A_ALLOWSIGNATURES ."</span></td>
@@ -304,7 +304,7 @@
         <td><input type='text' name='ppp' size='3' maxlength='3' value='".$myrow['posts_per_page']."' /></td></tr>
         <tr class='bg1' align='left'><td><span class='fg2'>". _MD_A_TOPICPERFORUM ."</span><br /><span class='fg2'><i>". _MD_A_TITNOTPFTWBDPPOAF ."</i></span></td><td><input type='text' name='tpp' size='3' maxlength='3' value='". $myrow['topics_per_page'] ."' /></td></tr>";
         echo "<tr class='bg3' align='left'><td align='center' colspan='2'><input type='hidden' name='mode' value='editforum' /><input type='hidden' name='forum' value='$forum' /><input type='submit' name='save' value='". _MD_A_SAVECHANGES ."' />&nbsp;&nbsp;<input type='reset' value='". _MD_A_CLEAR ."' /></td></tr>";
-        echo "</tr></table></td></tr></table>";
+        echo "</table></td></tr></table></form>";
     }
     if ( !isset($_POST['submit']) && !isset($_POST['save']) ) {
         xoops_cp_header();
@@ -313,13 +313,13 @@
         echo "<a href='./index.php'><h4>"._MD_A_FORUMCONF."</h4></a>";
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="TOP" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_SELECTFORUMEDIT;?></b><span class='fg2'></td>
         </tr>
         <tr class='bg1' align='left'>
-        <td align='center' colspan="2"><select name='forum' SIZE="0">
+        <td align='center' colspan="2"><select name='forum' size="0">
         <?php
         $sql = "SELECT forum_name, forum_id FROM ".$xoopsDB->prefix("bb_forums")." ORDER BY forum_id";
         if ( $result = $xoopsDB->query($sql) ) {
@@ -343,8 +343,7 @@
         <input type='submit' name='submit' value="<?php echo _MD_A_EDIT;?>" />&nbsp;&nbsp;
         </td>
         </tr>
-        </tr>
-        </table></td></tr></table>
+        </table></td></tr></table></form>
         <?php
     }
     break;
@@ -375,25 +374,24 @@
         $cat_title = $myts->makeTboxData4Edit($cat_data["cat_title"]);
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_EDITCATEGORY;?> <?php echo $cat_title ?></b><span class='fg2'></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><?php echo _MD_A_CATEGORYTITLE;?></td>
-        <td><input type="text" name="new_title" value="<?php echo $cat_title ?>" size="45" maxlength="100"></td>
+        <td><input type="text" name="new_title" value="<?php echo $cat_title ?>" size="45" maxlength="100" /></td>
         </tr>
         <tr class='bg3' align='left'>
         <td align='center' colspan="2">
         <input type="hidden" name='mode' value="editcat" />
-        <input type="hidden" name="save" value="TRUE" />
+        <input type="hidden" name="save" value="true" />
         <input type="hidden" name="cat_id" value="<?php echo intval($_POST['cat']);?>" />
         <input type='submit' name='submit' value="<?php echo _MD_A_SAVECHANGES;?>" />
         </td>
         </tr>
-        </tr>
-        </table></td></tr></table>
+        </table></td></tr></table></form>
         <?php
     } else {
         $sql = "SELECT cat_id, cat_title FROM ".$xoopsDB->prefix("bb_categories")." ORDER BY cat_order";
@@ -407,27 +405,26 @@
         echo "<a href='./index.php'><h4>"._MD_A_FORUMCONF."</h4></a>";
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_SELECTACATEGORYEDIT;?></b><span class='fg2'></td>
         </tr>
         <tr class='bg1' align='left'>
-        <td align='center' colspan="2"><select name='cat' SIZE="0">
+        <td align='center' colspan="2"><select name='cat' size="0">
         <?php
         while ( $cat_data = $xoopsDB->fetchArray($result) ) {
             echo "<option value=\"".$cat_data["cat_id"]."\">".$myts->makeTboxData4Show($cat_data["cat_title"])."</option>\n";
         }
         ?>
-        </select></td>
+        </select></td></tr>
         <tr class='bg3' align='left'>
         <td align='center' colspan="2">
         <input type="hidden" name='mode' value="editcat" />
         <input type='submit' name='submit' value="<?php echo _MD_A_EDIT;?>" />&nbsp;&nbsp;
         </td>
         </tr>
-        </tr>
-        </table></td></tr></table>
+        </table></td></tr></table></form>
         <?php
     }
     break;
@@ -475,7 +472,7 @@
         <tr class='bg3'>
         <td align='center' colspan="2"><span class='fg2'>
         <input type="submit" name="submit" value="<?php echo _MD_A_REMOVECATEGORY;?>" /></td></tr>
-        </table></table></form>
+        </table></td></tr></table></form>
         <?php
     }
     break;
@@ -504,7 +501,7 @@
         echo "<a href='./index.php'><h4>"._MD_A_FORUMCONF."</h4></a>";
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_CREATENEWCATEGORY;?></b></span></td>
@@ -520,8 +517,7 @@
         <input type="reset" value="<?php echo _MD_A_CLEAR;?>" />
         </td>
         </tr>
-        </tr>
-        </table></td></tr></table>
+        </table></td></tr></table></form>
         <?php
     }
     break;
@@ -608,18 +604,18 @@
         }
         ?>
         <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-        <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+        <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
         <table border="0" cellpadding="1" cellspacing="1" width="100%">
         <tr class='bg3' align='left'>
         <td align='center' colspan="2"><span class='fg2'><b><?php echo _MD_A_CREATENEWFORUM;?></b></span></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'><?php echo _MD_A_FORUMNAME;?></span></td>
-        <td><input type='text' name='name' SIZE="40" MAXLENGTH="150" /></td>
+        <td><input type='text' name='name' size="40" maxlength="150" /></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'><?php echo _MD_A_FORUMDESCRIPTION;?></span></td>
-        <td><TEXTAREA name='desc' ROWS="15" COLS="45" WRAP="VIRTUAL"></TEXTAREA></td>
+        <td><textarea name='desc' rows="15" cols="45" wrap="virtual"></textarea></td>
         </tr>
         <tr class='bg1' align='left'>
         <td><span class='fg2'><?php echo _MD_A_MODERATOR;?></span></td>
@@ -694,8 +690,7 @@
         <input type="reset" value="<?php echo _MD_A_CLEAR;?>" />
         </td>
         </tr>
-        </tr>
-        </table></td></tr></table>
+        </table></td></tr></table></form>
         <?php
     }
     break;
@@ -756,7 +751,7 @@
     }
     ?>
     <form action="<?php echo $_SERVER['PHP_SELF'];?>" method='post'>
-    <table border="0" cellpadding="1" cellspacing="0" align='center' Valign="TOP" width="95%"><tr><td class='bg2'>
+    <table border="0" cellpadding="1" cellspacing="0" align='center' valign="top" width="95%"><tr><td class='bg2'>
     <table border="0" cellpadding="1" cellspacing="1" width="100%">
     <tr class='bg3' align='left'>
     <td align='center' colspan="3"><span class='fg2'><b><?php echo _MD_A_SETCATEGORYORDER;?></b></span><br />
@@ -788,7 +783,7 @@
         $last_id = $m['cat_id'];
     }
     ?>
-    </TABLE></TABLE>
+    </table></td></tr></table></form>
     <?php
     break;
 case 'sync':


xoops-cvslog メーリングリストの案内
Back to archive index