form_cool.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:9k
- <%@ Page Language="C#" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>表单智能设计器</title>
- <script Language="JavaScript">
- self.moveTo(0,0);
- self.resizeTo(screen.availWidth,screen.availHeight);
- self.focus();
- function CheckForm()
- {
- if(EDIT_HTML.get_docHtml()=="")
- { alert("表单内容不能为空!");
- return (false);
- }
- return (true);
- }
- function send()
- {
- if(CheckForm())
- {
- if(EDIT_HTML.switchMode.checked == true)
- {
- alert("源文件模式,不能保存!");
- return;
- }
- document.form1.CONTENT.value=EDIT_HTML.get_docHtml();
- document.form1.submit();
- }
- }
- function myclose()
- {
- msg='关闭表单设计器前,保存对表单的修改?';
- if(window.confirm(msg))
- {
- document.form1.CLOSE_FLAG.value="1";
- send();
- }
- else
- window.close();
- }
- function Load_Do()
- {
- EDIT_HTML.insertHtml("strFormModel %>");
- EDIT_HTML.focus();
- <% = Request.QueryString["save"]!=null?"alert('表单已保存!')" : ""%>
- }
- function cool_textfield()
- {
- URL="cool_textfield.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:150px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_textarea()
- {
- URL="cool_textarea.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:150px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_listmenu()
- {
- URL="cool_listmenu.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:290px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_checkbox()
- {
- URL="cool_checkbox.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:120px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_calendar()
- {
- URL="cool_calendar.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:120px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_auto()
- {
- URL="cool_auto.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-380;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:360px;dialogHeight:250px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_calc()
- {
- URL="cool_calc.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:180px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_listview()
- {
- URL="cool_listview.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-450;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:420px;dialogHeight:290px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_user()
- {
- URL="cool_user.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:330px;dialogHeight:120px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- function cool_sign()
- {
- URL="cool_sign.aspx";
- loc_x=document.body.scrollLeft+event.clientX-event.offsetX-350;
- loc_y=document.body.scrollTop+event.clientY-event.offsetY+62;
- window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:100px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
- }
- </script>
- </HEAD>
- <body class="bodycolor" leftmargin="0" topmargin="0" onload="Load_Do();">
- <table width="100%" height="100%" class="big" bgcolor="#000000" border="0" cellpadding="3"
- cellspacing="1" align="center">
- <tr bgcolor="#DDDDDD">
- <td class="TableHeader" colspan="2" height="20">
- <b>表单智能设计器</b>:<span class="small">首先,将网页设计工具或Word编辑好的表格框架粘贴到表单设计区。然后,创建表单控件。</span>
- </td>
- </tr>
- <tr bgcolor="#DDDDDD">
- <td bgcolor="#DDDDDD" width="100%">
- <iframe id="EDIT_HTML" style="BACKGROUND-COLOR: buttonface" src="/module/rte/index.aspx?form_id=intFormId %>" width="100%"
- height="100%" type="text/x-scriptlet" VIEWASTEXT></iframe>
- </td>
- <td valign="top" align="center">
- <table width="120" border="0" cellspacing="1" class="small" bgcolor="#ffffff" cellpadding="3"
- align="center">
- <tr class="TableHeader">
- <td align="center">表单控件</td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_textfield()"><img src="/images/form/textfield.gif" align="absmiddle">单行输入框</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_textarea()"><img src="/images/form/textarea.gif" align="absmiddle">多行输入框</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_listmenu()"><img src="/images/form/listmenu.gif" align="absmiddle">下拉菜单</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_checkbox()"><img src="/images/form/checkbox.gif" align="absmiddle">选择框</button></td>
- </tr>
-
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_listview()"><img src="/images/form/listview.gif" align="absmiddle">列表控件</button></td>
- </tr>
-
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_auto()"><img src="/images/form/auto.gif" align="absmiddle">宏控件</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_calendar()"><img src="/images/form/calendar.gif" align="absmiddle">日历控件</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_calc()"><img src="/images/form/calc.gif" align="absmiddle">计算控件</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_user()"><img src="/images/form/user.gif" align=absmiddle>部门人员控件</button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;text-Align:left" onclick="cool_sign()"><img src="/images/form/sign.gif" height=20 width=20 align=absmiddle>安全签章控件</button></td>
- </tr>
- </table>
- <br>
- <table width="120" border="0" cellspacing="1" class="small" bgcolor="#ffffff" cellpadding="3"
- align="center">
- <tr class="TableHeader">
- <td align="center">保存与退出</td>
- </tr>
- <form action="cool_submit.aspx" method="post" name="form1">
- <tr class="TableHeader">
- <td align="center"><button style="width:120;height:30;text-Align:center" onclick="send()"><b>保存表单</b></button></td>
- </tr>
- <tr class="TableHeader">
- <td align="center"><button style="width:120;height:30;text-Align:center" onclick="myclose()"><b>关闭设计器</b></button></td>
- </tr>
- <input type="hidden" name="CONTENT" value="">
- <input type="hidden" name="CLOSE_FLAG" value="0">
- <input type="hidden" name="FORM_ID" value="intFormId%>">
- </form>
- </table>
- </td>
- </tr>
- </table>
-
- </body>
- </HTML>