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

📄 folder.php

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

function selectfilesortrecursion( &$array_fsort, $file_sort, $nbsp )
{
	$connection = openconnection( );
	if ( $file_sort == "" )
	{
		$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_TYPE=4\r\n\t\t\t\t\t\t AND USER_ID='".$_SESSION['LOGIN_USER_ID']."' \r\n\t\t\t\t\t     AND SORT_PARENT=0 \r\n\t\t\t\t\t       ORDER BY CREATE_TIME DESC\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 CREATE_TIME DESC\r\n\t\t\t   ";
	}
	$res = exequery( $connection, $sql );
	if ( $file_sort != "" )
	{
		$nbsp .= "&nbsp;&nbsp;&nbsp;&nbsp;";
	}
	$folderimg = "<img src='/images/littlegif/folderclose.gif'>";
	while ( $row = mysql_fetch_array( $res ) )
	{
		$name = $row['SORT_NAME'];
		$id = $row['SORT_ID'];
		$text = $nbsp.$folderimg.$name;
		$array_fsort['id'][] = $id;
		$array_fsort['name'][] = $name;
		showtr( $text, $id, $name );
		selectfilesortrecursion( &$array_fsort, $row['SORT_ID'], $nbsp );
	}
	return $array_fsort;
}

function showtr( $text, $sort_id, $sort_name )
{
	echo "<tr class=\"TableLine1\">\r\n  <td width=\"10%\">&nbsp;</td>\r\n  <td class=\"menulines\" onClick=\"javascript:select_folder('";
	echo $sort_id;
	echo "','";
	echo $sort_name;
	echo "')\" style=\"cursor:hand\">\r\n\t\t   ";
	echo $text;
	echo "\t\t   </td>\r\n\t\t</tr>\r\n\r\n\r\n";
}

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";
include_once( "inc/menu_button.js" );
echo "\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nvar parent_window = parent.dialogArguments;\r\n\r\nfunction select_folder(sort_id,sort_name)\r\n{\r\n  var autoName = document.getElementById('flagEmpty');\r\n  if (parent_window.form1.FUNC_NAME.value == ''){\r\n\t  autoName.value=1;\r\n  }\r\n  if (autoName.value==1){\r\n\t  parent_window.form1.FUNC_NAME.value=sort_name;\r\n  }\r\n  \r\n  TO_VAL=parent_window.form1.SORT_ID.value;\r\n  if(TO_VAL";
echo ".indexOf(\",\"+sort_id+\",\")<0 && TO_VAL.indexOf(sort_id+\",\")!=0)\r\n  {\r\n    parent_window.form1.SORT_ID.value=sort_id;\r\n    parent_window.form1.SORT_NAME.value=sort_name;\r\n  }\r\n}\r\n</script>\r\n<head>\r\n\r\n<body class=\"bodycolor\"  topmargin=\"1\" leftmargin=\"0\">\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\"  bordercolorlight=\"#000000\" bordercolordark=\"#FFFFFF\"  onMouseover=\"border";
echo "ize_on(event)\" onMouseout=\"borderize_off(event)\" onclick=\"borderize_on1(event)\">\r\n<thead class=\"TableLine2\" >\r\n  <th colspan=\"2\"><b>选择目录</b></th><input id=\"flagEmpty\" name=\"flagEmpty\" value=\"\" type=\"hidden\">\r\n</thead>\r\n";
$arflst = selectfilesortrecursion( &$array_fsort, "", "" );
echo "\r\n\r\n";
echo "</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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