📄 advs_pop.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( 25 );
echo "<html>\r\n\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 \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\r\n var allword = letters + \"~!@#\$%^&*()+|/?;:'[{]}`\"\r\n var errletter = \"\"\r\n\r\n\r\n \r\n\r\n if(theform.title.value.length < 1)\r\n {\r\n alert(\"";
echo $strAdvsPopNotice1;
echo "\")\r\n theform.title.focus()\r\n return false\r\n } \r\n\r\n\r\n return true\r\n} \r\n</script></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 $strAdvsPop;
echo "</td>\r\n <td > </td> <td width=\"100\" > </td>\r\n </tr>\r\n </table>\r\n";
$step = $_REQUEST['step'];
$menuid = $_REQUEST['menuid'];
if ( !isset( $menuid ) || $menuid == "" )
{
$menuid = "1";
}
if ( $step == "mod" )
{
$id = $_POST['id'];
$title = $_POST['title'];
$body = $_POST['body'];
$ifpop = $_POST['ifpop'];
$popwidth = $_POST['popwidth'];
$popheight = $_POST['popheight'];
$popleft = $_POST['popleft'];
$poptop = $_POST['poptop'];
$poptoolbar = $_POST['poptoolbar'];
$popmenubar = $_POST['popmenubar'];
$popstatus = $_POST['popstatus'];
$poplocation = $_POST['poplocation'];
$popscrollbars = $_POST['popscrollbars'];
$popresizable = $_POST['popresizable'];
if ( $title == "" )
{
err( $strAdvsPopNotice1, "", "" );
}
if ( 65000 < strlen( $body ) )
{
err( $strAdvsPopNotice2, "", "" );
}
$title = htmlspecialchars( $title );
$body = url2path( $body );
$fsql->query( "update {$tbl_pop} set \r\n\ttitle='{$title}',\r\n\tbody='{$body}',\r\n\tifpop='{$ifpop}',\r\n\tpopwidth='{$popwidth}',\r\n\tpopheight='{$popheight}',\r\n\tpopleft='{$popleft}',\r\n\tpoptop='{$poptop}',\r\n\tpoptoolbar='{$poptoolbar}',\r\n\tpopmenubar='{$popmenubar}',\r\n\tpopstatus='{$popstatus}',\r\n\tpoplocation='{$poplocation}',\r\n\tpopscrollbars='{$popscrollbars}',\r\n\tpopresizable='{$popresizable}'\r\n\twhere menuid='{$menuid}'\r\n\r\n\t" );
sayok( $strAdvsPopNotice3, "advs_pop.php?menuid=".$menuid, "" );
}
echo " ";
$msql->query( "select * from {$tbl_pop} where menuid='{$menuid}'" );
if ( $msql->next_record( ) )
{
$ifpop = $msql->f( "ifpop" );
$title = $msql->f( "title" );
$oldbody = $msql->f( "body" );
$popwidth = $msql->f( "popwidth" );
$popheight = $msql->f( "popheight" );
$popleft = $msql->f( "popleft" );
$poptop = $msql->f( "poptop" );
$poptoolbar = $msql->f( "poptoolbar" );
$popmenubar = $msql->f( "popmenubar" );
$popstatus = $msql->f( "popstatus" );
$poplocation = $msql->f( "poplocation" );
$popscrollbars = $msql->f( "popscrollbars" );
$popresizable = $msql->f( "popresizable" );
$oldbody = htmlspecialchars( $oldbody );
}
else
{
$ifpop = "0";
$title = "POP";
$body = "";
$popwidth = "400";
$popheight = "300";
$popleft = "0";
$poptop = "0";
$poptoolbar = "0";
$popmenubar = "0";
$popstatus = "0";
$poplocation = "0";
$popscrollbars = "auto";
$popresizable = "0";
$oldbody = $body;
$fsql->query( "insert into {$tbl_pop} set \r\n\t\ttitle='{$title}',\r\n\t\tbody='{$body}',\r\n\t\tifpop='{$ifpop}',\r\n\t\tpopwidth='{$popwidth}',\r\n\t\tpopheight='{$popheight}',\r\n\t\tpopleft='{$popleft}',\r\n\t\tpoptop='{$poptop}',\r\n\t\tpoptoolbar='{$poptoolbar}',\r\n\t\tpopmenubar='{$popmenubar}',\r\n\t\tpopstatus='{$popstatus}',\r\n\t\tpoplocation='{$poplocation}',\r\n\t\tpopscrollbars='{$popscrollbars}',\r\n\t\tpopresizable='{$popresizable}',\r\n\t\tmenuid='{$menuid}'\r\n\r\n\t\t" );
}
echo "\r\n <table id=\"Hedit\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n <tr align=\"center\" valign=\"top\"> \r\n <td height=\"10\">\r\n <table width=\"100%\" cellpadding=\"0\" align=\"center\" style=\"border-collapse: collapse\" border=\"0\" cellspacing=\"0\">\r\n <form name=\"form\" action=\"advs_pop.php\" method=\"post\" enctype=\"multipart/form-data\" onSubmit=\"return";
echo " checkform(this)\">\r\n <tr> \r\n <td height=\"18\" colspan=\"2\"> \r\n <table width=\"100%\" cellpadding=\"0\" align=\"center\" style=\"border-collapse: collapse\" border=\"0\" cellspacing=\"1\">\r\n \r\n \r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsColtype;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\">";
echo selcoltype( );
echo " \r\n </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopIfpop;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"ifpop\">\r\n <option value=\"0\" ";
echo seld( $ifpop, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $ifpop, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopWidth;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n <input type=\"text\" class=input name=\"popwidth\" size=\"5\" value=\"";
echo "{$popwidth}";
echo "\">\r\n PX </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopHeight;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n <input type=\"text\" class=input name=\"popheight\" size=\"5\" value=\"";
echo "{$popheight}";
echo "\">\r\n PX </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopLeft;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n <input type=\"text\" class=input name=\"popleft\" size=\"5\" value=\"";
echo "{$popleft}";
echo "\">\r\n PX </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopTop;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n <input type=\"text\" name=\"poptop\" class=input size=\"5\" value=\"";
echo "{$poptop}";
echo "\">\r\n PX </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopToolBar;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"poptoolbar\">\r\n <option value=\"1\" ";
echo seld( $poptoolbar, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $poptoolbar, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopMenuBar;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"popmenubar\">\r\n <option value=\"1\" ";
echo seld( $popmenubar, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $popmenubar, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopLocatBar;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"poplocation\">\r\n <option value=\"1\" ";
echo seld( $poplocation, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $poplocation, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopStautsBar;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"popstatus\">\r\n <option value=\"1\" ";
echo seld( $popstatus, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $popstatus, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopReSize;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"popresizable\">\r\n <option value=\"1\" ";
echo seld( $popresizable, "1" );
echo ">";
echo $strAllow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $popresizable, "0" );
echo ">";
echo $strDenny;
echo "</option>\r\n </select>\r\n </td>\r\n <td height=\"30\" width=\"120\" class=title align=\"center\">";
echo $strAdvsPopScroll;
echo "</td>\r\n <td height=\"30\" class=con width=\"180\"> \r\n ";
echo "<s";
echo "elect name=\"popscrollbars\">\r\n <option value=\"auto\" ";
echo seld( $popscrollbars, "auto" );
echo ">";
echo $strAuto;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $popscrollbars, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $popscrollbars, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"30\" width=\"120\" align=\"center\" class=\"title\">";
echo $strAdvsPopName;
echo "</td>\r\n <td height=\"30\" class=con colspan=\"3\">\r\n <input type=\"text\" class=input name=\"title\" size=\"50\" value=\"";
echo "{$title}";
echo "\">\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td height=\"18\" colspan=\"2\"> \r\n <input name=body type=hidden>\r\n ";
include( "edithtml/index1.php" );
echo " </td>\r\n </tr>\r\n <tr> \r\n <td align=\"center\" colspan=\"3\" height=\"40\" class=title> \r\n <input type=\"hidden\" name=\"menuid\" value=\"";
echo $menuid;
echo "\">\r\n <input type=\"hidden\" name=\"step\" value=\"mod\">\r\n <input type=\"hidden\" name=\"id\" value=\"";
echo $id;
echo "\">\r\n <input type=\"submit\" name=\"submit\" onClick=\"save();\" value=\"";
echo $strModify;
echo "\" class=button>\r\n </td>\r\n </tr>\r\n </form>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -