加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wizard_advSearch.jsp 3.64 KB
一键复制 编辑 原始数据 按行查看 历史
腾硕软件 提交于 2015-04-03 00:21 . 初始提交
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html; charset=GBK" language="java"%>
<%@page import="java.util.List,com.tansuosoft.discoverx.model.Form,com.tansuosoft.discoverx.model.View,com.tansuosoft.discoverx.model.ResourceContext,com.tansuosoft.discoverx.bll.ResourceAliasContext,com.tansuosoft.discoverx.web.ui.view.ViewForm,com.tansuosoft.discoverx.util.serialization.JsonSerializer,java.io.StringWriter"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/jspinit.jsp" %>
<%
ViewForm viewForm=new ViewForm();
viewForm.fillWebRequestForm(request);
View view=viewForm.getView();
String tbl=(view==null?null:view.getTable());
Form form=ResourceContext.getInstance().getResource(ResourceAliasContext.getInstance().getUNIDByAlias(Form.class,tbl),Form.class);
%>
<meta http-equiv="content-type" content="text/html; charset=GBK" />
<title><%=com.tansuosoft.discoverx.common.CommonConfig.getInstance().getSystemName()%></title>
<%=jspContext.outputJs("common.js",pathContext.getCommonJSPath()) %>
<%=jspContext.outputJs("dragdrop.js",pathContext.getFrameJSPath()) %>
<%=jspContext.outputCss("common.css",pathContext.getThemePath()) %>
<%=jspContext.outputCss("wizard.css",pathContext.getThemePath()) %>
<%=jspContext.outputCss("wizard_advSearch.css",pathContext.getThemePath()) %>
<%@include file="/jsinit.jsp" %>
</head>
<body>
<form>
<div id="wizcontainer">
<div id="wiztitle">
<div class="wiztl"></div>
<div id="wizcaptioncontainer">
<div id="wizcaption"></div>
<div id="wizclose" onclick="Wizard.close();" onmouseover="Wizard.cmx(this,'h');" onmouseout="Wizard.cmx(this);" onmousedown="Wizard.cmx(this,'d');" onmouseup="Wizard.cmx(this,'h');"></div>
</div>
<div class="wiztr"></div>
</div>
<div id="wizcontainerouter">
<div id="wizbl"></div>
<div id="wizcontainerinner">
<div id="wizheader"></div>
<div id="wizbody">
<div id="advsearchcontainer">
<div class="entry"><label for="creator">作者:</label><input class="inputtext" type="text" id="creator" value=""/></div>
<div class="entry"><label for="created">创建时间:</label><input class="inputtext" type="text" id="created" value=""/></div>
</div>
</div>
<div id="wizfooter">
<button id="wizbtn_prev" type="button" class="hided" onclick="Wizard.prev();">上一步</button>
<button id="wizbtn_next" type="button" onclick="Wizard.next();">下一步</button>
<button id="wizbtn_done" type="button" onclick="Wizard.done();">搜索</button>
<button id="wizbtn_cancel" type="button" onclick="Wizard.close();">取消</button>
</div>
</div>
<div id="wizbr"></div>
<div id="wizbb"></div>
</div>
</div>
</form>
<%=jspContext.outputJs("selector.js",pathContext.getFrameJSPath()) %>
<%=jspContext.outputJs("wizard.js",pathContext.getFrameJSPath()) %>
<%=jspContext.outputJs("wizard_advSearch.js",pathContext.getFrameJSPath()) %>
<script type="text/javascript" language="javascript">
EVENT.add(window, 'load', function() {
var descriptions=new Array(4);
descriptions[0]='按组合条件检索或过滤视图数据。';
Wizard.init({ step: 1,stepDescriptions:descriptions,ondone:advSearch.done});
Wizard.setCaption('高级检索');
<%
JsonSerializer jsonSerializer=new JsonSerializer();
StringWriter viewWriter = new StringWriter();
jsonSerializer.serialize(view, viewWriter);
StringWriter formWriter = new StringWriter();
jsonSerializer.serialize(form, formWriter);
%>
advSearch.init({<%=viewWriter.toString()%>},{<%=formWriter.toString()%>});
advSearch.renderSearchable();
window.setTimeout(advSearch.setFocus,500);
});
new wizardDraggable(parent.document.getElementById("_advSearch"));
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化