📄 top.php
字号:
<?php
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
include_once( "inc/auth.php" );
echo "<html>\r\n<head>\r\n<title>选择人员</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/theme/1/style.css\">\r\n<link href=\"/images/module/user/main.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\r\n\r\n</head>\r\n\r\n<body>\r\n<div id=\"con\">\r\n <ul id=\"tags\">\r\n \t<li class=\"emptyTag\"></li>\r\n <li class=\"selectedTag\"><a href=\"javascript:void(0)\" onFocus=\"this";
echo ".blur()\" onClick=\"switchTag('tagContent1',this)\" class=\"tagLink\">按部门</a></li>\r\n\t<li class=\"normalTag\"><a href=\"javascript:void(0)\" onFocus=\"this.blur()\" onClick=\"switchTag('tagContent2',this)\" class=\"tagLink\">按角色</a></li>\r\n\t<li class=\"normalTag\"><a href=\"javascript:void(0)\" onFocus=\"this.blur()\" onClick=\"switchTag('tagContent3',this)\" class=\"tagLink\">按组</a></li>\r\n\t<li class=\"normalTag\"><a href=\"javasc";
echo "ript:void(0)\" onFocus=\"this.blur()\" onClick=\"switchTag('tagContent4',this)\" class=\"tagLink\">在线</a></li>\r\n\t<li class=\"normalTag\"><a href=\"javascript:void(0)\" onFocus=\"this.blur()\" onClick=\"switchTag('tagContent5',this)\" class=\"tagLink\">查询</a></li>\r\n\t\r\n </ul>\r\n <div id=\"tagContent\" class=\"tagContent\">\r\n \t<div id=\"tagContent1\">按部门选择</div>\r\n\t<div id=\"tagContent2\">按角色选择</div>\r\n\t<div id=\"tagContent3";
echo "\">按组选择</div>\r\n\t<div id=\"tagContent4\">在线人员</div>\r\n\t<div id=\"tagContent5\">查询</div>\r\n </div>\t\r\n</div>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\nvar tagContent = \"";
echo $_REQUEST['tagContent'];
echo "\"\r\nif (tagContent == ''){\r\n\ttagContent = \"tagContent1\"\t\r\n}\r\n\r\nvar tagli_n\r\ntagli_n = \"\"+tagContent.substr(10,1)+\"\"\r\nif (tagli_n == \"\" || tagli_n > 5){\r\n\ttagContent = \"tagContent1\"\r\n\ttagli_n = 1\t\r\n}\r\n\r\ndocument.getElementById(\"tags\").getElementsByTagName(\"li\")[tagli_n].className=\"selectedTag\";\r\nvar curObject = document.getElementById(\"tags\").getElementsByTagName(\"li\")[tagli_n];\r\n//switchTag(tagCont";
echo "ent,curObject);\r\nfunction switchTag(tagContent,obj){\r\n\r\n\tfor(var i=1; i<document.getElementById(\"tags\").getElementsByTagName(\"li\").length; i++){\r\n\t\tdocument.getElementById(\"tags\").getElementsByTagName(\"li\")[i].className=\"normalTag\";\r\n\t}\r\n\tobj.parentNode.className=\"selectedTag\";\r\n\t\r\n\t\r\n\tfor(var j=0; j<document.getElementById(\"tagContent\").getElementsByTagName(\"div\").length; j++){\r\n\t\tdocument.getEleme";
echo "ntById(\"tagContent\").getElementsByTagName(\"div\")[j].style.display=\"none\";\r\n\t}\r\n\t//document.getElementById(tagContent).style.display=\"block\";\r\n\tswitchLoaction(tagContent)\r\n\t\r\n}\r\n\r\nfunction switchLoaction(tagContent){\r\n\tswitch (tagContent){\r\n\t\tcase \"tagContent1\":\r\n\t\t\tparent.frameuserleft.location=\"dept.php?ID=";
echo $ID;
echo "&inputID=";
echo $inputID;
echo "&inputName=";
echo $inputName;
echo "&formName=";
echo $formName;
echo "&idstr=";
echo $idstr;
echo "&opUserListStr=";
echo $opUserListStr;
echo "\"\r\n\t\t\tbreak;\r\n\t\tcase \"tagContent2\":\r\n\t\t\tparent.frameuserleft.location=\"priv.php?ID=";
echo $ID;
echo "&inputID=";
echo $inputID;
echo "&inputName=";
echo $inputName;
echo "&formName=";
echo $formName;
echo "&idstr=";
echo $idstr;
echo "&opUserListStr=";
echo $opUserListStr;
echo "\"\r\n\t\t\tbreak;\r\n\t\tcase \"tagContent3\":\r\n\t\t\tparent.frameuserleft.location=\"group.php?ID=";
echo $ID;
echo "&inputID=";
echo $inputID;
echo "&inputName=";
echo $inputName;
echo "&formName=";
echo $formName;
echo "&idstr=";
echo $idstr;
echo "&opUserListStr=";
echo $opUserListStr;
echo "\"\r\n\t\t\tbreak;\r\n\t\tcase \"tagContent4\":\r\n\t\t\tparent.frameusermain.location=\"user.php?ONLINE=1&inputID=";
echo $inputID;
echo "&inputName=";
echo $inputName;
echo "&formName=";
echo $formName;
echo "&idstr=";
echo $idstr;
echo "&opUserListStr=";
echo $opUserListStr;
echo "\"\r\n\t\t\tbreak;\r\n\t\tcase \"tagContent5\":\r\n\t\t\tparent.frameuserleft.location=\"search.php?ID=";
echo $ID;
echo "&inputID=";
echo $inputID;
echo "&inputName=";
echo $inputName;
echo "&formName=";
echo $formName;
echo "&idstr=";
echo $idstr;
echo "&opUserListStr=";
echo $opUserListStr;
echo "\"\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t}\r\n}\r\n\r\n\r\n</script>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -