Ai
1 Star 0 Fork 28

gisinaction/discoverx2-webapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dtselector.jsp 3.78 KB
一键复制 编辑 原始数据 按行查看 历史
腾硕软件 提交于 2015-04-03 00:21 +08:00 . 初始提交
<!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="com.tansuosoft.discoverx.web.ui.selector.SelectorForm"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=GBK" />
<%@include file="/jspinit.jsp" %>
<%
jspContext.setNoCache();
SelectorForm selectorForm=new SelectorForm();
selectorForm.fillWebRequestForm(request);
%>
<%=jspContext.outputCss("dtselectorform.css",pathContext.getThemePath()) %>
<style type="text/css">
input,select,button{font-size:12px;font-family:微软雅黑;}
input:focus,
select:focus,
textarea:focus,
button:focus {
outline: none;
}
.navbtn{float:left;width:16px;}
.navbtn img{margin-top:1px;}
#ibyear{float:left;width:50px;ime-mode:disabled;margin:0px;padding:0px;height:16px;}
#selmonth{float:left;width:72px;margin:0px;padding:0px;}
.today{background-color:highlight;color:white!important;}
.timemsg{float:left;line-height:24px;}
.timehh{float:left;background:#ffffff none;border:1px solid #cccccc;border-right-width:0px;}
.timenn{float:left;background:#ffffff none;border:1px solid #cccccc;border-left-width:0px;border-right-width:0px;}
.timess{float:left;background:#ffffff none;border:1px solid #cccccc;border-left-width:0px;}
#timehh{width:20px;ime-mode:disabled;height:16px;border-width:0px;margin-top:2px;background:transparent none;}
#timenn{width:20px;ime-mode:disabled;height:16px;border-width:0px;margin-top:2px;background:transparent none;}
#timess{width:20px;ime-mode:disabled;height:16px;border-width:0px;margin-top:2px;background:transparent none;}
#btnok{height:22px;}
</style>
<%=jspContext.outputJs("common.js",pathContext.getCommonJSPath()) %>
<%=jspContext.outputJs("dragdrop.js",pathContext.getFrameJSPath()) %>
<%@include file="/jsinit.jsp" %>
<title>选择框 - 日期时间</title>
</head>
<body>
<div id="dtselectorcontainer">
<div id="dtselectortitle">
<div class="dtselectortl"></div>
<div id="dtselectorcaptioncontainer">
<div id="dtselectorcaption">选择日期时间</div>
<div id="dtselectorclose" onclick="Actions.close();" onmouseover="Actions.cmx(this,'h');" onmouseout="Actions.cmx(this);" onmousedown="Actions.cmx(this,'d');" onmouseup="Actions.cmx(this,'h');"></div>
</div>
<div class="dtselectortr"></div>
</div>
<div id="dtselectorcontainerouter">
<div id="dtselectorbl"></div>
<div id="dtselectorcontainerinner">
</div> <!-- inner end-->
<div id="dtselectorbr"></div>
<div id="dtselectorbb"></div>
</div> <!-- outer end-->
</div>
<%=jspContext.outputJs("dtselector.js",pathContext.getFrameJSPath()) %>
<script type="text/javascript" language="javascript">
var selectorForm={<%=selectorForm.toJson()%>};
var tvroot = { targetFiles: new Array(),templet:{}};
tvroot.templet.datasource=selectorForm.datasource;
tvroot.templet.dslabel=selectorForm.label;
tvroot.templet.dsvalue=selectorForm.value,
tvroot.templet.filter=selectorForm.filter,
tvroot.templet.multiple=selectorForm.multiple,
tvroot.templet.delimiter=selectorForm.delimiter,
tvroot.templet.labelOkId=selectorForm.labelTarget;
tvroot.templet.valueOkId=selectorForm.target;
var dt=null;
if(window.parent){
var targetEl=window.parent.document.getElementById(selectorForm.target);
if(targetEl==null)targetEl=window.parent.Selector.window.document.getElementById(selectorForm.target);
dt=DT.parse(targetEl?targetEl.value:'');
}
Calendar.init(dt,'<%=jspContext.getString(request.getParameter("v"),"")%>');
showSelectPane();
//如果在模式对话框中打开,设置模式对话框位置css效果
if (window.dialogArguments) {
document.body.style.marginTop = '-31px';
document.body.style.marginLeft = '-8px';
}
EVENT.add(document, 'keydown', ondockd);
new dtselectorDraggable(parent.document.getElementById('id_selector'));
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/springjava/discoverx2-webapp.git
git@gitee.com:springjava/discoverx2-webapp.git
springjava
discoverx2-webapp
discoverx2-webapp
master

搜索帮助