Project

General

Profile

1
<?php
2
/**
3
* @package   Warp Theme Framework
4
* @author    YOOtheme http://www.yootheme.com
5
* @copyright Copyright (C) YOOtheme GmbH
6
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
7
*/
8

    
9
// no direct access
10
defined('_JEXEC') or die;
11

    
12
JHtml::_('behavior.framework');
13

    
14
$listOrder	= $this->escape($this->state->get('list.ordering'));
15
$listDirn	= $this->escape($this->state->get('list.direction'));
16

    
17
?>
18

    
19
<?php if (empty($this->items)) : ?>
20
	<p><?php echo JText::_('COM_CONTACT_NO_ARTICLES'); ?></p>
21
<?php else : ?>
22

    
23
<form action="<?php echo htmlspecialchars(JFactory::getURI()->toString()); ?>" method="post" name="adminForm" id="adminForm">
24

    
25
	<?php if ($this->params->get('show_pagination_limit')) : ?>
26
	<div class="filter">
27
		<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
28
		<?php echo $this->pagination->getLimitBox(); ?>
29
	</div>
30
	<?php endif; ?>
31

    
32
	<table class="zebra">
33
		<?php if ($this->params->get('show_headings')) : ?>
34
		<thead>
35
			<tr>
36

    
37
				<th class="item-title">
38
					<?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?>
39
				</th>
40
				
41
				<?php if ($this->params->get('show_position_headings')) : ?>
42
				<th class="item-position">
43
					<?php echo JHtml::_('grid.sort', 'COM_CONTACT_POSITION', 'a.con_position', $listDirn, $listOrder); ?>
44
				</th>
45
				<?php endif; ?>
46
				
47
				<?php if ($this->params->get('show_email_headings')) : ?>
48
				<th class="item-email">
49
					<?php echo JText::_('JGLOBAL_EMAIL'); ?>
50
				</th>
51
				<?php endif; ?>
52
				
53
				<?php if ($this->params->get('show_telephone_headings')) : ?>
54
				<th class="item-phone">
55
					<?php echo JText::_('COM_CONTACT_TELEPHONE'); ?>
56
				</th>
57
				<?php endif; ?>
58
	
59
				<?php if ($this->params->get('show_mobile_headings')) : ?>
60
				<th class="item-phone">
61
					<?php echo JText::_('COM_CONTACT_MOBILE'); ?>
62
				</th>
63
				<?php endif; ?>
64
	
65
				<?php if ($this->params->get('show_fax_headings')) : ?>
66
				<th class="item-phone">
67
					<?php echo JText::_('COM_CONTACT_FAX'); ?>
68
				</th>
69
				<?php endif; ?>
70
	
71
				<?php if ($this->params->get('show_suburb_headings')) : ?>
72
				<th class="item-suburb">
73
					<?php echo JHtml::_('grid.sort', 'COM_CONTACT_SUBURB', 'a.suburb', $listDirn, $listOrder); ?>
74
				</th>
75
				<?php endif; ?>
76
	
77
				<?php if ($this->params->get('show_state_headings')) : ?>
78
				<th class="item-state">
79
					<?php echo JHtml::_('grid.sort', 'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder); ?>
80
				</th>
81
				<?php endif; ?>
82
	
83
				<?php if ($this->params->get('show_country_headings')) : ?>
84
				<th class="item-state">
85
					<?php echo JHtml::_('grid.sort', 'COM_CONTACT_COUNTRY', 'a.country', $listDirn, $listOrder); ?>
86
				</th>
87
				<?php endif; ?>
88

    
89
			</tr>
90
		</thead>
91
		<?php endif; ?>
92

    
93
		<tbody>
94
			<?php foreach($this->items as $i => $item) : ?>
95
				<tr class="<?php if ($i % 2 == 1) { echo 'even'; } else { echo 'odd'; } ?>">
96

    
97
					<td class="item-title">
98
						<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>"><?php echo $item->name; ?></a>
99
					</td>
100

    
101
					<?php if ($this->params->get('show_position_headings')) : ?>
102
						<td class="item-position">
103
							<?php echo $item->con_position; ?>
104
						</td>
105
					<?php endif; ?>
106

    
107
					<?php if ($this->params->get('show_email_headings')) : ?>
108
						<td class="item-email">
109
							<?php echo $item->email_to; ?>
110
						</td>
111
					<?php endif; ?>
112

    
113
					<?php if ($this->params->get('show_telephone_headings')) : ?>
114
						<td class="item-phone">
115
							<?php echo $item->telephone; ?>
116
						</td>
117
					<?php endif; ?>
118

    
119
					<?php if ($this->params->get('show_mobile_headings')) : ?>
120
						<td class="item-phone">
121
							<?php echo $item->mobile; ?>
122
						</td>
123
					<?php endif; ?>
124

    
125
					<?php if ($this->params->get('show_fax_headings')) : ?>
126
					<td class="item-phone">
127
						<?php echo $item->fax; ?>
128
					</td>
129
					<?php endif; ?>
130

    
131
					<?php if ($this->params->get('show_suburb_headings')) : ?>
132
					<td class="item-suburb">
133
						<?php echo $item->suburb; ?>
134
					</td>
135
					<?php endif; ?>
136

    
137
					<?php if ($this->params->get('show_state_headings')) : ?>
138
					<td class="item-state">
139
						<?php echo $item->state; ?>
140
					</td>
141
					<?php endif; ?>
142

    
143
					<?php if ($this->params->get('show_country_headings')) : ?>
144
					<td class="item-state">
145
						<?php echo $item->country; ?>
146
					</td>
147
					<?php endif; ?>
148

    
149
				</tr>
150
			<?php endforeach; ?>
151

    
152
		</tbody>
153
	</table>
154

    
155
	<?php if ($this->params->get('show_pagination')) : ?>
156
	<?php echo $this->pagination->getPagesLinks(); ?>
157
	<?php endif; ?>
158
	
159
	<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
160
	<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
161
</form>
162
<?php endif;
(3-3/3)