Ai
1 Star 0 Fork 28

gisinaction/discoverx2-webapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
linkeditor.jsp 3.40 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("commoneditor.css",pathContext.getThemePath()) %>
<style type="text/css">
.fieldlabel{margin:4px auto;width:96%;}
.fieldlabel span {color:red;}
.fieldctrl{margin:0px auto;width:96%;}
.fieldctrl input{font-size:12px;width:96%;}
.tip{margin:4px auto;width:96%;text-indent:2em;}
hr {margin-top:20px;width:100%;}
.btncontainer{text-align:right;}
</style>
<%=jspContext.outputJs("common.js",pathContext.getCommonJSPath()) %>
<%=jspContext.outputJs("dragdrop.js",pathContext.getFrameJSPath()) %>
<%@include file="/jsinit.jsp" %>
<title>编辑链接字段值</title>
</head>
<body>
<div id="editorcontainer">
<div id="editortitle">
<div class="editortl"></div>
<div id="editorcaptioncontainer">
<div id="editorcaption">编辑链接字段值</div>
<div id="editorclose" 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="editortr"></div>
</div>
<div id="editorcontainerouter">
<div id="editorbl"></div>
<div id="editorcontainerinner">
<div class="fieldlabel"><label for="linkname">链接名称<span>*</span></label></div>
<div class="fieldctrl"><input type="text" id="linkname" value="" /></div>
<div class="fieldlabel"><label for="href">链接地址<span>*</span></label></div>
<div class="fieldctrl"><input type="text" id="href" value="" /></div>
<div class="tip">输入链接名称和链接目标地址,但后单击“确定”,形如“http://...”、“ftp://...”、“mailto:...”等都是合法的链接地址。</div>
<hr/>
<div class="btncontainer">
<input class="btn" id="btnok" type="button" value="确定" onclick="Actions.ok();" />&nbsp;<input class="btn" id="btncancel" type="button" value="取消" onclick="Actions.close();" />&nbsp;
</div>
</div> <!-- inner end-->
<div id="editorbr"></div>
<div id="editorbb"></div>
</div> <!-- outer end-->
</div>
<%=jspContext.outputJs("linkeditor.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;
//如果在模式对话框中打开,设置模式对话框位置css效果
if (window.dialogArguments) {
document.body.style.marginTop = '-31px';
document.body.style.marginLeft = '-8px';
Actions.oldValue=(window.dialogArguments+'').trim();
}
else{
var pel=window.parent.document.getElementById(selectorForm.target);
if(pel!=null) Actions.oldValue=pel.value;
}
Actions.init();
new linkeditorDraggable(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

搜索帮助