📄 col.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 );
$step = $_REQUEST['step'];
$pub = $_REQUEST['pub'];
$skin = $_REQUEST['skin'];
$pid = $_REQUEST['pid'];
$menuid = $_REQUEST['menuid'];
$coltype = $_REQUEST['coltype'];
$menu = $_REQUEST['menu'];
$fold = $_REQUEST['fold'];
$xuhao = $_REQUEST['xuhao'];
$target = $_REQUEST['target'];
$ifshow = $_REQUEST['ifshow'];
$openindex = $_REQUEST['openindex'];
$secure = $_REQUEST['secure'];
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\nfunction cm(menuid,coltype){\r\nqus=confirm(\"";
echo $strColNotice21;
echo "\")\r\nif(qus!=0){\r\nwindow.location='col.php?step=del&pub=";
echo $pub;
echo "&pid=";
echo $pid;
echo "&menuid='+menuid+'&coltype='+coltype;\r\n}\r\n}\r\n\r\nfunction Dpop(url,w,h){\r\n\tres = showModalDialog(url, null, 'dialogWidth: '+w+'px; dialogHeight: '+h+'px; center: yes; resizable: no; scroll: no; status: no;');\r\n \tif(res==\"ok\"){window.location.reload();}\r\n \r\n}\r\n\r\n</SCRIPT>\r\n</head>\r\n\r\n<body class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"imag";
echo "es/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"110\" > ";
echo $strColPsel;
echo "</td>\r\n <form name=forms>\r\n <td > ";
if ( !isset( $pid ) || $pid == "" )
{
$pid = 0;
}
if ( !isset( $pub ) || $pub == "" )
{
$pub = "menu";
}
echo "<select name='MenuLocation' onChange='window.location=this.form.MenuLocation.options[this.form.MenuLocation.selectedIndex].value'>";
echo "<option value='".$PHP_SELF."?pid=0&pub=menu' ".seld( $pub, "menu" ).">".$strColMainMenu."</option>";
echo "<option value='".$PHP_SELF."?pid=0&pub=btmenu' ".seld( $pub, "btmenu" ).">".$strColBtMenu."</option>";
$fsql->query( "select * from {$tbl_menu} where pub='menu' and pid='0' and coltype!='url' order by xuhao" );
while ( $fsql->next_record( ) )
{
$topmenu = $fsql->f( "menu" );
$topmenuid = $fsql->f( "menuid" );
if ( $topmenuid == $pid )
{
echo "<option value='".$PHP_SELF."?pid=".$topmenuid."&pub=smenu' selected>".$strColSubMenu." |".$strColToMain."|- ".$topmenu."</option>";
}
else
{
echo "<option value='".$PHP_SELF."?pid=".$topmenuid."&pub=smenu' >".$strColSubMenu." |".$strColToMain."|- ".$topmenu."</option>";
}
}
echo "</select>";
echo " </td>\r\n </form>\r\n <td width=\"100\" align=\"center\" > \r\n <input type=\"button\" class=button name=\"Button\" value=\"";
echo $strColAdd;
echo "\" onClick=\"self.location='coladd.php'\">\r\n </td>\r\n </tr>\r\n </table>\r\n";
if ( $step == "del" )
{
needauth( 12 );
coldel( $menuid );
}
if ( $step == "changelocate" )
{
changelocate( $menuid, $pid, $pub );
}
if ( $step == "mod" )
{
menumodify( );
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\r\n <tr > \r\n <td class=title height=\"30\" >";
echo $strColLocat;
echo "</td>\r\n <td class=title width=\"80\" height=\"30\" >";
echo $strColMenuName;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"80\" >";
echo $strColType;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"70\" >";
echo $strColOpen;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"70\" >";
echo $strColShow;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"60\" >";
echo $strColSkin;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"38\" >";
echo $strSecure;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"38\" >";
echo $strXuhao;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"60\" >";
echo $strColIndexPage;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"38\" >";
echo $strModify;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"50\" >";
echo $strColProp;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"38\" >";
echo $strDelete;
echo "</td>\r\n </tr>\r\n ";
$msql->query( "select * from {$tbl_menu} where pub='{$pub}' and pid='{$pid}' order by xuhao" );
while ( $msql->next_record( ) )
{
$menuid = $msql->f( "menuid" );
$pid = $msql->f( "pid" );
$menu = $msql->f( "menu" );
$coltype = $msql->f( "coltype" );
$fold = $msql->f( "fold" );
$pub = $msql->f( "pub" );
$xuhao = $msql->f( "xuhao" );
$target = $msql->f( "target" );
$ifshow = $msql->f( "ifshow" );
$skin = $msql->f( "skin" );
$moveable = $msql->f( "moveable" );
$openindex = $msql->f( "openindex" );
$secure = $msql->f( "secure" );
if ( $coltype == "url" || $coltype == "member" )
{
$secureDis = "none";
}
else
{
$secureDis = "block";
}
if ( $coltype == "url" || $coltype == "form" || $coltype == "comment" || $coltype == "index" || $coltype == "member" || $coltype == "page" )
{
$IndexDis = " disabled ";
}
else
{
$IndexDis = " ";
}
if ( $fold == "" )
{
$fold = "---";
}
echo " \r\n <form method=\"get\" action=\"col.php\" name=colset>\r\n <tr class=list> \r\n <td height=\"28\" > ";
menulocation( $menuid, $pid, $pub );
echo "</td>\r\n <td width=\"80\" height=\"28\" > \r\n <input type=\"text\" name=\"menu\" size=\"18\" value=\"";
echo "{$menu}";
echo "\" class=input>\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"80\" > ";
echo coltype2colname( $coltype );
echo " \r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"70\" > \r\n ";
echo "<s";
echo "elect name=\"target\" >\r\n <option value=\"_self\" ";
echo seld( $target, "_self" );
echo ">";
echo $strSelf;
echo "</option>\r\n <option value=\"_blank\" ";
echo seld( $target, "_blank" );
echo ">";
echo $strBlank;
echo "</option>\r\n </select>\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"70\" > \r\n ";
echo "<s";
echo "elect name=\"ifshow\">\r\n <option value=\"1\" ";
echo seld( $ifshow, "1" );
echo ">";
echo $strShow;
echo "</option>\r\n <option value=\"0\" ";
echo seld( $ifshow, "0" );
echo ">";
echo $strHidden;
echo "</option>\r\n </select>\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"60\" > \r\n ";
echo "<s";
echo "elect name=\"skin\">\r\n \r\n ";
echo readskins( $skin );
echo " \r\n </select>\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"38\" > \r\n <input type=\"text\" name=\"secure\" value=\"";
echo $secure;
echo "\" class=input maxlength=\"1\" style=\"width:32px;display:";
echo $secureDis;
echo "\">\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"38\" > \r\n <input type=\"text\" name=\"xuhao\" style=\"width:32px\" value=\"";
echo "{$xuhao}";
echo "\" class=input>\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"60\" > \r\n <input type=\"checkbox\" name=\"openindex\" value=\"1\" ";
echo checked( $openindex, "1" );
echo " ";
echo $IndexDis;
echo ">\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"38\" > \r\n <input type=\"hidden\" name=\"pub\" value=\"";
echo "{$pub}";
echo "\">\r\n <input type=\"hidden\" name=\"pid\" value=\"";
echo "{$pid}";
echo "\">\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=\"coltype\" value=\"";
echo "{$coltype}";
echo "\">\r\n <input type=\"image\" border=\"0\" name=\"imageField\" src=\"images/toolbar_modi_up.gif\" width=\"22\" height=\"20\">\r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"50\" > ";
if ( $coltype == "cp" || $coltype == "down" )
{
echo " <img src=\"images/listup.gif\" border=0 style=\"cursor:hand;display:";
echo $listdis;
echo "\" onClick=\"Dpop('prop_frame.php?menuid=";
echo $menuid;
echo "&catid=0&pid=0','500','520')\" width=\"22\" height=\"20\" > \r\n ";
}
else
{
echo " <img src=\"images/listdown.gif\" border=0 width=\"22\" height=\"20\" > ";
}
echo " </td>\r\n <td align=\"center\" height=\"28\" width=\"38\" > ";
if ( $moveable != "1" )
{
echo "-";
}
else
{
echo " <img src=\"images/toolbar_delete_up.gif\" width=\"22\" height=\"20\" style=\"cursor:hand\" onClick=\"cm('";
echo $menuid;
echo "','";
echo $coltype;
echo "')\"> \r\n ";
}
echo "</td>\r\n </tr>\r\n </form>\r\n ";
}
echo " \r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"10\" background=\"images/mu1.jpg\">\r\n <tr> \r\n <td align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n </tr>\r\n</table>\r\n<p> </p>\r\n </body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -