📄 plusadd.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/db.inc.php" );
include( "func/nocatch.php" );
needauth( 13 );
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 > <img src=\"images/bar.gif\" > ";
echo $strPlusAdd;
echo "</td>\r\n <td width=\"100\" > </td>\r\n </tr>\r\n</table>\r\n";
$step = $_POST['step'];
$plustype = $_REQUEST['plustype'];
if ( $step == "add" )
{
$pluslable = $_POST['pluslable'];
$pluslocat = $_POST['pluslocat'];
$msql->query( "select * from {$tbl_plus_set} where pluslable='{$pluslable}' and pluslocat='{$pluslocat}'" );
if ( $msql->next_record( ) )
{
err( $strPlusNotice3, "", "" );
exit( );
}
$vars = array(
"pluslable" => $_POST['pluslable'],
"plusname" => $_POST['plusname'],
"plustype" => $_POST['plustype'],
"pluslocat" => $_POST['pluslocat'],
"moveable" => $_POST['moveable'],
"formtype" => $_POST['formtype'],
"tempname" => $_POST['tempname'],
"hangnums" => $_POST['hangnums'],
"shownums" => $_POST['shownums'],
"smallw" => $_POST['smallw'],
"smallh" => $_POST['smallh'],
"ord" => $_POST['ord'],
"sc" => $_POST['sc'],
"showtime" => $_POST['showtime'],
"onlytj" => $_POST['onlytj'],
"cutword" => $_POST['cutword'],
"target" => $_POST['target'],
"catid" => $_POST['catid'],
"showmore" => $_POST['showmore'],
"body" => $_POST['body']
);
tblinsert( $tbl_plus_set, $vars );
sayok( $strPlusNotice2, "", "" );
}
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\r\n var allword = letters + \"~!@#\$%^&*()+|/?;:'[{]}`\"\r\n var errletter = \"\"\r\n\r\n\r\n \r\n\r\n if(theform.plusname.value.length < 1)\r\n {\r\n alert(\"";
echo $strPlusNotice1;
echo "\")\r\n theform.plusname.focus()\r\n return false\r\n } \r\n if(theform.pluslable.value.length < 1)\r\n {\r\n alert(\"";
echo $strPlusNotice7;
echo "\")\r\n theform.pluslable.focus()\r\n return false\r\n } \r\n if(theform.pluslocat.value.length < 1)\r\n {\r\n alert(\"";
echo $strPlusNotice8;
echo "\")\r\n theform.pluslocat.focus()\r\n return false\r\n } \r\n\r\n\r\n return true;\r\n} \r\n\r\nfunction ChangeShow(n){\r\n\r\nif(n==1){\r\nconset.style.display='block';\r\n}\r\nif(n==2){\r\nconset.style.display='none';\r\n}\r\nif(n==3){\r\nconset.style.display='none';\r\n}\r\nif(n==0){\r\nconset.style.display='none';\r\n}\r\n\r\n}\r\n</script>\r\n<br>\r\n<br>\r\n<table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"";
echo "22\">\r\n <tr> \r\n <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strPlusAdd;
echo " \r\n </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=\"500\" cellpadding=\"2\" align=\"center\" style=\"border-collapse: collapse\" border=\"0\" cellspacing=\"1\">\r\n <form name=\"form\" action=\"plusadd.php\" method=\"post\" onSubmit=\"return checkform(this)\">\r\n <tr> \r\n <td height=\"30\" width=\"150";
echo "\" align=\"center\" class=\"title\">";
echo $strPlusType;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <input type=\"text\" name=\"plustype\" maxlength=\"200\" class=input size=\"30\" value=\"";
echo $plustype;
echo "\">\r\n <font color=\"#FF0000\">*</font> </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusLocat;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <input type=\"text\" name=\"pluslocat\" maxlength=\"200\" class=input size=\"30\">\r\n <font color=\"#FF0000\">*</font> </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusName;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <input type=\"text\" name=\"plusname\" maxlength=\"200\" class=input size=\"30\">\r\n <font color=\"#FF0000\">*</font> </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusLable;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <input type=\"text\" name=\"pluslable\" maxlength=\"200\" class=input size=\"30\">\r\n <font color=\"#FF0000\">*</font> </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusFormType;
echo "</td>\r\n <td height=\"30\" class=con> \r\n <input type=\"radio\" name=\"formtype\" value=\"news\" checked onClick=\"ChangeShow(1)\">\r\n ";
echo $strPlusNews;
echo " \r\n <input type=\"radio\" name=\"formtype\" value=\"cp\" onClick=\"ChangeShow(2)\">\r\n ";
echo $strPlusCp;
echo " \r\n <input type=\"radio\" name=\"formtype\" value=\"down\" onClick=\"ChangeShow(3)\">\r\n ";
echo $strPlusDown;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusMove;
echo " \r\n </td>\r\n <td height=\"30\" class=con> \r\n <input type=\"radio\" name=\"moveable\" value=\"0\" checked>\r\n ";
echo $strPlusSys;
echo " \r\n <input type=\"radio\" name=\"moveable\" value=\"1\">\r\n ";
echo $strPlusDiy;
echo " </td>\r\n </tr>\r\n <tr id=\"conset\"> \r\n <td height=\"30\" width=\"150\" align=\"center\" class=\"title\">";
echo $strPlusSel;
echo " \r\n </td>\r\n <td height=\"30\" class=con> \r\n <table width=\"200\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\">\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"tempname\" value=\"1\">\r\n ";
echo $strPlustempname;
echo " </td>\r\n <td> \r\n <input type=\"checkbox\" name=\"hangnums\" value=\"1\">\r\n ";
echo $strPlushangnums;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"shownums\" value=\"1\">\r\n ";
echo $strPlusshownums;
echo " </td>\r\n <td> \r\n <input type=\"checkbox\" name=\"smallw\" value=\"1\">\r\n ";
echo $strPlussmallw;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"smallh\" value=\"1\">\r\n ";
echo $strPlussmallh;
echo " </td>\r\n <td> \r\n <input type=\"checkbox\" name=\"ord\" value=\"1\">\r\n ";
echo $strPlusord;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"sc\" value=\"1\">\r\n ";
echo $strPlussc;
echo " </td>\r\n <td> \r\n <input type=\"checkbox\" name=\"showtime\" value=\"1\">\r\n ";
echo $strPlusshowtime;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"onlytj\" value=\"1\">\r\n ";
echo $strPlusonlytj;
echo " </td>\r\n <td> \r\n <input type=\"checkbox\" name=\"cutword\" value=\"1\">\r\n ";
echo $strPluscutword;
echo " </td>\r\n </tr>\r\n <tr> \r\n <td> \r\n <input type=\"checkbox\" name=\"target\" value=\"1\">\r\n ";
echo $strPlustarget;
echo " </td>\r\n <td>\r\n <input type=\"checkbox\" name=\"catid\" value=\"1\">\r\n ";
echo $strPluscatid;
echo " </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n <input type=\"checkbox\" name=\"body\" value=\"1\">\r\n ";
echo $strPlusbody;
echo " </td>\r\n <td>\r\n <input type=\"checkbox\" name=\"showmore\" value=\"1\">\r\n ";
echo $strPlusMore;
echo " </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td align=\"center\" colspan=\"2\" height=\"40\" class=title> \r\n <input type=\"submit\" name=\"submit\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n <input type=\"hidden\" name=\"step\" value=\"add\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n<table width=\"498\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/mu1.jpg\" height=\"5\" align=\"center\">\r\n <tr> \r\n <td></td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -