<include file="public:header" />
<div class="subnav">
    <h1 class="title_2 line_x">首页参数 - 设置 </h1>
</div>
<div class="pad_lr_10">
	<form id="info_form" action="{:u('setting/edit')}" method="post">
	<table width="100%" class="table_form contentWrap">

			<tr width="150">
            <th>{:L('index_page_size')} :</th>
            <td><input type="text" name="setting[index_page_size]" size="5" class="input-text" value="{:C('yh_index_page_size')}" /></td>
        </tr>

		<tr width="150">
            <th>屏蔽关键字 :</th>
            <td><input type="text" name="setting[index_not_text]" size="30" class="input-text" value="{:C('yh_index_not_text')}" /> &nbsp;&nbsp;<span class="gray">以,分隔</span></td>
        </tr>

		<tr width="150">
            <th>显示分类 :</th>
            <td>
			
			<volist name="cate_data" id="cat">
			<label class="mr10">
				<input type="checkbox" class="J_checkitem" name="setting[index_cids][]"  <range name="cat['id']" value="$index_cids" type="in" >checked</range>  value="{$cat.id}"> {$cat.name} </label>
			</volist>

			</td>
        </tr>
 
       


		 <tr>
            <th width="150">排序方式 :</th>
            <td>
                    <select name="setting[index_sort]" class="J_tbcats mr10">
                        <option value="volume desc"  <if condition="C('yh_index_sort') eq 'volume desc'">selected</if> >销量从高到低</option>
			<option value="volume asc"   <if condition="C('yh_index_sort') eq 'volume asc'">selected</if>>销量从低到高</option>
			<optgroup label="──────"></optgroup>
			<option value="coupon_price desc" <if condition="C('yh_index_sort') eq 'coupon_price desc'">selected</if> >价格从高到低</option>
			<option value="coupon_price asc"  <if condition="C('yh_index_sort') eq 'coupon_price asc'">selected</if> >价格从低到高</option>
			<optgroup label="──────"></optgroup>
			<option value="coupon_rate  desc" <if condition="C('yh_index_sort') eq 'coupon_rate  desc'">selected</if> >折扣从高到低</option>
			<option value="coupon_rate  asc"  <if condition="C('yh_index_sort') eq 'coupon_rate  asc'">selected</if> >折扣从低到高</option>
			<optgroup label="──────"></optgroup>
			<option value="id  desc"  <if condition="C('yh_index_sort') eq 'id  desc'">selected</if> >按添加时间排前</option>
			<option value="id  asc"   <if condition="C('yh_index_sort') eq 'id  asc'">selected</if> >按添加时间排后</option>
			<optgroup label="──────"></optgroup>
			<option value="coupon_start_time  desc"  <if condition="C('yh_index_sort') eq 'coupon_start_time  desc'">selected</if> >按活动开始时间排前</option>
			<option value="coupon_start_time  asc"   <if condition="C('yh_index_sort') eq 'coupon_start_time  asc'">selected</if> >按活动开始时间排后</option>
            <optgroup label="──────"></optgroup><option value="rand()"   <if condition="C('yh_index_sort') eq 'rand()'">selected</if> >随机排序</option>
                    </select>
              </td>

        </tr>

		<tr>
            <th>店铺类型 :</th>
            <td>
                    <select name="setting[index_shop_type]" class="J_tbcats mr10">
                        <option value=""  <if condition="C('yh_index_shop_type')  eq ''">selected</if> >所有</option>
						<option value="B"   <if condition="C('yh_index_shop_type')  eq 'B'">selected</if>>天猫商城</option>
						<option value="C" <if condition="C('yh_index_shop_type') eq 'C'">selected</if> >淘宝集市</option>
                    </select>
              </td>
        </tr>


		<tr>
            <th width="150">价格 :</th>
            <td>
				最低：<input type="text" name="setting[index_mix_price]" size="5" class="input-text" value="{:C('yh_index_mix_price')}" />&nbsp; 
				最高：<input type="text" name="setting[index_max_price]" size="5" class="input-text" value="{:C('yh_index_max_price')}" />
			</td>
        </tr>

		<tr>
            <th width="150">销量 :</th>
            <td>
				最低：<input type="text" name="setting[index_mix_volume]" size="5" class="input-text" value="{:C('yh_index_mix_volume')}" />&nbsp; 
				最高：<input type="text" name="setting[index_max_volume]" size="5" class="input-text" value="{:C('yh_index_max_volume')}" />
			</td>
        </tr>



		<tr>
            <th width="150">商品预告 :</th>
            <td>
                <label><input type="radio" <if condition="C('yh_wait_time') eq '0'">checked="checked"</if> value="0" name="setting[wait_time]"> 默认</label> &nbsp;&nbsp;
                <label><input type="radio" <if condition="C('yh_wait_time') eq '1'">checked="checked"</if> value="1" name="setting[wait_time]"> 只显示未开始</label>
				<label><input type="radio" <if condition="C('yh_wait_time') eq '2'">checked="checked"</if> value="2" name="setting[wait_time]"> 不显示未开始</label>
            </td>
        </tr>

		<tr>
            <th width="150">已结束商品 :</th>
            <td>
                <label><input type="radio" <if condition="C('yh_end_time') eq '0'">checked="checked"</if> value="0" name="setting[end_time]"> 默认</label> &nbsp;&nbsp;
				<label><input type="radio" <if condition="C('yh_end_time') eq '1'">checked="checked"</if> value="1" name="setting[end_time]"> 不显示已结束商品</label>
            </td>
        </tr>
	</table>

	<table width="100%" class="table_form contentWrap">
    	<tr class="y-bg">
        	<th width="150">是否包邮 :</th>
        	<td>
            	<input type="radio" <if condition="C('yh_index_ems') eq '0'">checked="checked"</if> value="0" name="setting[index_ems]"> 默认 &nbsp;&nbsp;
            	<input type="radio" <if condition="C('yh_index_ems') eq '1'">checked="checked"</if> value="1" name="setting[index_ems]"> 包邮 &nbsp;&nbsp;<span class="gray">API采集不到包邮，建议默认。</span>
            </td>
    	</tr>
    	<tr>
        	<th width="150">电脑版商品详情 :</th>
        	<td>
            	<input type="radio" <if condition="C('yh_dn_item_desc') eq '0'">checked="checked"</if> value="0" name="setting[dn_item_desc]"> 开启 &nbsp;&nbsp;
            	<input type="radio" <if condition="C('yh_dn_item_desc') eq '1'">checked="checked"</if> value="1" name="setting[dn_item_desc]"> 关闭 &nbsp;&nbsp;<span class="gray">是否开启电脑版商品的商品详情（不建议开启，商品详情是直接抓取的淘宝详情数据，请求多了你的服务器会被淘宝屏蔽）</span>
            </td>
    	</tr>
    	<tr>
        	<th width="150">手机版商品详情 :</th>
        	<td>
            	<input type="radio" <if condition="C('yh_sj_item_desc') eq '0'">checked="checked"</if> value="0" name="setting[sj_item_desc]"> 开启 &nbsp;&nbsp;
            	<input type="radio" <if condition="C('yh_sj_item_desc') eq '1'">checked="checked"</if> value="1" name="setting[sj_item_desc]"> 关闭 &nbsp;&nbsp;<span class="gray">是否开启手机版商品的商品详情</span>
            </td>
    	</tr>
   
        <tr>
        	<th></th>
        	<td><input type="hidden" name="menuid"  value="{$menuid}"/><input type="submit" class="smt mr10" name="do" value="{:L('submit')}"/></td>
    	</tr>
	</table>
	</form>
</div>
<include file="public:footer" />
</body>
</html>