Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/administrator/components/com_helpdeskpro/View/Category/tmpl/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/administrator/components/com_helpdeskpro/View/Category/tmpl/default.php

<?php
/**
 * @version        4.3.0
 * @package        Joomla
 * @subpackage     Helpdesk Pro
 * @author         Tuan Pham Ngoc
 * @copyright      Copyright (C) 2013 - 2021 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */

defined('_JEXEC') or die;

use Joomla\CMS\Editor\Editor;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;

if (HelpdeskproHelper::isJoomla4())
{
	$tabApiPrefix = 'uitab.';
}
else
{
	$tabApiPrefix = 'bootstrap.';
}

$editor       =
Editor::getInstance(Factory::getConfig()->get('editor'));
$translatable = Multilanguage::isEnabled() &&
count($this->languages);
?>
<form
action="index.php?option=com_helpdeskpro&view=category"
method="post" name="adminForm" id="adminForm"
class="form form-horizontal">
		<?php
        if ($translatable)
        {
	        echo HTMLHelper::_($tabApiPrefix . 'startTabSet',
'category', array('active' =>
'general-page'));
	        echo HTMLHelper::_($tabApiPrefix . 'addTab',
'category', 'general-page',
Text::_('HDP_GENERAL', true));
        }
        ?>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_TITLE'); ?>
                </div>
                <div class="controls">
                    <input class="form-control"
type="text" name="title" id="title"
size="40" maxlength="250"
                           value="<?php echo
$this->item->title; ?>"/>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_ALIAS'); ?>
                </div>
                <div class="controls">
                    <input class="form-control"
type="text" name="alias" id="alias"
size="40" maxlength="250"
                           value="<?php echo
$this->item->alias; ?>"/>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_PARENT_CATEGORY');
?>
                </div>
                <div class="controls">
                    <?php echo $this->lists['parent_id'];
?>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_ACCESS_LEVEL');
?>
                </div>
                <div class="controls">
                    <?php echo $this->lists['access'];
?>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_MANAGERS'); ?>
                </div>
                <div class="controls">
                    <input type="text"
name="managers" class="form-control input-xxlarge"
                           value="<?php echo
$this->item->managers; ?>"
                           placeholder="<?php echo
Text::_('HDP_MANAGERS_EXPLAIN'); ?>"/>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_DESCRIPTION');
?>
                </div>
                <div class="controls">
                    <?php echo
$editor->display('description',
$this->item->description, '100%', '250',
'75', '10'); ?>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_CATEGORY_TYPE');
?>
                </div>
                <div class="controls">
                    <?php echo
$this->lists['category_type']; ?>
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    <?php echo Text::_('HDP_PUBLISHED');
?>
                </div>
                <div class="controls">
                    <?php echo $this->lists['published'];
?>
                </div>
            </div>
        <?php

        if ($translatable)
        {
	        echo HTMLHelper::_($tabApiPrefix . 'endTab');
	        echo $this->loadTemplate('translation',
['editor' => $editor]);
	        echo HTMLHelper::_($tabApiPrefix . 'endTabSet');
        }
		?>
		<?php echo HTMLHelper::_('form.token'); ?>
		<input type="hidden" name="id"
value="<?php echo $this->item->id; ?>"/>
		<input type="hidden" name="task"
value=""/>
</form>