本文整理汇总了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";