Update of /cvsroot/xoops/xoops2/modules/mydownloads/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv6236/modules/mydownloads/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/mydownloads/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:17:27 -0000 1.1
--- index.php 6 Jan 2003 17:51:52 -0000 1.2
***************
*** 152,155 ****
--- 152,156 ----
global $xoopsDB, $myts, $eh, $mytree;
// Add a New Main Category
+ include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
xoops_cp_header();
echo "<h4>"._MD_DLCONF."</h4>";
***************
*** 202,206 ****
echo "<input type=text name=platform size=45 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";
--- 203,209 ----
echo "<input type=text name=platform size=45 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";
***************
*** 250,253 ****
--- 253,257 ----
{
global $xoopsDB, $HTTP_GET_VARS, $myts, $eh, $mytree;
+ include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
$lid = $HTTP_GET_VARS['lid'];
xoops_cp_header();
***************
*** 267,271 ****
$result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mydownloads_text")." WHERE lid=$lid");
list($description)=$xoopsDB->fetchRow($result2);
! $description = $myts->makeTareaData4Edit($description);
echo "<table>";
echo "<form method=post action=index.php>";
--- 271,275 ----
$result2 = $xoopsDB->query("SELECT description FROM ".$xoopsDB->prefix("mydownloads_text")." WHERE lid=$lid");
list($description)=$xoopsDB->fetchRow($result2);
! $GLOBALS[description] = $myts->makeTareaData4Edit($description);
echo "<table>";
echo "<form method=post action=index.php>";
***************
*** 277,281 ****
echo "<tr><td>"._MD_FILESIZEC."</td><td><input type=text name=size value=\"$size\" size=10 maxlength=100></input>"._MD_BYTES."</td></tr>\n";
echo "<tr><td>"._MD_PLATFORMC."</td><td><input type=text name=platform value=\"$platform\" size=45 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);
--- 281,289 ----
echo "<tr><td>"._MD_FILESIZEC."</td><td><input type=text name=size value=\"$size\" size=10 maxlength=100></input>"._MD_BYTES."</td></tr>\n";
echo "<tr><td>"._MD_PLATFORMC."</td><td><input type=text name=platform value=\"$platform\" size=45 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);
|