123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%@taglib uri="/struts-tags" prefix="s"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <link href="../../ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <link href="../../ligerui/lib/ligerUI/skins/Silvery/css/style.css"
- rel="stylesheet" type="text/css" />
- <script src="../../ligerui/lib/jquery/jquery-1.3.2.min.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/core/base.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerForm.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDateEditor.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerComboBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerCheckBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerButton.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDialog.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerRadio.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerSpinner.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTextBox.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/ligerUI/js/plugins/ligerTip.js"
- type="text/javascript"></script>
- <script
- src="../../ligerui/lib/jquery-validation/jquery.validate.min.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/jquery-validation/jquery.metadata.js"
- type="text/javascript"></script>
- <script src="../../ligerui/lib/jquery-validation/messages_cn.js"
- type="text/javascript"></script>
- <script src="../../ligerui/ajaxfileupload.js" type="text/javascript"></script>
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/ueditor.config.js"></script>
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/ueditor.all.min.js"> </script>
- <!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
- <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
-
- <script type="text/javascript">
- //时间空间初始化
-
- Date.prototype.format = function(format){
- var o = {
- "M+" : this.getMonth()+1, //month
- "d+" : this.getDate(), //day
- "h+" : this.getHours(), //hour
- "m+" : this.getMinutes(), //minute
- "s+" : this.getSeconds(), //second
- "q+" : Math.floor((this.getMonth()+3)/3), //quarter
- "S" : this.getMilliseconds() //millisecond
- }
-
- if(/(y+)/.test(format)) {
- format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
- }
-
- for(var k in o) {
- if(new RegExp("("+ k +")").test(format)) {
- format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length));
- }
- }
- return format;
- }
-
- //初始化
- $(function ()
- {
-
-
- var lmid = '<s:property value="#parameters.lmid" />' ;
- //var now = new Date();
- //var addTime = now.format("yyyy-MM-dd hh:mm");
- $("#lmid").val(lmid);
- $.metadata.setType("attr", "validate");
- var v = $("form").validate({
- debug: true,
- errorPlacement: function (lable, element)
- {
- if (element.hasClass("l-textarea"))
- {
- element.ligerTip({ content: lable.html(), target: element[0] });
- }
- else if (element.hasClass("l-text-field"))
- {
- element.parent().ligerTip({ content: lable.html(), target: element[0] });
- }
- else
- {
- lable.appendTo(element.parents("td:first").next("td"));
- }
- },
- success: function (lable)
- {
- lable.ligerHideTip();
- lable.remove();
- },
- submitHandler: function ()
- {
-
- document.form.submit();
-
- }
- });
- $("form").ligerForm();
- $(".l-button-test").click(function ()
- {
- alert(v.element($("#txtName")));
- });
- });
-
-
- </script>
-
- <style type="text/css">
- body {
- font-size: 12px;
- }
- .l-table-edit {
-
- }
- .l-table-edit-td {
- padding-top: 4px;
- padding-bottom: 4px;
- padding-left: 10px;
- padding-right: 10px;
- }
- .l-button-submit,.l-button-test {
- width: 80px;
- float: left;
- margin-left: 10px;
- padding-bottom: 2px;
- }
- .l-verify-tip {
- left: 230px;
- top: 120px;
- }
- </style>
- <style type="text/css">
- * {
- font-size: 12px;
- }
- .div {
- margin: 0 auto;
- width: 100%;
- overflow: hidden;
- padding: 0px;
- }
- .line {
- position: relative;
- margin: 0 auto;
- text-align: left
- }
- .line span.span {
- float: left;
- padding-top: 2px;
- }
- .file {
- position: absolute;
- left: 0;
- width: 265px ! important;
- top: 0;
- height: 28px;
- filter: alpha(opacity = 0);
- opacity: 0;
- cursor: pointer
- }
- .file1 {
- float: left;
- margin-left: 0px;
- margin-right: 4px;
- z-index: 1;
- width: 70px;
- height: 28px;
- line-height: 28px;
- background: url(../image/liulan.gif) no-repeat 0 0;
- text-indent: -9999px;
- cursor: pointer
- }
- .file2 {
- float: left;
- z-index: 1;
- width: 70px;
- height: 28px;
- line-height: 28px;
- background: url(../image/liulan.gif) no-repeat 0 0;
- text-indent: -9999px;
- cursor: pointer
- }
- .inputstyle {
- border: 1px solid #BEBEBE;
- margin-left: -3px;
- margin-top: -1px;
- width: 196px ! important;
- float: left;
- height: 22px;
- line-height: 22px;
- background: #FFF;
- z-index: 99
- }
- #n {
- margin: 10px auto;
- width: 920px;
- border: 1px solid #CCC;
- font-size: 14px;
- line-height: 30px;
- }
- #n a {
- padding: 0 4px;
- color: #333
- }
- input{
- line-height:15px;
- height:15px;
- }
- .div1{
- height:455px;width:300px; overflow:hidden;border:1px solid #ccc; position:absolute;left:60%;margin-top:-10px;margin-left:-250px; z-index:1100; text-align:center;display:none;
- }
- div2{
- height:445px; overflow:hidden;border:1px solid #ccc; position:absolute; left:50%; margin-left:-250px; z-index:1000; }
- </style>
- </head>
- <body style="padding: 10px;">
-
-
-
- <form name="form" method="post" action="../poll/poll!savePollTitle" id="form1">
- <input name="lmid" type="hidden" id="lmid" />
- <table cellpadding="0" cellspacing="0" class="l-table-edit" border="1" bordercolor="#c7d4e2" style="margin-left:10px">
- <tr >
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7" >
- 栏目名称:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <span style="margin-bottom:8px;"><s:property value="lmb.lmmc" /></span>
- </td>
- </tr>
-
- <tr>
- <td align="center" class="l-table-edit-td">
- 调查标题:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="title" type="text" id="pollTitle" ltype="text"
- style="width: 782px;"
- validate="{required:true,minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
-
-
-
-
-
-
-
-
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项类型:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <select name="type" style="width: 200px">
- <option value="checkbox" selected="selected">多选</option>
- <option value="radio">单选</option>
- </select>
- </td>
- <td align="left"></td>
- </tr>
-
-
-
-
-
-
- <tr>
- <td align="center" class="l-table-edit-td">
- 选项1:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option1" ltype="text"
- style="width: 782px;"
- validate="{required:true,minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项2:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option2" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
-
- <tr>
- <td align="center" class="l-table-edit-td">
- 选项3:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option3" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项4:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option4" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td">
- 选项5:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option5" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项6:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option6" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td">
- 选项7:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option7" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项8:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option8" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td">
- 选项9:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option9" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
- <tr>
- <td align="center" class="l-table-edit-td" bgcolor="#f3f8f7">
- 选项10:
- </td>
- <td align="left" class="l-table-edit-td" colspan="4" >
- <input name="option" type="text" id="option10" ltype="text"
- style="width: 782px;"
- validate="{minlength:0,maxlength:100}" />
- </td>
- <td align="left"></td>
- </tr>
-
-
-
-
- <tr>
- <td align="right" class="l-table-edit-td" colspan="11" style="padding-left: 40%">
- <input type="submit" value="提交" id="btnSubmit"
- class="l-button l-button-submit" />
- <input type="button" value="返回" id="btnBack"
- onclick="javascript:window.location.href='../poll/poll!pollList?lmid=<s:property value="lmb.id" escape="false"/>';"
- class="l-button l-button-test" id="test" />
- </td>
- </tr>
- </table>
- <div style="display: none">
- </div>
- </form>
- </body>
- <script type="text/javascript" charset="utf-8"
- src="../../ueditor/uEditorContent.js"></script>
- </html>
|