Edit D:\chineseall_products\bak\digitalLib6\pages\standard\inputFeedBack.jsp
<%@ page contentType="text/html;charset=utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <s:set name="templatePath" value="@com.chineseall.core.servlet.InitParameters@pageTemplatePath" /> <!doctype html> <html> <head> <jsp:include page="/pages/${templatePath }/head.jsp"></jsp:include> <link href="/js/m_alert/css/m_alert.css" type="text/css" rel="stylesheet"> <link href="/pages/${templatePath }/css/subpage.css" type="text/css" rel="stylesheet"> <title>?????? - <s:action name="viewSchoolName" executeResult="true"> <s:param name="sid" value="sid"></s:param> </s:action></title> </head> <body> <jsp:include page="/pages/${templatePath}/nav.jsp" /> <div class="page subpage"> <div class="dynamic_library"> <div class="dynamic_library_nav"> <a href="/">???</a><span>></span>?????? </div> <div class="dynamic_library_detail"> <div class="title">??????</div> <input type="hidden" name="opinon.title" id="title" value=""/> <textarea class="yjfk_box" name="opinon.content" id="content" oninput="displayWordCount();" cols="" rows="" placeholder="????????"><s:property value="opinon.content"/></textarea> <span class="fright" id="inputwordCount"> <s:if test="opinon != null && opinon.content != null"><s:property value="opinon.content.length"/></s:if> <s:else>0</s:else>/500?? </span> <input type="hidden" name="opionToken" id="opionToken" value="<s:property value="@com.digitallib.util.CsrfUtil@generateAndReturnCsrfToken('opionToken')"/>"> <input class="submit" name="" type="button" value="???" onclick="doSubmit();"> </div> <s:property value="info"/> </div> </div> <jsp:include page="/pages/${templatePath }/foot.jsp"></jsp:include> <script type='text/javascript' src='/js/m_alert/m_alert.js'></script> <script type="text/javascript"> function displayWordCount() { $("#inputwordCount").html($("#content").val().length + "/500??"); } function doSubmit() { var content = $("#content").val(); if(content.length <= 0) { m_alert("error", "??????????????"); $("#content").focus(); return false; } if(content.length > 500) { m_alert("error", "????????????500?????"); $("#content").focus(); return false; } $.ajax({ type : 'POST', url : ppath+'/inputFeedBackAjax.action', data : { "opinon.title" : "", "opinon.content" :content, "opionToken": $("#opionToken").val() }, dataType : 'json', success : function(result) { if (result.info != '') { m_alert("success", result.info, ppath+"/"); } $("#content").val(""); $("#inputwordCount").html("0/500??"); }, error : function(XMLHttpRequest, textStatus, errorThrown) { m_alert("error", "??????????????????????????"); } }); }; </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de