📄 plusset.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/plus.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 ";
echo "<S";
echo "CRIPT>\r\n\r\nfunction chk_showmore(n){\r\n\tif(n==0){\r\n\tform.showmore.disabled=\"true\";\r\n\tform.showmore.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.showmore.disabled=\"\";\r\n\tform.showmore.style.visibility=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\nfunction chk_hangnums(n){\r\n\tif(n==0){\r\n\tform.hangnums.disabled=\"true\";\r\n\tform.hangnums.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.hangnums.disabled=\"\";\r\n\tform.hangnums.style.visibi";
echo "lity=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\nfunction chk_shownums(n){\r\n\tif(n==0){\r\n\tform.shownums.disabled=\"true\";\r\n\tform.shownums.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.shownums.disabled=\"\";\r\n\tform.shownums.style.visibility=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\nfunction chk_smallw(n){\r\n\tif(n==0){\r\n\tform.smallw.disabled=\"true\";\r\n\tform.smallw.style.visibility=\"hidden\";\t\r\n\t}else if(n==-1){\r\n\tform.smallw.disabled=\"\";\r\n\tform.s";
echo "mallw.value=\"-1\";\r\n\tform.smallw.style.visibility=\"hidden\";\t\t\r\n\t}else{\r\n\tform.smallw.disabled=\"\";\r\n\tform.smallw.style.visibility=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\nfunction chk_smallh(n){\r\n\tif(n==0){\r\n\tform.smallh.disabled=\"true\";\r\n\tform.smallh.style.visibility=\"hidden\";\t\r\n\t}else if(n==-1){\r\n\tform.smallh.disabled=\"\";\r\n\tform.smallh.value=\"-1\";\r\n\tform.smallh.style.visibility=\"hidden\";\t\t\r\n\t}else{\r\n\tform.smallh.di";
echo "sabled=\"\";\r\n\tform.smallh.style.visibility=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\nfunction chk_ord(n){\r\n\tif(n==0){\r\n\tform.ord.disabled=\"true\";\r\n\tform.ord.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.ord.disabled=\"\";\r\n\tform.ord.style.visibility=\"visible\";\r\n\t}\r\n}\r\n\r\nfunction chk_cutword(n){\r\n\tif(n==0){\r\n\tform.cutword.disabled=\"true\";\r\n\tform.cutword.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.cutword.disabled=\"\";\r\n\tfo";
echo "rm.cutword.style.visibility=\"visible\";\r\n\t}\r\n}\r\n\r\n\r\nfunction chk_tempname(n){\r\n\tif(n==0){\r\n\tform.tempname.disabled=\"true\";\r\n\tform.tempname.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.tempname.disabled=\"\";\r\n\tform.tempname.style.visibility=\"visible\";\t\r\n\t}\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body class=\"Pop\" >\r\n\r\n";
$plustype = $_REQUEST['plustype'];
$pluslocat = $_REQUEST['pluslocat'];
$pluslable = $_REQUEST['pluslable'];
$step = $_REQUEST['step'];
$modno = $_REQUEST['modno'];
$menuid = $_REQUEST['menuid'];
if ( !isset( $modno ) || $modno == "" )
{
$modno = 0;
}
if ( $step == "setdef" )
{
$msql->query( "delete from {$tbl_plus} where menuid='{$menuid}' and pluslable='{$pluslable}' and pluslocat='{$pluslocat}' and plustype='{$plustype}' and modno='{$modno}'" );
echo "<script>parent.sok()</script>";
}
if ( $step == "modi" )
{
$cArr = explode( "|", $_POST['catid'] );
$showmenuid = plusvalsel( $cArr[0] );
$catid = plusvalsel( $cArr[1] );
$showmore = plusvalsel( $_POST['showmore'] );
$tempname = plusvalsel( $_POST['tempname'] );
$hangnums = plusvalsel( $_POST['hangnums'] );
$shownums = plusvalsel( $_POST['shownums'] );
$smallw = plusvalsel( $_POST['smallw'] );
$smallh = plusvalsel( $_POST['smallh'] );
$ord = plusvalsel( $_POST['ord'] );
$cutword = plusvalsel( $_POST['cutword'] );
$sc = plusvalsel( $_POST['sc'] );
$showtime = plusvalsel( $_POST['showtime'] );
$onlytj = plusvalsel( $_POST['onlytj'] );
$target = plusvalsel( $_POST['target'] );
$body = plusvalsel( $_POST['body'] );
$body = url2path( $body );
$msql->query( "select * from {$tbl_plus} where menuid='{$menuid}' and pluslable='{$pluslable}' and pluslocat='{$pluslocat}' and plustype='{$plustype}' and modno='{$modno}'" );
if ( $msql->next_record( ) )
{
$fsql->query( "update {$tbl_plus} set \r\n\t`showmore`='{$showmore}',\r\n\t`tempname`='{$tempname}',\r\n\t`hangnums`='{$hangnums}',\r\n\t`shownums`='{$shownums}',\r\n\t`smallw`='{$smallw}',\r\n\t`smallh`='{$smallh}',\r\n\t`ord`='{$ord}',\r\n\t`sc`='{$sc}',\r\n\t`showtime`='{$showtime}',\r\n\t`onlytj`='{$onlytj}',\r\n\t`cutword`='{$cutword}',\r\n\t`target`='{$target}',\r\n\t`body`='{$body}',\r\n\t`catid`='{$catid}',\r\n\t`showmenuid`='{$showmenuid}'\r\n\t\r\n\r\n\t where menuid='{$menuid}' and pluslable='{$pluslable}' and pluslocat='{$pluslocat}' and plustype='{$plustype}' and modno='{$modno}'" );
}
else
{
$fsql->query( "insert into {$tbl_plus} set \r\n\t`pluslable`='{$pluslable}',\r\n\t`pluslocat`='{$pluslocat}',\r\n\t`plustype`='{$plustype}',\r\n\t`menuid`='{$menuid}',\r\n\t`showmore`='{$showmore}',\r\n\t`tempname`='{$tempname}',\r\n\t`hangnums`='{$hangnums}',\r\n\t`shownums`='{$shownums}',\r\n\t`smallw`='{$smallw}',\r\n\t`smallh`='{$smallh}',\r\n\t`ord`='{$ord}',\r\n\t`sc`='{$sc}',\r\n\t`showtime`='{$showtime}',\r\n\t`onlytj`='{$onlytj}',\r\n\t`cutword`='{$cutword}',\r\n\t`target`='{$target}',\r\n\t`catid`='{$catid}',\r\n\t`showmenuid`='{$showmenuid}',\r\n\t`body`='{$body}',\r\n\t`modno`='{$modno}'\r\n\r\n\r\n\t" );
}
echo "<script>parent.sok()</script>";
}
echo "\r\n";
$msql->query( "select * from {$tbl_plus_set} where pluslable='{$pluslable}'" );
if ( $msql->next_record( ) )
{
$id = $msql->f( "id" );
$formtype = $msql->f( "formtype" );
$set_plusname = $msql->f( "plusname" );
$set_showmore = $msql->f( "showmore" );
$set_tempname = $msql->f( "tempname" );
$set_hangnums = $msql->f( "hangnums" );
$set_shownums = $msql->f( "shownums" );
$set_smallw = $msql->f( "smallw" );
$set_smallh = $msql->f( "smallh" );
$set_ord = $msql->f( "ord" );
$set_sc = $msql->f( "sc" );
$set_showtime = $msql->f( "showtime" );
$set_onlytj = $msql->f( "onlytj" );
$set_cutword = $msql->f( "cutword" );
$set_target = $msql->f( "target" );
$set_catid = $msql->f( "catid" );
$set_body = $msql->f( "body" );
}
switch ( $formtype )
{
case "news" :
$cattbl = $tbl_news_cat;
break;
case "cp" :
$cattbl = $tbl_cp_cat;
break;
case "down" :
$cattbl = $tbl_down_cat;
break;
}
$msql->query( "select * from {$tbl_plus} where menuid='{$menuid}' and pluslable='{$pluslable}' and pluslocat='{$pluslocat}' and plustype='{$plustype}' and modno='{$modno}'" );
if ( $msql->next_record( ) )
{
$id = $msql->f( "id" );
$showmore = $msql->f( "showmore" );
$tempname = $msql->f( "tempname" );
$hangnums = $msql->f( "hangnums" );
$shownums = $msql->f( "shownums" );
$smallw = $msql->f( "smallw" );
$smallh = $msql->f( "smallh" );
$ord = $msql->f( "ord" );
$sc = $msql->f( "sc" );
$showtime = $msql->f( "showtime" );
$onlytj = $msql->f( "onlytj" );
$cutword = $msql->f( "cutword" );
$target = $msql->f( "target" );
$catid = $msql->f( "catid" );
$showmenuid = $msql->f( "showmenuid" );
$body = $msql->f( "body" );
}
$showmore = plusvalsel( $showmore );
$tempname = plusvalsel( $tempname );
$hangnums = plusvalsel( $hangnums );
$shownums = plusvalsel( $shownums );
$smallw = plusvalsel( $smallw );
$smallh = plusvalsel( $smallh );
$ord = plusvalsel( $ord );
$cutword = plusvalsel( $cutword );
$c_showmore = plusvaldef( $showmore );
$c_tempname = plusvaldef( $tempname );
$c_hangnums = plusvaldef( $hangnums );
$c_shownums = plusvaldef( $shownums );
$c_smallw = plusvaldef( $smallw );
$c_smallh = plusvaldef( $smallh );
$c_ord = plusvaldef( $ord );
$c_cutword = plusvaldef( $cutword );
$c_body = plusvaldef( $body );
echo " \r\n<table width=\"270\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" height=\"2\">\r\n <tr> \r\n <td></td>\r\n </tr>\r\n </table>\r\n \r\n<form method=\"post\" action=\"plusset.php\" name=\"form\">\r\n <tr valign=\"top\"> <fieldset> <legend>";
echo $strPlusSelSetup;
echo "-";
echo $set_plusname;
echo "</legend> \r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">\r\n <tr align=\"right\">\r\n<td> \r\n <table width=\"270\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" height=\"10\">\r\n <tr> \r\n <td></td>\r\n </tr>\r\n </table>\r\n <table width=\"98%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n <tr ";
echo plustrdis( $set_hangnums );
echo "> \r\n <td width=\"70\" align=\"center\">";
echo $strPlushangnums;
echo "</td>\r\n <td width=\"200\" > \r\n ";
echo "<s";
echo "elect name=\"c_hangnums\" style='font-size:12px;' onChange=\"chk_hangnums(this.form.c_hangnums.options[this.form.c_hangnums.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $c_hangnums, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $c_hangnums, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n </select>\r\n <input ";
echo plusinputdis( $hangnums, "hangnums" );
echo " type=\"text\" name=\"hangnums\" size=\"4\" style='WIDTH: 133;font-size:12px;' maxlength=\"3\" value=\"";
echo $hangnums;
echo "\">\r\n </td>\r\n </tr>\r\n <tr ";
echo plustrdis( $set_shownums );
echo "> \r\n <td width=\"70\" align=\"center\">";
echo $strPlusshownums;
echo "</td>\r\n <td width=\"200\"> \r\n ";
echo "<s";
echo "elect name=\"c_shownums\" style='font-size:12px;' onChange=\"chk_shownums(this.form.c_shownums.options[this.form.c_shownums.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $c_shownums, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $c_shownums, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n </select>\r\n <input ";
echo plusinputdis( $shownums, "shownums" );
echo " type=\"text\" name=\"shownums\" size=\"4\" style='WIDTH: 133;font-size:12px;' maxlength=\"3\" value=\"";
echo $shownums;
echo "\">\r\n </td>\r\n </tr>\r\n <tr ";
echo plustrdis( $set_smallw );
echo "> \r\n <td width=\"70\" align=\"center\">";
echo $strPlussmallw;
echo "</td>\r\n <td width=\"200\"> \r\n ";
echo "<s";
echo "elect name=\"c_smallw\" style='font-size:12px;' onChange=\"chk_smallw(this.form.c_smallw.options[this.form.c_smallw.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $c_smallw, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n <option value=\"-1\" ";
echo seld( $c_smallw, "-1" );
echo ">";
echo $strAutoSet;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $c_smallw, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n </select>\r\n <input ";
echo plusinputdis( $smallw, "smallw" );
echo " type=\"text\" name=\"smallw\" size=\"4\" style='WIDTH: 133;font-size:12px;' maxlength=\"4\" value=\"";
echo $smallw;
echo "\">\r\n </td>\r\n </tr>\r\n <tr ";
echo plustrdis( $set_smallh );
echo "> \r\n <td width=\"70\" align=\"center\">";
echo $strPlussmallh;
echo "</td>\r\n <td width=\"200\"> \r\n ";
echo "<s";
echo "elect name=\"c_smallh\" style='font-size:12px;' onChange=\"chk_smallh(this.form.c_smallh.options[this.form.c_smallh.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $c_smallh, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n <option value=\"-1\" ";
echo seld( $c_smallh, "-1" );
echo ">";
echo $strAutoSet;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $c_smallh, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n </select>\r\n <input ";
echo plusinputdis( $smallh, "smallh" );
echo " type=\"text\" name=\"smallh\" size=\"4\" style='WIDTH: 133;font-size:12px;' maxlength=\"4\" value=\"";
echo $smallh;
echo "\">\r\n </td>\r\n </tr>\r\n <tr ";
echo plustrdis( $set_ord );
echo "> \r\n <td width=\"70\" align=\"center\">";
echo $strPlusord;
echo "</td>\r\n <td width=\"200\"> \r\n ";
echo "<s";
echo "elect name=\"c_ord\" style='font-size:12px;' onChange=\"chk_ord(this.form.c_ord.options[this.form.c_ord.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $c_ord, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $c_ord, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n </select>\r\n <input ";
echo plusinputdis( $ord, "ord" );
echo " type=\"text\" name=\"ord\" size=\"4\" style='WIDTH: 133;font-size:12px;' maxlength=\"18\" value=\"";
echo $ord;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -