123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <%--
- time:2017-07-31 09:53:28
- desc:edit the 手机端程序更新
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 手机端程序更新</title>
- <%@include file="/commons/include/form.jsp" %>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/form/AttachMent.js" ></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/system/HtmlUploadDialog.js" ></script>
- <script type="text/javascript">
- $(function() {
- $("a.save").click(function() {
- $("#sysApkVersionForm").attr("action","save.ht");
- $("#saveData").val(1);
- submitForm();
- });
- });
- //提交表单
- function submitForm(){
- var attachment=document.getElementById("attachment").value;
- if(attachment==""){
- $.ligerDialog.warn("附件上传不能为空!","消息提示");
- return;
- }
- var options={};
- if(showResponse){
- options.success=showResponse;
- }
- var frm=$('#sysApkVersionForm').form();
- frm.ajaxForm(options);
- if(frm.valid()){
- frm.submit();
- }
- }
-
- function showResponse(responseText) {
- var obj = new com.hotent.form.ResultMessage(responseText);
- if(!obj.isSuccess()){
- $.ligerDialog.err("提示信息"," 手机端程序更新保存失败!",obj.getMessage());
- return;
- }
- $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
- if(rtn){
- window.location.href = window.location.href;
- }else{
- window.location.href = "${ctx}/platform/system/sysApkVersion/list.ht";
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${sysApkVersion.id !=null}">
- <span class="tbar-label"><span></span>编辑手机端程序更新</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label"><span></span>添加手机端程序更新</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
- <div class="l-bar-separator"></div>
- <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="sysApkVersionForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
- <tr>
- <th width="20%">附件: </th>
- <td>
- <div name="div_attachment_container">
- <div class="attachement"></div>
- <textarea style="display: none" controltype="attachment"
- id="attachment" name="attachment" lablename="主表附件" validate="{}">${sysApkVersion.attachment}</textarea>
- <a href="javascript:;" field="attachment" class="link selectFile"
- atype="select" onclick="AttachMent.addFile(this);">选择</a>
- <span class="red">
- 一个版本号只需上传一个附件</span>
- </div>
- </td>
- </tr>
- <tr>
- <th width="20%">上传人: </th>
- <td><input type="text" id="uploadpeople" name="uploadpeople" value="${sysApkVersion.uploadpeople}" class="inputText" validate="{required:false,maxlength:50}" readonly /></td>
- </tr>
- <tr>
- <th width="20%">上传时间: </th>
- <td><input type="text" id="uploadtime" name="uploadtime" value="<fmt:formatDate value='${sysApkVersion.uploadtime}' pattern='yyyy-MM-dd'/>" class="inputText" validate="{date:true}" readonly /></td>
- </tr>
- <tr>
- <th width="20%">是否必须更新: </th>
- <td>
- <input type="radio" name="isupdate" value="1" <c:if test="${sysApkVersion.isupdate eq 1}"></c:if> />是
- <input type="radio" name="isupdate" value="0" <c:if test="${sysApkVersion.isupdate eq 0}"></c:if> checked="checked" />否
- </td>
- </tr>
- <tr>
- <th width="20%">版本号:<span class="required red">*</span> </th>
- <td>
- <input type="text" id="apkversion" name="apkversion" value="${sysApkVersion.apkversion}" class="inputText" validate="{required:true,maxlength:18}" />
- <c:if test="${!empty maxVersion}">
- <span class="red"> 最新版本号为${maxVersion}</span>
- </c:if>
- </td>
- </tr>
- </table>
- <input type="hidden" name="id" value="${sysApkVersion.id}" />
- <input type="hidden" name="uploadpeopleid" value="${sysApkVersion.uploadpeopleid}" />
- <input type="hidden" name="saveData" id="saveData" />
- <input type="hidden" name="executeType" value="start" />
- </form>
-
- </div>
- </div>
- </body>
- </html>
|