📄 selected.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.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</head>\r\n<script>\r\nvar ParentWindow=parent.opener.window;\r\nvar DirArray = new Array();\r\nvar NameArray = new Array();\r\nvar TypeArray = new Array();\r\n\r\nif(ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\")&&ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value!=\"\")\r\n DirArray=ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value.split(\"*\");\r\nif(ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\")&&ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value!=\"\")\r\n NameArray=ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value.split(\"*\");\r\nif(ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\")&&ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value!=\"\")\r\n TypeArray=ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value.split(\"*\");\r\n\r\nfunction DoLoad()\r\n{\r\n if(NameArray.length==0 && document.getElementById(\"BodyDiv\"))\r\n {\r\n document.getElementById(\"BodyDiv\").innerHTML=\"<br><div align=center><span style='BACKGROUND:#EEEEFF;COLOR:#FF6633;margin: 10px;border:1px dotted #FF6633;font-weight:bold;padding:8px;width=140'>尚无选择文件</span></div>\";\r\n return;\r\n }\r\n \r\n var BodyDivInnerHTML=\"<table border=0 cellspacing=1 width=100% class=small bgcolor=#000000 cellpadding=3><thead class=TableHeader align=center><td width=40>选择</td><td>文件名</td></thead>\";\r\n for(i=0;i<NameArray.length;i++)\r\n {\r\n if(NameArray[i]==\"\")\r\n continue;\r\n\r\n BodyDivInnerHTML+=\"<tr class=TableData><td align=center><input type=checkbox name=email_select onclick='SelFile()' checked></td><td>\"+NameArray[i]+\"</td></tr>\";\r\n }\r\n BodyDivInnerHTML+=\"</table>\";\r\n document.getElementById(\"BodyDiv\").innerHTML=BodyDivInnerHTML;\r\n //alert(document.getElementById(\"BodyDiv\").innerHTML)\r\n}\r\nfunction SelFile()\r\n{\r\n if(!ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\") || !ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\") || !ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\") || !ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\"))\r\n return;\r\n \r\n ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value=\"\";\r\n ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value=\"\";\r\n ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value=\"\";\r\n ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\").innerHTML=\"\";\r\n \r\n for(i=0;i<document.all(\"email_select\").length;i++)\r\n {\r\n var el=document.all(\"email_select\").item(i);\r\n if(!el.checked)\r\n continue;\r\n";
if ( $MULTI_SELECT )
{
echo " ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value+=DirArray[i]+\"*\";\r\n ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value+=NameArray[i]+\"*\";\r\n ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value+=TypeArray[i]+\"*\";\r\n ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\").innerHTML+=NameArray[i]+\"<br>\";\r\n";
}
else
{
echo " ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value=DirArray[i];\r\n ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value=NameArray[i];\r\n ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value=TypeArray[i];\r\n ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\").innerHTML=NameArray[i];\r\n";
}
echo " }\r\n \r\n if(i==0 && document.all(\"email_select\").checked)\r\n {\r\n";
if ( $MULTI_SELECT )
{
echo " ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value+=DirArray[i]+\"*\";\r\n ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value+=NameArray[i]+\"*\";\r\n ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value+=TypeArray[i]+\"*\";\r\n ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\").innerHTML+=NameArray[i]+\"<br>\";\r\n";
}
else
{
echo " ParentWindow.document.all(\"";
echo $DIR_FIELD;
echo "\").value=DirArray[i];\r\n ParentWindow.document.all(\"";
echo $NAME_FIELD;
echo "\").value=NameArray[i];\r\n ParentWindow.document.all(\"";
echo $TYPE_FIELD;
echo "\").value=TypeArray[i];\r\n ParentWindow.document.getElementById(\"";
echo $DIV_ID;
echo "\").innerHTML=NameArray[i];\r\n";
}
echo " }\r\n}\r\n</script>\r\n<body class=\"bodycolor\" topmargin=\"0\" onload=\"DoLoad();\">\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<div id=\"BodyDiv\" width=\"100%\"></div>\r\n\r\n<br>\r\n<div align=\"center\">\r\n <input type=\"button\" value=\"关闭\" class=\"BigButton\" onClick=\"parent.window.close();\">\r\n</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -