当前位置: 首页>>代码示例>>PHP>>正文


PHP left_menu函数代码示例

本文整理汇总了PHP中left_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP left_menu函数的具体用法?PHP left_menu怎么用?PHP left_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了left_menu函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: llxHeader

function llxHeader($head = '', $title='', $help_url='', $morehtml='')
{
	global $conf,$langs,$user;
	$langs->load("ftp");

	top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);	// Show html headers
	top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss);	// Show html headers

	$menu = new Menu();

	$MAXFTP=20;
	$i=1;
	while ($i <= $MAXFTP)
	{
		$paramkey='FTP_NAME_'.$i;
		//print $paramkey;
		if (! empty($conf->global->$paramkey))
		{
			$link="/ftp/index.php?idmenu=".$_SESSION["idmenu"]."&numero_ftp=".$i;

			$menu->add($link, dol_trunc($conf->global->$paramkey,24));
		}
		$i++;
	}


	left_menu($menu->liste, $help_url, $morehtml, '', 1);
	main_area();
}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:29,代码来源:pre.inc.php

示例2: llxHeader

/**
 * Replace the default llxHeader function
 * @param $head
 * @param $title
 * @param $help_url
 * @param $target
 * @param $disablejs
 * @param $disablehead
 * @param $arrayofjs
 * @param $arrayofcss
 */
function llxHeader($head = '', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='')
{
	global $db, $user, $conf, $langs;

	top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);	// Show html headers
	top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss);	// Show html headers

	$menu = new Menu();

	// Entry for each bank account
	if ($user->rights->banque->lire)
	{
		$sql = "SELECT rowid, label, courant, rappro, courant";
		$sql.= " FROM ".MAIN_DB_PREFIX."bank_account";
		$sql.= " WHERE entity = ".$conf->entity;
		$sql.= " AND clos = 0";
        $sql.= " ORDER BY label";

		$resql = $db->query($sql);
		if ($resql)
		{
			$numr = $db->num_rows($resql);
			$i = 0;

			if ($numr > 0) 	$menu->add('/compta/bank/index.php',$langs->trans("BankAccounts"),0,$user->rights->banque->lire);

			while ($i < $numr)
			{
				$objp = $db->fetch_object($resql);
				$menu->add('/compta/bank/fiche.php?id='.$objp->rowid,$objp->label,1,$user->rights->banque->lire);
                if ($objp->rappro && $objp->courant != 2)  // If not cash account and can be reconciliate
                {
				    $menu->add('/compta/bank/rappro.php?account='.$objp->rowid,$langs->trans("Conciliate"),2,$user->rights->banque->consolidate);
                }
				$i++;
			}
		}
		else dol_print_error($db);
		$db->free($resql);
	}

	left_menu('', $help_url, '', $menu->liste, 1);
    main_area();
}
开发者ID:remyyounes,项目名称:dolibarr,代码行数:55,代码来源:pre.inc.php

示例3: left_menu

            .right { background-color: #fff; width: 900px; color: #666; display: table-cell; border: 1px solid #666; text-align: left; margin: 5px; vertical-align: top;}
            .bucketName {font-weight: none;}
            .bucketNameSelected {font-weight: bold;}
            .bucketActions { font-weight: bold; font-size: 10px; text-decoration: none; margin-left: 10px;}
            .content {margin: 10px;}
            .td_left { background-color: #f8f8f8; border: 1px dashed; border-right: 0px; display: table-cell; width:250px; padding: 7px; vertical-align: middle;}
            .td_right { border: 1px dashed; border-left: 0px; display: table-cell; width: 600px; padding: 7px; vertical-align: middle;}
            .msg { border: 1px dashed; text-align: center; margin-left: auto; margin-right: auto; margin: 10px; font-weight: bold; background-color: #f0f0f0; padding: 7px;}
            .msgSmall { font-size: 12px; margin-left: auto; margin-right: auto; text-align: justify; padding: 5px; }
            .clear { clear:both }
        </style>
    </head>
    <body>
        <div class="page">
            <div class="left"><?php 
echo left_menu();
?>
</div>
            <?php 
if (!empty($command)) {
    ?>
                <div class="right">
                    <pre style="margin-left: 10px;"><?php 
    passthru($command, $output);
    ?>
</pre>
                </div>
                <?php 
} elseif ($stream) {
    require_once dirname(__FILE__) . '/lib/DeleteMaker.php';
    require_once dirname(__FILE__) . '/lib/jsonstreamingparser/RiakParser.php';
开发者ID:pentium10,项目名称:riak-admin,代码行数:31,代码来源:index.php

示例4: left_menu

function left_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"];
                if (!empty($val["url"])) {
                    $url = U($val['url']);
                } else {
                    $url = "#";
                }
                $id = $val["id"];
                if (empty($val["id"])) {
                    $id = $val["name"];
                }
                if (isset($val['_child'])) {
                    $html = $html . "<li>\r\n<a node=\"{$id}\" href=\"" . "{$url}\"><i class=\"icon-angle-right level{$level}\"></i><span>{$title}</span></a>\r\n";
                    $html = $html . left_menu($val['_child'], $level);
                    $html = $html . "</li>\r\n";
                } else {
                    $html = $html . "<li>\r\n<a  node=\"{$id}\" href=\"" . "{$url}\"><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

示例5: queue_js_file

<?php

queue_js_file('items');
echo head(array('title' => metadata('item', array('Dublin Core', 'Title')), 'bodyclass' => 'items show', 'fil' => $this->breadcrumb));
?>

<?php 
echo left_menu(array('item' => $item, 'items' => $this->items, 'sibblingsUrl' => $this->sibblingsUrl, 'withSearch' => 'true', 'searchRange' => $this->searchRange));
?>

<?php 
// Récupération des infos de la page
$contenus = metadata('item', array('Dublin Core', 'Description'), array('all' => true));
foreach ($contenus as $key => $contenu) {
    if (substr($contenu, 0, 15) == 'En illustration' || substr($contenu, 0, 10) == 'Pour aller') {
        unset($contenus[$key]);
    }
}
$observations = metadata('item', array('Dublin Core', 'Observation'), array('all' => true));
$dates = metadata('item', array('Dublin Core', 'Date'), array('all' => true));
$producteurs = metadata('item', array('Dublin Core', 'Creator'), array('all' => true));
$auteurs = metadata('item', array('Dublin Core', 'Contributor'), array('all' => true));
$references = metadata('item', array('Dublin Core', 'Identifier'), array('all' => true));
$motscles = $item->Tags;
$noticecomplete = metadata('item', array('Dublin Core', 'Relation'));
$description = metadata('item', array('Dublin Core', 'Abstract'));
$lieu = metadata('item', array('Dublin Core', 'Publisher'));
$itemHasPdf = isset($files) && $files[0]->getExtension() == 'pdf';
$ressources = metadata('item', array('Dublin Core', 'Related Material'));
$biblio = metadata('item', array('Dublin Core', 'Bibliographic Citation'));
?>
开发者ID:kyfr59,项目名称:cg35,代码行数:31,代码来源:show-parent-ensemble.php

示例6: whoareyou

?>
            </h5>
        </div>

        <div class="well well-small">
        <?php 
whoareyou($_COOKIE['my_cookie']);
?>
        </div>

        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span2">
                    <!--Sidebar content-->
                    <?php 
left_menu();
?>
                </div>

                <div class="span10">
                    
                    <!-- форма -->
                    <form action="/orders.php" method="post" name="orders_form" >
                    <a class="btn btn-primary myoffset" href="/orders/zayavlenie_ot_prepodavatelya_na_pochasovuyu_oplatu.pdf">Скачать бланк заявления от преподавателя на почасовую оплату</a>
                    <br>
                    <a class="btn btn-primary myoffset" href="/orders/zayavlenie_ot_prepodavatelya_na_pochasovuyu_oplatu.pdf">Скачать бланк карточки учета педагогической работы</a>
                    <br>
                    <a class="btn btn-primary myoffset" href="/orders/zayavlenie_ot_prepodavatelya_na_pochasovuyu_oplatu.pdf">Скачать бланк заявления на возврат денежных средств</a>
                    </form>
                </div>
开发者ID:absalyamov,项目名称:adia-project-oldschool,代码行数:30,代码来源:orders.php

示例7: llxHeader

 /**
  *	Show HTML header HTML + BODY + Top menu + left menu + DIV
  *
  * @param 	string 	$head				Optionnal head lines
  * @param 	string 	$title				HTML title
  * @param	string	$help_url			Url links to help page
  * 		                            	Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
  *                                  	For other external page: http://server/url
  * @param	string	$target				Target to use on links
  * @param 	int    	$disablejs			More content into html header
  * @param 	int    	$disablehead		More content into html header
  * @param 	array  	$arrayofjs			Array of complementary js files
  * @param 	array  	$arrayofcss			Array of complementary css files
  * @param	string	$morequerystring	Query string to add to the link "print" to get same parameters (use only if autodetect fails)
  * @return	void
  */
 function llxHeader($head = '', $title = '', $help_url = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '')
 {
     global $conf;
     // html header
     top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
     // top menu and left menu area
     if (empty($conf->dol_hide_topmenu)) {
         top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring);
     }
     if (empty($conf->dol_hide_leftmenu)) {
         left_menu('', $help_url, '', '', 1, $title);
     }
     // main area
     main_area($title);
 }
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:main.inc.php

示例8: _assign_left_menu

 protected function _assign_left_menu()
 {
     $top_menu = cookie('top_menu');
     $user_id = get_user_id();
     $model = M("Node");
     $top_menu_list = session('top_menu' . $user_id);
     if (!empty($top_menu_list)) {
         $list = $top_menu_list;
     } else {
         if ($this->_session(C('ADMIN_AUTH_KEY'))) {
             $where = array('is_del' => 0, 'pid' => 0);
         } else {
             $where = array('is_del' => 0, 'pid' => 0, 'id' => array('neq', 84));
         }
         $list = $model->where($where)->order('sort asc')->getField('id,name,url');
         session('top_menu' . $user_id, $list);
     }
     $this->assign('list_top_menu', $list);
     if (session('menu' . $user_id)) {
         //如果已经缓存,直接读取缓存
         $menu = session('menu' . $user_id);
     } else {
         //读取数据库模块列表生成菜单项
         $menu = D("Node")->access_list($user_id);
         $common_list = D("Folder")->get_common_list();
         $personal_list = D("Folder")->get_person_list();
         $menu = array_merge($common_list, $personal_list, $menu);
         //缓存菜单访问
         session('menu' . $user_id, $menu);
     }
     if (!empty($top_menu)) {
         $this->assign("top_menu_name", $model->where("id={$top_menu}")->getField('name'));
     }
     $tree = list_to_tree($menu, $top_menu);
     $this->assign('html_left_menu', left_menu($tree));
 }
开发者ID:yunsite,项目名称:smeoa,代码行数:36,代码来源:CommonAction.class.php

示例9: queue_js_file

<?php

queue_js_file('items');
echo head(array('title' => metadata('item', array('Dublin Core', 'Title')), 'bodyclass' => 'items show', 'fil' => $this->breadcrumb));
?>

<?php 
echo left_menu(array('items' => $this->items, 'sibblingsUrl' => $this->sibblingsUrl));
?>

<?php 
// Récupération des infos de la page
$contenus = metadata('item', array('Dublin Core', 'Description'), array('all' => true));
foreach ($contenus as $key => $contenu) {
    if (substr($contenu, 0, 15) == 'En illustration' || substr($contenu, 0, 10) == 'Pour aller') {
        unset($contenus[$key]);
    }
}
$observations = metadata('item', array('Dublin Core', 'Observation'), array('all' => true));
$dates = metadata('item', array('Dublin Core', 'Date'), array('all' => true));
$producteurs = metadata('item', array('Dublin Core', 'Creator'), array('all' => true));
$lieuxgeographiques = metadata('item', array('Dublin Core', 'Coverage'), array('all' => true));
$auteurs = metadata('item', array('Dublin Core', 'Contributor'), array('all' => true));
$references = metadata('item', array('Dublin Core', 'Identifier'), array('all' => true));
$motscles = $item->Tags;
$noticecomplete = metadata('item', array('Dublin Core', 'Relation'));
$description = metadata('item', array('Dublin Core', 'Abstract'));
$lieu = metadata('item', array('Dublin Core', 'Publisher'));
$itemHasPdf = isset($files) && $files[0]->getExtension() == 'pdf';
$ressources = metadata('item', array('Dublin Core', 'Related Material'));
$biblio = metadata('item', array('Dublin Core', 'Bibliographic Citation'));
开发者ID:kyfr59,项目名称:cg35,代码行数:31,代码来源:show-item.php

示例10: llxHeader

 /**
  *	Show HTML header HTML + BODY + Top menu + left menu + DIV
  * 	@param   	head			Add optionnal head lines
  *  @param      title   		Title of web page
  * 	@param      help_url		Url links to help page
  *                              Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
  *                                         For other external page: http://server/url
  *  @param      target  		Target to use in menu links
  *	@param		disablejs		Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
  *	@param		disablehead		Do not output head section
  *	@param		arrayofjs		Array of js files to add in header
  *	@param		arrayofcss		Array of css files to add in header
  *  @param		morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails)
  */
 function llxHeader($head = '', $title = '', $help_url = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '')
 {
     top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
     // Show html headers
     top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring);
     left_menu('', $help_url, '', '', 1, $title);
     main_area($title);
 }
开发者ID:netors,项目名称:dolibarr,代码行数:22,代码来源:main.inc.php

示例11: llxHeader


//.........这里部分代码省略.........
    $resql = $db->query($sql);
    $obji = $db->fetch_object($resql);
    $start_id = $obji->rowid;
    $start_id++;
    $sql = "SELECT rowid, code, name, active FROM " . MAIN_DB_PREFIX . "reports_group";
    $resql = $db->query($sql);
    if ($resql) {
        $cont = count($menumanager->tabMenu);
        $numr = $db->num_rows($resql);
        $i = 0;
        while ($i < $numr) {
            $objp = $db->fetch_object($resql);
            if ($objp->active) {
                if ($objp->name == 'noAssigned') {
                    $name = $langs->trans("NoAssigned");
                } else {
                    $key = $langs->trans("group" . strtoupper($objp->code));
                    $namegroup = $objp->code && $key != "group" . strtoupper($objp->code) ? $key : $objp->name;
                }
                $sql2 = "SELECT code, name, xmlin FROM " . MAIN_DB_PREFIX . "reports_report";
                $sql2 .= " WHERE active = 1 AND fk_group=" . $objp->rowid;
                //$sql2.= " AND entity =".$conf->entity;
                $resql2 = $db->query($sql2);
                if ($resql2) {
                    $numg = $db->num_rows($resql2);
                    $j = 0;
                    if ($numg) {
                        //$menu->add('/reports/index.php?leftmenu='.$objp->name.'&amp;mainmenu=Reports', $namegroup,0,1,'',$objp->name);
                        // We complete tabMenu
                        $menumanager->tabMenu[$cont]['rowid'] = $start_id;
                        $menumanager->tabMenu[$cont]['module'] = 'reports';
                        $menumanager->tabMenu[$cont]['fk_menu'] = $menu_report_id;
                        $menumanager->tabMenu[$cont]['url'] = '/reports/index.php?leftmenu=' . $objp->name . '&amp;mainmenu=reports';
                        $menumanager->tabMenu[$cont]['titre'] = $namegroup;
                        $menumanager->tabMenu[$cont]['target'] = '';
                        $menumanager->tabMenu[$cont]['mainmenu'] = 'reports';
                        $menumanager->tabMenu[$cont]['leftmenu'] = '';
                        $menumanager->tabMenu[$cont]['perms'] = $user->rights->reports->use;
                        $menumanager->tabMenu[$cont]['enabled'] = $conf->reports->enabled;
                        $menumanager->tabMenu[$cont]['type'] = 'left';
                        $menumanager->tabMenu[$cont]['fk_mainmenu'] = '';
                        $menumanager->tabMenu[$cont]['fk_leftmenu'] = '';
                        $menumanager->tabMenu[$cont]['position'] = 100;
                        $rowid_group = $start_id;
                        $cont++;
                        $start_id++;
                    }
                    while ($j < $numg) {
                        $objr = $db->fetch_object($resql2);
                        $key = $langs->trans("report" . strtoupper($objr->code));
                        $name = $objr->code && $key != "report" . strtoupper($objr->code) ? $key : $objr->name;
                        $code = $objr->code;
                        if ($user->rights->reports->{$code}) {
                            if ($leftmenu == $objp->name || $menumanager->name == 'oblyon') {
                                // We complete tabMenu
                                $menumanager->tabMenu[$cont]['rowid'] = $start_id;
                                $menumanager->tabMenu[$cont]['module'] = 'reports';
                                $menumanager->tabMenu[$cont]['fk_menu'] = $rowid_group;
                                $menumanager->tabMenu[$cont]['url'] = '/reports/report.php?leftmenu=' . $objp->name . '&execute_mode=PREPARE&project=Dolibarr&target_output=HTML&xmlin=' . $objr->xmlin;
                                $menumanager->tabMenu[$cont]['titre'] = $name;
                                $menumanager->tabMenu[$cont]['target'] = '';
                                $menumanager->tabMenu[$cont]['mainmenu'] = 'reports';
                                $menumanager->tabMenu[$cont]['leftmenu'] = '';
                                $menumanager->tabMenu[$cont]['perms'] = '$user->rights->reports->' . $objr->code;
                                $menumanager->tabMenu[$cont]['enabled'] = $conf->reports->enabled;
                                $menumanager->tabMenu[$cont]['type'] = 'left';
                                $menumanager->tabMenu[$cont]['fk_mainmenu'] = '';
                                $menumanager->tabMenu[$cont]['fk_leftmenu'] = '';
                                $menumanager->tabMenu[$cont]['position'] = 100;
                                $cont++;
                                $start_id++;
                            }
                            //$menu->add('/reports/report.php?leftmenu='.$objp->name.'&execute_mode=PREPARE&project=Dolibarr&target_output=HTML&xmlin='.$objr->xmlin, $name,1);
                        }
                        $j++;
                    }
                }
            }
            $i++;
        }
        $menumanager->tabMenu[$cont]['rowid'] = $start_id;
        $menumanager->tabMenu[$cont]['module'] = 'reports';
        $menumanager->tabMenu[$cont]['fk_menu'] = $menu_report_id;
        $menumanager->tabMenu[$cont]['url'] = '/reports/askreport.php';
        $menumanager->tabMenu[$cont]['titre'] = $langs->trans("MoreReports");
        $menumanager->tabMenu[$cont]['target'] = '';
        $menumanager->tabMenu[$cont]['mainmenu'] = 'reports';
        $menumanager->tabMenu[$cont]['leftmenu'] = '';
        $menumanager->tabMenu[$cont]['perms'] = $user->rights->reports->use;
        $menumanager->tabMenu[$cont]['enabled'] = $conf->reports->enabled;
        $menumanager->tabMenu[$cont]['type'] = 'left';
        $menumanager->tabMenu[$cont]['fk_mainmenu'] = '';
        $menumanager->tabMenu[$cont]['fk_leftmenu'] = '';
        $menumanager->tabMenu[$cont]['position'] = 100;
        //$menu->add('/reports/askreport.php', $langs->trans("MoreReports"));
    }
    top_menu($head);
    $helpurl = 'EN:Module_Reports|FR:Module_Reports_FR|ES:M&oacute;dulo_Reports';
    left_menu($menu->liste, $helpurl);
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:101,代码来源:pre.inc.php

示例12: _assign_menu

 protected function _assign_menu()
 {
     $model = D("Node");
     $top_menu = cookie('top_menu');
     $user_id = get_user_id();
     $top_menu_list = session('top_menu' . $user_id);
     if (!empty($top_menu_list)) {
         $list = $top_menu_list;
     } else {
         $list = $model->get_top_menu();
         if (empty($list)) {
             $this->assign('jumpUrl', U("Login/logout"));
             $this->error("没有权限");
         }
         session('top_menu' . $user_id, $list);
     }
     $this->assign('list_top_menu', $list);
     if (session('menu' . $user_id)) {
         //如果已经缓存,直接读取缓存
         $menu = session('menu' . $user_id);
     } else {
         //读取数据库模块列表生成菜单项
         $menu = D("Node")->access_list();
         $common_list = D("Folder")->get_common_list();
         $personal_list = D("Folder")->get_person_list();
         $menu = array_merge($common_list, $personal_list, $menu);
         //缓存菜单访问
         session('menu' . $user_id, $menu);
     }
     if (!empty($top_menu)) {
         $this->assign("top_menu_name", $model->where("id={$top_menu}")->getField('name'));
     }
     $tree = list_to_tree($menu, $top_menu);
     $this->assign('html_left_menu', left_menu($tree));
 }
开发者ID:uwitec,项目名称:semoa,代码行数:35,代码来源:CommonAction.class.php


注:本文中的left_menu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。