| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | <!-- header start --><include file="Public/Header" /><!-- header end --><!-- right content start  --><div class="content-right">	<div class="content">		<!-- form start -->		<form class="am-form form-validation view-save" action="{{:U('Admin/CultureFood/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/CultureFood/Index')}}">			<legend>				<span class="fs-16">					<if condition="empty($data['food_id'])">						{{:L('food_add_name')}}					<else />						{{:L('food_edit_name')}}					</if>				</span>				<a href="{{:U('Admin/CultureFood/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>			</legend>			<div class="am-form-group">				<label>{{:L('food_name')}}</label>				<input type="text" name="food_name" placeholder="{{:L('food_name')}}" maxlength="16" data-validation-message="{{:L('food_nickname_format')}}" class="am-radius" <notempty name="data"> value="{{$data.food_name}}"</notempty> />			</div>			<div class="am-form-group am-form-file">				<label>{{:L('thumb')}}</label>				<div id="uploader"><i class="am-icon-cloud-upload"></i> 选择要上传的文件</div>				<input type="hidden" name="thumb" id="thumb" value="{{$data['thumb']}}">			</div>			<div class="am-form-group">				<div id="fileList" class="uploader-list">					<notempty name="data.thumb">						<img src="{{$data['thumb']}}" alt="{{$data['food_name']}}" class="am-img-thumbnail">					</notempty>				</div>			</div>			<div class="am-form-group">				<label>{{:L('pet_type_name')}}</label>				<select id="pet_type_id" name="pet_type_id" data-validation-message="{{:L('pet_type_format')}}" required class="am-hide">					<option value="">{{:L('common_select_can_choose')}}</option>					<foreach name="pet_types" item="v">						<option value="{{$v.pet_type_id}}" <if condition="isset($data['pet_type_id']) and $data['pet_type_id'] eq $v['pet_type_id']">selected</if>>{{$v.pet_type_name}}</option>					</foreach>				</select>			</div>			<div class="am-form-group">				<label>{{:L('pet_name')}}</label>				<select id="pet_id" name="pet_id" data-validation-message="{{:L('scene_format')}}" required class="am-hide">					<option value="">{{:L('common_select_can_choose')}}</option>					<notempty name="pets">					<foreach name="pets" item="v">						<option value="{{$v.pet_id}}" <if condition="isset($data['pet_id']) and $data['pet_id'] eq $v['pet_id']">selected</if>>{{$v.pet_name}}</option>					</foreach>					</notempty>				</select>			</div>			<div class="am-form-group am-form-file">				<label>{{:L('sale_price')}}</label>				<input type="number" min="0" name="sale_price" class="am-radius" placeholder="{{:L('sale_price')}}" <notempty name="data"> value="{{$data.sale_price}}"</notempty> />			</div>			<div class="am-form-group am-form-file">				<label>{{:L('grown_value')}}</label>				<input type="number" min="0" name="grown_value" class="am-radius" placeholder="{{:L('grown_value')}}" <notempty name="data"> value="{{$data.grown_value}}"</notempty> />			</div>			<div class="am-form-group am-form-file">				<label>{{:L('pre_user_limit_num')}}</label>				<input type="number" min="0" name="pre_user_limit_num" class="am-radius" placeholder="{{:L('pre_user_limit_num')}}" <notempty name="data"> value="{{$data.pre_user_limit_num}}"</notempty> />			</div>			<div class="am-form-group">				<label>{{:L('description')}}</label>				<textarea rows="5" maxlength="255" name="description" class="am-radius" placeholder="{{:L('description')}}" data-validation-message="{{:L('food_describe_format')}}"><present name="data">{{$data.description}}</present></textarea>			</div>			<div class="am-form-group">				<input type="hidden" name="food_id" <notempty name="data"> value="{{$data.food_id}}"</notempty> />				<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>			</div>		</form>        <!-- form end -->	</div></div><!-- right content end  -->		<!-- footer start --><include file="Public/Footer" /><!-- footer end -->
 |