From: <w4...@us...> - 2003-01-06 17:56:06
|
Update of /cvsroot/xoops/xoops2/modules/mylinks/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8279/modules/mylinks/admin Modified Files: index.php Log Message: added the submit with bbcodes and smilies in user and admin side Index: index.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/mylinks/admin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 2 Jan 2003 17:43:02 -0000 1.1 --- index.php 6 Jan 2003 17:55:17 -0000 1.2 *************** *** 138,141 **** --- 138,142 ---- // Add a New Main Category xoops_cp_header(); + include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; echo "<h4>"._MD_WEBLINKSCONF."</h4>"; echo "<table width='100%' border='0' cellspacing='1' class='outer'>" *************** *** 181,185 **** echo "<input type=text name=email size=50 maxlength=60></td></tr>\n"; echo "<tr><td align=\"right\" valign=\"top\" nowrap>"._MD_DESCRIPTIONC."</td><td>\n"; ! echo "<textarea name=description cols=60 rows=5></textarea>\n"; echo "</td></tr>\n"; echo "<tr><td align=\"right\"nowrap>"._MD_SHOTIMAGE."</td><td>\n"; --- 182,188 ---- echo "<input type=text name=email size=50 maxlength=60></td></tr>\n"; echo "<tr><td align=\"right\" valign=\"top\" nowrap>"._MD_DESCRIPTIONC."</td><td>\n"; ! xoopsCodeTarea("description",60,8); ! xoopsSmilies("description"); ! //echo "<textarea name=description cols=60 rows=5></textarea>\n"; echo "</td></tr>\n"; echo "<tr><td align=\"right\"nowrap>"._MD_SHOTIMAGE."</td><td>\n"; *************** *** 231,234 **** --- 234,238 ---- { global $xoopsDB, $HTTP_GET_VARS, $myts, $eh, $mytree, $xoopsConfig; + include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; $lid = $HTTP_GET_VARS['lid']; xoops_cp_header(); *************** *** 247,251 **** $result2 = $xoopsDB->query("select description from ".$xoopsDB->prefix("mylinks_text")." where lid=$lid"); list($description)=$xoopsDB->fetchRow($result2); ! $description = $myts->makeTareaData4Edit($description); echo "<table>"; echo "<form method=post action=index.php>"; --- 251,255 ---- $result2 = $xoopsDB->query("select description from ".$xoopsDB->prefix("mylinks_text")." where lid=$lid"); list($description)=$xoopsDB->fetchRow($result2); ! $GLOBALS[description] = $myts->makeTareaData4Edit($description); echo "<table>"; echo "<form method=post action=index.php>"; *************** *** 254,258 **** echo "<tr><td>"._MD_SITEURL."</td><td><input type=text name=url value=\"$url\" size=50 maxlength=100></input></td></tr>\n"; echo "<tr><td>"._MD_EMAILC."</td><td><input type=text name=email value=\"$email\" size=50 maxlength=60></input></td></tr>\n"; ! echo "<tr><td valign=\"top\">"._MD_DESCRIPTIONC."</td><td><textarea name=description cols=60 rows=5>$description</textarea></td></tr>"; echo "<tr><td>"._MD_CATEGORYC."</td><td>"; $mytree->makeMySelBox("title", "title", $cid); --- 258,266 ---- echo "<tr><td>"._MD_SITEURL."</td><td><input type=text name=url value=\"$url\" size=50 maxlength=100></input></td></tr>\n"; echo "<tr><td>"._MD_EMAILC."</td><td><input type=text name=email value=\"$email\" size=50 maxlength=60></input></td></tr>\n"; ! echo "<tr><td valign=\"top\">"._MD_DESCRIPTIONC."</td><td>"; ! xoopsCodeTarea("description",60,8); ! xoopsSmilies("description"); ! //echo "<textarea name=description cols=60 rows=5>$description</textarea>"; ! echo "</td></tr>"; echo "<tr><td>"._MD_CATEGORYC."</td><td>"; $mytree->makeMySelBox("title", "title", $cid); |