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

📄 user_submit.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

function update_sub_sort( $SORT_ID, $FIELD_NAME, $FIELD_VALUE )
{
	global $connection;
	global $LOGIN_DEPT_ID;
	global $LOGIN_USER_PRIV;
	global $LOGIN_USER_ID;
	$query = "select SORT_ID,OWNER from FILE_SORT where SORT_PARENT='".$SORT_ID."'";
	$cursor = exequery( $connection, $query );
	while ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$SORT_ID = $ROW['SORT_ID'];
		$OWNER = $ROW['OWNER'];
		$OWNER_ARRAY = explode( "|", $OWNER );
		if ( $OWNER_ARRAY[0] == "ALL_DEPT" || find_id( $OWNER_ARRAY[0], $LOGIN_DEPT_ID ) || find_id( $OWNER_ARRAY[1], $LOGIN_USER_PRIV ) || find_id( $OWNER_ARRAY[2], $LOGIN_USER_ID ) )
		{
			$query = "update FILE_SORT set ".$FIELD_NAME."='{$FIELD_VALUE}' where SORT_ID='{$SORT_ID}'";
			exequery( $connection, $query );
		}
		update_sub_sort( $SORT_ID, $FIELD_NAME, $FIELD_VALUE );
	}
}

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/check_type.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$OWNER_PRIV = 0;
$query = "SELECT OWNER from FILE_SORT where SORT_ID='".$SORT_ID."'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$OWNER = $ROW['OWNER'];
	$OWNER_PRIV = check_priv( $OWNER );
}
if ( !$OWNER_PRIV )
{
	message( "警告", "您无该文件夹的设置权限" );
	exit( );
}
if ( $TO_ID != "" || $PRIV_ID != "" || $COPY_TO_ID != "" )
{
	$FIELD_VALUE = $TO_ID."|".$PRIV_ID."|".$COPY_TO_ID;
}
$query = "update FILE_SORT set ".$FIELD_NAME."='{$FIELD_VALUE}' where SORT_ID='{$SORT_ID}'";
exequery( $connection, $query );
if ( $OVERRIDE == "on" )
{
	update_sub_sort( $SORT_ID, $FIELD_NAME, $FIELD_VALUE );
}
message( "", "保存完成" );
button_back( );
echo "\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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