📄 public_new_tree.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/document_function.php" );
$SORT_ID = $_REQUEST['SORT_ID'];
$FILE_READ_ALL = getreadallfile( );
$SHARE_GET_FILE = getsharefilepath( "1" );
$SORT_FILE = $FILE_READ_ALL.$SHARE_GET_FILE;
$SORT_FILE_ALL = substr( $SORT_FILE, 0, -1 );
if ( $SORT_FILE_ALL == "" )
{
$SORT_FILE_ALL = 0;
}
if ( $SORT_FILE == "" )
{
$SORT_FILE = 1;
}
echo "<html>\r\n<HEAD>\r\n<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"/images/xloadtree/xtree.css\" type=\"text/css\">\r\n";
echo "<s";
echo "cript type=\"text/javascript\" src=\"/inc/xloadtree/xtree.js\"></script>\r\n";
echo "<s";
echo "cript type=\"text/javascript\" src=\"/inc/xloadtree/xmlextras.js\"></script>\r\n";
echo "<s";
echo "cript type=\"text/javascript\" src=\"/inc/xloadtree/xloadtree.js\"></script>\r\n";
echo "<s";
echo "tyle>\r\nbody{\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n\tmargin-right: 0px;\r\n\tmargin-bottom: 0px;\r\n\tpadding-left:10px\r\n}\r\na:link \t\t{color: #0000FF; text-decoration: none;}\r\na:visited \t{color: #0000FF; text-decoration: none;}\r\na:hover \t{color: #FF0000; text-decoration: none;} \r\na:active \t{color: #FF0000; text-decoration: none;}\r\n\r\n\r\n</style>\r\n</HEAD>\r\n<body bgcolor=\"#F5F5F5\" >\r\n<base target=\"file_main\">";
echo " \r\n<div style=\"padding-left:10px\">\r\n";
echo "<s";
echo "cript type=\"text/javascript\">\r\n\r\nwebFXTreeConfig.rootIcon\t\t= \"/images/xloadtree/company.gif\";\r\nwebFXTreeConfig.openRootIcon\t= \"/images/xloadtree/company.gif\";\r\nwebFXTreeConfig.folderIcon\t\t= \"/images/xloadtree/folder.png\";\r\nwebFXTreeConfig.openFolderIcon\t= \"/images/xloadtree/openfolder.png\";\r\nwebFXTreeConfig.fileIcon\t\t= \"/images/xloadtree/openfolder.png\";\r\nwebFXTreeConfig.lMinusIcon\t\t= \"/images/xlo";
echo "adtree/Lminus.png\";\r\nwebFXTreeConfig.lPlusIcon\t\t= \"/images/xloadtree/Lplus.png\";\r\nwebFXTreeConfig.tMinusIcon\t\t= \"/images/xloadtree/Tminus.png\";\r\nwebFXTreeConfig.tPlusIcon\t\t= \"/images/xloadtree/Tplus.png\";\r\nwebFXTreeConfig.iIcon\t\t\t= \"/images/xloadtree/I.png\";\r\nwebFXTreeConfig.lIcon\t\t\t= \"/images/xloadtree/L.png\";\r\nwebFXTreeConfig.tIcon\t\t\t= \"/images/xloadtree/T.png\";\r\n\r\nwebFXTreeConfig.blankIcon\t\t= \"";
echo "/images/xloadtree/blank.png\";\r\n\r\n\r\nvar rti;\r\nvar tree = new WebFXTree(\"公共文档目录\",\"filelist.php?SORT_ID=0\");\r\n";
$sql = "\r\n\t\tSELECT SORT_ID,SORT_NAME FROM file_sort \r\n\t\t\tWHERE SORT_ID IN ({$SORT_FILE_ALL})\r\n\t\t\t\tand SORT_PARENT=0\r\n\t\t\t\t\tORDER BY FILE_SORTING,CREATE_TIME DESC\r\n\t\t";
$rs = exequery( $connection, $sql );
while ( $row = mysql_fetch_array( $rs ) )
{
$sortid = $row['SORT_ID'];
$sortname = $row['SORT_NAME'];
$sort_type = $row['SORT_TYPE'];
$sqlc = "\r\n\t\t\t\tSELECT COUNT(*) AS cnt FROM file_sort \r\n\t\t\t\t\tWHERE SORT_PARENT ='".$sortid."'\r\n\t\t\t\t\t\tand SORT_ID IN ({$SORT_FILE_ALL})\r\n\t\t\t\t";
$rsc = exequery( $connection, $sqlc );
$rowc = mysql_fetch_array( $rsc );
$cntc = $rowc['cnt'];
if ( 0 < $cntc )
{
echo "tree.add(new WebFXLoadTreeItem(\"";
echo $sortname;
echo "\", \"/general/file_folder/file_new/new_tree/file_xml.php?SORT_ID=";
echo $sortid;
echo "\",\"filelist.php?SORT_ID=";
echo $sortid;
echo "\"));\r\n";
}
else
{
echo "tree.add(new WebFXTreeItem(\"";
echo $sortname;
echo "\",\"/general/file_folder/file_new/filelist.php?SORT_ID=";
echo $sortid;
echo "\",\"\",\"/images/xloadtree/folder.png\"));\r\n\t\t\r\n\t\t";
}
}
echo "\r\n\r\n\r\ndocument.write(tree);\r\n\r\n</script>\r\n</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -