123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- <%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>广东电网公司应急指挥系统</title>
- <link rel="Shortcut Icon" href="/nwyj/images/favicon.png"/>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <%@include file="../../include.jsp"%>
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/system/user/LoginInfo.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
- <style>
- #keep_div{
- width:100%;
- height:105px;
- background:white;
- position:fixed;
- z-index:9999;
- }
- #move_div{
- position:absolute;
- margin-top:100px;
- width:100%;
- }
- .input_cont{
- margin-top:20px;
- text-align:left;
- width: 100%;
-
- }
- #back{
- position:absolute;
- top :10px;
- left:20px;
- height:40px;
- width:167px;
- }
-
- .search_input{
- position:absolute;
- top :14px;
- left:197px;
- padding-left:21px;
- background-color:#f8f8f8;
- height: 34px;
- width: 544px;
- font-size: 18px!important;
-
- }
-
- .search_img{
- position:absolute;
- top :14px;
- left:765px;
- height: 38px;
- line-height:38px;
- text-decoration:none;
- display:inline-block;
- text-align:center;
- width: 100px;
- background-color: #3388ff;
- }
- .search{
- color:#ffffff;
- font-family:宋体;
- font-size:14px;
- }
-
- .backdiv{
- margin-top:58px;
- height:40px;
- line-height:45px;
- background:#ebebeb;
- }
- .rightshow{
- margin-left:197px;
- }
- .moreSearch{
- height:350px;
- width:80%;
- border: 1px solid #cdcaca;
- border-bottom: 4px solid #cdcaca;
- background:white;
- display:none;
- /* box-shadow: 0 0 10px #000; */
-
- }
- #searchLevel{
- top:20px;
- margin-left:30px;
- }
- #listStyle{
- top:40px;
- margin-left:30px;
- }
- #searchTime{
- top:60px;
- margin-left:30px;
- }
- #searchArea{
- top:60px;
- margin-left:30px;
- /* border:1px solid red; */
- width: 700px;
- height: 200px;
-
- }
- #searchTree{
- /* border:1px solid #7a7a7a; */
- width: 500px;
- height: 200px;
- float:left;
- }
-
-
-
- .numshow{
- margin-top:10px;
- margin-left:197px;
- color:#999999;
- font-family:宋体;
- font-size:12px;
- width:423px;
- }
-
- .bottomshow{
- margin-left:197px;
- }
-
- #ul li{
- display:none;
- display:inline-block;
- font-family:宋体;
- font-size:14px;
- cursor:hand;
- cursor:pointer;
- width:60px;
- height:40px;
- fontWeight:"normal";
- text-decoration:"none";
- text-align:center;
- color:#666666;
-
- }
- .outdiv{
- margin-top:10px;
-
- }
-
- #tableContent div{
- margin-left:197px;
- margin-bottom:20px;
- }
-
-
- p{
- margin-top:0px;
- margin-bottom:0px;
- }
-
- .pageNumber{
- /* clear:both; */
- margin-top:24px;
- margin-left:197px;
-
- }
- .tabFocus{
- border-bottom:4px blue solid;
- font-weight:bold;
- }
-
-
-
- </style>
- <script type="text/javascript">
- // 搜索内容
- var name ="<%=new String(java.net.URLDecoder.decode(request.getParameter("name")).getBytes("ISO-8859-1"),"utf-8")%>";
- var logname = "<%=new String(java.net.URLDecoder.decode(request.getParameter("loginName")).getBytes("ISO-8859-1"),"utf-8")%>";
- // 分类 all 全部 file 文件 team 队伍 equip 装备 goods 物资 app 更多
- var type='all';
- $(function(){
- $("html").css("overflow-y","auto");
- $("#search_img_inputt").on("keyup",function(event){
- var e = event||window.event;
- if(e&&e.keyCode == "13"){
- name=$("#search_img_inputt").val();
- var seaData={};
- if(type=='app'){
- var level=$("input:radio[name=level]").filter("[checked]").val();
- var sort=$("input:radio[name=sort]").filter("[checked]").val();
- var startTime=$("#startTime").val();
- var endTime=$("#endTime").val();
- var selectTree=$("#selectTree4-2").attr("relValue");
- seaData={name:name,index:'0',type:type,level:level,sort:sort,startTime:startTime,endTime:endTime,selectTree:selectTree,logname:logname};
- }else{
- seaData={name:name,index:'0',type:type,logname:logname};
- }
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/sysSearch/',
- type : 'post',
- timeout : 15000,
- data : seaData,
- dataType : 'json',
- async:false,
- success : function(data){
- initContent(data);
- $(".pageNumber").attr("page",0);
- $(".pageNumber").render();
- },
- error : function(e){
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
-
-
- }
- });
-
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/sysSearch/',
- type : 'post',
- timeout : 15000,
- data : {name:name,index:'0',type:type,logname:logname},
- dataType : 'json',
- async:false,
- success : function(data){
- initContent(data);
- $(".pageNumber").render();
- },
- error : function(e){
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
-
- $(".pageNumber").bind("pageChange",function(e,index){
- var first=index*10;
- var seaData={};
- if(type=='app'){
- var level=$("input:radio[name=level]").filter("[checked]").val();
- var sort=$("input:radio[name=sort]").filter("[checked]").val();
- var startTime=$("#startTime").val();
- var endTime=$("#endTime").val();
- var selectTree=$("#selectTree4-2").attr("relValue");
- seaData={name:name,index:first,type:type,level:level,sort:sort,startTime:startTime,endTime:endTime,selectTree:selectTree,logname:logname};
- }else{
- seaData={name:name,index:first,type:type,logname:logname};
- }
-
-
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/sysSearch/',
- type : 'post',
- timeout : 15000,
- data : seaData,
- dataType : 'json',
- async:false,
- success : function(data){
- initContent(data);
-
- },
- error : function(e){
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
- });
-
-
- $("#ul li").each(function(index){
- $(this).click(function(){
- $("#ul li.tabFocus").removeClass("tabFocus").css("color","#666666");
- $(this).addClass("tabFocus").css("color","blue");
- var t=$(this).html();
- if(t=='全部'){
- type='all';
- }else if(t=='文件'){
- type='file';
- }else if(t=='队伍'){
- type='team';
- }else if(t=='装备'){
- type='equip';
- }else if(t=='物资'){
- type='goods';
- }else if(t=='更多>>'){
- type='app';
- $(".moreSearch").toggle();
- }
- if(type!='app'){
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/sysSearch/',
- type : 'post',
- timeout : 15000,
- data : {name:name,index:'0',type:type,logname:logname},
- dataType : 'json',
- async:false,
- success : function(data){
- initContent(data);
- $(".pageNumber").attr("page",0);
- $(".pageNumber").render();
- },
- error : function(e){
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
- }
-
- });
- });
-
-
-
-
- $("body:eq(0)").bind("click" ,function (event){
- var e = event || window.event;
- var elem = e.srcElement || e.target;
- var type=$(".moreSearch").css("display");
- if(elem.id !="moreli"){
- if(type=='block'){
- var outSide=true;
- while(elem){
- var name=$(elem).attr("class");
- if(name =='moreSearch'){
- outSide=false;
- }
- elem=elem.parentNode;
- }
- if(outSide){
- $(".moreSearch").css('display','none');
- }
-
- }
-
- }
-
- });
-
- $.post($.pathname() + '/ws/rolebutton/RoleService/getSearchTree',{},function(result){
- $("#selectTree4-2").data("data",result);
- //刷新树形下拉框
- $("#selectTree4-2").render();
- },"json");
-
-
- });
-
- //跳转详细页面
- function hello(a){
- var length=a.length-1;
- var fd_id=a.substring(0,length);
- var type=a.substr(length);
- var local='';
-
- switch(type){
- case 'a' : local = "/nwyj/page/business/am/resource/team/teaminfo-outhistory.jsp?"+fd_id ; break;
- case 'b' : local = "/nwyj/page/business/am/resource/ledger/generator-car-infohitory.jsp?"+fd_id ; break;
- case 'c' : local = "/nwyj/page/business/am/resource/ledger/generator-infohistory.jsp?"+fd_id ; break;
- case 'd' : local = "/nwyj/page/business/am/fileManager/governmentDoc/governmentDocViewhistory.jsp?fd_id="+fd_id ; break;
- case 'e' : local = "/nwyj/page/business/am/fileManager/document/document_viewhistory.jsp?"+fd_id ; break;
- case 'f' : local = "/nwyj/page/business/am/fileManager/standard/standard_viewhistory.jsp?"+fd_id ; break;
- case 'g' : local = "/nwyj/page/business/am/fileManager/laws/laws_viewhistory.jsp?"+fd_id ; break;
- case 'h' : local = "/nwyj/page/business/am/resource/resources/external_resources-infohistory.jsp?"+fd_id ; break;
- }
- /* alert(fd_id);
- alert(type);
- alert(local); */
- /* var diag = new top.Dialog();// 定义一个窗口对象
- diag.Title = "查看详细";// 窗口标题
- diag.URL =local;// 窗口对应的页面
- diag.Height = 520;
- diag.Width = 1000;
- diag.ShowOkButton=false;// 不显示确认按钮
- diag.ShowCancelButton=false;// 不显示取消按钮
- diag.ButtonAlign="center";// 按钮居中
- diag.CancelEvent = function(){
- diag.close();
- diag=null;
-
- };
- diag.show();// 显示窗口 */
- window.open(local);
-
- }
-
-
-
-
- function initContent(json){
- location.href="#firstAnchor";
- $("#tableContent").empty();
- var total=json.total;
- $("#numberSpan").html(total);
- $(".pageNumber").attr("total",json.total);
- $(".pageNumber").attr("pageSize",10);
- var last=Math.floor(total/10);
- if(last == '0' ){
- last=total;
- }else {
- last=10;
- }
-
- for(var i=0;i<last;i=i+1){
- var nn=json.rows[i].FD_OBJECTID;
- var title=json.rows[i].NAME;
- var one=json.rows[i].ONE;
- var two=json.rows[i].TWO;
- var three=json.rows[i].THREE;
- //var reg=/()/;
- title=title.replace(new RegExp(name),"<font color=red>"+name+"</font>");
- one=one.replace(new RegExp(';'),"<font color=red>;</font>");
- two=two.replace(new RegExp(';'),"<font color=red>;</font>");
- two=two.replace(new RegExp(name),"<font color=red>"+name+"</font>");
- $div=$('<div></div>');
- $title1=$('<a>'+title+'</a>');
- $title1.css('fontFamily','宋体');
- $title1.css('fontSize','16px');
- $title1.css('color','#0a0c71');
- $title1.attr('href',"javascript:hello('"+nn+"')");
- $("#tableContent").append($div);
- $div.append($title1)
-
- $p1=$('<p>'+one+'</p>');
- $p2=$('<p>'+two+'</p>');
- $p3=$('<p>'+three+'</p>');
- $p3.css('fontFamily','宋体');
- $p3.css('fontSize','12px');
- $p3.css('color','#25671d');
- $div.append($p1);
- $div.append($p2);
- $div.append($p3);
- }
- if(total == '0'){
- $("#tableContent").empty();
- $div=$('<div>无搜索结果!</div>');
- $div.css('fontFamily','宋体');
- $div.css('fontSize','16px');
- $div.css('color','#a90f0f');
- $("#tableContent").append($div);
- }
- }
-
- function searchData1(){
- var seaData={};
- if(type=='app'){
- var level=$("input:radio[name=level]").filter("[checked]").val();
- var sort=$("input:radio[name=sort]").filter("[checked]").val();
- var startTime=$("#startTime").val();
- var endTime=$("#endTime").val();
- var selectTree=$("#selectTree4-2").attr("relValue");
- seaData={name:name,index:'0',type:type,level:level,sort:sort,startTime:startTime,endTime:endTime,selectTree:selectTree,logname:logname};
- }else{
- seaData={name:name,index:'0',type:type,logname:logname};
- }
-
- name=$("#search_img_inputt").val();
- $.ajax({
- url : $.pathname() + '/ws/sys/constantService/sysSearch/',
- type : 'post',
- timeout : 15000,
- data : seaData,
- dataType : 'json',
- async:false,
- success : function(data){
- initContent(data);
- $(".pageNumber").attr("page",0);
- $(".pageNumber").render();
- },
- error : function(e){
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
- }
-
-
-
- function change(obj){
-
-
-
- //obj.style.background = "red";
- obj.style.fontWeight="bold";
- //obj.style.textDecoration="underline";
- //obj.style.paddingBottom="2px";
- //obj.style.borderBotttom="4px";
- obj.style.color="blue";
- obj.style.border ="solid red 3px";
- obj.style.borderBotttom ="4px solid #fff ";
- //alert(obj.innerHTML);
- var o =$(obj);
- o.addClass("selectedLi");
- //o.s
- }
- </script>
- </head>
- <body>
- <a name="firstAnchor"></a>
- <div id="keep_div">
- <div class="input_cont" >
- <a href="javascript:;">
- <img id="back" align="left" alt="返回" src="/nwyj/images/temp/logo_03.png" onclick="javascript:window.location.href='SysSearch.jsp';" />
- </a>
- <input watermark="搜索应用/文件/队伍/装备/物资" type="text" class="search_input" id="search_img_inputt">
- <a href="javascript:searchData1();" class="search_img" ><font class="search">搜索一下</font></a>
- </div>
-
- <div class="backdiv">
- <div class="rightshow">
- <ul id="ul">
- <li >全部</li>
- <li >文件</li>
- <li >队伍</li>
- <li >装备</li>
- <li >物资</li>
- <li id="moreli">更多>></li>
- </ul>
- <div class="moreSearch">
-
- <div id="searchLevel">
- 搜索级别
- <input type="radio" id="allLevel" name="level" value="allFIle" /><label for="allLevel" class="hand">全文</label>
- <input type="radio" id="titleLevel" name="level" value="searchTitle" /><label for="titleLevel" class="hand">标题</label>
-
- </div>
- <div id="listStyle">
- 排序方式
- <input type="radio" id="relativeSort" name="sort" value="relativeSort" /><label for="relativeSort" class="hand">相关度</label>
- <input type="radio" id="timeSort" name="sort" value="timeSort" /><label for="timeSort" class="hand">发帖时间</label>
- </div>
- <div id="searchTime">
- 搜索时间
- <input type="text" id="startTime" style="width:100px;" class="date"/> 至
- <input type="text" id="endTime" style="width:100px;" class="date"/>
- </div>
- <div id="searchArea">
- <div style="float:left">搜索版块 </div>
- <div id="searchTree">
- <div selWidth="500" boxWidth="500" boxHeight="170" class="selectTree" id="selectTree4-2" keepDefaultStyle="true"></div>
- </div>
-
- </div>
- </div>
- </div>
- </div>
-
-
- </div>
- <div id="move_div">
- <div class="numshow">
- <span>为您找到相关结果<span id="numberSpan">0</span>个</span>
- <hr style="border:0;background-color:#d9e3ec;height:1px">
- </div>
- <div class="outdiv">
- <div id="tableContent"></div>
- </div>
- <div>
- <div class="pageNumber" total="0" showSelect="false" showInput="true"></div>
- <div style="width:100%;height:20px"></div>
- </body>
- </html>
|