php:树形结构的算法4
2008-05-01 04:57
651 查看
.Flv343{display:none;} <?php
/**
*显示列表
*@accesspublic
*/
functionDispList()
{
//不缩进的显示方式
//$this->mIsDispListIndex=true;
//echo('<palign="right"><ahref="?action=new&part=role">增加新角色</a> </p>');_fcksavedurl=""?action=new&part=role">增加新角色</a> </p>');"
//
//$this->mListTitle='用户角色列表';
//$this->SetDataOption('list');
//
//$this->SetQueryTable(array($this->mTableUserRole));
//
////查询顺序
//$this->SetQueryOrder('asc',$this->mTableUserRole,'sequence');
//
//$this->Query('list');
//parent::DispList();
////另外一种显示方式,用数组作为堆栈,A:压栈时存role,压完就删除source
//$this->CheckProperty('mrDb');
//$this->CheckProperty('mrSql');
//$this->mrSql->Select('role,title,parent');
//$this->mrSql->From($this->mTableUserRole);
//$this->mrSql->Orderby('parent,sequence');
//$this->mRs=$this->mrDb->Execute($this->mrSql->Sql());
//if(0<count($this->mRs))
//{
//$source=&$this->mRs->GetArray();//数字索引
//$stack=array('');//堆栈
//$stacki=array(-1);//和堆栈对应,记录堆栈中数据在树中的层次
//$target=array();
//while(0<count($stack))
//{
//$item=array_shift($stack);
//$lev=array_shift($stacki);
//if(!empty($item))
//{
////在这里把加工过的数据放到target数组
//array_push($target,str_repeat('',$lev).$item);
////$s1=str_repeat('',$lev).$item;
/
/**
*显示列表
*@accesspublic
*/
functionDispList()
{
//不缩进的显示方式
//$this->mIsDispListIndex=true;
//echo('<palign="right"><ahref="?action=new&part=role">增加新角色</a> </p>');_fcksavedurl=""?action=new&part=role">增加新角色</a> </p>');"
//
//$this->mListTitle='用户角色列表';
//$this->SetDataOption('list');
//
//$this->SetQueryTable(array($this->mTableUserRole));
//
////查询顺序
//$this->SetQueryOrder('asc',$this->mTableUserRole,'sequence');
//
//$this->Query('list');
//parent::DispList();
////另外一种显示方式,用数组作为堆栈,A:压栈时存role,压完就删除source
//$this->CheckProperty('mrDb');
//$this->CheckProperty('mrSql');
//$this->mrSql->Select('role,title,parent');
//$this->mrSql->From($this->mTableUserRole);
//$this->mrSql->Orderby('parent,sequence');
//$this->mRs=$this->mrDb->Execute($this->mrSql->Sql());
//if(0<count($this->mRs))
//{
//$source=&$this->mRs->GetArray();//数字索引
//$stack=array('');//堆栈
//$stacki=array(-1);//和堆栈对应,记录堆栈中数据在树中的层次
//$target=array();
//while(0<count($stack))
//{
//$item=array_shift($stack);
//$lev=array_shift($stacki);
//if(!empty($item))
//{
////在这里把加工过的数据放到target数组
//array_push($target,str_repeat('',$lev).$item);
////$s1=str_repeat('',$lev).$item;
/
相关文章推荐
- php:树形结构的算法1
- php:树形结构的算法
- php:树形结构的算法
- php:树形结构的算法1
- php:树形结构的算法 2
- php:树形结构的算法
- php:树形结构的算法3
- php:树形结构的算法2
- php+jquery读取文件目录生成树形结构
- php当数据量不是很大的时候,使用【递归循环出树形结构】的一个用户下面的所有人
- How to print a tree-ADT ? 打印树形结构的算法
- 自定义php通用树形结构类
- 将树形结构的数据转换为二维数组 (续 PHP非递归方式实现无限分类(转载))
- 【数据结构与算法学习笔记】PART4 树形结构(二叉树,堆)
- 数据结构与算法之递推算法 C++与PHP实现
- 编程珠玑 - 算法优化 - 过滤敏感词 - 第三步:树形结构
- java树形结构 算法
- java树形结构 两种算法
- Go语言实现的树形结构数据比较算法实例
- php树形结构数据排序算法