first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,141 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.combobox');
$hasContent = empty($this->item->module) || $this->item->module == 'custom' || $this->item->module == 'mod_custom';
$script = "Joomla.submitbutton = function(task)
{
if (task == 'module.cancel' || document.formvalidator.isValid(document.id('module-form'))) {";
if ($hasContent)
{
$script .= $this->form->getField('content')->save();
}
$script .= " Joomla.submitform(task, document.getElementById('module-form'));
if (self != top)
{
window.top.setTimeout('window.parent.SqueezeBox.close()', 1000);
}
}
}";
JFactory::getDocument()->addScriptDeclaration($script);
?>
<div class="module-edit">
<form action="<?php echo JRoute::_('index.php?option=com_modules&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="module-form" class="form-validate">
<div class="col main-section">
<fieldset class="adminform">
<legend><?php echo JText::_('JDETAILS'); ?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('title'); ?>
<?php echo $this->form->getInput('title'); ?></li>
<li><?php echo $this->form->getLabel('showtitle'); ?>
<?php echo $this->form->getInput('showtitle'); ?></li>
<li><?php echo $this->form->getLabel('position'); ?>
<?php echo $this->form->getInput('custom_position'); ?>
<label id="jform_custom_position-lbl" for="jform_custom_position" class="element-invisible"><?php echo JText::_('TPL_HATHOR_COM_MODULES_CUSTOM_POSITION_LABEL');?></label>
<?php echo $this->form->getInput('position'); ?></li>
<?php if ((string) $this->item->xml->name != 'Login Form') : ?>
<li><?php echo $this->form->getLabel('published'); ?>
<?php echo $this->form->getInput('published'); ?></li>
<?php endif; ?>
<li><?php echo $this->form->getLabel('access'); ?>
<?php echo $this->form->getInput('access'); ?></li>
<li><?php echo $this->form->getLabel('ordering'); ?>
<?php echo $this->form->getInput('ordering'); ?></li>
<?php if ((string) $this->item->xml->name != 'Login Form') : ?>
<li><?php echo $this->form->getLabel('publish_up'); ?>
<?php echo $this->form->getInput('publish_up'); ?></li>
<li><?php echo $this->form->getLabel('publish_down'); ?>
<?php echo $this->form->getInput('publish_down'); ?></li>
<?php endif; ?>
<li><?php echo $this->form->getLabel('language'); ?>
<?php echo $this->form->getInput('language'); ?></li>
<li><?php echo $this->form->getLabel('note'); ?>
<?php echo $this->form->getInput('note'); ?></li>
<?php if ($this->item->id) : ?>
<li><?php echo $this->form->getLabel('id'); ?>
<?php echo $this->form->getInput('id'); ?></li>
<?php endif; ?>
<li><?php echo $this->form->getLabel('module'); ?>
<?php echo $this->form->getInput('module'); ?>
<span class="faux-input"><?php if ($this->item->xml) echo ($text = (string) $this->item->xml->name) ? JText::_($text) : $this->item->module;else echo JText::_(COM_MODULES_ERR_XML);?></span></li>
<li><?php echo $this->form->getLabel('client_id'); ?>
<input type="text" size="35" id="jform_client_id" value="<?php echo $this->item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> " class="readonly" readonly="readonly" />
<?php echo $this->form->getInput('client_id'); ?></li>
</ul>
<div class="clr"></div>
<?php if ($this->item->xml) : ?>
<?php if ($text = trim($this->item->xml->description)) : ?>
<span class="faux-label">
<?php echo JText::_('COM_MODULES_MODULE_DESCRIPTION'); ?>
</span>
<div class="clr"></div>
<div class="readonly mod-desc extdescript">
<?php echo JText::_($text); ?>
</div>
<?php endif; ?>
<?php else : ?>
<?php echo JText::_('COM_MODULES_ERR_XML'); ?>
<?php endif; ?>
<div class="clr"></div>
</fieldset>
</div>
<div class="col options-section">
<?php echo JHtml::_('sliders.start', 'module-sliders'); ?>
<?php echo $this->loadTemplate('options'); ?>
<?php echo JHtml::_('sliders.end'); ?>
</div>
<?php if ($hasContent) : ?>
<div class="col main-section">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_MODULES_CUSTOM_OUTPUT'); ?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('content'); ?>
<div class="clr"></div>
<?php echo $this->form->getInput('content'); ?></li>
</ul>
</fieldset>
</div>
<?php endif; ?>
<?php if ($this->item->client_id == 0) :?>
<div class="col main-section">
<?php echo $this->loadTemplate('assignment'); ?>
</div>
<?php endif; ?>
<div>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
</div>

View File

@ -0,0 +1,129 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_modules
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Initiasile related data.
require_once JPATH_ADMINISTRATOR.'/components/com_menus/helpers/menus.php';
$menuTypes = MenusHelper::getMenuLinks();
?>
<script type="text/javascript">
window.addEvent('domready', function(){
validate();
document.getElements('select').addEvent('change', function(e){validate();});
});
function validate(){
var value = document.id('jform_assignment').value;
var list = document.id('menu-assignment');
if (value == '-' || value == '0'){
$$('.jform-assignments-button').each(function(el) {el.setProperty('disabled', true); });
list.getElements('input').each(function(el){
el.setProperty('disabled', true);
if (value == '-'){
el.setProperty('checked', false);
} else {
el.setProperty('checked', true);
}
});
} else {
$$('.jform-assignments-button').each(function(el) {el.setProperty('disabled', false); });
list.getElements('input').each(function(el){
el.setProperty('disabled', false);
});
}
}
</script>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_MODULES_MENU_ASSIGNMENT'); ?></legend>
<label id="jform_menus-lbl" for="jform_menus"><?php echo JText::_('COM_MODULES_MODULE_ASSIGN'); ?></label>
<fieldset id="jform_menus" class="radio">
<select name="jform[assignment]" id="jform_assignment">
<?php echo JHtml::_('select.options', ModulesHelper::getAssignmentOptions($this->item->client_id), 'value', 'text', $this->item->assignment, true);?>
</select>
</fieldset>
<label id="jform_menuselect-lbl" for="jform_menuselect"><?php echo JText::_('JGLOBAL_MENU_SELECTION'); ?></label>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chkbox').each(function(el) { el.checked = !el.checked; });">
<?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
</button>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chkbox').each(function(el) { el.checked = false; });">
<?php echo JText::_('JGLOBAL_SELECTION_NONE'); ?>
</button>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.chkbox').each(function(el) { el.checked = true; });">
<?php echo JText::_('JGLOBAL_SELECTION_ALL'); ?>
</button>
<div class="clr"></div>
<div id="menu-assignment">
<?php echo JHtml::_('tabs.start', 'module-menu-assignment-tabs', array('useCookie' => 1));?>
<?php foreach ($menuTypes as &$type) :
echo JHtml::_('tabs.panel', $type->title ? $type->title : $type->menutype, $type->menutype.'-details');
$chkbox_class = 'chk-menulink-' . $type->id; ?>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.<?php echo $chkbox_class; ?>').each(function(el) { el.checked = !el.checked; });">
<?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
</button>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.<?php echo $chkbox_class; ?>').each(function(el) { el.checked = false; });">
<?php echo JText::_('JGLOBAL_SELECTION_NONE'); ?>
</button>
<button type="button" class="jform-assignments-button jform-rightbtn" onclick="$$('.<?php echo $chkbox_class; ?>').each(function(el) { el.checked = true; });">
<?php echo JText::_('JGLOBAL_SELECTION_ALL'); ?>
</button>
<div class="clr"></div>
<?php
$count = count($type->links);
$i = 0;
if ($count) :
?>
<ul class="menu-links">
<?php
foreach ($type->links as $link) :
if (trim($this->item->assignment) == '-'):
$checked = '';
elseif ($this->item->assignment == 0):
$checked = ' checked="checked"';
elseif ($this->item->assignment < 0):
$checked = in_array(-$link->value, $this->item->assigned) ? ' checked="checked"' : '';
elseif ($this->item->assignment > 0) :
$checked = in_array($link->value, $this->item->assigned) ? ' checked="checked"' : '';
endif;
?>
<li class="menu-link">
<input type="checkbox" class="chkbox <?php echo $chkbox_class; ?>" name="jform[assigned][]" value="<?php echo (int) $link->value;?>" id="link<?php echo (int) $link->value;?>"<?php echo $checked;?>/>
<label for="link<?php echo (int) $link->value;?>">
<?php echo $link->text; ?>
</label>
</li>
<?php if ($count > 20 && ++$i == ceil($count / 2)) :?>
</ul><ul class="menu-links">
<?php endif; ?>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
<?php endif; ?>
<?php endforeach; ?>
<?php echo JHtml::_('tabs.end');?>
</div>
</fieldset>

View File

@ -0,0 +1,37 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$fieldSets = $this->form->getFieldsets('params');
foreach ($fieldSets as $name => $fieldSet) :
$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MODULES_'.$name.'_FIELDSET_LABEL';
echo JHtml::_('sliders.panel', JText::_($label), $name.'-options');
if (isset($fieldSet->description) && trim($fieldSet->description)) :
echo '<p class="tip">'.$this->escape(JText::_($fieldSet->description)).'</p>';
endif;
?>
<fieldset class="panelform">
<legend class="element-invisible"><?php echo JText::_($label); ?></legend>
<?php $hidden_fields = ''; ?>
<ul class="adminformlist">
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
<?php if (!$field->hidden) : ?>
<li>
<?php echo $field->label; ?>
<?php echo $field->input; ?>
</li>
<?php else : $hidden_fields .= $field->input; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php echo $hidden_fields; ?>
</fieldset>
<?php endforeach; ?>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,227 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.multiselect');
JHtml::_('behavior.modal');
$client = $this->state->get('filter.client_id') ? 'administrator' : 'site';
$user = JFactory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$canOrder = $user->authorise('core.edit.state', 'com_modules');
$saveOrder = $listOrder == 'ordering';
?>
<form action="<?php echo JRoute::_('index.php?option=com_modules'); ?>" method="post" name="adminForm" id="adminForm">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<fieldset id="filter-bar">
<legend class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></legend>
<div class="filter-search">
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_MODULES_MODULES_FILTER_SEARCH_DESC'); ?>" />
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></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">
<label class="selectlabel" for="filter_client_id">
<?php echo JText::_('JGLOBAL_FILTER_CLIENT'); ?>
</label>
<select name="filter_client_id" class="inputbox" id="filter_client_id">
<?php echo JHtml::_('select.options', ModulesHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id'));?>
</select>
<label class="selectlabel" for="filter_state">
<?php echo JText::_('JOPTION_SELECT_PUBLISHED'); ?>
</label>
<select name="filter_state" class="inputbox" id="filter_state">
<option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
<?php echo JHtml::_('select.options', ModulesHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state'));?>
</select>
<label class="selectlabel" for="filter_position">
<?php echo JText::_('COM_MODULES_OPTION_SELECT_POSITION'); ?>
</label>
<select name="filter_position" class="inputbox" id="filter_position">
<option value=""><?php echo JText::_('COM_MODULES_OPTION_SELECT_POSITION');?></option>
<?php echo JHtml::_('select.options', ModulesHelper::getPositions($this->state->get('filter.client_id')), 'value', 'text', $this->state->get('filter.position'));?>
</select>
<label class="selectlabel" for="filter_module">
<?php echo JText::_('COM_MODULES_OPTION_SELECT_MODULE'); ?>
</label>
<select name="filter_module" class="inputbox" id="filter_module">
<option value=""><?php echo JText::_('COM_MODULES_OPTION_SELECT_MODULE');?></option>
<?php echo JHtml::_('select.options', ModulesHelper::getModules($this->state->get('filter.client_id')), 'value', 'text', $this->state->get('filter.module'));?>
</select>
<label class="selectlabel" for="filter_access">
<?php echo JText::_('JOPTION_SELECT_ACCESS'); ?>
</label>
<select name="filter_access" class="inputbox" id="filter_access">
<option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option>
<?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?>
</select>
<label class="selectlabel" for="filter_language">
<?php echo JText::_('JOPTION_SELECT_LANGUAGE'); ?>
</label>
<select name="filter_language" class="inputbox" id="filter_language">
<option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option>
<?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?>
</select>
<button type="submit" id="filter-go">
<?php echo JText::_('JSUBMIT'); ?></button>
</div>
</fieldset>
<div class="clr"> </div>
<table class="adminlist" id="modules-mgr">
<thead>
<tr>
<th class="checkmark-col">
<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
</th>
<th class="title">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'title', $listDirn, $listOrder); ?>
</th>
<th class="width-5">
<?php echo JHtml::_('grid.sort', 'JSTATUS', 'published', $listDirn, $listOrder); ?>
</th>
<th class="width-20">
<?php echo JHtml::_('grid.sort', 'COM_MODULES_HEADING_POSITION', 'position', $listDirn, $listOrder); ?>
</th>
<th class="nowrap ordering-col">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ORDERING', 'ordering', $listDirn, $listOrder); ?>
<?php if ($canOrder && $saveOrder) :?>
<?php echo JHtml::_('grid.order', $this->items, 'filesave.png', 'modules.saveorder'); ?>
<?php endif; ?>
</th>
<th class="width-10">
<?php echo JHtml::_('grid.sort', 'COM_MODULES_HEADING_MODULE', 'name', $listDirn, $listOrder); ?>
</th>
<th class="width-10">
<?php echo JHtml::_('grid.sort', 'COM_MODULES_HEADING_PAGES', 'pages', $listDirn, $listOrder); ?>
</th>
<th class="title access-col">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'access', $listDirn, $listOrder); ?>
</th>
<th class="language-col">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language_title', $listDirn, $listOrder); ?>
</th>
<th class="nowrap id-col">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'id', $listDirn, $listOrder); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) :
$ordering = ($listOrder == 'ordering');
$canCreate = $user->authorise('core.create', 'com_modules');
$canEdit = $user->authorise('core.edit', 'com_modules');
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
$canChange = $user->authorise('core.edit.state', 'com_modules') && $canCheckin;
?>
<tr class="row<?php echo $i % 2; ?>">
<td class="center">
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
</td>
<td>
<?php if ($item->checked_out) : ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'modules.', $canCheckin); ?>
<?php endif; ?>
<?php if ($canEdit) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_modules&task=module.edit&id='.(int) $item->id); ?>">
<?php echo $this->escape($item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($item->title); ?>
<?php endif; ?>
<?php if (!empty($item->note)) : ?>
<p class="smallsub">
<?php echo JText::sprintf('JGLOBAL_LIST_NOTE', $this->escape($item->note));?></p>
<?php endif; ?>
</td>
<td class="center">
<?php echo JHtml::_('modules.state', $item->published, $i, $canChange, 'cb'); ?>
</td>
<td class="center">
<?php echo $item->position; ?>
</td>
<td class="order">
<?php if ($canChange) : ?>
<?php if ($saveOrder) :?>
<?php if ($listDirn == 'asc') : ?>
<span><?php echo $this->pagination->orderUpIcon($i, (@$this->items[$i - 1]->position == $item->position), 'modules.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?></span>
<span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i + 1]->position == $item->position), 'modules.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php elseif ($listDirn == 'desc') : ?>
<span><?php echo $this->pagination->orderUpIcon($i, (@$this->items[$i - 1]->position == $item->position), 'modules.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?></span>
<span><?php echo $this->pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i + 1]->position == $item->position), 'modules.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?></span>
<?php endif; ?>
<?php endif; ?>
<?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?>
<input type="text" name="order[]" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order" title="<?php echo $item->title; ?> order" />
<?php else : ?>
<?php echo $item->ordering; ?>
<?php endif; ?>
</td>
<td class="left">
<?php echo $item->name;?>
</td>
<td class="center">
<?php echo $item->pages; ?>
</td>
<td class="center">
<?php echo $this->escape($item->access_level); ?>
</td>
<td class="center">
<?php if ($item->language == ''):?>
<?php echo JText::_('JDEFAULT'); ?>
<?php elseif ($item->language == '*'):?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else:?>
<?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif;?>
</td>
<td class="center">
<?php echo (int) $item->id; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php //Load the batch processing form.is user is allowed ?>
<?php if ($user->authorise('core.create', 'com_modules') || $user->authorise('core.edit', 'com_modules')) : ?>
<?php echo $this->loadTemplate('batch'); ?>
<?php endif;?>
<?php echo $this->pagination->getListFooter(); ?>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,111 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
$function = JFactory::getApplication()->input->getCmd('function', 'jSelectPosition');
$lang = JFactory::getLanguage();
$ordering = $this->escape($this->state->get('list.ordering'));
$direction = $this->escape($this->state->get('list.direction'));
$clientId = $this->state->get('filter.client_id');
$state = $this->state->get('filter.state');
$template = $this->state->get('filter.template');
$type = $this->state->get('filter.type');
?>
<form action="<?php echo JRoute::_('index.php?option=com_modules&view=positions&layout=modal&tmpl=component&function='.$function.'&client_id=' .$clientId);?>" method="post" name="adminForm" id="adminForm">
<fieldset id="filter-bar">
<legend class="element-invisible"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></legend>
<div class="filter-search">
<label for="filter_search">
<?php echo JText::_('JSearch_Filter_Label'); ?>
</label>
<input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" size="30" title="<?php echo JText::_('COM_MODULES_FILTER_SEARCH_DESC'); ?>" />
<button type="submit">
<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></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">
<label class="selectlabel" for="filter_state">
<?php echo JText::_('JOPTION_SELECT_PUBLISHED'); ?>
</label>
<select name="filter_state" class="inputbox" id="filter_state">
<option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
<?php echo JHtml::_('select.options', JHtml::_('modules.templateStates'), 'value', 'text', $state, true);?>
</select>
<label class="selectlabel" for="filter_type">
<?php echo JText::_('COM_MODULES_OPTION_SELECT_TYPE'); ?>
</label>
<select name="filter_type" class="inputbox" id="filter_type">
<option value=""><?php echo JText::_('COM_MODULES_OPTION_SELECT_TYPE');?></option>
<?php echo JHtml::_('select.options', JHtml::_('modules.types'), 'value', 'text', $type, true);?>
</select>
<label class="selectlabel" for="filter_template">
<?php echo JText::_('JOPTION_SELECT_TEMPLATE'); ?>
</label>
<select name="filter_template" class="inputbox" id="filter_template">
<option value=""><?php echo JText::_('JOPTION_SELECT_TEMPLATE');?></option>
<?php echo JHtml::_('select.options', JHtml::_('modules.templates', $clientId), 'value', 'text', $template, true);?>
</select>
<button type="submit" id="filter-go">
<?php echo JText::_('JSUBMIT'); ?></button>
</div>
</fieldset>
<table class="adminlist">
<thead>
<tr>
<th class="title width-20">
<?php echo JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'value', $direction, $ordering); ?>
</th>
<th>
<?php echo JHtml::_('grid.sort', 'COM_MODULES_HEADING_TEMPLATES', 'templates', $direction, $ordering); ?>
</th>
</tr>
</thead>
<tbody>
<?php $i = 1; foreach ($this->items as $value => $templates) : ?>
<tr class="row<?php echo $i = 1 - $i;?>">
<td>
<a class="pointer" onclick="if (window.parent) window.parent.<?php echo $function;?>('<?php echo $value; ?>');"><?php echo $this->escape($value); ?></a>
</td>
<td>
<?php if (!empty($templates)):?>
<a class="pointer" onclick="if (window.parent) window.parent.<?php echo $function;?>('<?php echo $value; ?>');">
<ul>
<?php foreach ($templates as $template => $label):?>
<li><?php echo $lang->hasKey($label) ? JText::sprintf('COM_MODULES_MODULE_TEMPLATE_POSITION', JText::_($template), JText::_($label)) : JText::_($template);?></li>
<?php endforeach;?>
</ul>
</a>
<?php endif;?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php echo $this->pagination->getListFooter(); ?>
<div>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $ordering; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $direction; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>