<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<fieldset style="font-size:12px; line-height:25px">
<legend>淘宝推广商品/推广店铺搜索</legend>
<form name="tb_search_form">
  <select name="stype" id="stype" onChange="get_tb_catalog(this.value)">
    <option value="goods">搜索商品</option>
    <option value="shop">搜索店铺</option>
  </select>
  &nbsp;&nbsp;&nbsp;
  <input type="text" name="keyword" id="keyword" maxlength="15" size="15" class="inputstyle" value="关键字" onClick="(this.value==this.defaultValue)?this.value = '':this.value = this.value;" onBlur="if(this.value == '') this.value = this.defaultValue;" />
  &nbsp;
  <select name="cid" id="cid">
    <option value="0">选择行业类目</option>
    <?php foreach($industry_catalog as $v){?>
    <option value="<?php echo $v['cid'];?>"><?php echo $v['cat_name'];?></option>
    <?php }?>
  </select>
  &nbsp;&nbsp;&nbsp;
  <input type="button" onClick="get_tb_data(1)" value="搜索" class="button-style2" />
  <br>
  佣金(1000 = 10%):
  <input type="text" name="start_commission" class="inputstyle" id="start_commission" maxlength="4" size="5" value="2000" dataType="Integer" msg="必须填写数字" />
  --
  <input type="text" name="end_commission" class="inputstyle" id="end_commission" maxlength="4" size="5" value="5000" dataType="Integer" msg="必须填写数字" />
  &nbsp;&nbsp;&nbsp;信用:
  <select name="start_credit" id="start_credit">
    <?php foreach($credit as $v){?>
    <option value="<?php echo $v['v'];?>" <?php if($v['v'] == '2diamond') echo 'selected';?>><?php echo $v['name'];?></option>
    <?php }?>
  </select>
  --
  <select name="end_credit" id="end_credit">
    <?php foreach($credit as $v){?>
    <option value="<?php echo $v['v'];?>" <?php if($v['v'] == '5goldencrown') echo 'selected';?>><?php echo $v['name'];?></option>
    <?php }?>
  </select>
</form>
</fieldset>
<fieldset>
<legend>搜索结果</legend>
<div id="tb_content"></div>
</fieldset>
