<?php defined('G_IN_ADMIN')or exit('No permission resources.'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台首页</title>
<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/global.css" type="text/css">
<link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/style.css" type="text/css">
 <style>
 	th{ border:0px solid #000;}
	tr{ line-height:30px;}
 </style>

</head>
<body>
<div class="header lr10">
	<?php echo $this->headerment();?>
</div>
<div class="bk10"></div>
<div class="table-list lr10">
 <table width="100%" cellspacing="0">
    <thead>
            <tr>
            <th width="90">排序</th>
            <th width="100">id</th>
            <th align='center'>品牌名称</th>
            <th align='center' width='70'>所属栏目</th>
			<th align='center'>管理操作</th>
            </tr>
    </thead>
    <form action="#" method="post" name="myform">
   <tbody>
   	<?php foreach($brands as $brand){ ?>
       <tr>
         <td align='center'><input name='listorders[<?php echo $brand['id']; ?>]' type='text' size='3' value='<?php echo $brand['order']; ?>' class='input-text-c'></td>        
         <td align='center'><?php echo $brand['id']; ?></td>
         <td align='center'><?php echo $brand['name']; ?></td>
         <td align='center' width='70'><?php if(isset($categorys[$brand['cateid']]['name']))echo $categorys[$brand['cateid']]['name']; ?></td>
		 <td align='center'>
         	<a href="<?php echo G_ADMIN_PATH; ?>/brand/edit/<?php echo $brand['id']; ?>">修改</a><span class='span_fenge lr5'>|</span>
            <a href="<?php echo G_ADMIN_PATH; ?>/brand/del/<?php echo $brand['id']; ?>">删除</a>
         </td>
      </tr>
     <?php } ?>
   </table>
   </form>
   <div class="btn_paixu">
  	<div style="width:80px; text-align:center;">
          <input type="button" class="button" value=" 排序 "
        onclick="myform.action='<?php echo G_MODULE_PATH; ?>/brand/listorder/dosubmit';myform.submit();"/>
    </div>
  </div>
 <div id="pages"><ul><li>共 <?php echo $total; ?> 条</li><?php echo $page->show('one','li'); ?></ul></div>

</div><!--table-list end-->

</body>
</html> 
