You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			93 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
| {extend name="base" /}
 | |
| {block name="css"}
 | |
| <style>
 | |
| #preview img{max-width: 600px;max-height:150px;}
 | |
| </style>
 | |
| <link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
 | |
| {/block}
 | |
| {block name="js"}
 | |
| <script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
 | |
| <script src="__ADMIN__/adgoods/admgrs.js?v={$v}" type="text/javascript"></script>
 | |
| {/block}
 | |
| {block name="main"}
 | |
| <form id="adsForm">
 | |
| <table class='wst-form wst-box-top'>
 | |
|   <tr>
 | |
|       <th width='150'>广告名称<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|             <select id="adId" name="adId" class='ipt' maxLength='20'>
 | |
|               <option value=''>请选择</option>
 | |
|                 {volist name="result" id='vo'}
 | |
|                 <option {if $data['adName'] == $vo['adName']}selected{/if} value="{$vo['adId']}">{$vo['adName']}</option>
 | |
|                 {/volist}
 | |
|             </select>
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>广告商品类型<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|               <select id="adGoodsStatus" name="adGoodsStatus" class='ipt' maxLength='20'>
 | |
|                 <option value="">-请选择-</option>
 | |
| 
 | |
|                 <option {if $data['adGoodsStatus'] == 1}selected{/if} value="1">-精选-</option>
 | |
|                 <option {if $data['adGoodsStatus'] == 2}selected{/if} value="2">-推荐-</option>
 | |
|                 <option {if $data['adGoodsStatus'] == 3}selected{/if} value="3">-热卖-</option>
 | |
|             </select>
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|        <tr>
 | |
|        <tr>
 | |
|           <th>广告商品ID<font color='red'>*</font>:</th>
 | |
|           <td><input type='text' id='goodsId' name="goodsId" value="{$data['goodsId']}" class='ipt' maxLength='20'/></td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>广告图片<font color='red'>*</font>:</th>
 | |
|           <td><div id='adFilePicker'>上传广告图</div><span id='uploadMsg'></span>
 | |
|               <div>
 | |
|                 图片大小:<span id="img_size">300x300</span>(px),格式为 gif, jpg, jpeg, png
 | |
|               </div>
 | |
|           </td>
 | |
| 
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>预览图<font color='red'>  </font>:</th>
 | |
|           <td>
 | |
|             <div id="preview" style="min-height:30px;">
 | |
|               {if ($data['adGoodsImg']!='')}
 | |
|               <img src="__IMGURL__/{$data['adGoodsImg']}">
 | |
|               {/if}
 | |
|             </div>
 | |
|             <input type="hidden" name="adGoodsImg" id="adGoodsImg" class="ipt" value="{$data['adGoodsImg']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|           <th >广告开始时间<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|             <input type="text" style="margin:0px;vertical-align:baseline;" id="startDate" name="startDate" class="laydate-icon ipt" maxLength="20" value="{$data['startDate']}"  />
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>广告结束时间<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|             <input type="text" style="margin:0px;vertical-align:baseline;" id="endDate" name="endDate" class="laydate-icon ipt" maxLength="20" value="{$data['endDate']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|   <tr>
 | |
|      <td colspan='2' align='center' class='wst-bottombar'>
 | |
|          <input type="hidden" name="id" id="adGoodsId" class="ipt" value="{$data['adGoodsId']+0}" />
 | |
|          <button type="submit" class="btn btn-primary btn-mright" ><i class="fa fa-check"></i>提交</button>
 | |
|         <button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
 | |
|      </td>
 | |
|   </tr>
 | |
| </table>
 | |
| </form>
 | |
| <script>
 | |
| $(function(){
 | |
| editInit();
 | |
| //初始化位置类型
 | |
| });
 | |
| 
 | |
| </script>
 | |
| {/block}
 | |
| 
 |