From: vladimir c. <ch...@us...> - 2002-03-27 23:49:36
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules In directory usw-pr-cvs1:/tmp/cvs-serv22035 Modified Files: CAdd.php CAddS.php CEdit.php CEditF.php CEditS.php Log Message: cateory add edit delete fixed to .711 Index: CAdd.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules/CAdd.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CAdd.php 27 Mar 2002 22:29:50 -0000 1.2 --- CAdd.php 27 Mar 2002 23:49:32 -0000 1.3 *************** *** 7,16 **** // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_AddCategory() { global $hlpfile; include("header.php"); GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=phpBB_14\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; --- 7,16 ---- // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_AddCategory($var, $module) { global $hlpfile; include("header.php"); GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=main&module=".$module."\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; *************** *** 19,23 **** //show the form for adding a category ! echo "<form name=\"addcatform\" action=\"admin.php?op=phpBB_14_AddCategorySubmit\" method=\"post\">\n" ."<font class=\"pn-title\">"._CATEGORY.":</font><br>" ."<input type=\"text\" name=\"cat_title\" size=\"100\" maxlength=\"100\">\n" --- 19,23 ---- //show the form for adding a category ! echo "<form name=\"addcatform\" action=\"admin.php?op=phpBB_14_AddCategorySubmit&module=".$module."\" method=\"get\">\n" ."<font class=\"pn-title\">"._CATEGORY.":</font><br>" ."<input type=\"text\" name=\"cat_title\" size=\"100\" maxlength=\"100\">\n" Index: CAddS.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules/CAddS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CAddS.php 27 Mar 2002 22:29:50 -0000 1.2 --- CAddS.php 27 Mar 2002 23:49:32 -0000 1.3 *************** *** 7,11 **** // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_AddCategorySubmit($cat_title) { global $bbtable; $cat_title = addslashes($cat_title); --- 7,11 ---- // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_AddCategorySubmit($var,$module,$cat_title) { global $bbtable; $cat_title = addslashes($cat_title); *************** *** 23,27 **** error_die(_PHPBB_ERROR_CONNECT,$sql,mysql_errno(),mysql_error()); } ! header("Location: admin.php?op=phpBB_14"); } --- 23,27 ---- error_die(_PHPBB_ERROR_CONNECT,$sql,mysql_errno(),mysql_error()); } ! header("Location: admin.php?op=main&module=".$module.""); } Index: CEdit.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules/CEdit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CEdit.php 27 Mar 2002 22:29:50 -0000 1.2 --- CEdit.php 27 Mar 2002 23:49:32 -0000 1.3 *************** *** 7,16 **** // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_EditCategory() { global $bbtable, $hlpfile; include("header.php"); GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=phpBB_14\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; --- 7,16 ---- // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_admin_EditCategory($var,$module) { global $bbtable, $hlpfile; include("header.php"); GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=main&module=".$module."\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; *************** *** 25,29 **** } echo "<font class=\"pn-title\">"._PHPBB_SELECTEDITCAT."</font><br>\n"; ! echo "<form name=\"addcatform\" action=\"admin.php?op=phpBB_14_EditCategoryForm\" method=\"post\">\n"; echo "<select name=\"cat_id\">"; --- 25,29 ---- } echo "<font class=\"pn-title\">"._PHPBB_SELECTEDITCAT."</font><br>\n"; ! echo "<form name=\"addcatform\" action=\"admin.php?op=phpBB_14_EditCategoryForm&module=".$module."\" method=\"post\">\n"; echo "<select name=\"cat_id\">"; Index: CEditF.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules/CEditF.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CEditF.php 27 Mar 2002 22:29:50 -0000 1.2 --- CEditF.php 27 Mar 2002 23:49:32 -0000 1.3 *************** *** 7,11 **** // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_EditCategoryForm($cat_id,$actiontype) { global $bbtable, $hlpfile; switch($actiontype) { --- 7,11 ---- // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_admin_EditCategoryForm($var,$module,$cat_id,$actiontype) { global $bbtable, $hlpfile; switch($actiontype) { *************** *** 14,18 **** GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=phpBB_14\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; --- 14,18 ---- GraphicAdmin($hlpfile); opentable(); ! echo "<center><a class=\"pn-pagetitle\" href=\"admin.php?op=main&module=".$module."\">"._PHPBB_ADMINFORUMSPANEL."</a></center>"; closetable(); echo "<br>"; *************** *** 23,27 **** list($cat_title) = mysql_fetch_row($result); //show the form for editing a category ! echo "<form name=\"editcatform\" action=\"admin.php?op=phpBB_14_EditCategorySave\" method=\"post\">\n" ."<font class=\"pn-title\">"._PHPBB_CATEGORY.":</font><br>" ."<input type=\"text\" name=\"cat_title\" size=\"100\" maxlength=\"100\" value=\"$cat_title\">\n" --- 23,27 ---- list($cat_title) = mysql_fetch_row($result); //show the form for editing a category ! echo "<form name=\"editcatform\" action=\"admin.php?op=phpBB_14_EditCategorySave&module=".$module."\" method=\"post\">\n" ."<font class=\"pn-title\">"._PHPBB_CATEGORY.":</font><br>" ."<input type=\"text\" name=\"cat_title\" size=\"100\" maxlength=\"100\" value=\"$cat_title\">\n" *************** *** 39,43 **** error_die(_PHPBB_ERROR_CONNECT,$sql,mysql_errno(),mysql_error()); } ! header("Location: admin.php?op=phpBB_14"); } } --- 39,43 ---- error_die(_PHPBB_ERROR_CONNECT,$sql,mysql_errno(),mysql_error()); } ! header("Location: admin.php?op=main&module=".$module.""); } } Index: CEditS.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/admin/modules/CEditS.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CEditS.php 27 Mar 2002 22:29:50 -0000 1.2 --- CEditS.php 27 Mar 2002 23:49:32 -0000 1.3 *************** *** 7,11 **** // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_EditCategorySave($cat_id, $cat_title) { global $bbtable; $cat_title = addslashes($cat_title); --- 7,11 ---- // include("modules/$ModName/phpBB_14tables.php"); ! function phpBB_14_admin_EditCategorySave($var,$module,$cat_id, $cat_title) { global $bbtable; $cat_title = addslashes($cat_title); *************** *** 13,17 **** $sql = "UPDATE $bbtable[categories] SET cat_title='$cat_title' WHERE cat_id = $cat_id"; $result = mysql_query($sql); ! header("Location: admin.php?op=phpBB_14"); } --- 13,17 ---- $sql = "UPDATE $bbtable[categories] SET cat_title='$cat_title' WHERE cat_id = $cat_id"; $result = mysql_query($sql); ! header("Location: admin.php?op=main&module=".$module.""); } |