Edit D:\chineseall_products\chineseall_digitallib\digitallib\digitalLib6\pages\standard\inputSurvey.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> <div class="mtop10"> ?????????????????????????????????????????????????????????????°?????????????????????????????????/??????????????????????????????? <s:iterator value="list" status="obj"> <dl class="wjdc_list"> <dt> <input type="hidden" value="<s:property value="#obj.count"/>" name="survey"> <s:property value="#obj.count"/>.<s:property value="title"/> <span class="color9"> <s:if test="multiSel == 0">??????</s:if> <s:elseif test="multiSel == 1">??????</s:elseif> </span> </dt> <s:iterator value="items"> <dd> <input name="surveyItem_<s:property value="#obj.count"/>" type="<s:if test="multiSel == 0">radio</s:if><s:else>checkbox</s:else>" value="<s:property value="id"/>"> <s:property value="title"/> </dd> </s:iterator> </dl> </s:iterator> </div> <input type="hidden" name="surveyToken" id="surveyToken" value="<s:property value="@com.digitallib.util.CsrfUtil@generateAndReturnCsrfToken('surveyToken')"/>"> <input class="submit" type="button" value="???" onclick="doSubmit();"> </div> </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 doSubmit() { var ids = []; var val = true; $("input[name='survey']").each(function() { var index = $(this).val(); var items = $("input[name='surveyItem_" + index + "']:checked"); if(items.length <= 0) { m_alert("error", "????????????????????"); val = false; return false; } $("input[name='surveyItem_" + index + "']:checked").each(function() { ids.push($(this).val()); }); }); if(!val) return; $.ajax({ type : 'POST', url : '/saveSurvey.action', data : { "keyword" : ids.join(","), "surveyToken": $("#surveyToken").val() }, dataType : 'json', success : function(result) { if(result != null && result != undefined && result.status == "1") { m_alert("success", "??????????????????", "/"); return; } else { m_alert("error", "??????????????????????????"); $("#surveyToken").val(result.surveyToken); } }, 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