summaryrefslogtreecommitdiff
path: root/templates/list.tpl
diff options
context:
space:
mode:
author"Lester Caine ext:(%22) <lester@lsces.co.uk>2010-11-03 09:46:53 +0000
committer"Lester Caine ext:(%22) <lester@lsces.co.uk>2010-11-03 09:46:53 +0000
commit3261da3afcc151ebc1ddd77b1055d5bde3c70b7f (patch)
treea582efa13411b27c7a3a041a38d8afe6d42d26ff /templates/list.tpl
downloadcontact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.tar.gz
contact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.tar.bz2
contact-3261da3afcc151ebc1ddd77b1055d5bde3c70b7f.zip
Import package again after stripping private data which should not have been commited
Diffstat (limited to 'templates/list.tpl')
-rw-r--r--templates/list.tpl78
1 files changed, 78 insertions, 0 deletions
diff --git a/templates/list.tpl b/templates/list.tpl
new file mode 100644
index 0000000..f6f199a
--- /dev/null
+++ b/templates/list.tpl
@@ -0,0 +1,78 @@
+{strip}
+
+<div class="floaticon">{bithelp}</div>
+
+<div class="listing contacts">
+ <div class="header">
+ <h1>{tr}Contacts{/tr}</h1>
+ </div>
+
+ <div class="body">
+
+ {include file="bitpackage:contact/display_list_header.tpl"}
+
+ <div class="navbar">
+ <ul>
+ <li>{biticon ipackage="icons" iname="emblem-symbolic-link" iexplain="sort by"}</li>
+ <li>{smartlink ititle="Contract" isort="xkey" ihash=$listInfo.ihash}</li>
+ {* <li>{smartlink ititle="Forename" isort="forename" ihash=$listInfo.ihash}</li>
+ <li>{smartlink ititle="Surname" isort="surname" ihash=$listInfo.ihash}</li> *}
+ <li>{smartlink ititle="Title" isort="title" idefault=1 iorder=desc ihash=$listInfo.ihash}</li>
+ {* <li>{smartlink ititle="Address" isort="street" ihash=$listInfo.ihash}</li>
+ <li>{smartlink ititle="Town" isort="town" ihash=$listInfo.ihash}</li> *}
+ <li>{smartlink ititle="Location" isort="location" ihash=$listInfo.ihash}</li>
+ <li>{smartlink ititle="Postcode" isort="postcode" ihash=$listInfo.ihash}</li>
+ </ul>
+ </div>
+
+ <ul class="clear data">
+ {section name=content loop=$listcontacts}
+ <li class="item {cycle values='odd,even'}">
+ <a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}">
+ {$listcontacts[content].xkey}&nbsp;-&nbsp;
+ {$listcontacts[content].title}
+ </a>&nbsp;&nbsp;&nbsp;
+ {if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation}&nbsp;&nbsp;{/if}
+ {if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}&nbsp;&nbsp;{/if}
+ {if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}&nbsp;&nbsp;{/if}
+ {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' ) }Edited: {$listcontacts[content].last_modified|bit_short_date}&nbsp;&nbsp;{/if}
+
+ <div class="footer">
+ {if isset($listcontacts[content].uprn) && ($listcontacts[content].uprn <> '') }UPRN: {$listcontacts[content].uprn}&nbsp;&nbsp;{/if}
+ {if isset($listcontacts[content].postcode) && ($listcontacts[content].postcode <> '') }
+ {tr}Address{/tr}&nbsp;-&nbsp;
+ {if isset($listcontacts[content].sao) && ($listcontacts[content].sao <> '') }
+ {$listcontacts[content].sao},&nbsp;{/if}
+ {if isset($listcontacts[content].pao) && ($listcontacts[content].pao <> '') }
+ {$listcontacts[content].pao},&nbsp;{/if}
+ {if isset($listcontacts[content].number) && ($listcontacts[content].number <> '') }
+ {$listcontacts[content].number},&nbsp;{/if}
+ {if isset($listcontacts[content].street) && ($listcontacts[content].street <> '') }
+ {$listcontacts[content].street},&nbsp;{/if}
+ {if isset($listcontacts[content].locality) && ($listcontacts[content].locality <> '') }
+ {$listcontacts[content].locality},&nbsp;{/if}
+ {if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
+ {$listcontacts[content].town},&nbsp;{/if}
+ {if isset($listcontacts[content].county) && ($listcontacts[content].county <> '') }
+ {$listcontacts[content].county},&nbsp;{/if}
+ {$listcontacts[content].postcode}&nbsp;&nbsp;
+ {/if}
+ <br />
+ {tr}Refs{/tr}: {$listcontacts[content].refs|default:0}&nbsp;&nbsp;
+ {tr}Tasks{/tr}: {$listcontacts[content].tasks|default:0}&nbsp;&nbsp;
+ {tr}Addresses{/tr}: {$listcontacts[content].addresses|default:0}
+ </div>
+ <div class="clear"></div>
+ </li>
+ {sectionelse}
+ <li class="item norecords">
+ {tr}No records found{/tr}
+ </li>
+ {/section}
+ </ul>
+
+ {pagination}
+ </div><!-- end .body -->
+</div><!-- end .irlist -->
+
+{/strip}