本文整理汇总了PHP中popup_tree_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP popup_tree_menu函数的具体用法?PHP popup_tree_menu怎么用?PHP popup_tree_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了popup_tree_menu函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: winpop
function winpop()
{
$menu = D("Node")->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display();
}
开发者ID:hongweipeng,项目名称:oa,代码行数:7,代码来源:NodeAction.class.php
示例2: winpop
public function winpop()
{
$node = M("MaterialFolder");
$menu = array();
$menu = $node->where($where)->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display();
}
开发者ID:uwitec,项目名称:semoa,代码行数:9,代码来源:MaterialfolderAction.class.php
示例3: winpop
public function winpop()
{
$node = M("Dept");
$menu = array();
$menu = $node->where('is_del=0')->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->assign('pid', $pid);
$this->display();
}
开发者ID:TipTimesPHP,项目名称:tyj_oa_cp,代码行数:10,代码来源:DeptAction.class.php
示例4: index
function index()
{
$this->assign("title", '职员查询');
$node = D("Dept");
$menu = array();
$menu = $node->field('id,pid,name')->where("is_del=0")->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display();
}
开发者ID:hongweipeng,项目名称:oa,代码行数:10,代码来源:StaffAction.class.php
示例5: winpop
function winpop()
{
$model = M("SystemTag");
$module = $_GET['module'];
$where['module'] = array('eq', $module);
$menu = $model->where($where)->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display();
}
开发者ID:uwitec,项目名称:semoa,代码行数:10,代码来源:SystemtagAction.class.php
示例6: index
function index()
{
$node = D("Dept");
$menu = array();
$menu = $node->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$model = D("UserView");
$where['user_id'] = array('eq', get_user_id());
$list = $model->where($where)->select();
$this->assign('list', $list);
$this->display();
return;
}
开发者ID:uwitec,项目名称:semoa,代码行数:14,代码来源:StaffAction.class.php
示例7: winpop2
public function winpop2()
{
$node = M("Dept");
$menu = array();
$menu = $node->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('pid', $pid);
$model = M("Dept");
$list = $model->order('sort asc')->getField('id,name');
$this->assign('dept_list', $list);
$this->assign('menu', popup_tree_menu($tree));
$model = M("DeptGrade");
$list = $model->order('sort asc')->getField('id,name');
$this->assign('dept_grade_list', $list);
$this->display();
}
开发者ID:uwitec,项目名称:semoa,代码行数:16,代码来源:DeptAction.class.php
示例8: index
function index()
{
$node = D("Dept");
$menu = array();
$menu = $node->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$model = D("UserView");
$where['user_id'] = array('eq', get_user_id());
$list = $model->where($where)->select();
$this->assign('list', $list);
$tag_data = D("Tag")->get_data_list();
$new = array();
foreach ($tag_data as $val) {
$new[$val['row_id']] = $new[$val['row_id']] . $val['class_id'] . ",";
}
$this->assign('group_data', $new);
$this->tag_list();
$this->display();
return;
}
开发者ID:yunsite,项目名称:smeoa,代码行数:21,代码来源:StaffAction.class.php
示例9: winpop
public function winpop()
{
$node = M("Folder");
$menu = array();
$public = $this->get_public();
$where['folder'] = $this->get_folder();
if ($public == 2) {
$user_id = get_user_id();
$where['user_id'] = $user_id;
}
$menu = $node->where($where)->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display("folder:winpop");
}
开发者ID:yunsite,项目名称:smeoa,代码行数:15,代码来源:FolderAction.class.php
示例10: popup_tree_menu
function popup_tree_menu($tree, $level = 0)
{
$level++;
$html = "";
if (is_array($tree)) {
$html = "<ul class=\"tree_menu\">\r\n";
foreach ($tree as $val) {
if (isset($val["name"])) {
$title = $val["name"];
$id = $val["id"];
if (empty($val["id"])) {
$id = $val["name"];
}
if (!empty($val["is_del"])) {
$del_class = "is_del";
} else {
$del_class = "";
}
if (isset($val['_child'])) {
$html = $html . "<li>\r\n<a class=\"{$del_class}\" node=\"{$id}\" ><i class=\"icon-angle-right level{$level}\"></i><span>{$title}</span></a>\r\n";
$html = $html . popup_tree_menu($val['_child'], $level);
$html = $html . "</li>\r\n";
} else {
$html = $html . "<li>\r\n<a class=\"{$del_class}\" node=\"{$id}\" ><i class=\"icon-angle-right level{$level}\"></i><span>{$title}</span></a>\r\n</li>\r\n";
}
}
}
$html = $html . "</ul>\r\n";
}
return $html;
}
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:31,代码来源:common.php
示例11: message
function message()
{
$widget['jquery-ui'] = true;
$this->assign("widget", $widget);
$model = M("Dept");
$list = array();
$list = $model->where('is_del=0')->field('id,pid,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_company', popup_tree_menu($list));
$model = M("Rank");
$list = array();
$list = $model->field('id,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_rank', popup_tree_menu($list));
$model = M("Position");
$list = array();
$list = $model->field('id,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_position', popup_tree_menu($list));
$this->assign('type', 'rank');
$this->display();
return;
}
开发者ID:hongweipeng,项目名称:oa,代码行数:23,代码来源:PopupAction.class.php
示例12: winpop
function winpop()
{
$node = M("UserFolder");
$menu = array();
$where['folder'] = MODULE_NAME;
$where['user_id'] = get_user_id();
$menu = $node->where($where)->field('id,pid,name')->order('sort asc')->select();
$tree = list_to_tree($menu);
$this->assign('menu', popup_tree_menu($tree));
$this->display("UserFolder:winpop");
}
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:11,代码来源:UserFolderAction.class.php
示例13: popup_confirm
function popup_confirm()
{
$model = M("Dept");
$list = array();
$list = $model->field('id,pid,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_company', popup_tree_menu($list));
$model = M("Rank");
$list = array();
$list = $model->field('id,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_rank', popup_tree_menu($list));
$model = M("Position");
$list = array();
$list = $model->field('id,name')->order('sort asc')->select();
$list = list_to_tree($list);
$this->assign('list_position', popup_tree_menu($list));
$this->assign('type', 'rank');
$this->display();
return;
}
开发者ID:yunsite,项目名称:smeoa,代码行数:21,代码来源:ContactAction.class.php
示例14: winpop
public function winpop()
{
$node = M("Supplier");
$menu = array();
$menu = $node->where($where)->field('id,name')->select();
$tree = list_to_tree($menu);
//dump($node);
$this->assign('menu', popup_tree_menu($tree));
$this->display();
}
开发者ID:uwitec,项目名称:semoa,代码行数:10,代码来源:SupplierAction.class.php
注:本文中的popup_tree_menu函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论