the-art-of-joomla-archive /redirect/code/trunk/administrator/components/com_redirect/views/links/tmpl/default.php

Language PHP Lines 137
MD5 Hash 6ca04268de7d02d4cae275aeba4049ca Estimated Cost $920 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
/**
 * @version		$Id: default.php 577 2011-02-25 05:04:21Z eddieajau $
 * @package		NewLifeInIT
 * @subpackage	com_redirect
 * @copyright	Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
 * @license		GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
 * @link		http://www.theartofjoomla.com
 */

defined('_JEXEC') or die('Invalid Request');

// Load the tooltip behavior.
JHTML::_('behavior.tooltip');

// Load the default stylesheets and behaviors.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHTML::stylesheet('default.css', 'administrator/components/com_redirect/media/css/');
JHTML::script('list.js', 'administrator/components/com_redirect/media/js/');

$orderCol	= $this->escape($this->state->get('list.ordering'));
$orderDirn	= $this->escape($this->state->get('list.direction'));

// Build the toolbar.
?>
<form action="index.php?option=com_redirect&amp;view=links" method="post" name="adminForm">
	<fieldset class="filter">
		<div class="left">
			<label for="search"><?php echo JText::_('Search'); ?>:</label>
			<input type="text" name="filter_search" id="search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" size="60" title="<?php echo JText::_('Search in title'); ?>" />
			<button type="submit"><?php echo JText::_('Go'); ?></button>
			<button type="button" onclick="$('search').value='';$('published').value=0;this.form.submit();"><?php echo JText::_('Clear'); ?></button>
		</div>
		<div class="right">
			<ol>
				<li>
					<label for="published">
						<?php echo JText::_('REDIRECT_SHOW_BY_STATE'); ?>
					</label>
					<select name="filter_state" id="published" class="inputbox" onchange="this.form.submit()">
					<?php
						echo JHTML::_('select.options', $this->filter_state, 'value', 'text', $this->state->get('filter.state'));
					?>
					</select>
				</li>
			</ol>
		</div>
	</fieldset>

<table class="adminlist">
	<thead>
		<tr>
			<th width="20">
				<input type="checkbox" name="toggle" value="" class="checklist-toggle" />
			</th>
			<th class="left">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_OLD_URL', 'old_url', $orderDirn, $orderCol); ?>
			</th>
			<th width="30%">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_NEW_URL', 'new_url', $orderDirn, $orderCol); ?>
			</th>
			<th width="30%">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_REFERRER', 'referer', $orderDirn, $orderCol); ?>
			</th>
			<th width="12%">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_UPDATED_DATE', 'updated_date', $orderDirn, $orderCol); ?>
				<br /><?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_CREATED_DATE', 'created_date', $orderDirn, $orderCol); ?>
			</th>
			<th width="5%">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_STATE', 'published', $orderDirn, $orderCol); ?>
			</th>
			<th nowrap="nowrap" width="5%">
				<?php echo JHTML::_('grid.sort', 'REDIRECT_LINK_HITS', 'hits', $orderDirn, $orderCol); ?>
			</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="7">
				<?php echo $this->pagination->getListFooter(); ?>
			</td>
		</tr>
	</tfoot>
	<tbody>
<?php
		foreach ($this->items as $i => $item) :
?>
		<tr class="row<?php echo $i % 2; ?>">
			<td style="text-align:center" class="checklist">
				<?php echo JHTML::_('grid.id', $item->id, $item->id); ?>
			</td>
			<td>
				<a href="<?php echo JRoute::_('index.php?option=com_redirect&task=link.edit&l_id='.$item->id);?>">
					<?php echo $this->escape($item->old_url); ?></a>
			</td>
			<td>
				<?php echo $this->escape($item->new_url); ?>
			</td>
			<td>
				<?php echo $this->escape($item->referer); ?>
			</td>
			<td align="center" nowrap="nowrap">
				<?php echo JHTML::_('date', $item->updated_date, '%Y-%m-%d %H:%I:%S'); ?>
				<br /><?php echo JHTML::_('date', $item->created_date, '%Y-%m-%d %H:%I:%S'); ?>
			</td>
			<td align="center">
				<?php echo JHTML::_('grid.published', $item, $item->id, 'tick.png', 'publish_x.png', 'link.'); ?>
			</td>
			<td align="center">
				<?php echo (int) $item->hits; ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
</table>

<fieldset class="batch">
	<h4>Link Activation Values</h4>
	<ol>
		<li>
			<label for="new_url"><?php echo JText::_('REDIRECT_LINK_NEW_URL'); ?>:</label>
			<input type="text" name="new_url" id="new_url" value="" size="50" title="<?php echo JText::_('REDIRECT_LINK_NEW_URL_DESC'); ?>" />
		</li>
		<li>
			<label for="comment"><?php echo JText::_('REDIRECT_LINK_COMMENT'); ?>:</label>
			<input type="text" name="comment" id="comment" value="" size="50" title="<?php echo JText::_('REDIRECT_LINK_COMMENT_DESC'); ?>" />
		</li>
	</ol>
</fieldset>

	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $orderCol; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $orderDirn; ?>" />
	<?php echo JHTML::_('form.token'); ?>
</form>
<?php echo JHtml::_('redirect.footer'); ?>
Back to Top