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

📄 basic_infor.php

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

function getnamefromid( $FROM_ID, $GETNAME, $GET_ID, $FROM_TYPE )
{
	$connection = openconnection( );
	$THISID = substr( $FROM_ID, 0, -1 );
	$THISID = "'".$THISID."'";
	$THISID = str_replace( ",", "','", $THISID );
	$sql_name = "SELECT {$GETNAME} FROM {$FROM_TYPE} WHERE {$GET_ID} IN({$THISID})";
	$rs_name = exequery( $connection, $sql_name );
	while ( $row_name = mysql_fetch_array( $rs_name ) )
	{
		$GETSHOWNAME .= $row_name[$GETNAME].",";
	}
	return $GETSHOWNAME;
}

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "document_function.php" );
$SORT_ID = $_REQUEST['SORT_ID'];
if ( $SORT_ID == 0 )
{
	echo "\t<table border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"1\">\r\n\t\t<tr>\r\n\t\t\t<td class=\"tdstyle\">\r\n\t\t\t<IMG SRC=\"/images/document/tooltip.png\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALT=\"\">\r\n\t\t\t\"基本设置\":设置文件夹的基本属性!在此目录下不能设置!\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"tdstyle\">\r\n\t\t\t<IMG SRC=\"/images/document/tooltip.png\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALT=\"\">\r\n\r\n\t\t\t\"权限设置\":设置文件夹";
	echo "的权限!在此目录下不能设置!\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td>\r\n\t\t\t<IMG SRC=\"/images/document/tooltip.png\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALT=\"\">\r\n\t\t\t\"显示样式设置\":设置文档的显示样式!在此目录设置的样式为所有公共文档的默认样式!\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"tdstyle\">\r\n\t\t\t<IMG SRC=\"/images/document/tooltip.png\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALT=\"\">\r\n\t\t\t\"目录排序\":拖动文件夹进行排序!";
	echo "在此目录下的排序为主目录次序!\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"tdstyle\">\r\n\t\t\t<IMG SRC=\"/images/document/tooltip.png\" WIDTH=\"16\" HEIGHT=\"16\" BORDER=\"0\" ALT=\"\">\r\n\t\t\t\"文件夹转移\":将某个文件夹转移到其它文件夹!包含其子文件和文件夹!\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</table>\r\n\t";
	exit( );
}
$sql = "\r\n\t\tSELECT SORT_NAME,SORT_TYPE FROM file_sort WHERE SORT_ID = {$SORT_ID} ;\r\n\t\t";
$res = exequery( $connection, $sql );
$ROW1 = mysql_fetch_array( $res );
$SORT_NAME = $ROW1['SORT_NAME'];
$SORT_TYPE = $ROW1['SORT_TYPE'];
if ( $SORT_TYPE != 1 )
{
	$query = " SELECT * FROM file_purview WHERE SORT_ID='".$SORT_ID."' ";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$SORT_ID = $ROW['SORT_ID'];
		$READ_DEPT = $ROW['DEPT_ID'];
		$READ_ROLE = $ROW['PRIV_ID'];
		$READ_USER = $ROW['USER_ID'];
	}
	if ( $READ_USER != "" )
	{
		$READ_USER_NAME = getnamefromid( $READ_USER, "USER_NAME", "USER_ID", "user" );
	}
	if ( $READ_ROLE != "" )
	{
		$READ_ROLE_NAME = getnamefromid( $READ_ROLE, "PRIV_NAME", "USER_PRIV", "user_priv" );
	}
	if ( $READ_DEPT != "" )
	{
		$READ_DEPT_NAME = getnamefromid( $READ_DEPT, "DEPT_NAME", "DEPT_ID", "department" );
	}
}
echo "<html>\r\n<head>\r\n<body>\r\n";
echo "<s";
echo "tyle>\r\n.tdstyle{\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-color: #CCCCFF;\r\n}\r\n.linktextOp{\r\n\tborder-bottom: 1px double #0033CC;\r\n\tcolor:#0033CC;\r\n\tcursor:hand; \r\n\t}\r\n.linkdivOp{\r\n\tcolor:#0033CC;\r\n\tcursor:hand; \r\n\t}\r\n</style>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n<form name=\"form1\" action=\"\" method=\"post\" >\r\n<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"5\" align=\"center\" >\r\n\t<tr>\r\n\t\t";
echo " <td colspan=\"2\" class=\"tablehead2\">\r\n\t\t\t  <table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" >\r\n\t\t\t  <tr class=\"\"><td>\r\n\t\t\t  <BUTTON id='savebutton' class=\"btn\" onClick=\"savePurview(";
echo $SORT_ID;
echo ");\" title=\"保存修改\"><table><tr valign=\"top\" ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
echo "<s";
echo "pan id=\"saveimg\">确定</span></td></tr></table></BUTTON>\r\n\t\t\t\t<BUTTON class=\"btn\" onClick=\"deleteFile(";
echo $SORT_ID;
echo ");\" title=\"删除文件夹\"><table><tr valign=\"top\" ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
echo "<s";
echo "pan id=\"showallid\">删除文件夹</span></td></tr></table></BUTTON>\r\n\t\t\t </tr>\r\n\t\t\t </table>\r\n\t\t </td>\r\n\t</tr>\r\n    <tr>\r\n\t\t  <td nowrap class=\"TableLine2\" align='center' width=\"12%\"> 文件夹名称:</td>\r\n\t\t  <td class=\"TableLine1\">\r\n\t\t\t<input type=\"text\" name=\"SORT_NAME\" size=\"20\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $SORT_NAME;
echo "\">\r\n\t\t  </td>\r\n    </tr>\r\n\t<tr>\r\n\t\t  <td nowrap class=\"TableLine2\" align='center' > 开放方式:</td>\r\n\t\t  <td class=\"TableLine1\">\r\n\t\t\t";
echo "<s";
echo "elect name=\"AREA_SELECTOR\" class=\"SmallSelect\"  onchange=\"showSelect()\">\r\n\t\t\t";
if ( $SORT_TYPE != 1 )
{
	echo "\t\t\t<option value='0' >指定范围</option>\r\n\t\t\t<option value='1'>全体人员</option>\r\n\t\t\t";
}
else
{
	echo "\t\t\t<option value='1'>全体人员</option>\r\n\t\t\t<option value='0' >指定范围</option>\r\n\t\t\t ";
}
echo "\t\t </select>\r\n\t</tr>\r\n\t";
if ( $SORT_TYPE != 1 )
{
	echo "<tr id='select_purview' style=\"display:''\">";
}
else
{
	echo "<tr id='select_purview' style=\"display:none\">";
}
echo "\t\t<td  colspan=\"2\">\r\n\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" >\r\n\t\t\t\t  <tr>\r\n\t\t\t\t\t<td nowrap class=\"TableLine2\" align='center' >部门:</td>\r\n\t\t\t\t\t\t<td class=\"TableLine1\">\r\n\t\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"TableLine1\">\r\n\t\t\t\t\t\t\t\t<textarea cols=35 name=\"READ_DEPT_NAME\" rows=\"2\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $READ_DEPT_NAME;
echo "</textarea>\r\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"READ_DEPT_ID\" value=\"";
echo $READ_DEPT;
echo "\" >\r\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"";
echo $SORT_ID;
echo "\" name=\"SORT_ID\">\r\n\t\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class = \"linktextOp\" onClick=\"LoadWindowDept('READ_DEPT_ID','READ_DEPT_NAME','form1');\">选择</span>&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"linktextOp\" onClick=\"clearConten('READ_DEPT_ID','READ_DEPT_NAME')\" >清空</span>\t\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\r\n\t\t\t\t\t<tr >\r\n\t\t\t\t\t\t<td nowrap class=\"TableLine2\"  align='center'>角色:</td>\r\n\t\t\t\t\t\t<td class=\"TableLine1\">\r\n\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"TableLine1\">\r\n\t\t\t\t\t\t\t<textarea cols=35 name=\"READ_ROLE_NAME\" rows=\"2\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $READ_ROLE_NAME;
echo "</textarea>\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"READ_ROLE_ID\" value=\"";
echo $READ_ROLE;
echo "\" >\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"";
echo $SORT_ID;
echo "\" name=\"SORT_ID\">\r\n\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class = \"linktextOp\" onClick=\"LoadWindowPriv('READ_ROLE_ID','READ_ROLE_NAME','form1');\">选择</span>&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"linktextOp\" onClick=\"clearConten('READ_ROLE_ID','READ_ROLE_NAME')\" >清空</span>\t\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td nowrap class=\"TableLine2\" align='center'>人员:</td>\r\n\t\t\t\t\t\t<td class=\"TableLine1\">\r\n\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"TableLine1\">\r\n\t\t\t\t\t\t\t<textarea cols=35 name=\"READ_USER_NAME\" rows=\"2\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $READ_USER_NAME;
echo "</textarea>\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"READ_USER_ID\" value=\"";
echo $READ_USER;
echo "\" >\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"";
echo $SORT_ID;
echo "\" name=\"SORT_ID\">\r\n\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class = \"linktextOp\" onClick=\"LoadWindowUser('READ_USER_ID','READ_USER_NAME','form1');\">选择</span>&nbsp;&nbsp;\r\n\t\t\t\t\t\t\t\t";
echo "<s";
echo "pan class=\"linktextOp\" onClick=\"clearConten('READ_USER_ID','READ_USER_NAME')\" >清空</span>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t</table>\r\n\t\t\t\r\n\t\t</td>\r\n\t</tr>\r\n\r\n\r\n\t</table>\r\n<form>\r\n</body>";
?>

⌨️ 快捷键说明

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