Your IP : 216.73.216.131


Current Path : /home/lejardintz/www/administrator/components/com_komento/views/subscribers/tmpl/
Upload File :
Current File : /home/lejardintz/www/administrator/components/com_komento/views/subscribers/tmpl/default_joomla.php

<?php
/**
 * @package		Komento
 * @copyright	Copyright (C) 2012 Stack Ideas Private Limited. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 *
 * Komento is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined('_JEXEC') or die('Restricted access'); ?>
<div class="adminform-head">
	<table class="adminform">
		<tr>
			<td width="50%">
			</td>
			<td width="50%" style="text-align: right;">
				<label><?php echo JText::_( 'COM_KOMENTO_SUBSCRIBERS_FILTER_COMPONENT' ); ?> :</label>
				<?php echo $this->component; ?>
			</td>
		</tr>
	</table>
</div>

<div class="adminform-body">
<table class="adminlist" cellspacing="1">
<thead>

	<!--

	Row
		Number
		Checkbox
		Type
		Component
		Article Id
		UserId
		FullName
		Email
		Date
		Id

	-->

	<tr>
		<th width="1%"><?php echo JText::_( 'COM_KOMENTO_COLUMN_NUM' ); ?></th>
		<th width="1%"><input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $this->subscribers ); ?>);" /></th>
		<th width="10%"><?php echo JText::_( 'COM_KOMENTO_COLUMN_SUBSCRIPTION_TYPE' ); ?></th>
		<th width="10%"><?php echo JHTML::_( 'grid.sort', JText::_('COM_KOMENTO_COLUMN_COMPONENT'), 'component', $this->orderDirection, $this->order ); ?></th>
		<th width="10%"><?php echo JHTML::_( 'grid.sort', JText::_( 'COM_KOMENTO_COLUMN_ARTICLE' ), 'cid', $this->orderDirection, $this->order ); ?></th>
		<th width="5%"><?php echo JHTML::_( 'grid.sort', JText::_( 'COM_KOMENTO_COLUMN_USERID' ), 'userid', $this->orderDirection, $this->order ); ?></th>
		<th width="20%"><?php echo JText::_( 'COM_KOMENTO_COLUMN_FULLNAME' ); ?></th>
		<th width="20%"><?php echo JText::_( 'COM_KOMENTO_COLUMN_EMAIL' ); ?></th>
		<th width="10%"><?php echo JHTML::_( 'grid.sort', JText::_( 'COM_KOMENTO_COLUMN_DATE' ), 'created', $this->orderDirection, $this->order ); ?></th>
		<th width="1%"><?php echo JHTML::_( 'grid.sort', JText::_( 'COM_KOMENTO_COLUMN_ID' ) , 'id', $this->orderDirection, $this->order ); ?></th>
	</tr>
</thead>
<tbody>
<?php
if($this->subscribers)
{
	$k = 0;
	$x = 0;
	$i = 0;
	$n = count($this->subscribers);
	$config = JFactory::getConfig();

	foreach($this->subscribers as $row) { ?>
	<!--

	Row
		Number
		Checkbox
		Type
		Component
		Article Id
		UserId
		FullName
		Email
		Date
		Id

	-->

		<tr id="<?php echo 'kmt-' . $row->id; ?>" class="<?php echo "row$k"; ?>">
			<!-- Number -->
			<td align="center">
				<?php echo $this->pagination->getRowOffset( $i ); ?>
			</td>

			<!-- Checkbox -->
			<td align="center">
				<?php echo JHTML::_('grid.id', $x++, $row->id); ?>
			</td>

			<!-- Subscription Type -->
			<td align="center">
				<?php echo JText::_( 'COM_KOMENTO_SUBSCRIPTION_' . strtoupper( $row->type ) );?>
			</td>

			<!-- Component -->
			<td align="center">
				<?php echo $row->componenttitle; ?>
			</td>

			<!-- Article Title -->
			<td align="center">
				<?php echo $row->contenttitle; ?>
			</td>

			<!-- UserId -->
			<td align="center">
				<?php echo $row->userid; ?>
			</td>

			<!-- Fullname -->
			<td align="center">
				<?php echo $row->fullname; ?>
			</td>

			<!-- Email -->
			<td align="center">
				<?php echo $row->email; ?>
			</td>

			<!-- Date -->
			<td align="center">
				<?php echo $row->created;?>
			</td>

			<!-- ID -->
			<td align="center">
				<?php echo $row->id; ?>
			</td>
		</tr>
<?php
	$k = 1 - $k;
	$i++;
	}

} else { ?>
	<tr>
		<td colspan="10" align="center">
			<?php echo JText::_( 'COM_KOMENTO_SUBSCRIBERS_NO_SUBSCRIBERS' ); ?>
		</td>
	</tr>
<?php } ?>
</tbody>
<tfoot>
	<tr>
		<td colspan="10">
			<?php echo $this->pagination->getListFooter(); ?>
		</td>
	</tr>
</tfoot>
</table>
</div>