📄 coladd.php
字号:
<?php
include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/col.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 11 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n</head>\r\n\r\n<body class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"150\" > <img src=\"images/bar.gif\"> ";
echo $strColAdd;
echo "</td>\r\n <td > </td> <td width=\"100\" > </td>\r\n </tr>\r\n </table>\r\n";
$step = $_REQUEST['step'];
$pid = $_REQUEST['pid'];
$pub = $_REQUEST['pub'];
if ( $step == "add" )
{
coladd( );
}
else
{
if ( !isset( $pid ) || $pid == "" )
{
$pid = 0;
}
if ( !isset( $pub ) || $pub == "" )
{
$pub = "menu";
}
echo " \r\n";
echo "<s";
echo "cript>\r\nfunction checkform(theform)\r\n{\r\n var letters = \"abcdefghijklmnopqrstuvwxyz_0123456789\" +\r\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n var letter = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n var nums = \"0123456789\"\r\n\r\n var allword = letters + \"~!@#\$%^&*()+|/?;:'[{]}`\"\r\n var errletter = \"\"\r\n\r\n\r\n \r\n if(theform.menu.value.length < 1)\r\n {\r\n alert(\"";
echo $strColNotice1;
echo "\")\r\n theform.menu.focus()\r\n return false\r\n }\r\n\r\nif(nowsel!='url'){\r\n\r\n\t if(theform.fold.value.length < 1)\r\n\t {\r\n\t\talert(\"";
echo $strColNotice9;
echo "\")\r\n\t\ttheform.fold.focus()\r\n\t\treturn false\r\n\t }\r\n\r\n\tfor(i=0;i<=12;i++){\r\n\t\tif(letters.indexOf(theform.fold.value.charAt(i)) == -1 && isNaN(theform.fold.value))\r\n\t {\r\n\t\talert(\"";
echo $strColNotice7;
echo "\" )\r\n\t\ttheform.fold.focus()\r\n\t\treturn false\r\n\t }\r\n\t}\r\n\r\n}\r\n\r\n return true\r\n} \r\n\r\nfunction chkcoltype(n){\r\n\r\nif(n=='url'){\r\n\ttrfold.style.display=\"none\";\r\n\ttrurl.style.display=\"block\";\r\n\tpidiv.style.display=\"none\";\r\n\ttrskin.style.display=\"none\";\r\n}else if(n=='form'){\r\n\ttrurl.style.display=\"none\";\r\n\ttrfold.style.display=\"block\";\r\n\tpidiv.style.display=\"none\";\r\n\ttrskin.style.display=\"block\";\r\n}else";
echo " if(n=='page'){\r\n\ttrurl.style.display=\"none\";\r\n\ttrfold.style.display=\"block\";\r\n\tpidiv.style.display=\"none\";\r\n\ttrskin.style.display=\"block\";\r\n}else{\r\n\ttrurl.style.display=\"none\";\r\n\ttrfold.style.display=\"block\";\r\n\tpidiv.style.display=\"block\";\r\n\ttrskin.style.display=\"block\";\r\n}\r\n\r\nnowsel=n;\r\n}\r\n</script>\r\n\r\n<table width=\"625\" border=\"0\" cellspacing=\"3\" cellpadding=\"0\" align=\"center\">\r\n <tr valign=\"top\"";
echo " align=\"center\"> \r\n <td height=\"378\"> \r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"12\">\r\n <tr> \r\n <td></td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n <tr> \r\n <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" ";
echo "width=\"3\" height=\"30\"></td>\r\n <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strColAdd;
echo "</td>\r\n <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" align=\"center\">\r\n <form method=\"post\" action=\"coladd.php\" onSubmit=\"return checkform(this)\" name=colset>\r\n <tr> \r\n <td class=title width=\"15";
echo "0\" align=\"center\" height=\"28\" >";
echo $strColLocat;
echo "</td>\r\n <td class=con height=\"28\" > ";
addmenulocation( $pid, $pub );
echo " </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColType;
echo "</td>\r\n <td class=con height=\"28\" > \r\n ";
echo "<s";
echo "elect name=\"coltype\" onChange=\"chkcoltype(this.form.coltype.options[this.form.coltype.selectedIndex].value)\">\r\n ";
$msql->query( "select * from {$tbl_coltype} where coltype!='index' and coltype!='member' and coltype!='comment' order by id" );
while ( $msql->next_record( ) )
{
$colname = $msql->f( "colname" );
$coltype = $msql->f( "coltype" );
$intro = $msql->f( "intro" );
echo "<option value='".$coltype."'>".$colname."</option>";
}
echo " \r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColMenuName;
echo "</td>\r\n <td class=con height=\"28\" > \r\n <input type=\"text\" name=\"menu\" size=\"16\" class=input maxlength=\"50\">\r\n <font color=\"#FF0000\">*</font> \r\n <div id=\"pidiv\" style=\"position:absolute; width:200px; height:25px; z-index:1\">\r\n <input type=\"checkbox\" name=\"openindex\" value=\"1\">\r\n ";
echo $strColNotice16;
echo "</div>\r\n </td>\r\n </tr>\r\n <tr id=\"trfold\" > \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColFoldName;
echo "</td>\r\n <td class=con height=\"28\" > \r\n <input type=\"text\" name=\"fold\" size=\"16\" class=input maxlength=\"12\">\r\n <font color=\"#FF0000\">*</font> [";
echo $strColNotice13;
echo "]</td>\r\n </tr>\r\n <tr id=\"trskin\" > \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColSkin;
echo "</td>\r\n <td class=con height=\"28\" > \r\n ";
echo "<s";
echo "elect name=\"skin\">\r\n \r\n\t\t\t\t";
echo readskins( "" );
echo " </select>\r\n </td>\r\n </tr>\r\n <tr id=\"trurl\" > \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColLink;
echo "</td>\r\n <td class=con valign=\"top\" height=\"28\" > \r\n <input type=text name=url size=38 value=\"http://\" class=input>\r\n <font color=\"#FF0000\">*</font> </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColShow;
echo "</td>\r\n <td class=con height=\"28\" > \r\n <input type=\"radio\" name=\"ifshow\" value=\"1\" checked>\r\n ";
echo $strColNotice3;
echo " \r\n <input type=\"radio\" name=\"ifshow\" value=\"0\">\r\n ";
echo $strColNotice4;
echo "</td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"center\" height=\"28\" >";
echo $strColOpen;
echo "</td>\r\n <td class=con height=\"28\" > \r\n <input type=\"radio\" name=\"target\" value=\"_self\" checked>\r\n ";
echo $strColNotice5;
echo " \r\n <input type=\"radio\" name=\"target\" value=\"_blank\">\r\n ";
echo $strColNotice6;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td class=title colspan=\"2\" align=\"center\" height=\"28\" > \r\n <input type=\"submit\" name=\"Submit\" value=\"";
echo $strConfirm;
echo "\" class=button>\r\n <input type=\"hidden\" name=\"step\" value=\"add\">\r\n <input type=\"hidden\" name=\"kk\" value=\"1\">\r\n <input type=\"hidden\" name=\"du\">\r\n <input type=\"hidden\" name=\"pub\" value=\"";
echo $pub;
echo "\">\r\n <input type=\"hidden\" name=\"pid\" value=\"";
echo $pid;
echo "\">\r\n </td>\r\n </tr>\r\n </form>\r\n </table>\r\n ";
}
echo " <br>\r\n </td>\r\n </tr>\r\n</table>";
echo "<s";
echo "cript>\r\nchkcoltype(colset.coltype.options[colset.coltype.selectedIndex].value);\t\r\n</script>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -