| Current Path : /var/www/iplanru/data/www/i-plan.ru/administrator/components/com_zoo/views/comment/tmpl/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/administrator/components/com_zoo/views/comment/tmpl/default.php |
<?php
/**
* @package com_zoo
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$this->app->html->_('behavior.tooltip');
// add js
$this->app->document->addScript('assets:js/comment.js');
?>
<form class="comments-default" action="<?php echo $this->app->link(array('controller' => $this->controller)); ?>" method="post" name="adminForm" id="adminForm" accept-charset="utf-8">
<?php echo $this->partial('menu'); ?>
<div class="box-bottom">
<ul class="filter">
<li class="filter-left">
<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="rounded" />
<button onclick="this.form.submit();"><?php echo JText::_('Search'); ?></button>
<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_('Reset'); ?></button>
</li>
<?php if ($this->app->joomla->version->isCompatible('3.0')) : ?>
<li class="filter-right">
<?php echo str_replace(array('input-mini', 'size="1"'), '', $this->pagination->getLimitBox()); ?>
</li>
<?php endif ?>
<li class="filter-right">
<?php echo $this->lists['select_author'];?>
</li>
<li class="filter-right">
<?php echo $this->lists['select_item'];?>
</li>
<li class="filter-right">
<?php echo $this->lists['select_state'];?>
</li>
</ul>
<?php if($this->pagination->total > 0) : ?>
<table id="actionlist" class="list stripe">
<thead>
<tr>
<th class="checkbox">
<input type="checkbox" class="check-all" />
</th>
<th class="author">
<?php echo JText::_('Author'); ?>
</th>
<th class="comment">
<?php echo JText::_('Comment'); ?>
</th>
<th class="comment-on">
<?php echo JText::_('Comment On'); ?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody id="table-body">
<?php
foreach ($this->comments as $comment) {
$this->comment = $comment;
echo $this->partial('row');
}
?>
</tbody>
</table>
<?php elseif($this->is_filtered) :
$title = JText::_('FILTER_NO_COMMENTS').'!';
$message = null;
echo $this->partial('message', compact('title', 'message'));
else :
$title = JText::_('NO_COMMENTS_YET').'!';
$message = JText::_('COMMENTS_MANAGER_DESCRIPTION');
echo $this->partial('message', compact('title', 'message'));
endif;
?>
</div>
<input type="hidden" name="controller" value="<?php echo $this->controller; ?>" />
<input type="hidden" name="task" id="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="changeapp" value="<?php echo $this->application->id; ?>" />
<?php echo $this->app->html->_('form.token'); ?>
</form>
<script type="text/javascript">
jQuery(function($) {
$('#adminForm').BrowseComments();
});
</script>
<?php echo ZOO_COPYRIGHT;