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


PHP vmCommonHTML::loadTigraTree方法代碼示例

本文整理匯總了PHP中vmCommonHTML::loadTigraTree方法的典型用法代碼示例。如果您正苦於以下問題:PHP vmCommonHTML::loadTigraTree方法的具體用法?PHP vmCommonHTML::loadTigraTree怎麽用?PHP vmCommonHTML::loadTigraTree使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在vmCommonHTML的用法示例。


在下文中一共展示了vmCommonHTML::loadTigraTree方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: mm_showMyFileName

* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
/*********************************************************
************* PRODUCT & CATEGORY TREE ******************************
*/
$vmFoldersMenu = new vmFoldersMenu();
vmCommonHTML::loadTigraTree();
$menu_htmlcode = "<br /><div style=\"text-align:left;margin-left:200px;\">\r\n<script type=\"text/javascript\"><!--\r\nvar TREE_ITEMS = [\r\n['{" . $VM_LANG->_('PHPSHOP_STORE_MOD') . "}', '{$_SERVER['PHP_SELF']}',\r\n";
$vmFoldersMenu->traverse_tree_down($menu_htmlcode);
$menu_htmlcode .= "]];\r\nnew tree(TREE_ITEMS, TREE_TPL);\r\n--></script>\r\n</div>";
echo $menu_htmlcode;
class vmFoldersMenu
{
    /***************************************************
     * function traverse_tree_down
     */
    function traverse_tree_down(&$mymenu_content, $category_id = '0', $level = '0')
    {
        static $ibg = -1;
        global $db, $module, $mosConfig_live_site;
        $level++;
        $query = "SELECT category_name as cname, category_id as cid, category_child_id as ccid " . "FROM #__{vm}_category as a, #__{vm}_category_xref as b " . "WHERE a.category_publish='Y' AND " . " b.category_parent_id='{$category_id}' AND a.category_id=b.category_child_id " . "ORDER BY category_parent_id, list_order, category_name ASC";
開發者ID:BackupTheBerlios,項目名稱:kmit-svn,代碼行數:31,代碼來源:product.folders.php


注:本文中的vmCommonHTML::loadTigraTree方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。