123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <!--[if lt IE 9]>
- <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
- <![endif]-->
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <link rel="stylesheet" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
- <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <!--[if IE 6]>
- <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
- <script>DD_belatedPNG.fix('*');</script>
- <![endif]-->
- <style type="text/css">
- ul.ztree {
- margin-top: 10px;
- border: 1px solid #617775;
- background: #f0f6e4;
- width: 220px;
- height: 360px;
- overflow-y: scroll;
- overflow-x: auto;
- }
- </style>
- <script type="text/javascript">
- var setting = {
- check: {
- enable: true,
- chkStyle: "radio",
- radioType: "all"
- },
- view: {
- dblClickExpand: false
- },
- data: {
- key: {
- name:"sitename",
- title:"站点树"
- },
- simpleData: {
- idKey:"siteid",
- pIdKey:"parentid",
- enable:true,
- rootPId:"0"
- }
- },
- callback: {
- onClick: onClick,
- onCheck: onCheck
- }
- };
- var zNodes =${sites};
- function onClick(e, treeId, treeNode) {
- var zTree = $.fn.zTree.getZTreeObj("treeDemo");
- zTree.checkNode(treeNode, !treeNode.checked, null, true);
- return false;
- }
- function onCheck(e, treeId, treeNode) {
- var zTree = $.fn.zTree.getZTreeObj("treeDemo"),
- nodes = zTree.getCheckedNodes(true),
- v = "";
- siteID="";
- for (var i=0, l=nodes.length; i<l; i++) {
- v += nodes[i].sitename + ",";
- siteID += nodes[i].siteid + ",";
- }
- if (v.length > 0 ) v = v.substring(0, v.length-1);
- if (siteID.length > 0 ) siteID = siteID.substring(0, siteID.length-1);
- $("#citySel").attr("value", v);
- $("#siteID").val(siteID);
- }
- function showMenu() {
- var cityObj = $("#citySel");
- var cityOffset = $("#citySel").offset();
- $("#menuContent").slideDown("fast");
- $("body").bind("mousedown", onBodyDown);
- }
- function hideMenu() {
- $("#menuContent").fadeOut("fast");
- $("body").unbind("mousedown", onBodyDown);
- }
- function onBodyDown(event) {
- if (!(event.target.id == "menuBtn" || event.target.id == "citySel" || event.target.id == "menuContent" || $(event.target).parents("#menuContent").length>0)) {
- hideMenu();
- }
- }
- $(function(){
- $.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
-
- $("#searchopen option[value='${config.open!}']").attr("selected", true);
-
- $("#savesearch").click(function(){
- var formData=$("#form2").serialize();
- $.post("${ctx}/myconsole/cmssearch/save",formData,function(data){
- layer.msg(data);
- })
- })
- $.fn.zTree.init($("#treeDemo"), setting, zNodes);
-
- $("#runsearch").click(function(data){
- var index = layer.load(1, {
- shade: [0.1,'#fff'] //0.1透明度的白色背景
- });
- var formData=$("#form1").serialize();
- $.post("${ctx}/myconsole/cmssearch/run",formData,function(data){
- layer.closeAll('loading');
- layer.msg(data);
- })
- })
- })
- </script>
- <title>我的桌面</title>
- </head>
- <body>
- <div class="page-container">
- <div class="form form-horizontal" id="form-article" method="post">
- <div id="tab-system" class="HuiTab">
- <div class="tabBar cl"><span>手动建索引</span><span>检索设置</span></div>
- <div class="tabCon">
- <form name="form1" id="form1">
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择站点:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="zTreeDemoBackground left">
- <ul class="list">
- <input id="citySel" type="text" readonly value="" style="width:120px;"/>
- <input name="siteID" id="siteID" type="hidden" value="">
- <a id="menuBtn" href="#" onclick="showMenu(); return false;">选择</a>
- </ul>
- </div>
- <div id="menuContent" class="menuContent" style="display:none; position: absolute;z-index:999">
- <ul id="treeDemo" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
- </div>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button id="runsearch" class="btn btn-primary radius" type="button"><i class="Hui-iconfont"></i>执行</button>
- </div>
- </div>
- </form>
- </div>
- <div class="tabCon">
- <form name="form2" id="form2">
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">是否开启自动建索引:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <select class="select" name="search.open" id="searchopen">
- <option value="true">是</option>
- <option value="false">否</option>
- </select>
- </div>
- </div>
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button id="savesearch" class="btn btn-primary radius" type="button"><i class="Hui-iconfont"></i> 保存</button>
- <button onClick="layer_close();" class="btn btn-default radius" type="button"> 取消 </button>
- </div>
- </div>
- </form>
- </div>
- </div>
-
- </div>
- </div>
- <footer class="footer mt-20">
- <div class="container">
- <p></p>
- </div>
- </footer>
- </body>
- </html>
|