You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
298 lines
16 KiB
298 lines
16 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<title>TcdcResCatering 编辑页面</title>
|
|
<link type="text/css" rel="stylesheet" href="${ctx}/css/cjy_style.css" />
|
|
<link type="text/css" rel="stylesheet" href="${ctx}/css/cjy_biaodan.css" />
|
|
<link href="${ctx}/css/showDialog.css" rel="stylesheet" type="text/css" />
|
|
<!--选项卡-->
|
|
<script src="${ctx}/js/current.js" type="text/javascript"></script>
|
|
<script src="${ctx}/js/validate/jquery.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="${ctx}/js/validate/jquery.validate.js"></script>
|
|
<script src="${ctx}/js/validate/jquery.metadata.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="${ctx}/js/validate/jquery.validate.methods.js"></script>
|
|
<script src="${ctx}/js/region.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="${ctx}/js/lhgdialog/lhgdialog.js"></script>
|
|
<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
|
|
<script src="${ctx}/js/jquery.form.js" type="text/javascript"></script>
|
|
<style>
|
|
.cjy_dqwz{padding:15px; border-bottom:1px solid #dfdfdf;}
|
|
.cjy_dqwz p,
|
|
.cjy_dqwz a{font-size:14px; padding:0px 3px;}
|
|
.cjy_dqwz .cjy_dq{float:left; color:#777; position:relative; top:-1px;}
|
|
.cjy_dqwz .cjy_dq img{display:inline-block;position:relative; top:1px;}
|
|
.cjy_dqwz .cjy_lj{float:left; display:block; cursor:pointer;text-decoration:none; color:#333;}
|
|
.cjy_dqwz .cjy_lj:hover{ color:#f60;}
|
|
.cjy_dqwz .cjy_dqjt{float:left; display:block; color:#777;font-size:14px;}
|
|
.cjy_dqwz .cjy_dqy{float:left; color:#333;}
|
|
</style>
|
|
<script type="text/javascript">
|
|
|
|
function submitForm(){
|
|
var c = [];
|
|
if ($("#mainForm").valid()){
|
|
$("#mainForm").submit();
|
|
} else {
|
|
$("#validateErrorContainer").find("li").each(function (){if ($(this).css("display")!="none"){c.push($(this).text());}});
|
|
showDialog("window", c.join('<br/>'), "提示", 200);
|
|
}
|
|
}
|
|
function showitem(e,id){
|
|
$(e).parent().find('li').removeClass('active');
|
|
$(e).addClass('active');
|
|
|
|
$('.cjy_tab_list').css("display",'none');
|
|
$('#'+id).css("display",'');
|
|
}
|
|
function showitems(e,id){
|
|
$('.active').parent().find('li').removeClass('active');
|
|
$('#'+e).addClass('active');
|
|
|
|
$('.cjy_tab_list').css("display",'none');
|
|
$('#'+id).css("display",'');
|
|
}
|
|
//返回
|
|
function reback(){
|
|
location.href="${ctx}/tcdcrescatering/searchTcdcResCateringList.do";
|
|
}
|
|
|
|
function openMap(){
|
|
$.dialog({
|
|
title:'地图',
|
|
lock:true,
|
|
width: '700px',
|
|
height: 500,
|
|
max:false,
|
|
min:false,
|
|
esc:false,
|
|
content: "url:${ctx}/back/map_zb.jsp?temp="+ new Date().getTime()
|
|
});
|
|
}
|
|
|
|
|
|
</script>
|
|
</head>
|
|
<body style=" background:#fff;">
|
|
<!--选项卡开始-->
|
|
<ul class="cjy_tab">
|
|
<li id="active1" class="active" onclick="showitem(this,'div_list1')">餐饮场所基础信息</li>
|
|
</ul>
|
|
<form class="cmxform form-horizontal tasi-form" id="mainForm" name="mainForm" action="${ctx}/tcdcrescatering/updateTcdcResCatering.do" method="post">
|
|
<div style="display:none;">
|
|
<div id="validateErrorContainer" style="display: none;">
|
|
<div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
|
|
<ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="cjy_tab_list" id="div_list1">
|
|
<!--表单开始-->
|
|
<div class="cjy_table_bd">
|
|
<input type="hidden" value="${lis.id}" name="id" />
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
|
<tr>
|
|
<th width="15%"><p><span class="xing">*</span>名称:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="cname" value="${lis.cname}" validate="{required:true,minlength:2,maxlength:200,messages:{required:'请输入名称',minlength:'名称必须大于等于2个字',maxlength:'名称必须小于等于200'}}" /></div></td>
|
|
<th width="15%"><p>中文名称简称:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="sname" value="${lis.sname}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>简拼:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="shortspelling" value="${lis.shortspelling}" /></div></td>
|
|
<th width="15%"><p>全拼:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="fullspelling" value="${lis.fullspelling}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>英文名称:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="ename" value="${lis.ename}" /></div></td>
|
|
<th width="15%"><p>经度:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" id="lon" name="lon" value="${lis.lon}" /></div><a onclick="openMap();return false;" class="bd_btn">定位</a></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>纬度:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" id="lat" name="lat" value="${lis.lat}" /></div></td>
|
|
<th width="15%"><p>联系人:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="linkUser" value="${lis.linkUser}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>联系电话:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="linkTel" value="${lis.linkTel}" /></div></td>
|
|
<th width="15%"><p><span class="xing">*</span>资源等级:</p></th>
|
|
<td width="35%">
|
|
<select id="rlevel" name="rlevel" validate="{required:true,messages:{required:'请选择资源等级'}}">
|
|
<option value="">--请选择--</option>
|
|
<c:forEach items="${listsydic28}" var="list">
|
|
<option value="${list.dicid}" <c:if test="${list.dicid==lis.rlevel}">selected = "selected"</c:if>>${list.dicname}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>资源编码:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="resourcecode" value="${lis.resourcecode}" /></div></td>
|
|
<th width="15%"><p><span class="xing">*</span>类型:</p></th>
|
|
<td width="35%">
|
|
<select id="foodtype" name="foodtype" validate="{required:true,messages:{required:'请选择类型'}}">
|
|
<option value="">--请选择--</option>
|
|
<c:forEach items="${listsydic30}" var="list">
|
|
<option value="${list.dicid}" <c:if test="${list.dicid==lis.foodtype}">selected = "selected"</c:if>>${list.dicname}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>有无分餐厅:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="branch" value="${lis.branch}" /></div></td>
|
|
<th width="15%"><p>品牌:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="brand" value="${lis.brand}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>营业时间:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="businesstime" value="${lis.businesstime}" /></div></td>
|
|
<th width="15%"><p>开业时间:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="opentime" value="${lis.opentime}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>餐位数量:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="seats" value="${lis.seats}" /></div></td>
|
|
<th width="15%"><p>座席数:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="tables" value="${lis.tables}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>预订电话:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="reservetel" value="${lis.reservetel}" /></div></td>
|
|
<th width="15%"><p>是否认证:</p></th>
|
|
<td width="35%">
|
|
<p class="bd_radio">
|
|
<c:forEach items="${listsydic718}" var="list">
|
|
<label><input type="radio" name="certification" value="${list.dicid}" <c:if test="${list.dicid==lis.certification}">checked</c:if> />${list.dicname}</label>
|
|
</c:forEach>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>交通描述:</p></th>
|
|
<td width="35%"><div class="input_bd"><textarea id="trafficinfo" name="trafficinfo" >${lis.trafficinfo}</textarea></div></td>
|
|
<th width="15%"><p>登记机关:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="registerunit" value="${lis.registerunit}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>注册资本:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="registercapital" value="${lis.registercapital}" /></div></td>
|
|
<th width="15%"><p>吊销日期:</p></th>
|
|
<td width="35%"><div class="input_bd_rili"><input type="text" class="laydate-icon" id="demo23" name="revokedate" value="<fmt:formatDate value="${lis.revokedate}" type="date" pattern="yyyy-MM-dd"/>" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>经营至日期:</p></th>
|
|
<td width="35%"><div class="input_bd_rili"><input type="text" class="laydate-icon" id="demo24" name="rundate" value="<fmt:formatDate value="${lis.rundate}" type="date" pattern="yyyy-MM-dd"/>" /></div></td>
|
|
<th width="15%"><p>成立日期:</p></th>
|
|
<td width="35%"><div class="input_bd_rili"><input type="text" class="laydate-icon" id="demo25" name="setupdate" value="<fmt:formatDate value="${lis.setupdate}" type="date" pattern="yyyy-MM-dd"/>" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>经营负责人:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="operatepeople" value="${lis.operatepeople}" /></div></td>
|
|
<th width="15%"><p>组织机构代码:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="organcode" value="${lis.organcode}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>法人代表:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="legalpeople" value="${lis.legalpeople}" /></div></td>
|
|
<th width="15%"><p>许可证号:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="licencecode" value="${lis.licencecode}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>企业工商注册全称:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="businessfullname" value="${lis.businessfullname}" /></div></td>
|
|
<th width="15%"><p>企业个性标识:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="businessindiv" value="${lis.businessindiv}" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>统一社会信用代码:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="unifycode" value="${lis.unifycode}" /></div></td>
|
|
<th width="15%"><p>注销时间:</p></th>
|
|
<td width="35%"><div class="input_bd_rili"><input type="text" class="laydate-icon" id="demo33" name="canceldate" value="<fmt:formatDate value="${lis.canceldate}" type="date" pattern="yyyy-MM-dd"/>" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>所属景区:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="sid" value="${lis.sid}" /></div></td>
|
|
<th width="15%"><p>所在地区:</p></th>
|
|
<td width="35%">
|
|
<select id="region1" onChange="regions(2,this.value)">
|
|
<option value="000000">中国</option>
|
|
</select>
|
|
<select id="region2" onChange="regions(3,this.value)">
|
|
<option>请选择</option>
|
|
</select>
|
|
<select id="region3" onChange="regions(4,this.value)">
|
|
<option>请选择</option>
|
|
</select>
|
|
<select id="region4" onChange="regionss(this.value)">
|
|
<option>请选择</option>
|
|
</select>
|
|
<input type="hidden" name="region" id="region" value="${lis.region}">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>简介:</p></th>
|
|
<td width="35%"><div class="input_bd"><textarea id="summary" name="summary" >${lis.summary}</textarea></div></td>
|
|
<th width="15%"><p>备注:</p></th>
|
|
<td width="35%"><div class="input_bd"><textarea id="remark" name="remark" >${lis.remark}</textarea></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th width="15%"><p>状态:</p></th>
|
|
<td width="35%">
|
|
<p class="bd_radio">
|
|
<c:forEach items="${listsydic721}" var="list">
|
|
<label><input type="radio" name="statu" value="${list.dicid}" <c:if test="${list.dicid==lis.statu}">checked</c:if> />${list.dicname}</label>
|
|
</c:forEach>
|
|
</p>
|
|
</td>
|
|
<th width="15%"><p>排序:</p></th>
|
|
<td width="35%"><div class="input_bd"><input type="text" name="orderNum" value="${lis.orderNum}" /></div></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<div class="cjy_btns">
|
|
<a href="javascript:submitForm()" class="cjy_btn color_huang">确定</a>
|
|
<a href="javascript:reback()" class="cjy_btn color_lhui">返回</a>
|
|
|
|
</div>
|
|
<!--表单结束-->
|
|
</div>
|
|
<!--选项卡结束-->
|
|
</div>
|
|
|
|
|
|
</form>
|
|
</body>
|
|
<!--日历-->
|
|
<script type="text/javascript" src="${ctx}/js/day/laydate.js"></script>
|
|
<script type="text/javascript" src="${ctx}/js/showDialog.js"></script>
|
|
<script type="text/javascript">
|
|
!function(){
|
|
laydate.skin('danlan');
|
|
laydate({elem:'#demo23'});
|
|
}();
|
|
!function(){
|
|
laydate.skin('danlan');
|
|
laydate({elem:'#demo24'});
|
|
}();
|
|
!function(){
|
|
laydate.skin('danlan');
|
|
laydate({elem:'#demo25'});
|
|
}();
|
|
!function(){
|
|
laydate.skin('danlan');
|
|
laydate({elem:'#demo33'});
|
|
}();
|
|
</script>
|
|
</html> |