[xoops-cvslog 33] CVS update: xoops2jp/html/modules/sections/admin

Back to archive index

onokazu onoka****@users*****
2005年 5月 30日 (月) 20:17:28 JST


Index: xoops2jp/html/modules/sections/admin/index.php
diff -u xoops2jp/html/modules/sections/admin/index.php:1.2.6.1 xoops2jp/html/modules/sections/admin/index.php:1.2.6.2
--- xoops2jp/html/modules/sections/admin/index.php:1.2.6.1	Thu Apr 21 04:22:12 2005
+++ xoops2jp/html/modules/sections/admin/index.php	Mon May 30 20:17:28 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.2.6.1 2005/04/20 19:22:12 onokazu Exp $
+// $Id: index.php,v 1.2.6.2 2005/05/30 11:17:28 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -46,9 +46,9 @@
     $result = $xoopsDB->query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secid");
     if ($xoopsDB->getRowsNum($result) > 0) {
         $myts =& MyTextSanitizer::getInstance();
-        echo "<hr>
+        echo "<hr />
         <b><center>"._MD_CURACTIVESEC."</b><br />"._MD_CLICK2EDIT."<br />
-        <table border=0 width=100% align=center cellpadding=1><tr><td align=center>";
+        <table border='0' width='100%' align='center' cellpadding='1'><tr><td align='center'>";
         echo "<ul>";
         while(list($secid, $secname) = $xoopsDB->fetchRow($result)) {
             $secname=$myts->makeTboxData4Show($secname);
@@ -65,21 +65,21 @@
     <input class=textbox type="text" name="title" size=60 value=""><br /><br />
     <?php
     $result = $xoopsDB->query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secid");
-    $checked = "checked"; // select first section by default
+    $checked = " checked='checked'"; // select first section by default
     while(list($secid, $secname) = $xoopsDB->fetchRow($result)) {
         $secname=$myts->makeTboxData4Show($secname);
-        echo "<input type=radio name=secid value=$secid $checked>$secname<br />";
+        echo "<input type='radio' name='secid' value='$secid'$checked />$secname<br />";
         $checked = '';
     } ?>
     <br />
     <b><?php echo _MD_CONTENTC; ?></b><br />
-    <textarea class=textbox name="content" cols=60 rows=10></textarea><br /><br />
+    <textarea class="textbox" name="content" cols="60" rows="10"></textarea><br /><br />
     <?php echo _MULTIPAGE ?><br/><br />
-    <input type=hidden name=op value=secarticleadd>
-    <input type="submit" value="<?php echo _MD_DOADDARTICLE; ?>">
+    <input type="hidden" name="op" value="secarticleadd" />
+    <input type="submit" value="<?php echo _MD_DOADDARTICLE; ?>" />
     </form>
     <br />
-    <hr><h4><?php echo _MD_LAST20ART; ?></h4>
+    <hr /><h4><?php echo _MD_LAST20ART; ?></h4>
     <br /><br />
     <ul>
     <?php
@@ -93,22 +93,22 @@
     } ?>
     </ul>
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?>
-    <?php echo _MD_EDITARTID; ?> <input class=textbox type="text" NAME="artid" SIZE=10>
-    <input type=hidden name=op value="secartedit">
-    <input type="submit" value="<?php echo _MD_GO;?>">
+    <?php echo _MD_EDITARTID; ?> <input class="textbox" type="text" NAME="artid" size="10" />
+    <input type="hidden" name="op" value="secartedit" />
+    <input type="submit" value="<?php echo _MD_GO;?>" />
     </form>
 <?php
     }
     echo "<br />";  ?>
-    <hr><h4><?php echo _MD_ADDNEWSEC; ?></h4>
+    <hr /><h4><?php echo _MD_ADDNEWSEC; ?></h4>
     <br /><br />
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?><br />
     <b><?php echo _MD_SECNAMEC; ?></b>  <?php echo _MD_MAXCHAR; ?><br />
-    <input class=textbox type="text" name="secname" size=40 maxlength=40><br /><br />
+    <input class="textbox" type="text" name="secname" size="40" maxlength="40" /><br /><br />
     <b><?php echo _MD_SECIMAGEC; ?></b>&nbsp;<?php echo _MD_EXIMAGE; ?><br />
-    <input class=textbox type="text" name="image" size=40 maxlength=50><br /><br />
-    <input type=hidden name=op value=sectionmake>
-    <input type="submit" value="<?php echo _MD_GOADDSECTION; ?>">
+    <input class="textbox" type="text" name="image" size="40" maxlength="50" /><br /><br />
+    <input type="hidden" name="op" value="sectionmake" />
+    <input type="submit" value="<?php echo _MD_GOADDSECTION; ?>" />
     </form>
 <?php
 }
@@ -123,31 +123,31 @@
     $title = $myts->makeTboxData4Edit($title);
     $content = $myts->makeTareaData4Edit($content);
     ?>
-    <hr><h4><?php echo _MD_EDITARTICLE; ?></h4>
+    <hr /><h4><?php echo _MD_EDITARTICLE; ?></h4>
     <br /><br />
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?><br />
     <b><?php echo _MD_TITLEC; ?></b><br />
-    <input class=textbox type="text" name="title" size=60 value="<?php echo "$title"; ?>"><br /><br />
+    <input class="textbox" type="text" name="title" size="60" value="<?php echo "$title"; ?>" /><br /><br />
     <?php
     $result2 = $xoopsDB->query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secname");
     while(list($secid2, $secname) = $xoopsDB->fetchRow($result2)) {
     $secname = $myts->makeTboxData4Show($secname);
-        if ($secid2==$secid) { $che = "checked"; }
-        echo "<input type=radio name=secid value=$secid2 $che>$secname<br />";
+        if ($secid2==$secid) { $che = " checked='checked'"; }
+        echo "<input type='radio' name='secid' value='$secid2'$che />$secname<br />";
         $che = "";
     } ?>
     <br />
     <b><?php echo _MD_CONTENTC; ?></b><br />
-    <textarea class=textbox name=content cols=60 rows=10><?php echo "$content"; ?></textarea>
-    <input type=hidden name=artid value="<?php echo "$artid"; ?>">
-    <input type=hidden name=op value=secartchange>
-    <table border=0><tr><td>
-    <input type="submit" value="<?php echo _MD_SAVECHANGES; ?>">
+    <textarea class="textbox" name="content" cols="60" rows="10"><?php echo "$content"; ?></textarea>
+    <input type="hidden" name="artid" value="<?php echo "$artid"; ?>" />
+    <input type="hidden" name="op" value="secartchange" />
+    <table border="0"><tr><td>
+    <input type="submit" value="<?php echo _MD_SAVECHANGES; ?>" />
     </form></td><td>
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?>
-    <input type=hidden name=artid value="<?php echo "$artid"; ?>">
-    <input type=hidden name=op value=secartdelete>
-    <input type="submit" value="<?php echo _MD_DELETE; ?>">
+    <input type="hidden" name="artid" value="<?php echo "$artid"; ?>" />
+    <input type="hidden" name="op" value="secartdelete" />
+    <input type="submit" value="<?php echo _MD_DELETE; ?>" />
     </form></td></tr></table>
 <?php
 }
@@ -164,7 +164,7 @@
     $result2 = $xoopsDB->query("select artid from ".$xoopsDB->prefix("seccont")." where secid=$secid");
     $number = $xoopsDB->getRowsNum($result2);
     ?>
-    <?php echo "<img src=\"".XOOPS_URL."/modules/sections/images/".$image."\" border=0><br /><br />"; ?>
+    <?php echo "<img src=\"".XOOPS_URL."/modules/sections/images/".$image."\" border="0" /><br /><br />"; ?>
     <h4><?php printf(_MD_EDITTHISSEC,$secname); ?></h4>
     <br />
      <?php
@@ -174,18 +174,18 @@
     <br /><br />
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?><br />
     <b><?php echo _MD_SECNAMEC; ?></b> <?php echo _MD_MAXCHAR; ?><br />
-    <input class=textbox type="text" name="secname" size=40 maxlength=40 value="<?php echo "$secname"; ?>"><br /><br />
+    <input class="textbox" type="text" name="secname" size="40" maxlength="40" value="<?php echo "$secname"; ?>" /><br /><br />
     <b><?php echo _MD_SECIMAGEC; ?></b> <?php echo _MD_EXIMAGE; ?><br />
-    <input class=textbox type="text" name="image" size=40 maxlength=50 value="<?php echo "$image"; ?>"><br /><br />
-    <input type=hidden name=secid value="<?php echo "$secid"; ?>">
-    <input type=hidden name=op value=sectionchange>
-    <table border=0><tr><td>
-    <INPUT type="submit" value="<?php echo _MD_SAVECHANGES; ?>">
+    <input class="textbox" type="text" name="image" size="40" maxlength="50" value="<?php echo "$image"; ?>" /><br /><br />
+    <input type="hidden" name="secid" value="<?php echo "$secid"; ?>" />
+    <input type="hidden" name="op" value="sectionchange" />
+    <table border="0"><tr><td>
+    <input type="submit" value="<?php echo _MD_SAVECHANGES; ?>" />
     </form></td><td>
     <?php echo "<form action=\"index.php\" method=\"post\">"; ?>
-    <input type=hidden name=secid value="<?php echo "$secid"; ?>">
-    <input type=hidden name=op value=sectiondelete>
-    <INPUT type="submit" value="<?php echo _MD_DELETE; ?>">
+    <input type="hidden" name="secid" value="<?php echo "$secid"; ?>" />
+    <input type="hidden" name="op" value="sectiondelete" />
+    <input type="submit" value="<?php echo _MD_DELETE; ?>" />
     </form></td></tr></table>
 <?php
 }


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