⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pset.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 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 );
$step = $_REQUEST['step'];
$coltype = $_REQUEST['plustype'];
$plustype = $_REQUEST['plustype'];
$pagename = $_REQUEST['pluslocat'];
$pluslocat = $_REQUEST['pluslocat'];
$tempfile = $_REQUEST['tempfile'];
$menuid = $_REQUEST['menuid'];
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_pagetitle(n){\r\n\tif(n==0){\r\n\tform.pagetitle.disabled=\"true\";\r\n\r\n\tform.pagetitle.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.pagetitle.disabled=\"\";\r\n\tform.pagetitle.style.visibility=\"visible\";\t\t\r\n\tform.pagetitle.value=\"\";\r\n\t}\r\n}\r\nfunction chk_metakey(n){\r\n\tif(n==0){\r\n\tform.metakey.disabled=\"true\";\r\n\r\n\tform.metakey.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.metakey.disabled=\"\"";
echo ";\r\n\tform.metakey.style.visibility=\"visible\";\t\r\n\tform.metakey.value=\"\";\t\r\n\t}\r\n}\r\nfunction chk_metacon(n){\r\n\tif(n==0){\r\n\tform.metacon.disabled=\"true\";\r\n\r\n\tform.metacon.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tform.metacon.disabled=\"\";\r\n\tform.metacon.style.visibility=\"visible\";\t\r\n\tform.metacon.value=\"\";\t\r\n\t}\r\n}\r\n\r\n</script>\r\n\r\n</head>\r\n<body  class=\"NormalPage\"  text=\"#000000\" link=\"#000000\" vlink=\"#00000";
echo "0\" alink=\"#000000\" bgcolor=\"#FFFFFF\" >\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"12\" >\r\n  <tr> \r\n    <td ></td>\r\n  </tr>\r\n</table>\r\n<table width=98% border=0 cellspacing=0 cellpadding=0 align=center height=22>\r\n  <tr> \r\n    <td  align=center height=22 width=10 valign=top>&nbsp;</td>\r\n    <td  align=left height=22 width=3 bgcolor=\"#f0f0f";
echo "0\" valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 bgcolor=\"#f0f0f0\"><a href='plusedit.php?menuid=";
echo $menuid;
echo "&plustype=";
echo $plustype;
echo "&pluslocat=";
echo $pluslocat;
echo "&tempfile=";
echo $tempfile;
echo "'  style=\"color:#333333\">";
echo $strPlusMod;
echo "</a></td>\r\n    <td  align=center height=22 width=1  bgcolor=\"#f0f0f0\" valign=\"top\"><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 bgcolor=\"#0068c3\" valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 bgcolor=\"#0068c3\"><a href='pset.php?menuid=";
echo $menuid;
echo "&plustype=";
echo $plustype;
echo "&pluslocat=";
echo $pluslocat;
echo "&tempfile=";
echo $tempfile;
echo "' style=\"color:#ffffff\">";
echo $strPsetMod;
echo "</a></td>\r\n    <td  align=center height=22 width=1  bgcolor=\"#0068c3\"><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=right height=22>&nbsp; </td>\r\n  </tr>\r\n</table>\r\n<table border=\"0\" cellspacing=\"1\" cellpadding=\"5\" height=\"100%\" align=\"center\" width=\"98%\" style=\"border-top:5px #0068c3 solid\" bgcolor=\"#0068c3\">\r\n  <tr bgcolor=\"#FFFFFF\"> \r\n    <td valign=\"top\">\r\n";
if ( $step == "modify" )
{
	$pagetitle = plusvalsel( $_POST['pagetitle'] );
	$metakey = plusvalsel( $_POST['metakey'] );
	$metacon = plusvalsel( $_POST['metacon'] );
	$tempfile = $_POST['tempfile'];
	$msql->query( "update {$tbl_pageset} set \r\n\tpagetitle='{$pagetitle}',\r\n\tmetakey='{$metakey}',\r\n\tmetacon='{$metacon}',\r\n\ttempfile='{$tempfile}'\r\n\twhere pagename='{$pagename}' and coltype='{$coltype}' and menuid='{$menuid}'" );
	sayok( $strPageSetNotice, "pset.php?menuid={$menuid}&plustype=".$plustype."&tempfile=".$tempfile."&pluslocat=".$pluslocat, "" );
}
$msql->query( "select * from {$tbl_pageset} where pagename='{$pagename}' and coltype='{$coltype}' and menuid='{$menuid}'" );
if ( $msql->next_record( ) )
{
	$pagetitle = $msql->f( "pagetitle" );
	$metakey = $msql->f( "metakey" );
	$metacon = $msql->f( "metacon" );
	$tempfile = $msql->f( "tempfile" );
	$name = $msql->f( "name" );
}
$c_pagetitle = plusvaldef( $pagetitle );
$c_metakey = plusvaldef( $metakey );
$c_metacon = plusvaldef( $metacon );
echo " \r\n<form method=\"post\" action=\"pset.php\" name=\"form\">\r\n        <br>\r\n        <br>\r\n        <table width=\"600\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\r\n          <tr align=\"right\"> \r\n            <td>";
echo $strPset;
echo " - [";
echo $name;
echo "]</td>\r\n          </tr>\r\n        </table>\r\n        <table width=\"600\" border=\"0\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\" style=\"border:1px #cccccc solid\" bgcolor=\"#f0f0f0\">\r\n          <tr> \r\n            <td width=\"150\"  align=\"right\"> \r\n              <div align=\"right\">";
echo $strPageTitle;
echo "</div>\r\n            </td>\r\n            <td height=\"20\"  > <font color=\"#666666\"> \r\n              ";
echo "<s";
echo "elect name=\"c_pagetitle\"  style='font-size:12px;' onChange=\"chk_pagetitle(this.form.c_pagetitle.options[this.form.c_pagetitle.selectedIndex].value)\">\r\n                <option value=\"0\" ";
echo seld( $c_pagetitle, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n                <option value=\"1\" ";
echo seld( $c_pagetitle, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n              </select>\r\n              <input ";
echo plusinputdis( $pagetitle, "pagetitle" );
echo " name=\"pagetitle\" type=\"text\" id=\"iowner\" value=\"";
echo $pagetitle;
echo "\" size=\"38\" class=input>\r\n              </font></td>\r\n          </tr>\r\n          <tr> \r\n            <td width=\"150\"  align=\"right\"> \r\n              <div align=\"right\">";
echo $strMetaKey;
echo "</div>\r\n            </td>\r\n            <td height=\"20\"  colspan=\"3\"> <font color=\"#666666\"> \r\n              ";
echo "<s";
echo "elect name=\"c_metakey\"  style='font-size:12px;' onChange=\"chk_metakey(this.form.c_metakey.options[this.form.c_metakey.selectedIndex].value)\">\r\n                <option value=\"0\" ";
echo seld( $c_metakey, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n                <option value=\"1\" ";
echo seld( $c_metakey, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n              </select>\r\n              <input ";
echo plusinputdis( $metakey, "metakey" );
echo " name=\"metakey\" type=\"text\" value=\"";
echo $metakey;
echo "\" size=\"38\" class=input>\r\n              </font></td>\r\n          </tr>\r\n          <tr> \r\n            <td width=\"150\"  align=\"right\">";
echo $strMetaCon;
echo "</td>\r\n            <td height=\"20\"  ><font color=\"#666666\"> \r\n              ";
echo "<s";
echo "elect name=\"c_metacon\"  style='font-size:12px;' onChange=\"chk_metacon(this.form.c_metacon.options[this.form.c_metacon.selectedIndex].value)\">\r\n                <option value=\"0\" ";
echo seld( $c_metacon, "0" );
echo ">";
echo $strDefault;
echo "</option>\r\n                <option value=\"1\" ";
echo seld( $c_metacon, "1" );
echo ">";
echo $strDiySet;
echo "</option>\r\n              </select>\r\n              <input ";
echo plusinputdis( $metacon, "metacon" );
echo " name=\"metacon\" type=\"text\" value=\"";
echo $metacon;
echo "\" size=\"38\" class=input>\r\n              </font></td>\r\n          </tr>\r\n          <tr> \r\n            <td width=\"150\"  align=\"right\">";
echo $strTempFile;
echo "</td>\r\n            <td height=\"20\"  ><font color=\"#666666\"> \r\n              <input name=\"tempfile\" type=\"text\"  value=\"";
echo $tempfile;
echo "\" style=\"width:306px\" class=input>\r\n              </font></td>\r\n          </tr>\r\n          <tr> \r\n            <td align=\"center\" >&nbsp; </td>\r\n            <td >\r\n              <input type=\"hidden\" name=\"menuid\" value=\"";
echo $menuid;
echo "\">\r\n              <input type=\"hidden\" name=\"pagename\" value=\"";
echo $pagename;
echo "\">\r\n              <input type=\"hidden\" name=\"coltype\" value=\"";
echo $coltype;
echo "\">\r\n              <input type=\"hidden\" name=\"step\" value=\"modify\">\r\n              <input type=\"hidden\" name=\"plustype\" value=\"";
echo $plustype;
echo "\">\r\n              <input type=\"hidden\" name=\"pluslocat\" value=\"";
echo $pluslocat;
echo "\">\r\n              <input name=\"cc2\" type=\"submit\" id=\"cc\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n            </td>\r\n            \r\n          </tr>\r\n        </table>\r\n</form>\r\n      </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 + -