主题 : 求教, |
级别: 进士
![]() |
1# 发表于:2017-08-09 16:04:17 IP:27.220.*.*
|
||||
---|---|---|---|---|---|
级别: 进士
![]() |
5# 发表于:2017-08-09 16:12:38 IP:27.220.*.*
回复第4楼
<!DOCTYPE HTML> <html> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <head> <title>${channel.title!channel.name} - ${site.name}</title> <meta http-equiv="keywords" content="${channel.keywords!}"/> <meta http-equiv="description" content="${channel.description!}"/> <!--[if lt IE 9]> <script src="${resSys}/html5.js" type="text/javascript"></script> <![endif]--> <!-- <link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/> --> <link href="/${res}/nyj/base.css" rel="stylesheet" type="text/css"/> <link href="/${res}/nyj/list.css" rel="stylesheet" type="text/css"/> <script src="${resSys}/jquery.js" type="text/javascript"></script> <script src="${resSys}/jqueryUI/jquery-ui.js" type="text/javascript"></script> <script src="${resSys}/front.js" type="text/javascript"></script> <script src="/${res}/js/common.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { Cms.siteFlow("${base}", location.href, document.referrer); }); </script> </head> <body> <div class="bread"> <a href="${base}/">首页</a> <span class="point"> > </span> [#list channel.nodeList as n]<span><a href="${n.url}">${n.name}</a></span>[#if n_has_next] <span class="point"> > </span> [/#if][/#list] </div> <div class="container"> <div class="inPage"> <div class="rightCont"> <div class="caTable"> <form id="tsjbsubmitForm" action="${base}/gzcy/tsjbsubmit.jspx" target="_blank" name="token" method="post"> <table width="100%" border="0" cellpadding="0" class="ca_table" cellspacing="0" style="margin-top:10px;"> <tr> <td class="ca_tit"><font color="red">*</font>姓名:</td> <td class="ca_txt"> <input type="text" name="name" class="ca_tab_inp" maxlength="100"/> </td> <td class="ca_tit"><font color="red">*</font>联系电话:</td> <td class="ca_txt"> <input type="text" name="phone" class="ca_tab_inp" maxlength="100"/> </td> </tr> <tr> <td class="ca_tit">邮箱:</td> <td class="ca_txt"> <input type="text" name="email" class="ca_tab_inp" maxlength="100"/> </td> </tr> <tr> <td class="ca_tit"><font color="red">*</font>标题:</td> <td colspan="3" class="ca_txt"> <input id="title" name="title" type="text" size="40" class="ca_tab_inp" required="required" maxlength="255"/></td> </tr> <tr> <td class="ca_tit"> <font color="red">*</font>意见内容: </td> <td colspan="3" class="ca_txt"> <textarea name="txt" class="ca_tab_area" cols="55" rows="8"></textarea></td> </tr> <td colspan="4" class="ca_txt">提醒:带<font color="red">*</font>号部分为必填部分,请认真填写,以免造成不必要的麻烦!</td> <tr> <td colspan="4" align="center" bgcolor="#FFFFFF"> <div class="clear-10"></div> <a type="image" id="btn_tsjbsubmit" name="submit" value="" class="ca_sub">提交</a> </td> </tr> <tr id="tr_result" style="display:none"> <td colspan="4" align="center" bgcolor="#FFFFFF"> <div class="clear-10"></div> <p style="font-size:20px">提交成功。</p> <p id="cxh_result" style="color:green;font-size:24px"></p> </td> </tr> </table> </form> </div> <script type="text/javascript"> (function($){ $.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(array).each(function(){ if(serializeObj[this.name]){ if($.isArray(serializeObj[this.name])){ serializeObj[this.name].push(this.value); }else{ serializeObj[this.name]=[serializeObj[this.name],this.value]; } }else{ serializeObj[this.name]=this.value; } }); return serializeObj; }; })(jQuery); $(function() { var curWwwPath=window.document.location.href; var pathName=window.document.location.pathname; var pos=curWwwPath.indexOf(pathName); var localhostPaht=curWwwPath.substring(0,pos); var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1); var webpath = localhostPaht+projectName; $("#btn_tsjbsubmit").click(function () { var options = { url: webpath+'/gzcy/tsjbsubmit.jspx', type: 'POST', dataType: 'json', contentType:'application/json;charset=UTF-8', data: JSON.stringify($("#tsjbsubmitForm").serializeJson()), success: function (data) { if(data.success){ $(':input','#tsjbsubmitForm') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); $("#tr_result").removeAttr("style"); $("#cxh_result").html(data.chaxunhao); } } }; $.ajax(options); return false; }); }); </script> </div> <!-- 分页 --> <div class="clear"></div> </div> </div> </body> </html> |
||
---|---|---|---|