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

📄 index.php

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

include_once( "inc/auth.php" );
include_once( "inc/conn.php" );
echo "\r\n<html>\r\n<head>\r\n<title>图片管理设置</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript>\r\nfunction delete_disk(PIC_ID)\r\n{\r\n msg='确认要取消该图片目录么?这不会删除该路径下的文件。';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?PIC_ID=\"+PIC_ID;\r\n  window.location=URL;\r\n }\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\"  cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td ><img src=\"/images/manage/work_plan_new.gif\" a";
echo "lign=\"absmiddle\"> 新建图片目录</td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n    <td> <a href=\"new\"><img src=\"../../../images/button/newpicfolder.gif\" width=\"105\" height=\"20\" border=\"0\"></a></td>\r\n  </tr>\r\n</table>\r\n<br>\r\n";
$connection = openconnection( );
$querys = "SELECT * from PICTURE";
$cursors = exequery( $connection, $querys );
while ( $rows = mysql_fetch_array( $cursors ) )
{
	$paths = $rows['PIC_PATH'];
	if ( is_dir( $paths ) )
	{
	}
	else
	{
		echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td nowrap style=\"color:#FF0000\">红色字体的目录路径不存在或者不正确!</td>\r\n  </tr>\r\n</table>\r\n";
		break;
	}
}
echo "<!--<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n   <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\r\n-->\r\n";
$query = "SELECT * from PICTURE";
$cursor = exequery( $connection, $query );
$PIC_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$PIC_COUNT;
	$PIC_ID = $ROW['PIC_ID'];
	$PIC_NAME = $ROW['PIC_NAME'];
	$PIC_PATH = $ROW['PIC_PATH'];
	$PIC_NAME = str_replace( "<", "&lt", $PIC_NAME );
	$PIC_NAME = str_replace( ">", "&gt", $PIC_NAME );
	$PIC_NAME = stripslashes( $PIC_NAME );
	if ( $PIC_COUNT == 1 )
	{
		echo "\r\n    <table border=\"0\" cellspacing=\"1\" width=\"100%\"  cellpadding=\"3\">\r\n      <tr class=\"TableHeader\">\r\n        <td nowrap >目录名称</td>\r\n        <td nowrap >目录路径</td>\r\n        <td nowrap >操作</td>\r\n     </tr>\r\n";
	}
	if ( $PIC_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td nowrap >";
	echo $PIC_NAME;
	echo "</td>\r\n      <td nowrap>";
	if ( is_dir( $PIC_PATH ) )
	{
		echo $PIC_PATH;
	}
	else
	{
		echo "<span style=\"color:#FF0000\">".$PIC_PATH."</span>";
	}
	echo "</td>\r\n      <td nowrap >\r\n          <a href=\"edit.php?PIC_ID=";
	echo $PIC_ID;
	echo "\"> 编辑</a>&nbsp;&nbsp;\r\n          <a href=\"javascript:delete_disk(";
	echo $PIC_ID;
	echo ");\"> 删除</a>&nbsp;&nbsp;\r\n      </td>\r\n    </tr>\r\n";
}
if ( $PIC_COUNT == 0 )
{
	message( "", "尚无目录" );
	exit( );
}
else
{
	echo "</table>\r\n";
}
echo "\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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