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

📄 index.php

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

function tree_parent( $SORT_ID )
{
	$connection = openconnection( );
	$query = "SELECT * from FILE_SORT where SORT_ID={$SORT_ID}";
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$SORT_PARENT = $ROW['SORT_PARENT'];
		if ( $SORT_PARENT == 0 )
		{
			return $SORT_ID;
		}
		else
		{
			return tree_parent( $SORT_PARENT );
		}
	}
}

include_once( "inc/auth.php" );
include_once( "inc/conn.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\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n   if(document.form1.SORT_NAME.value==\"\")\r\n   { alert(\"文件夹名称不能为空!\");\r\n     return (false);\r\n   }\r\n   return (true);\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onLoad=\"document.form1.SORT_NAME.focus();\">\r\n\r\n";
$TREE_PARENT = tree_parent( $SORT_ID );
$query = "SELECT * from FILE_SORT where SORT_ID='{$TREE_PARENT}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$SORT_TYPE = $ROW['SORT_TYPE'];
	$DEPT_ID = $ROW['DEPT_ID'];
	$USER_ID = $ROW['USER_ID'];
	switch ( $SORT_TYPE )
	{
	case "2" :
		if ( find_id( $DEPT_ID, $LOGIN_DEPT_ID ) )
		{
			break;
		}
		exit( );
		break;
	case "3" :
		if ( find_id( $USER_ID, $LOGIN_USER_ID ) )
		{
			break;
		}
		exit( );
		break;
	case "4" :
		if ( $USER_ID != $LOGIN_USER_ID )
		{
			break;
		}
		exit( );
	}
}
echo "<form action=\"submit.php\"  method=\"post\" name=\"form1\" onSubmit=\"return CheckForm();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/general/file_folder/treeicon/t_folder.gif\"> 新建子文件夹\r\n    </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n  <td>\r\n <input type=\"image\" src=\"/images/button/submit.gif\" accesskey=\"S\" title=\"确定\">\r\n <a href=\"#\" onCli";
echo "ck=\"history.back();\"><img src=\"/images/button/return.gif\" title=\"返回\" border=\"0\"></a>\r\n </td>\r\n  </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#FFFFFF\">\r\n <table border=\"0\" width=\"100%\" cellpadding=\"5\" cellspacing=\"1\" align=\"center\" class=\"small\">\r\n  \r\n    <tr>\r\n      <td nowrap class=\"TableLine2\" width=\"15%\"> 文件夹名称:</td>\r\n      <td class=\"TableLine1\">\r\n        <input type=\"text\" na";
echo "me=\"SORT_NAME\" size=\"25\" maxlength=\"100\" class=\"BigInput\">\r\n      </td>\r\n    </tr>\r\n     </table>\r\n\t <table width=\"80%\" border=\"0\">\r\n\t <tr align=\"center\">\r\n      <td colspan=\"2\" nowrap>\r\n        <input type=\"hidden\" name=\"FILE_SORT\" value=\"";
echo $FILE_SORT;
echo "\">\r\n        <input type=\"hidden\" name=\"SORT_ID\" value=\"";
echo $SORT_ID;
echo "\">\r\n              <input type=\"hidden\" name=\"refreshno\" value=\"";
echo $_REQUEST['refreshno'];
echo "\"></td>\r\n    </tr>\r\n\t </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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