Your IP : 216.73.216.240
<?php
/*------------------------------------------------------------------------
# com_zhgooglemap - Zh GoogleMap
# ------------------------------------------------------------------------
# author: Dmitry Zhuk
# copyright: Copyright (C) 2011 zhuk.cc. All Rights Reserved.
# license: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
# website: http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
-------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
// load tooltip behavior
JHtml::_('behavior.tooltip');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('behavior.multiselect');
JHtml::_('dropdown.init');
$user = JFactory::getUser();
$userId = $user->get('id');
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$canOrder = $user->authorise('core.edit.state', 'com_zhgooglemap.category');
$saveOrder = $listOrder == 'ordering';
$sortFields = $this->getSortFields();
?>
<script type="text/javascript">
Joomla.orderTable = function() {
table = document.getElementById("sortTable");
direction = document.getElementById("directionTable");
order = table.options[table.selectedIndex].value;
if (order != '<?php echo $listOrder; ?>') {
dirn = 'asc';
} else {
dirn = direction.options[direction.selectedIndex].value;
}
Joomla.tableOrdering(order, dirn, '');
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_zhgooglemap&view=mapbufmrks'); ?>" 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;?>
<div id="filter-bar" class="btn-toolbar">
<div class="filter-search btn-group pull-left">
<label class="element-invisible" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label>
<input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('COM_ZHGOOGLEMAP_MAPMARKER_FILTER_SEARCH_IN_TITLE'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_ZHGOOGLEMAP_MAPMARKER_FILTER_SEARCH_IN_TITLE'); ?>" />
</div>
<div class="btn-group pull-left">
<button class="btn hasTooltip" type="submit" title="<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button>
<button class="btn hasTooltip" type="button" title="<?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button>
</div>
<div class="btn-group pull-right hidden-phone">
<label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<div class="btn-group pull-right hidden-phone">
<label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label>
<select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()">
<option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option>
<option value="asc" <?php if ($listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option>
<option value="desc" <?php if ($listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option>
</select>
</div>
<div class="btn-group pull-right">
<label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label>
<select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()">
<option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option>
<?php echo JHtml::_('select.options', $sortFields, 'value', 'text', $listOrder);?>
</select>
</div>
</div>
<div class="clearfix"> </div>
<table class="table table-striped" id="mapbufmrkList">
<thead><?php echo $this->loadTemplate('head');?></thead>
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
<tbody><?php echo $this->loadTemplate('body');?></tbody>
</table>
<?php // Load the export form ?>
<?php
echo JHtml::_(
'bootstrap.renderModal',
'uploadCSVModal',
array(
'title' => JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_UPLOAD_CSV'),
'url' => JRoute::_('index.php?option=com_zhgooglemap&view=uploadcsv&tmpl=component&'. JSession::getFormToken().'=1'),
'height' => '400px',
'width' => '300px',
'backdrop' => 'static',
'closeButton' => false,
'modalWidth' => '40',
'footer' => '<a class="btn" data-dismiss="modal" type="button"'
.' id="load_csv_file_cancel"'
. ' onclick="jQuery(\'#uploadCSVModal iframe\').contents().find(\'#closeBtn\').click();jQuery(\'#load_csv_file_do\').show();jQuery(\'#load_csv_file_cancel\').html(\''.JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CANCEL').'\');">'
. JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CANCEL') . '</a>'
. '<button class="btn btn-success" type="button"'
.' id="load_csv_file_do"'
. ' onclick="jQuery(\'#uploadCSVModal iframe\').contents().find(\'#uploadBtn\').click();jQuery(\'#load_csv_file_do\').hide();jQuery(\'#load_csv_file_cancel\').html(\''.JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CLOSE').'\');">'
. JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_UPLOAD') . '</button>',
)
);
echo JHtml::_(
'bootstrap.renderModal',
'uploadPlacemarkModal',
array(
'title' => JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_UPLOAD_PLACEMARK'),
'url' => JRoute::_('index.php?option=com_zhgooglemap&view=uploadplacemark&tmpl=component&'. JSession::getFormToken().'=1'),
'height' => '200px',
'width' => '300px',
'backdrop' => 'static',
'closeButton' => false,
'modalWidth' => '40',
'footer' => '<a class="btn" data-dismiss="modal" type="button"'
.' id="load_import_placemark_cancel"'
. ' onclick="jQuery(\'#uploadPlacemarkModal iframe\').contents().find(\'#closeBtn\').click();jQuery(\'#load_import_placemark_do\').show();jQuery(\'#load_import_placemark_cancel\').html(\''.JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CANCEL').'\');">'
. JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CANCEL') . '</a>'
. '<button class="btn btn-success" type="button"'
.' id="load_import_placemark_do"'
. ' onclick="jQuery(\'#uploadPlacemarkModal iframe\').contents().find(\'#importBtn\').click();jQuery(\'#load_import_placemark_do\').hide();jQuery(\'#load_import_placemark_cancel\').html(\''.JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_CLOSE').'\');">'
. JText::_('COM_ZHGOOGLEMAP_MAPBUFMRKS_IMPORT') . '</button>',
)
);
?>
<div>
<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>
</div>
</form>