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

📄 index.php

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

function getfilesort( &$array_fsort, $file_sort, $nbsp )
{
	$connection = openconnection( );
	if ( $file_sort == "" )
	{
		$sql = "\r\n\t\t\t\t  SELECT * from FILE_SORT where SORT_TYPE!='4' and SORT_PARENT=0 order by FILE_SORTING,SORT_TYPE,DEPT_ID,SORT_NAME\r\n\t\t\t   ";
	}
	else
	{
		$sql = "\r\n\t\t\t\t  SELECT SORT_ID,SORT_PARENT,SORT_NAME,SORT_TYPE,USER_ID FROM file_sort\r\n\t\t\t\t\t  WHERE SORT_PARENT=".$file_sort." \r\n\t\t\t\t\t  ORDER BY FILE_SORTING,SORT_TYPE,DEPT_ID,SORT_NAME\r\n\t\t\t   ";
	}
	$res = exequery( $connection, $sql );
	if ( $file_sort != "" )
	{
		$nbsp .= "&nbsp;&nbsp;&nbsp;&nbsp;";
	}
	$folderimg = "<IMG SRC=\"/images/treeicon/t_tee.gif\" WIDTH=\"13\" HEIGHT=\"12\" BORDER=\"0\">";
	while ( $ROW = mysql_fetch_array( $res ) )
	{
		$SORT_NAME = $ROW['SORT_NAME'];
		$SORT_NAME = str_replace( "<", "&lt", $SORT_NAME );
		$SORT_NAME = str_replace( ">", "&gt", $SORT_NAME );
		$SORT_NAME = stripslashes( $SORT_NAME );
		$SORT_PARENT = $ROW['SORT_PARENT'];
		$SORT_TYPE = $ROW['SORT_TYPE'];
		$DEPT_ID = $ROW['DEPT_ID'];
		$USER_ID = $ROW['USER_ID'];
		$SORT_ID = $ROW['SORT_ID'];
		$text = $nbsp.$folderimg.$SORT_NAME;
		$array_fsort['SORT_ID'][] = $SORT_ID;
		$array_fsort['SORT_NAME'][] = $SORT_NAME;
		showtr( $text, $SORT_ID, $SORT_NAME, $SORT_TYPE, $SORT_PARENT, $USER_ID );
		getfilesort( &$array_fsort, $ROW['SORT_ID'], $nbsp );
	}
	return $array_fsort;
}

function showtr( $text, $SORT_ID, $SORT_NAME, $SORT_TYPE, $SORT_PARENT, $USER_ID )
{
	switch ( $SORT_TYPE )
	{
	case "1" :
		$SORT_TYPE_DESC = "全体人员";
		break;
	case "2" :
		$SORT_TYPE_DESC = "指定部门";
		break;
	case "3" :
		$SORT_TYPE_DESC = "指定人员";
	}
	echo "<tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td width=\"15%\" >";
	echo $text;
	echo "</td>\r\n      <td > ";
	echo $SORT_TYPE_DESC;
	echo "\t  </td>\r\n      <td nowrap >\r\n        <a href=\"edit.php?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 编辑</a>&nbsp;&nbsp;\r\n          <a href=\"javascript:delete_sort(";
	echo $SORT_ID;
	echo ");\"> 删除</a>&nbsp;&nbsp;\r\n\t\t  ";
	if ( $USER_ID == "" && $SORT_TYPE == "3" )
	{
		echo "<a href=\"#\" onclick=\"alert('您还没有指定人员!请指定人员在进行操作!')\"> 指定权限</a>&nbsp;&nbsp";
	}
	else
	{
		echo "<a href=\"set_purview.php?SORT_ID={$SORT_ID}\"> 指定权限</a>&nbsp;&nbsp";
	}
	if ( $SORT_TYPE == "3" && $SORT_PARENT == 0 )
	{
		echo "<a href=\"set_user.php?SORT_ID={$SORT_ID}\"> 指定可访问人员</a>&nbsp;&nbsp;<br>";
	}
	if ( $SORT_TYPE == "2" && $SORT_PARENT == 0 )
	{
		echo "<a href=\"set_deputment.php?SORT_ID={$SORT_ID}\"> 指定可访问部门或特定人员</a>&nbsp;&nbsp;";
	}
	echo "  \r\n          <!-- <a href=\"set_new.php?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 指定新建权限</a>&nbsp;&nbsp;\r\n          <a href=\"set_down.php?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 指定下载权限</a>&nbsp;&nbsp;\r\n\t\t  <a href=\"set_re.php?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 指定回复权限</a>&nbsp;&nbsp; -->\r\n      </td>\r\n    </tr>\r\n\r\n";
}

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "<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_sort(SORT_ID)\r\n{\r\n msg='确认要删除该文件夹么?这将删除该文件夹中的所有文件且不可恢复!';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"delete.php?SORT_ID=\"+SORT_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";
echo "_plan_new.gif\" align=\"absmiddle\" > 公共文档设置</td>\r\n  </tr>\r\n  <tr class=\"tablehead2\"><td>\r\n  <BUTTON class=\"btn\" onClick=\"location='new/index.php';\" 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<BUTTON class=\"btn\" onClick=\"location='new/sortfile.php'\" 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  </tr>\r\n</table>\r\n";
echo "<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\"  cellpadding=\"3\" >\r\n\r\n";
if ( $SORT_COUNT % 2 == 1 )
{
	$TableLine = "TableLine1";
}
else
{
	$TableLine = "TableLine2";
}
$arflst = getfilesort( &$array_fsort, "", "" );
echo " <thead class=\"TableHeader\">\r\n  <td nowrap >文件夹名称</td>\r\n      <td nowrap >文件夹开放范围</td>\r\n      <td nowrap >操作</td>\r\n   </thead>\r\n</table>\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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