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

📄 index.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/conn.php" );
include_once( "inc/auth.php" );
$PAGE_SIZE = 10;
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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/menu/picture.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 图片浏览</span><br>\r\n    </td>\r\n    </tr>\r\n</table>\r\n\r\n<br>\r\n\r\n";
$query = "SELECT * from PICTURE where (TO_DEPT_ID='ALL_DEPT' or find_in_set('".$LOGIN_DEPT_ID."',TO_DEPT_ID) or find_in_set('{$LOGIN_USER_PRIV}',TO_PRIV_ID) or find_in_set('{$LOGIN_USER_ID}',TO_USER_ID))";
$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_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=\"500\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\">\r\n     <td nowrap align=\"center\">图片目录标题</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 align=\"center\"><a href=\"picture.php?PIC_ID=";
	echo $PIC_ID;
	echo "\"><img src=\"/images/disk_share.gif\" border=\"0\"><br>";
	echo $PIC_NAME;
	echo "</a></td>\r\n </tr>\r\n";
}
if ( 0 < $PIC_COUNT )
{
	echo "</table>\r\n";
}
else
{
	message( "", "无图片目录" );
}
echo "\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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