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

📄 div_del.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

echo "<html>\r\n<head>\r\n</script>\r\n";
echo "<s";
echo "tyle type=\"text/css\">\r\n<!--\r\n.STYLE1 {\r\n\tfont-size: 18px;\r\n\tcolor: #FF0000;\r\n\tfont-weight: bold;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<body >\r\n";
include_once( "inc/conn.php" );
$tempid = $_REQUEST['tempid'];
$id = $_REQUEST['div_id'];
echo "<!--";
echo "<s";
echo "pan class=\"STYLE1\">您确定删除此对象码?</span>\r\n<form name=\"form1\" method=\"post\" action=\"del.php?div_id=";
echo $_GET['div_id'];
echo "\">\r\n  <input type=\"hidden\" name=\"check\" value=\"1\" id=\"check\" />\r\n \r\n  <input type=\"submit\" name=\"Submit\" value=\"确  定\"> \r\n  <input name=\"button\" type=\"button\" onClick=\"window.close()\" value=\"取 消\">\r\n</form>\r\n-->\r\n";
$sql1 = "SELECT `TAGDIV` ,`IMGURL` FROM `index_div` WHERE DIV_ID={$id};";
$result1 = exequery( $connection, $sql1 );
$row1 = mysql_fetch_row( $result1 );
$imgurl = $row1[1];
$http_url = $_SERVER['DOCUMENT_ROOT'];
$ab_url = $http_url.$imgurl;
$sql2 = "SELECT COUNT(*) FROM `index_div` WHERE IMGURL="."'{$imgurl}'";
$result2 = exequery( $connection, $sql2 );
$row2 = mysql_fetch_row( $result2 );
$img_count = $row2[0];
if ( $tempid != 11 && $img_count <= 1 )
{
}
if ( $row1[0] != 1 )
{
	$sql = "DELETE  FROM `index_div` WHERE DIV_ID={$id} and tagdiv!=1;";
	$result = exequery( $connection, $sql );
}
else
{
	echo "<script>alert('对不起!此为不可删除对象!'); </script>";
}
echo " \r\n";
echo "<s";
echo "cript>\r\nwindow.location.href=\"login_index.php?tempid=\"+";
echo $tempid;
echo ";\r\n</script>\r\n</body>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -