全文检索方案
- 格式:doc
- 大小:34.50 KB
- 文档页数:5
全文检索方案.txt38当乌云布满天空时,悲观的人看到的是“黑云压城城欲摧”,乐观的人看到的是“甲光向日金鳞开”。
无论处在什么厄运中,只要保持乐观的心态,总能找到这样奇特的草莓。
<%@ page language="java" pageEncoding="UTF-8"%><%@ include file="/pages/a_util/taglibs.jsp" %><style type="text/css">* { margin:0; padding:0 }body { padding:10px; font: 12px/20px Arial, Helvetica, sans-serif; }form ul { padding:0 5px; list-style: none; }form ul ul{padding:0;}form li { float:left; width:33%; height:22px; }form li li{float:none;width:auto;height:auto}input { width:180px }label { display:block; float:left; width:50px }legend { font-size: 14px; }.age { width:30px }.center { text-align:center; }.search { width:50px; margin:10px }.border_top { border-top:1px solid #ddd; margin:10px 5px 0px 5px;clear:both }#main { overflow:hidden }#main fieldset { float:left;}#main #my { float:right }#main input { width:auto }.hide { display:none }table { width:100%; }th { font-weight: normal; white-space:nowrap; height:25px; padding:0 10px; background:#f0f0f0 }td { padding:0 10px; white-space:nowrap }#searchResult, #chooseResult {padding:5px;overflow:auto;height:340px}.ml #de{width:380px;}.ml #de div{width:370px}.ml #my{width:380px}.ml #my div{width:370px}.ml #my #chooseResult{height:340px}.mr #de{width:240px;}.mr #de div{width:220px}.mr #my{width:520px}.mr #my div{width:500px}#de p input{width:180px}table, th, td { border-collapse:collapse; border:1px solid #e7e7e7 }.oddtr { background:#f1f1f1 }.loading { text-align:center; }.loading img { padding:10px }.nochild { padding-left:33px; }.nochildL { padding-left:33px; }.haschildC { height:18px; width:33px; float:left; }.haschildO { height:18px; width:33px; float:left; }#ZtreeData tfoot { text-align:center; height:40px; }#ZtreeData tfoot input { diaplay:inline; margin:0 5px }#ZtreeData p { margin:20px; }.Ztrees { line-height:18px; padding:20px 20px 20px 0; margin-top:2px; overflow-y: auto; overflow-x: auto; height:330px; background:#fff;_width:200px}.Ztrees b { padding:0 2px; white-space:nowrap }.Ztrees strong { padding-left:22px; margin-left:15px; }.Ztrees li { white-space:nowrap;line-height:18px }.Ztrees li a.on { font-weight: bold; }.Ztrees ul { padding-left:20px; }#SelSub{margin:0 20px 20px}.nochild {background: url(styles/skins/img_skinA/0_08.gif) no-repeat 4px center; } .nochildL {background: url(styles/skins/img_skinA/0_11.gif) no-repeat 4px center; } .haschildC { background: url(styles/skins/img_skinA/0_03.gif) no-repeat; }.haschildO { background: url(styles/skins/img_skinA/0_05.gif) no-repeat; }.Ztrees { border:1px solid #adb9c2 }.Ztrees strong{ background: url(styles/skins/img_skinA/tree_root.gif) no-repeat left; }.Ztrees ul {background:url(styles/skins/img_skinA/tree_line.gif) repeat-y -3px }.clearval{width:50px;margin:10px;margin-top:0}</style><h1 dir="<%=ctxtPath %>" style="display:none;"></h1><fieldset><legend>搜索</legend><form rel="pagerForm" action="cus.do?method=selectorCus&oper=<c:out value='${oper}'/>&permission=<c:out value='${permission}'/>" method="post"> <div>省份:<input name="proOfCus" type="text" style="width:120px" value="${cus.proOfCus}" maxlength="15"/>城市:<input type="text" name="cityOfCus" style="width:120px" value="${cus.cityOfCus}" maxlength="15"/>联系人:<input name="nameOfCus" type="text" style="width:120px" value="${OfCus}" maxlength="15"/>行业:<input type="text" name="tradeOfCus" style="width:120px" value="${cus.tradeOfCus}" maxlength="15"/></div><p class="center border_top"><input type="submit" value="搜索" class="search" id="searchbutton" /></p></form></fieldset><c:choose><c:when test="${oper=='radio'}"><fieldset id="main"><legend>搜索结果</legend><table><thead><tr><th>省份</th><th>城市</th><th>行业</th><th>公司</th><th>联系人</th><th>职务</th><th>客户编号</th><th>联系方式</th><th>电子邮箱</th></tr></thead><tbody><c:forEach items="${pl}" var="cus"><tr target="sid_cus" rel='${cus.id}'><td>${cus.proOfCus}</td><td>${cus.cityOfCus}</td><td>${cus.tradeOfCus}</td><td>${pOfCus}</td><td>${OfCus}</td><td>${cus.postOfCus}</td><td>${cus.codeOfCus}</td><td>${cus.mobileOfCus}</td><td>${cus.emailOfCus}</td></tr></c:forEach></tbody></table><hr /><p class="center"><input type="button" value="确定" id="yesid" /></p></fieldset></c:when><c:otherwise><div id="main" class="ml"><fieldset id="de"><legend>搜索结果</legend><div id="searchResult"><table><thead><tr><th><input type="checkbox" title="全选/全消" id="chk_all"/></th><th>省份</th><th>城市</th><th>行业</th><th>公司</th><th>联系人</th><th>职务</th><th>客户编号</th><th>联系方式</th><th>电子邮箱</th></tr></thead><tbody><c:forEach items="${pl}" var="cus"><tr id='${cus.id}'><td class="chkbox"><input type="checkbox" value='<c:out value="${cus.id}"/>' class="checkbox" /></td><td>${cus.proOfCus}</td><td>${cus.cityOfCus}</td><td>${cus.tradeOfCus}</td><td>${pOfCus}</td><td>${OfCus}</td><td>${cus.postOfCus}</td><td>${cus.codeOfCus}</td><td>${cus.mobileOfCus}</td><td>${cus.emailOfCus}</td></tr></c:forEach></tbody></table><lms:pageForm listName="p1"/><form id="pagerForm" method="post" action="<%=ctxtPath %>/cus.do"><input type="hidden" name="target" value="cusNames"/><input type="hidden" name="method" value="selectorCus"/><input type="hidden" name="targetId" value="cusIds"/><input type="hidden" name="pageNum" value="1"/><input type="hidden" name="numPerPage" value="10"/></form><div class="panelBar"><div class="pages"><span>显示</span><select id="numPerPageSel" name="numPerPage" onchange="javascript:navTabPageBreak({numPerPage:this.value,pageNum:1})"> <option value='10'>10</option><option value='50'>50</option><option value='100'>100</option><option value='200'>200</option></select><script type="text/javascript">document.getElementById('numPerPageSel').value=10;</script><span>条,共 4 条</span></div><div class='pagination' targetType='navTab' totalCount='4' numPerPage='10' pageNumShown='5' currentPage='1'></div></div></div><p class="center border_top"><input type="button" value="将选定添加至筛选结果 >>" id="move" /></p></fieldset><fieldset id="my"><legend>筛选结果</legend><div id="chooseResult"><table><tbody></tbody></table></div><p class="center border_top"><input type="button" value="删除选定" id="remove" /><input type="button" class="close" value="确认筛选结果" onclick="javascript:selected('<%=request.getParameter("target")%>','<%=request.g etParameter("targetId")%>');"/></p></fieldset></div></c:otherwise></c:choose><script type="text/javascript" src="<%=ctxtPath %>/scripts/util/public.js"></script><script type="text/javascript" src="<%=ctxtPath %>/scripts/util/selector.js"></script>。