<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>新增加盟商数据字典</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body class="edit_txt_body">
|
|
<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;
|
}});
|
|
|
$("#categoryName").formValidator({empty:false,onShow:"请填写分类名称",onFocus:"分类名称不能为空!"})
|
.inputValidator({min:1,max:50,onError:"分类名称长度不能超过50个字符!"});
|
|
$("#ordernum").formValidator({empty:false,onShow:"请输入顺序号",onFocus:"顺序号不能为空"})
|
.inputValidator({min:1,max:3,onError:"顺序号必须为1到3位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到3位数字"});
|
$(".wah").formValidator({tipID:"wahtip",onShow:"请输入整数",empty:true}).regexValidator({regExp:"num",dataType:"enum",onError:"整数格式不正确"});
|
|
})
|
|
|
$(function() {
|
|
$("#hasTitleImage").click(function() {
|
if($(this).is(":checked")) {
|
$(".imageMsg").show();
|
}
|
});
|
$("#noTitleImage").click(function() {
|
if($(this).is(":checked")) {
|
$(".imageMsg").hide();
|
}
|
});
|
$("#noslt").click(function() {
|
if($(this).is(":checked")) {
|
$("#imageWidthAndHeight").hide();
|
}
|
});
|
|
$("#dbslt,#qzslt").click(function() {
|
if($(this).is(":checked")) {
|
$("#imageWidthAndHeight").show();
|
}
|
});
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="updateColunm.html" method="post" id="myform" name="myform" enctype="multipart/form-data">
|
<input type="hidden" name="up_id" value="${pId}" />
|
<input type="hidden" name="id" value="${cate.ID}"/>
|
<table class="edit_layout" width="99%">
|
<tr><th ><label class="required" >分类名称:</label></th>
|
<td><input class="general" type="text" name="categoryName" id="categoryName" value="${cate.CATEGORY_NAME}"/>
|
<div id="categoryNameTip" style="display:inline-block;width:180px;"></div>
|
</td>
|
</tr>
|
<tr><th><label class="required">分类图片:</label></th>
|
<td ><input type="file" name="classifyimage" id="classifyImage"/>
|
<input type="hidden" value="${cate.CLASSIFYIMAGE}" name="classifyImage"/>
|
<img src="${base}${cate.CLASSIFYIMAGE}"/>
|
</td>
|
</tr>
|
|
|
<tr><th><label class="required">显示顺序:</label></th>
|
<td ><input class="general" type="text" name="ordernum" id="ordernum" value="${cate.ORDERNUM}"/>
|
<div id="ordernumTip" style="display:inline-block;width:180px;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>展示类型:</label></th>
|
<td>
|
<select name="showType" style="width:100px;">
|
<option value="1" [#if cate.SHOW_TYPE == 1]checked="true"[/#if]>列表</option>
|
<option value="2" [#if cate.SHOW_TYPE == 2]checked="true"[/#if]>单信息</option>
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>摘要:</label></th>
|
<td>
|
<input type="radio" value="1" name="summary" [#if cate.SUMMARY == 1]checked="true"[/#if]/>有
|
<input type="radio" value="2" name="summary" [#if cate.SUMMARY == 2]checked="true"[/#if]/>无
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>附件:</label></th>
|
<td>
|
<input type="radio" value="1" name="attachements" [#if cate.ATTACHEMENTS == 1]checked="true"[/#if] />有
|
<input type="radio" value="2" name="attachements" [#if cate.ATTACHEMENTS == 2]checked="true"[/#if]/>无
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>审批:</label></th>
|
<td>
|
<input type="radio" value="1" name="shenpi" [#if cate.SHENPI == 1]checked="true"[/#if] />否
|
<input type="radio" value="2" name="shenpi" [#if cate.SHENPI == 2]checked="true"[/#if]/>是
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>是否上报:</label></th>
|
<td>
|
<input type="radio" value="1" name="shangb" [#if cate.SHANGB == 1]checked="true"[/#if] />否
|
<input type="radio" value="2" name="shangb" [#if cate.SHANGB == 2]checked="true"[/#if]/>是
|
</td>
|
</tr>
|
<tr>
|
<th align="right"><label>标题图片:</label></th>
|
<td>
|
<input type="radio" value="1" name="titleimage" id="hasTitleImage" [#if cate.TITLEIMAGE == 1]checked="true"[/#if] />有
|
<input type="radio" value="2" name="titleimage" id="noTitleImage" [#if cate.TITLEIMAGE == 2]checked="true"[/#if]/>无
|
</td>
|
</tr>
|
<tr class="imageMsg" [#if cate.TITLEIMAGE != 1]style="display:none;"[/#if]>
|
<th align="right"><label>缩略图:</label></th>
|
<td>
|
<input type="radio" value="1" name="thumbnail" id="noslt" [#if cate.THUMBNAIL == 1]checked="true"[/#if]/>不启用
|
<input type="radio" value="2" name="thumbnail" id="dbslt" [#if cate.THUMBNAIL == 2]checked="true"[/#if]/>等比
|
<input type="radio" value="3" name="thumbnail" id="qzslt" [#if cate.THUMBNAIL == 3]checked="true"[/#if]/>强制
|
</td>
|
</tr>
|
<tr id="imageWidthAndHeight" class="imageMsg" [#if cate.THUMBNAIL == 1]style="display:none;"[/#if]>
|
<th align="right"><label>图片宽高:</label></th>
|
<td>
|
宽:<input name="titleimageWidth" class="input-text wah" style="height:20px;width:40px;" value="${cate.TITLEIMAGE_WIDTH}"/>
|
高:<input name="titleimageHeight" class="input-text wah" style="height:20px;width:40px;" value="${cate.TITLEIMAGE_HEIGHT}"/>
|
<div id="wahtip" style="display:inline-block;width: 300px;"></div>
|
</td>
|
</tr>
|
|
|
<tr>
|
<th align="right"><label>备注:</label></th>
|
<td>
|
<textarea rows="3" cols="60" name="note">${cate.NOTE}</textarea>
|
</td>
|
</tr>
|
|
</table>
|
</form>
|
</div>
|
|
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
|
|
</body>
|
</html>
|