當前位置: 首頁>>代碼示例>>PHP>>正文


PHP popup_tree_menu函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。