<?php require_once 'head.html';?>
        <div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1>分类列表 <small>Classification List</small></h1>
			</div>
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>编号</th>
						<th>分类名</th>
						<th>简介</th>
						<th>属性(Type)</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<script>
								
									
								
								
								</script>
				<?php $i=1;foreach($ify as $names){?>
				<tr class="list-roles">
					<td><?php echo $i;?></td>
					<td><a href="?c=opi&xp=edit&id=<?php echo $names['pid'];?>"><?php echo $names['ify_name'];?></a></td>
					<td><?php echo $names['the'];?></td>
					<td><?php echo $names['alias'];?></td>
					<td>
						<div class="btn-group">
							<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">操作 <span class="caret"></span></a>
							<ul class="dropdown-menu pull-right">
								<li><a href="?c=opi&xp=edit&id=<?php echo $names['pid'];?>"><i class="icon-pencil"></i> 修改</a></li>
								
								<li><a onclick='if (confirm("确定删除？") == true){location.href="?c=opi&xp=del&id=<?php echo $names['pid'];?>";}'><i class="icon-trash"></i> 删除</a></li>
							</ul>
						</div>
					</td>
				</tr>
				<?php $i++;} ?>		
				</tbody>
			</table>
			<div class="pagination">
				<ul>
					<li><a href="?c=ify&p=<?php if($n == 1){echo 1;}else{echo $n-1;}?>">上页</a></li>
		
					<li><a href="?c=ify&p=<?php if($n == $pageCount){echo $pageCount;}else{echo $n+1;}?>">下页</a></li>
				</ul>
			</div>
			<a href="?c=add_ify" class="btn btn-success">添加分类</a>
		  </div>
        </div>
      </div>

      <hr>

       <?php require_once 'foot.html';?>

    </div>

      <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
	<script>
	$(document).ready(function() {
		$('.dropdown-menu li a').hover(
		function() {
			$(this).children('i').addClass('icon-white');
		},
		function() {
			$(this).children('i').removeClass('icon-white');
		});
	});
	</script>
  </body>
</html>
