<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>添加</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body class="end_task_body widthauto">
|
|
<script type="text/javascript">
|
|
$(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
$("#versionCode").formValidator({empty: false, onShow: "请输入版本号", onFocus: "请输入版本号!"}).inputValidator({min: 1, onError: "版本号不能为空!"}).inputValidator({max: 32, onError: "版本号达到最大长度!"});
|
$("#htmlName").formValidator({empty:false,onShow:"请选择html5版本",onFocus:"请选择html5版本!"}).inputValidator({min:1,onError:"html5版本不能为空"}).inputValidator({max: 32, onError: "html5版本达到最大长度!"});
|
$("#content").formValidator({empty: false, onShow: "请填写更新内容", onFocus: "请填写更新内容!"}).inputValidator({min: 1, onError: "更新内容不能为空!"}).inputValidator({max: 200, onError: "更新内容达到最大长度!"});
|
$("input[name='isUpdateHtml']").click(function(){
|
if($(this).val() == 1){
|
$("#htmlName").formValidator({empty:false,onShow:"请选择html5版本",onFocus:"请选择html5版本!"}).inputValidator({min:1,onError:"html5版本不能为空"}).inputValidator({max: 32, onError: "html5版本达到最大长度!"});
|
$("#ss").addClass("required");
|
}else{
|
$("#htmlName").formValidator({empty:true,onFocus:"请选择html5版本!"});
|
$("#ss").removeClass("required");
|
}
|
});
|
})
|
|
</script>
|
|
<div class="edit_txt">
|
<form id="myform" action="saveLarksVersion.html" method="post">
|
[#if info??]<input type="hidden" name="id" value="${info.ID}" />[/#if]
|
<table class="edit_layout2">
|
<tr><th><label class="required">版本号:</label></th>
|
<td><input class="general" type="text" name="versionCode" id="versionCode" [#if info??]value="${info.VERSION_CODE}"[/#if] style="width:300px;"/>
|
</td><td>
|
<div id="versionCodeTip" style="display:inline-block;"></div>
|
</td>
|
|
</tr>
|
<tr><th><label>是否更新HTML5:</label></th>
|
<td>
|
<input class="ishtml audit" name="isUpdateHtml" checked type="radio" value="1"/>是
|
<input class="ishtml audit" name="isUpdateHtml" id="isUpdateHtml2" [#if info.IS_UPDATE_HTML == 0]checked[/#if] type="radio" value="0"/>否
|
</td>
|
</tr>
|
<tr><th><label class="required" id="ss">HTML5版本号:</label></th>
|
<td><input name="htmlName" id="htmlName" [#if info??]value="${info.HTML_CODE}"[/#if] style="width:300px;" class="general" onclick="javascript:showHtmlVersion('${info.ID}');" readonly />
|
<input name="htmlId" id="htmlId" [#if info??]value="${info.HTML_ID}"[/#if] type="hidden" />
|
</td><td>
|
<div id="htmlNameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr><th><label>是否强制更新:</label></th>
|
<td><input class="audit" name="isForceUpdate" checked type="radio" value="1"/>否
|
<input class="audit" name="isForceUpdate" [#if info.IS_FORCE_UPDATE == 2]checked[/#if] type="radio" value="2"/>是
|
</td>
|
</tr>
|
<tr><th><label class="required">更新内容:</label></th>
|
<td><textarea class="general" style="width:300px" name="content" id="content" />[#if info??]${info.CONTENT}[/#if]</textarea>
|
</td><td>
|
<div id="contentTip" style="width:180px;"></div>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
function showHtmlVersion(versionId){
|
var url = "${base}/business/pages/sys/showHtmlVersion.html?versionId="+versionId;
|
window.top.openDialog("2","html5版本",
|
{},
|
{"width":60,"height":70},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
function setHtmlValue(htmlId,htmlNo){
|
$("#htmlId").val(htmlId);
|
$("#htmlName").val(htmlNo);
|
}
|
</script>
|
|
</body>
|
</html>
|