本文整理汇总了PHP中JUDirectoryHelper::getCategoryDTree方法的典型用法代码示例。如果您正苦于以下问题:PHP JUDirectoryHelper::getCategoryDTree方法的具体用法?PHP JUDirectoryHelper::getCategoryDTree怎么用?PHP JUDirectoryHelper::getCategoryDTree使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JUDirectoryHelper
的用法示例。
在下文中一共展示了JUDirectoryHelper::getCategoryDTree方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* ------------------------------------------------------------------------
* JUDirectory for Joomla 2.5, 3.x
* ------------------------------------------------------------------------
*
* @copyright Copyright (C) 2010-2015 JoomUltra Co., Ltd. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author JoomUltra Co., Ltd
* @website http://www.joomultra.com
* @----------------------------------------------------------------------@
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<div class="category-tree">
<?php
echo JUDirectoryHelper::getCategoryDTree();
?>
</div>
<div id="judir-search" style="margin-top: 15px;">
<form name="search-form" id="search-form" action="index.php?option=com_judirectory" method="POST">
<fieldset>
<div class="input-append">
<input type="text" name="searchword" class="input-medium" size="20" maxlength="250" value="<?php
echo $this->searchword;
?>
" placeholder="<?php
echo JText::_('COM_JUDIRECTORY_SEARCH');
?>
" />
<button type="submit" name="submit_simple_search" class="btn"><i class="icon-search"></i> </button>
示例2:
}
}
if ($actions->get("judir.category.create")) {
if ($this->catGroupCanDoManage) {
echo "<li><a class='add-category' href='index.php?option=com_judirectory&task=category.add&parent_id={$cat_id}'><i class='icon-folder-plus'></i>" . JText::_('COM_JUDIRECTORY_ADD_CATEGORY') . "</a></li>";
}
}
if (JUDirectoryHelper::checkGroupPermission(null, "pendinglistings") && JUDIRPROVERSION) {
echo "<li><a class='approved' href='index.php?option=com_judirectory&view=pendinglistings'><i class='icon-clock'></i>" . JText::sprintf('COM_JUDIRECTORY_PENDING_LISTINGS_N', JUDirectoryHelper::getTotalPendingListings()) . "</a></li>";
}
?>
</ul>
<div class="category-tree">
<?php
echo JUDirectoryHelper::getCategoryDTree($cat_id);
?>
</div>
<div id="judir-search" style="margin-top: 15px;">
<form name="search-form" id="search-form" action="index.php?option=com_judirectory" method="POST">
<fieldset>
<div class="input-append">
<input type="text" name="searchword" class="input-medium" size="20" maxlength="250" value="" placeholder="<?php
echo JText::_('COM_JUDIRECTORY_SEARCH');
?>
" />
<button type="submit" name="submit_simple_search" class="btn"><i class="icon-search"></i> </button>
</div>
</fieldset>