<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/



 if(!defined('IN_SITETEAM')) {exit('Access Denied');}?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SiteTeam Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" href="admin/images/admincp.css" type="text/css" media="all" />
<script src="admin/js/common.js" type="text/javascript"></script>
</head>
<body>
<script type="text/JavaScript">if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='开始&nbsp;&raquo;&nbsp;文章系统分类';</script>

<div class="container" id="cpcontainer">
  <div class="itemtitle">
    <h3>分类管理</h3>
    <ul class="tab1">
      <li><a href="admin.php?action=article&operation=category_edit"><span>添加分类</span></a></li>
    </ul>
  </div>
  <div>
  <br>
    <table width="700" border="0" cellpadding="5" class="tb tb2 ">
	  <tr>
        <td bgcolor="#FFFFFF"><strong>分类名称</strong></td>
		<td width="40" bgcolor="#FFFFFF"><strong>ID</strong></td>
		<td width="40" bgcolor="#FFFFFF"><strong>排序</strong></td>
        <td width="60" bgcolor="#FFFFFF"><strong>编辑</strong></td>
        <td width="60" bgcolor="#FFFFFF"><strong>删除</strong></td>
	  </tr>
	  <?php foreach($category_list as $k => $v) {?>
	  <tr>
	    <td bgcolor="#FFFFFF"><?=$v['name']?></td>
		<td bgcolor="#FFFFFF"><?=$k?></td>
		<td bgcolor="#FFFFFF"><?=(isset($v['sortid']) ? $v['sortid'] : '0')?></td>
        <td bgcolor="#FFFFFF"><a href="admin.php?action=article&operation=category_edit&category=<?=$k?>">编辑</a></td>
        <td bgcolor="#FFFFFF"><a onClick="return confirm('确定删除？');" href="admin.php?action=article&operation=category_del&category=<?=$k?>">删除</a></td>
	  </tr>
	  <?php }?>
  </table>
  </div>
</div>

</body>
</html>
