blob: b8cd94e5d69f4157dd4e2947fa62222f1c04b6b1 (
plain)
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
|
{strip}
<div class="floaticon">{bithelp}</div>
<div class="listing contacts">
<div class="header">
<h1>{if $listTitle}{$listTitle|escape}{else}{tr}Contacts{/tr}{/if}</h1>
</div>
<div class="body">
{include file="bitpackage:contact/display_list_header.tpl"}
<div class="table-responsive">
<table class="col-xs-12">
<caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
<tr>
<th>{smartlink ititle="Title" isort="title" idefault=1 iorder=desc ihash=$listInfo.ihash|default:''}</th>
<th>{tr}Address{/tr}</th>
</tr>
{section name=content loop=$listcontacts}
{if $smarty.section.content.rownum % 2 != 0}{assign var=rowclass value="odd"}{else}{assign var=rowclass value="even"}{/if}
<tr class="first {$rowclass}">
<td class="alignleft">
<a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}">
{$listcontacts[content].title}
</a>
</td>
<td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') }
{$listcontacts[content].house}, {/if}
{if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') }
{$listcontacts[content].add1}, {/if}
{if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') }
{$listcontacts[content].add2}, {/if}
{if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') }
{$listcontacts[content].add3}, {/if}
{if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') }
{$listcontacts[content].add4}, {/if}
{if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
{$listcontacts[content].town}, {/if}
{$listcontacts[content].postcode}</td>
</tr>
<tr class="second {$rowclass}">
<td colspan="2">
{tr}Refs{/tr}: {$listcontacts[content].refs|default:0}
{tr}Tasks{/tr}: {$listcontacts[content].tasks|default:0}
{tr}Addresses{/tr}: {$listcontacts[content].addresses|default:0}
</td>
</tr>
{sectionelse}
<tr class="norecords">
<td colspan="8">{tr}No records found{/tr}</td>
</tr>
{/section}
</table>
</div>
{pagination}
</div><!-- end .body -->
</div><!-- end .contacts -->
{/strip}
|