📄 advs_page.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<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</head>\r\n\r\n<body class=\"NormalPage\">\r\n\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 $strAdvsPage;
echo "</td>\r\n <td > </td> \r\n <td width=\"100\" align=\"center\" >\r\n <input type=\"button\" name=\"Button\" value=\"";
echo $strAdvsAdd;
echo "\" class=button onClick=\"self.location='advs_page_modi.php?id=0'\" >\r\n </td>\r\n </tr>\r\n </table>\r\n";
$step = $_REQUEST['step'];
$id = $_REQUEST['id'];
if ( $step == "del" )
{
$msql->query( "select src from {$tbl_advs_page} where id='{$id}'" );
if ( $msql->next_record( ) )
{
$src = $msql->f( "src" );
}
if ( file_exists( "../".$src ) && $src != "" )
{
unlink( "../".$src );
}
$msql->query( "delete from {$tbl_advs_page} where id='{$id}'" );
}
echo " \r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\r\n <tr> \r\n <td class=title align=\"center\" height=\"30\" width=\"50\" >";
echo $strNumber;
echo "</td>\r\n <td class=title align=\"center\" width=\"50\" >";
echo $strAdvsPic;
echo "</td>\r\n <td class=title width=\"200\" >";
echo $strAdvsName;
echo "</td>\r\n <td class=title width=\"50\" >";
echo $strWidth;
echo "</td>\r\n <td class=title width=\"50\" >";
echo $strHeight;
echo "</td>\r\n <td class=title >";
echo $strUrl;
echo "</td>\r\n <td class=title width=\"130\" >";
echo $strAdvsPlus;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"55\" >";
echo $strModify;
echo "</td>\r\n <td class=title align=\"center\" height=\"30\" width=\"55\" >";
echo $strDelete;
echo "</td>\r\n </tr>\r\n ";
$msql->query( "select * from {$tbl_advs_page} order by id desc" );
while ( $msql->next_record( ) )
{
$id = $msql->f( "id" );
$title = $msql->f( "title" );
$width = $msql->f( "width" );
$height = $msql->f( "height" );
$type = $msql->f( "type" );
$url = $msql->f( "url" );
$src = $msql->f( "src" );
$target = $msql->f( "target" );
$plus = "{#Advs[".$id."][".$width."*".$height."]#}";
echo " \r\n <tr class=list> \r\n <td align=\"center\" height=\"28\" width=\"50\" > ";
echo $id;
echo " </td>\r\n <td align=\"center\" width=\"50\" >";
if ( $src == "" )
{
echo "<img src=images/noimage.gif >";
}
else
{
echo "<img src=images/image.gif onClick=\"StDv".$id.".style.visibility='visible'\">";
}
echo " \r\n <div id=\"StDv";
echo $id;
echo "\" style=\"position:absolute; width:100px; height:100px; z-index:1; visibility: hidden\"> \r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" height=\"100%\" bgcolor=\"#666666\" style='border:5px #ffffff solid;filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=3);'>\r\n <tr align=\"right\" bgcolor=\"#CCCCCC\"> \r\n <td height=\"10\" valign=\"t";
echo "op\"><img src=\"images/closewindow.gif\" width=\"12\" height=\"12\" onClick=\"StDv";
echo $id;
echo ".style.visibility='hidden'\"></td>\r\n </tr>\r\n <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n <td onClick=\"StDv";
echo $id;
echo ".style.visibility='hidden'\">";
if ( $src == "" )
{
echo "";
}
else
{
$showsrc = "../".$src;
echo showtypeimage( $showsrc, $type, "", "", 0 );
}
echo " </td>\r\n </tr>\r\n </table>\r\n </div>\r\n </td>\r\n <td width=\"200\" > ";
echo "{$title}";
echo "</td>\r\n <td width=\"50\" >";
echo $width;
echo " </td>\r\n <td width=\"50\" >";
echo $height;
echo " </td>\r\n <td >";
echo $url;
echo "</td>\r\n <td width=\"130\" >";
echo $plus;
echo " </td>\r\n <td align=\"center\" height=\"28\" width=\"55\" > <img src=\"images/toolbar_edit_up.gif\" width=\"22\" height=\"20\" style=\"cursor:hand\" onClick=\"window.location='advs_page_modi.php?id=";
echo $id;
echo "'\"> \r\n </td>\r\n <td align=\"center\" height=\"28\" width=\"55\" > <img src=\"images/toolbar_delete_up.gif\" width=\"22\" height=\"20\" style=\"cursor:hand\" onClick=\"window.location='advs_page.php?step=del&id=";
echo $id;
echo "'\"> \r\n </td>\r\n </tr>\r\n ";
}
echo " \r\n</table>\r\n \r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -