예제 #1
0
 /**
  * Set component submenu.
  *
  * @param string $view opened view page
  * @return void
  */
 public static function setSubmenu($view = JOOMDOC_JOOMDOC, $asJ3Sidebar = false)
 {
     if ($asJ3Sidebar and JOOMDOC_ISJ3) {
         //J3: if we want to add own things to sidebar, we need to set up own html grid-12, so build own left submenu, which we will display
         $object = 'JHtmlSidebar';
     } else {
         //else (if j3), its added to default submenu which is displayed as left sidebar automatically
         $object = 'JSubMenuHelper';
     }
     $object::addEntry(JText::_('JOOMDOC_CONTROL_PANEL'), JoomDOCRoute::viewJoomDOC(), $view == JOOMDOC_JOOMDOC);
     $object::addEntry(JText::_('JOOMDOC_DOCUMENTS'), JoomDOCRoute::viewDocuments(), $view == JOOMDOC_DOCUMENTS);
     $object::addEntry(JText::_('JOOMDOC_LICENSES'), JoomDOCRoute::viewLicenses(), $view == JOOMDOC_LICENSES);
     if (JFactory::getUser()->authorise('core.managafields', 'com_joomdoc')) {
         $object::addEntry(JText::_('JOOMDOC_FIELDS'), JoomDOCRoute::viewFields(), $view == JOOMDOC_FIELDS);
     }
     $object::addEntry(JText::_('JOOMDOC_UPGRADE'), JoomDOCRoute::viewUpgrade(), $view == JOOMDOC_UPGRADE);
     $object::addEntry(JText::_('JOOMDOC_MIGRATION'), JoomDOCRoute::viewMigration(), $view == JOOMDOC_MIGRATION);
 }
예제 #2
0
 /**
  * Delete trashed license's.
  *
  * @return void
  */
 public function trash()
 {
     if (JoomDOCAccess::licenses()) {
         $model = $this->getModel();
         $count = $model->trash();
         $this->setRedirect(JoomDOCRoute::viewLicenses(), JText::sprintf('JOOMDOC_TRASH_EMPTY', $count));
     }
 }
예제 #3
0
$xml = simplexml_load_file(JOOMDOC_MANIFEST);
//all xml stuff is removed/deprecated in J3.0
echo '<div class="doc-width-60 fltlft">';
echo '<div id="cpanel">';
require_once JOOMDOC_ADMINISTRATOR . '/libraries/joomdoc/html/joomdoc.php';
echo JHtmlJoomDOC::startTabs('doc-cpanel-tabs', 'documents');
echo JHtmlJoomDOC::addTab('COM_DOC_JOOMDOC_CONFIGURATION', 'documents', 'doc-cpanel-tabs');
echo '<div class="icon-wrapper">';
echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_DOCUMENTS') . '">';
echo '<a href="' . JRoute::_(JoomDOCRoute::viewDocuments()) . '" title="" >';
echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-documents.png" alt="" />';
echo '<span>' . JText::_('JOOMDOC_DOCUMENTS') . '</span>';
echo '</a>';
echo '</div>';
echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_LICENSES') . '">';
echo '<a href="' . JRoute::_(JoomDOCRoute::viewLicenses()) . '" title="" >';
echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-license.png" alt="" />';
echo '<span>' . JText::_('JOOMDOC_LICENSES') . '</span>';
echo '</a>';
echo '</div>';
echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_CUSTOM_FIELDS') . '">';
echo '<a href="' . JRoute::_(JoomDOCRoute::viewFields()) . '" title="" >';
echo '<img src="' . JOOMDOC_IMAGES . 'icon-48-field.png" alt="" />';
echo '<span>' . JText::_('JOOMDOC_CUSTOM_FIELDS') . '</span>';
echo '</a>';
echo '</div>';
echo '</div>';
echo JHtmlJoomDOC::endTab();
echo JHtmlJoomDOC::addTab('COM_DOC_UPGR', 'upgrade', 'doc-cpanel-tabs');
echo '<div class="icon-wrapper"  style="float: left">';
echo '<div class="hasTip icon" title="' . $this->getTooltip('JOOMDOC_UPGRADE') . '">';
예제 #4
0
<?php

/**
 * @version		$Id$
 * @package		Joomla.Administrator
 * @subpackage	JoomDOC
 * @author      ARTIO s.r.o., info@artio.net, http:://www.artio.net
 * @copyright	Copyright (C) 2011 Artio s.r.o.. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
/* @var $this JoomDOCViewLicenses */
$listOrder = $this->escape($this->state->get(JOOMDOC_FILTER_ORDERING));
$listDirn = $this->escape($this->state->get(JOOMDOC_FILTER_DIRECTION));
echo '<form action="' . JRoute::_(JoomDOCRoute::viewLicenses()) . '" method="post" name="adminForm" id="adminForm">';
echo '<fieldset class="btn-toolbar autoHeight filter-bar">';
echo '<div>';
// text filter
echo '<label class="filter-search-lbl element-invisible" for="Filter" style="display:none">Filter</label>';
//J2.5 does niot have element-invisible
echo '<div class="btn-group pull-left input-append">';
echo '<input style="width: 130px; margin-bottom: 0px;" class="pull-left" type="text" name="filter" id="filter" title="Filter" placeholder="Filter" value="' . $this->escape($this->filter) . '" />';
echo '<button type="submit" class="btn" title="' . JText::_('JSEARCH_FILTER_SUBMIT') . '"><i class="icon-search"></i>' . (JOOMDOC_ISJ3 ? '' : JText::_('JSEARCH_FILTER_SUBMIT')) . '</button>';
echo '<button type="button" class="btn" title="' . JText::_('JSEARCH_FILTER_CLEAR') . '" onclick="var f=this.form;f.filter.value=\'\'; f.submit();"><i class="icon-remove"></i>' . (JOOMDOC_ISJ3 ? '' : JText::_('JSEARCH_FILTER_CLEAR')) . '</button>';
echo '</div>';
echo '</div>';
echo '</fieldset>';
echo '<div class="clearfix"></div>';
echo '<table class="adminlist table table-striped" cellspacing="1">';
echo '<thead><tr>';
echo '<th width="1%" class="center"><input type="checkbox" name="checkall-toggle" value="" onclick="Joomla.checkAll(this)" /></th>';