hotel.html 6.2 KB
<script>
$(function (){
	$(".hasDatepicker1").jcDate({					       
			IcoClass : "jcDateIco",
			Event : "click",
			Speed : 100,
			Left : 0,
			Top : 28,
			format : "-",
			Timeout : 100
	});
});
</script>
<div class="pageheader notab">
	<h1 class="pagetitle">客栈详情</h1>
	<span class="pagedesc">添加修改客栈信息</span>
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
	<div id="basicform" class="subcontent">
		<div class="contenttitle2">
			<h3>客栈表单</h3>
		</div>
		<!--contenttitle-->
		<form class="stdform stdform2" method="post" action="javascript:void(0);">
			<p>
				<input type="hidden" ng-value="{{hotel.hotelId}}"/>
				<label>客栈名称<span style="color: red;font-style: inherit;padding-left: 5px">(客栈名称)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.hotelName" ng-value="{{hotel.hotelName}}" />
				</span>
			</p>
			<p>
				<label>客栈简介<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.shortName" ng-value="{{hotel.shortName}}" />
				</span>
			</p>
			<p>
				<label>开业时间<span style="color: red;font-style: inherit;padding-left: 5px">(选择时间)</span></label>
				<span class="field">
					<input type="text" id="openTime" class="longinput hasDatepicker1"
							ng-model="hotel.openTime" ng-value="{{hotel.openTime|date:'yyyy-MM-dd'}}" />
				</span>
			</p>
			<p>
				<label>客栈设施<span style="color: red;font-style: inherit;padding-left: 5px">(输入简短文字)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.roomEquipment" ng-value="{{hotel.roomEquipment}}" />
				</span>
			</p>
			<p>
				<label>客栈服务<span style="color: red;font-style: inherit;padding-left: 5px">(输入简短文字)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.hotelService" ng-value="{{hotel.hotelService}}" />
				</span>
			</p>
			<p>
				<label>入住时间<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.checkInTime" ng-value="{{hotel.checkInTime}}" />
				</span>
			</p>
			<p>
				<label>退房时间<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.checkOutTime" ng-value="{{hotel.checkOutTime}}" />
				</span>
			</p>
			<p>
				<label>客栈地址<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.hotelAddress" ng-value="{{hotel.hotelAddress}}" />
				</span>
			</p>
			<p>
				<label>客栈联系电话</label>
				<span class="field">
					<input type="text" id="firstname2" class="longinput" 
							ng-model="hotel.hotelTelphone" ng-value="{{hotel.hotelTelphone}}" />
				</span>
			</p>
			<p>
				<label>客栈等级</label>
				<span class="field">
					<select ng-model="hotel.hotelStar">
						<option value="1"></option>
						<option value="2">★★</option>
						<option value="3">★★★</option>
						<option value="4">★★★★</option>
						<option value="5">★★★★★</option>
					</select>
				</span>
			</p>
			<p>
				<label>客栈缩略图<span style="color: red;font-style: inherit;padding-left: 5px">(仅上传一张图片)</span></label>
				<span class="field">
                    <span class="weui_uploader_input_wrp">
						<input style="height: 100%;" 
                                    class="weui_uploader_input"
                                    type="file" 
                                    name="attachs"
                                    num="1"
                                    accept="image/jpg,image/jpeg,image/png,image/gif" 
                                    action="../fileupload/fdfsUpload"
                                    upload_thumb_image>
					</span>
					<span id="img_lists" ng-repeat=" image in imageUrls "> 
						<span  style="margin-left: 15px;"><img ng-src='{{image}}' style='width:100px; height:100px;'><span class="delete_icon" ng-click="deleteImg(imageUrls,$index)"></span></span>
					</span>
				</span>
			</p>
			<p>
				<label>客栈图片<span style="color: red;font-style: inherit;padding-left: 5px">(最多上传五张图片)</span></label>
				<span class="field">
					<span class="weui_uploader_input_wrp">
						<input style="height: 100%;" 
                                    class="weui_uploader_input"
                                    type="file" 
                                    name="attachs" 
                                    accept="image/jpg,image/jpeg,image/png,image/gif" 
                                    action="../fileupload/fdfsUpload"
                                    upload-image>
					</span>
					<span id="img_lists" ng-repeat=" hotelImage in hotel.hotelImgs track by $index">
						<span ng-if="hotelImage.imageUrl !=''" id="{{hotelImage.imageId}}" style="margin-left: 15px;"><img ng-src='{{hotelImage.imageUrl}}' style='width:100px; height:100px;'><span class="delete_icon" ng-click="deleteImg(hotel.hotelImgs,$index)"></span></span>
					</span>
				</span>
			</p>
			<p>
				<label>客栈介绍<span style="color: red;font-style: inherit;padding-left: 5px">(输入文字描述)</span></label>
				<span class="field">
					<textarea style="height: 87px;width: 748px;" ng-model="hotel.intro" ng-value="{{hotel.intro}}" class="longinput" >
					</textarea>
				</span>
			</p>
			<p class="stdformbutton">
				<button class="submit radius2" ng-click="update()"><span ng-if="hotel.hotelId == ''" style="color: white;">添加</span><span ng-if="hotel.hotelId != ''" style="color: white;">更新</span></button>
				<input type="reset" class="reset radius2" value="重置" /> &nbsp;&nbsp;&nbsp;&nbsp;
			</p>
		</form>
		<br />
	</div>
	<!--subcontent-->
</div>