<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__STATIC__/css/admin/style.css" rel="stylesheet"/>
	<title><?php echo L('website_manage');?></title>
	<script>
	var URL = '__URL__';
	var SELF = '__SELF__';
	var ROOT_PATH = '__ROOT__';
	var APP	 =	 '__APP__';
	//语言项目
	var lang = new Object();
	<?php $_result=L('js_lang');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>lang.<?php echo ($key); ?> = "<?php echo ($val); ?>";<?php endforeach; endif; else: echo "" ;endif; ?>
	</script>
</head>

<body>
<div id="J_ajax_loading" class="ajax_loading"><?php echo L('ajax_loading');?></div>
<?php if(($sub_menu != '') OR ($big_menu != '')): ?><div class="subnav">
    <div class="content_menu ib_a blue line_x">
    	<?php if(!empty($big_menu)): ?><a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo ($big_menu["iframe"]); ?>" data-title="<?php echo ($big_menu["title"]); ?>" data-id="<?php echo ($big_menu["id"]); ?>" data-width="<?php echo ($big_menu["width"]); ?>" data-height="<?php echo ($big_menu["height"]); ?>"><em><?php echo ($big_menu["title"]); ?></em></a>　<?php endif; ?>
        <?php if(!empty($sub_menu)): if(is_array($sub_menu)): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key; if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo U($val['module_name'].'/'.$val['action_name'],array('menuid'=>$menuid)); echo ($val["data"]); ?>" class="<?php echo ($val["class"]); ?>"><em><?php echo L($val['name']);?></em></a><?php endforeach; endif; else: echo "" ;endif; endif; ?>
    </div>
</div><?php endif; ?>
<div class="subnav">
    <h1 class="title_2 line_x">值得买 - 设置</h1>
</div>

<div class="pad_lr_10">
	<form id="info_form" action="<?php echo u('setting/edit');?>" method="post">
	<table width="100%" class="table_form contentWrap">

			<tr width="150">
            <th>显示个数 :</th>
            <td><input type="text" name="setting[zhi_page_size]" size="5" class="input-text" value="<?php echo C('ftx_zhi_page_size');?>" /></td>
        </tr>
 
       


		 <tr>
            <th width="150">排序方式 :</th>
            <td>
                    <select name="setting[zhi_sort]" class="J_tbcats mr10">
                        <option value="volume desc"  <?php if(C('ftx_zhi_sort') == 'volume desc'): ?>selected<?php endif; ?> >销量从高到低</option>
						<option value="volume asc"   <?php if(C('ftx_zhi_sort') == 'volume asc'): ?>selected<?php endif; ?>>销量从低到高</option>
						<optgroup label="──────"></optgroup>
						<option value="coupon_price desc" <?php if(C('ftx_zhi_sort') == 'coupon_price desc'): ?>selected<?php endif; ?> >价格从高到低</option>
						<option value="coupon_price asc"  <?php if(C('ftx_zhi_sort') == 'coupon_price asc'): ?>selected<?php endif; ?> >价格从低到高</option>
						<optgroup label="──────"></optgroup>
						<option value="coupon_rate  desc" <?php if(C('ftx_zhi_sort') == 'coupon_rate  desc'): ?>selected<?php endif; ?> >折扣从高到低</option>
						<option value="coupon_rate  asc"  <?php if(C('ftx_zhi_sort') == 'coupon_rate  asc'): ?>selected<?php endif; ?> >折扣从低到高</option>
						<optgroup label="──────"></optgroup>
						<option value="id  desc"  <?php if(C('ftx_zhi_sort') == 'id  desc'): ?>selected<?php endif; ?> >刚上架排前</option>
						<option value="id  asc"   <?php if(C('ftx_zhi_sort') == 'id  asc'): ?>selected<?php endif; ?> >刚上架排后</option>
                    </select>
              </td>

        </tr>

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


		<tr>
            <th width="150">价格 :</th>
            <td>
				最低：<input type="text" name="setting[zhi_mix_price]" size="5" class="input-text" value="<?php echo C('ftx_zhi_mix_price');?>" />&nbsp; 
				最高：<input type="text" name="setting[zhi_max_price]" size="5" class="input-text" value="<?php echo C('ftx_zhi_max_price');?>" />
			</td>
        </tr>

		<tr>
            <th width="150">销量 :</th>
            <td>
				最低：<input type="text" name="setting[zhi_mix_volume]" size="5" class="input-text" value="<?php echo C('ftx_zhi_mix_volume');?>" />&nbsp; 
				最高：<input type="text" name="setting[zhi_max_volume]" size="5" class="input-text" value="<?php echo C('ftx_zhi_max_volume');?>" />
			</td>
        </tr>

	</table>

	<table width="100%" class="table_form contentWrap">
    	<tr class="y-bg">
        	<th width="150">是否包邮 :</th>
        	<td>
            	<input type="radio" <?php if(C('ftx_zhi_ems') == '0'): ?>checked="checked"<?php endif; ?> value="0" name="setting[zhi_ems]"> 默认 &nbsp;&nbsp;
            	<input type="radio" <?php if(C('ftx_zhi_ems') == '1'): ?>checked="checked"<?php endif; ?> value="1" name="setting[zhi_ems]"> 包邮 &nbsp;&nbsp;<span class="gray">API采集不到包邮，如果一定要包邮，请选择淘宝网采集模式</span>
            </td>
    	</tr>
   
        <tr>
        	<th></th>
        	<td><input type="hidden" name="menuid"  value="<?php echo ($menuid); ?>"/><input type="submit" class="smt mr10" name="do" value="<?php echo L('submit');?>"/></td>
    	</tr>
	</table>
	</form>
</div>
<script src="__STATIC__/js/jquery/jquery.js"></script>
<script src="__STATIC__/js/jquery/plugins/jquery.tools.min.js"></script>
<script src="__STATIC__/js/jquery/plugins/formvalidator.js"></script>
<script src="__STATIC__/js/ftxia.js"></script>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/dialog.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = lang.dialog_ok;
    d['cancelValue'] = lang.dialog_cancel;
    d['title'] = lang.dialog_title;
})($.dialog.defaults);
</script>

<?php if(isset($list_table)): ?><script src="__STATIC__/js/jquery/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script><?php endif; ?>
</body>
</html>