Beispiel #1
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::editList('comment.edit');
     JToolBarHelper::divider();
     JToolBarHelper::title(JText::_('COM_BT_PORTFOLIO_COMMENTS_MANAGER'), 'article.png');
     JToolBarHelper::publish('comments.publish', 'JTOOLBAR_PUBLISH', true);
     JToolBarHelper::unpublish('comments.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     JToolBarHelper::divider();
     JToolBarHelper::deleteList('', 'comments.delete');
     JToolBarHelper::preferences('com_bt_portfolio');
     $this->sidebar = '';
     Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel'));
     //added since 2.0 for j3.0
     if (!$this->legacy) {
         JHtmlSidebar::setAction('index.php?option=com_bt_portfolio&view=comments');
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_BT_PORTFOLIO_COMMENT_SELECT_AUTHOR'), 'filter_author', JHtml::_('select.options', Bt_portfolioHelper::getAuthorOptions(), 'value', 'text', $this->state->get('filter.author'), true));
         $this->sidebar = JHtmlSidebar::render();
     }
 }
Beispiel #2
0
			</button>
			<button type="button"
				onclick="document.id('filter_search').value='';this.form.submit();">
				<?php 
    echo JText::_('JSEARCH_FILTER_CLEAR');
    ?>
			</button>
		</div>
		<div class="filter-select fltrt">
                <select name="filter_author" class="inputbox" onchange="this.form.submit()">
                    <option value=""><?php 
    echo JText::_('COM_BT_PORTFOLIO_COMMENT_SELECT_AUTHOR');
    ?>
</option>
                    <?php 
    echo JHtml::_('select.options', Bt_portfolioHelper::getAuthorOptions(), 'value', 'text', $this->state->get('filter.author'));
    ?>
                </select>
                <select name="filter_published" class="inputbox" onchange="this.form.submit()">
                    <option value=""><?php 
    echo JText::_('JOPTION_SELECT_PUBLISHED');
    ?>
</option>
                    <?php 
    echo JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'));
    ?>
                </select>
 		</div>
	</fieldset>

<?php