<?php
session_start();
require_once "../init.php";
require_once "../authority.inc.php";

$ParentID = $_GET['ParentID'];
$IDProduct = $_GET['IDProduct'];
$arProType3 = array();
$proType3 = new ProductType5();
$tree3 = $proType3->ShowProTypeTree('0',0,$arProType3);

$arProType = array();
$proType = new ProductType1();
$tree = $proType->ShowProClassTree('0',0,$arProType);
if($IDProduct){
	$proInfo = $proType->GetProduct1($IDProduct);
	$ParentID = $proInfo['ParentID'];
}
$hot="pro";
?>
<!DOCTYPE HTML>
<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/jquery.js"></script>
<script src="../share/global.js"></script>
<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="../lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="../lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script> 
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.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>

<script src="../share/jquery.js"></script>
<script src="../share/global.js"></script>
<script>
function check(form){

   if(form.QuesType.value==""){
       alert("请输入分类名称");
	   form.ProductName.focus();
	   return false;
   }
}

</script>



<!--子导航-->

<article class="page-container">
  <? include "ques_nav.inc.php"?>
   <form action="pro_class_save.php" method="post" onSubmit="return check(this)" class="form form-horizontal"  id="form-article-add">
      <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类名称：</label>
    <div class="formControls col-xs-8 col-sm-9">
        <input type="text" class="input-text"  placeholder="" id="user-name" value="" name="QuesType">
      </div>
      <div class="col-5"> </div>
    </div>
    
	   <div class="row cl">
      <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类名称：</label>
    <div class="formControls col-xs-8 col-sm-9">
        
       <select name='lang'>
		
    <option value='Chinese'>--默认中文--</option>
                <?
			    for($i=0;$i<count($tree3);$i++){
					$selected = ($proInfo['lang']==$tree3[$i]['ProductName'])?"selected":"";
					if($tree3[$i]['ProductName']!="Chinese"){
                    echo "<option value='".$tree3[$i]['ProductName']."' $selected>".$tree3[$i]['Disp']."</option>";
					}
			    }
			    ?>

				</select>
	  </div>
      <div class="col-5"> </div>
    </div>
    
    
      <div class="col-5"> </div>
    </div>
   <div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">

        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
      </div>
    </div>
  </form>
</div>
</article>




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


