提交误报详细说明:
1. 时间 2022-4-19
2. 代码的截图
3. hash 值
2f3d12131fcb16607d8a6e8e2de4410fe4e7c557
|
| 79f3b96139887cfc3d88fc8b3b6c982f37772d1d
<?php
include('../conn.php');
if($_SESSION["admin"]=="")
{
header("location:ad_login.php");
}
include("adminstrator/competence.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="images/css1/left_css.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=JavaScript>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<body
hash
79f3b96139887cfc3d88fc8b3b6c982f37772d1d
<?php
class Category {
public $treeList = array(); //存放无限分类结果如果一页面有多个无限分类可以使用 Tool: treeList = array(); 清空
public $arr = array();
public $icon = array('│','├','└');
public $nbsp = " ";
public $ret = '';
/**
* 无限级分类
* @access public
* @param Array $data //数据库里获取的结果集
* @param Int $pid
* @param Int $count //第几级分类
* @return Array $treeList
*/
public function tree($data,$pid = 0,$count = 1) {
foreach ($data as $key => $value){
if($value['parentid']==$pid){
$value['Count'] = $count;
$this->treeList[]=$value;
//unset($data[$key]);
$this->tree($data,$value['id'],$count+1);
}
}
return $this->treeList ;
}
public function tree_nochild($data,$pid = 0) {
$res = array();
foreach ($data as $key => $value){
if($value['parentid'] == $pid){
$res[$value['id']] = $value;
}
}
return $res;
}
|
|