/**
 * ------------------------------------------------------------------------
 * 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');
if ($this->app->input->getInt('approve', 0) == 1) {
    $totalNextPendingListings = JUDirectoryHelper::getTotalPendingListings('next', $this->item->id);
    $totalPrevPendingListings = JUDirectoryHelper::getTotalPendingListings('prev', $this->item->id);
    ?>
	<div class="approval span12">
		<div class="approval-inner">
			<?php 
    if ($totalPrevPendingListings > 0) {
        ?>
				<button class="judir-previous btn btn-info"
				        onclick="Joomla.submitbutton('pendinglisting.saveAndPrev')">
					<i class="icon-arrow-left-2"></i>
					<?php 
        echo JText::sprintf('COM_JUDIRECTORY_SAVE_AND_PREV_N', $totalPrevPendingListings);
        ?>
				</button>
			<?php 
    }
示例#2
0
 * @----------------------------------------------------------------------@
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.multiselect');
JHtml::_('behavior.tooltip');
$model = $this->getModel();
$statistics = $this->get('Statistics');
$lastCreatedComments = $this->get('lastCreatedComments');
$lastCreatedListings = $model->getListings("lastCreatedListings");
$lastUpdatedListings = $model->getListings("lastUpdatedListings");
$popularListings = $model->getListings("popularListings");
$totalUnreadReports = $model->getTotalUnreadReports();
$totalClaims = $model->getTotalClaims();
$totalMailqs = $model->getTotalMailqs();
$totalPendingListing = JUDirectoryHelper::getTotalPendingListings();
$totalPendingComment = JUDirectoryHelper::getTotalPendingComments();
?>
<div class="jubootstrap">

<div id="iframe-help"></div>

<div class="adminform">
<div class="cpanel-left">
<div id="position-icon" class="pane-sliders">
<?php 
if (JUDirectoryHelper::checkGroupPermission(null, "listcats")) {
    ?>
	<div class="cpanel">
		<div class="icon-wrapper">
			<div class="icon">
示例#3
0
<ul class="manager-actions nav nav-list" style="margin-bottom: 20px;">
	<?php 
$actions = JUDirectoryHelper::getActions('com_judirectory', 'category', $cat_id);
if ($actions->get("judir.listing.create")) {
    if ($this->listingGroupCanDoManage && $this->allowAddListing) {
        echo "<li><a class='add-listing' href='index.php?option=com_judirectory&task=listing.add&cat_id={$cat_id}'><i class='icon-file-add'></i>" . JText::_('COM_JUDIRECTORY_ADD_LISTING') . "</a></li>";
    }
}
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