<?php $this->load->view('head');?>

<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",debug:false,onerror:function(msg){}});
	$("#name").formValidator({onshow:"请输入名称",onfocus:"请输入名称"}).inputValidator({min:1,max:50,onerror:"请输入名称"});
	
});
//-->
</script>
<div class="pad-10">
<div class="cate_top">
     <a href="<?=base_url();?>index.php/brand/" class="on"><em>内容管理</em></a>
     <span>|</span><a href="<?=base_url();?>index.php/brand/add" class="on"><em>添加品牌</em></a> 
	 <span>|</span> <a href="<?=base_url();?>index.php/brand/status"  class="a">审核品牌</a>
	 <span>|</span> <a href="<?=base_url();?>index.php/brand/add_type"  class="a">添加分类</a>
	  <span>|</span> <a href="<?=base_url();?>index.php/brand/list_type"  class="a">分类管理</a>
  </div>
<div class="nav10"></div>
<form name="myform" id="myform" action="<?=base_url();?>index.php/brand/add" method="post" enctype="multipart/form-data" />
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">

    
<li id="tab_setting_1" class="on" onclick="switchmodTag('tab_setting_','div_setting_','1');this.blur();">添加内容</li>
</ul>
<div id="div_setting_1" class="contentList pad-10">

<table width="100%" class="table_form ">

     
     
      <tr>
        <th>品牌名称：</th>
        <td>
       <input type="text" name="info[name]" id="name" class="input-text" size="40" value="">
		</td>
      </tr>
	<tr>
        <th>品牌网址：</th>
        <td><input type="text" name="info[url]" id="url" class="input-text" size="40" value=""></td>
      </tr>

	<tr>
        <th>品牌分类：</th>
        <td>
	<select name="info[type]" id="type">
	<?php foreach ($data['list'] as $v){

		echo "<option value='".$v['id']."'>".$v['name']."</option>";
 } ?>  
    </select>		
		</td>
      </tr>
	  	  
	  <tr>
        <th>品牌logo：</th>
        <td>
          <input type="file" name="image" id="image" value="" size="50" class="input-text"  style="border:none; background:none; height:25px;"/>  
		  文字链接不用上传图片
        </td>
      </tr>

    	<tr>
        <th>品牌描述：</th>
        <td><textarea name="info[content]" id="des" style="width:70%;height:46px;"></textarea>
        </td>
      </tr>
      <tr>
        <th>审核通过：</th>
        <td>
        <input name="info[status]" type="checkbox" id="status" value="1" checked="checked" />
        </td>
      </tr> 

</table>

</div>

 <div class="nav10"></div>
    <input name="dosubmit" type="submit" value="提交" class="button">
</div>
</div>
</form>
</div>
</body>
</html>





