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

📄 user_purview.php

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

header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
include_once( "inc/auth.php" );
include_once( "inc/document_function.php" );
$SORT_ID = $_REQUEST['SORT_ID'];
$sql = "\r\n\t\tSELECT SORT_TYPE FROM file_sort WHERE SORT_ID = {$SORT_ID}\r\n\t\t";
$cursor1 = exequery( $connection, $sql );
$ROW1 = mysql_fetch_array( $cursor1 );
$SORT_TYPE = $ROW1['SORT_TYPE'];
$USER_COUNT = 0;
echo "<s";
echo "tyle>\r\n.tdstyle{\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-color: #CCCCFF;\r\n}\r\n</style>\r\n";
echo "<S";
echo "CRIPT language=javascript src=\"/inc/document_new.js\"></SCRIPT>\r\n<body class=\"bodycolor\" topmargin=\"2\">\r\n<table border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"1\" align=\"center\" class=\"small\">\r\n\t  <tr>\r\n\t  <td class=\"tablehead2\">\r\n\t  <BUTTON class=\"btn\" id='savebutton' onClick=\"sendDataToSQL('USER','";
echo $SORT_ID;
echo "');\" title=\"保存设置\"><table><tr valign=\"top\" ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\" id='saveimg'></td> <td>";
echo "<s";
echo "pan id=\"showallid\">确定</span></td></tr></table></BUTTON>\r\n\t  </td>\r\n\t </tr>\r\n </table>\r\n<table border=\"1px\" cellspacing=\"0\" width=\"100%\" class=\"small\"  cellpadding=\"3\" bordercolor=\"#FFFFFF\">\r\n";
if ( $SORT_TYPE == 1 )
{
	$query = "\r\n\t\tSELECT USER_ID,USER_NAME FROM user\r\n\t\t";
	$cursor = exequery( $connection, $query );
	while ( $ROW = mysql_fetch_array( $cursor ) )
	{
		++$USER_COUNT;
		$USER_NAME = $ROW['USER_NAME'];
		$USER_ID = $ROW['USER_ID'];
		selectshow( $USER_ID, $USER_NAME, "USER", $SORT_ID );
	}
}
else
{
	$query = "\r\n\t\tSELECT USER_ID FROM file_purview WHERE SORT_ID = {$SORT_ID}\r\n\t\t";
	$cursor = exequery( $connection, $query );
	$ROW = mysql_fetch_array( $cursor );
	$USER_DATA_ID = $ROW['USER_ID'];
	$tokenarr = tokenizequoted( $USER_DATA_ID );
	while ( list( , $USER_ID ) = each( $tokenarr ) )
	{
		++$USER_COUNT;
		$query = "\r\n\t\t\tSELECT USER_NAME FROM user WHERE USER_ID = '{$USER_ID}'\r\n\t\t\t";
		$cursor = exequery( $connection, $query );
		$ROW = mysql_fetch_array( $cursor );
		$USER_NAME = $ROW['USER_NAME'];
		selectshow( $USER_ID, $USER_NAME, "USER", $SORT_ID );
	}
}
if ( $USER_COUNT == 0 )
{
	message( "", "没有选择人员" );
	exit( );
}
else
{
	echo "\t\t\t<thead class=\"TableHeader\">\r\n\t\t\t<td nowrap >人员</td>\r\n\t\t\t<td nowrap >\r\n\t\t\t";
	selecttopshow( $SORT_ID, "USER" );
	echo "\t\t\t</td>\r\n\t\t\t</thead>\r\n\t\t\t</table>\r\n\t\t\t";
}
?>

⌨️ 快捷键说明

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