<?php
session_start();
require_once "../init.php";
require_once "../authority.inc.php";
$arProType = array();
$proType = new ProductType5();
$tree = $proType->ShowProTypeTree('0',0,$arProType);
//print_r($tree);
$hot="pro";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">



<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />

<!--[if IE 6]>
<script type="text/javascript" src="../static/h-ui.admin/js/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<title>语言类别列表</title>
<LINK href="../share/style.css" rel="stylesheet">
<script src="../share/global.js"></script>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 语言管理 <span class="c-gray en">&gt;</span> 语言类别 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">


<!--子导航-->

<? include "news_nav.inc.php"?><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table" class="table table-border table-bordered table-bg" >
  <tr class="text-c">
    <td colspan="2" class="text-c" style="background:#f0f8f8">语言类别管理 <span class="sarr"> >> </span> <a href='pro_class_form.php'>增加类别</a></td>
  </tr>
     <?
	  
	  for($i=0;$i<count($tree);$i++){
	      $treestring .= "<tr >";
          $treestring .= "<td  style='text-align:left'>" .$tree[$i]['Disp'] . "</td>";
		  $treestring .= "<td style='text-align:right'>  ";
		  $treestring .= "<a href='pro_class_form.php?IDProduct=".$tree[$i]['IDProduct']."'>修改</a> | ";
		  $treestring .= "<a href='pro_class_del.php?IDProduct=".$tree[$i]['IDProduct']."' onclick=\"return confirm('确认删除吗?');\">删除</a>";
		  if($tree[$i]['Type']=='class'){
			  $treestring .= " | <a href='pro_class_form.php?ParentID=".$tree[$i]['IDProduct']."'>增加子类</a> ";
		  }
		  $treestring .= "</td></tr>";
	  }
   	  echo $treestring;
	 ?>
  
 
</table></div>

<? 
$DB->close();
include "../share/bottom.php"?>
</body>
</html>
