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

📄 index.php

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

include_once( "inc/auth.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<script>\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\nfunction menu_code(TYPE,ID)\r\n{\r\n   window.open(\"/module/menu_code?TYPE=\"+TYPE+\"&ID=\"+ID,\"MENU_CODE\",\"height=270,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=10,left=10,resizable=yes\");\r\n}\r\n</script>\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/notify_new.gif\" align=\"absmiddle\"><span class=\"big3\"> 新建文件夹</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<div align=\"center\">\r\n<input type=\"button\"  value=\"新建文件夹\" class=\"BigButton\" onClick=\"location='new';\" title=\"创建新的文件夹\">\r\n</div>\r\n\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n   <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\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/notify_open.gif\" align=\"absmiddle\"><span class=\"big3\"> 管理文件夹</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<br>\r\n\r\n";
$connection = openconnection( );
$query = "SELECT * from FILE_SORT where SORT_TYPE!='4' and SORT_PARENT=0 order by SORT_NO,SORT_TYPE,DEPT_ID,SORT_NAME";
$cursor = exequery( $connection, $query );
$SORT_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$SORT_COUNT;
	$SORT_ID = $ROW['SORT_ID'];
	$SORT_NAME = $ROW['SORT_NAME'];
	$SORT_NAME = htmlspecialchars( $SORT_NAME );
	$SORT_TYPE = $ROW['SORT_TYPE'];
	$DEPT_ID = $ROW['DEPT_ID'];
	$SORT_LOG = $ROW['SORT_LOG'];
	if ( $SORT_LOG == 1 )
	{
		$SORT_LOG_DESC = "记录";
	}
	else
	{
		$SORT_LOG_DESC = "不记录";
	}
	if ( $SORT_COUNT == 1 )
	{
		echo "\r\n    <table border=\"0\" cellspacing=\"1\" width=\"90%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n\r\n";
	}
	if ( $SORT_COUNT % 2 == 1 )
	{
		$TableLine = "TableLine1";
	}
	else
	{
		$TableLine = "TableLine2";
	}
	echo "    <tr class=\"";
	echo $TableLine;
	echo "\">\r\n      <td nowrap align=\"center\">";
	echo $SORT_NAME;
	echo "</td>\r\n      <td nowrap align=\"center\">";
	echo $SORT_LOG_DESC;
	echo "</td>\r\n      <td nowrap align=\"center\">\r\n          <a href=\"edit.php?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 编辑</a>&nbsp;\r\n          <a href=\"javascript:delete_sort(";
	echo $SORT_ID;
	echo ");\"> 删除</a>&nbsp;\r\n          <a href=\"set_priv?SORT_ID=";
	echo $SORT_ID;
	echo "\"> 权限设置</a>&nbsp;\r\n          <a href=\"javascript:menu_code('FILE_SORT','";
	echo $SORT_ID;
	echo "')\">菜单定义指南</a>\r\n      </td>\r\n    </tr>\r\n";
}
if ( $SORT_COUNT == 0 )
{
	message( "", "尚无文件夹" );
	exit( );
}
echo "   <thead class=\"TableHeader\">\r\n      <td nowrap align=\"center\">文件夹名称</td>\r\n      <td nowrap align=\"center\">操作日志</td>\r\n      <td nowrap align=\"center\">操作</td>\r\n   </thead>\r\n   </table>\r\n";
echo "\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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