summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2011-03-10 14:14:27 +0000
committerLester Caine <lsces@lsces.co.uk>2011-03-10 14:14:27 +0000
commitb595f3d931e2610415f799215ac7f3d68fa568f5 (patch)
treefd6b3f8aea582ec936d949fe3f06cb2f04a13e53 /templates
parent014828caafd1a1f1df39576b26d5211dc7bf5d88 (diff)
downloadcontact-b595f3d931e2610415f799215ac7f3d68fa568f5.tar.gz
contact-b595f3d931e2610415f799215ac7f3d68fa568f5.tar.bz2
contact-b595f3d931e2610415f799215ac7f3d68fa568f5.zip
Add Contract number list views
Still needs to be made selectable from the open view
Diffstat (limited to 'templates')
-rw-r--r--templates/list.tpl2
-rw-r--r--templates/list_contracts.tpl78
-rw-r--r--templates/menu_contact.tpl2
3 files changed, 81 insertions, 1 deletions
diff --git a/templates/list.tpl b/templates/list.tpl
index 65d61f4..45c25e1 100644
--- a/templates/list.tpl
+++ b/templates/list.tpl
@@ -78,6 +78,6 @@
{pagination}
</div><!-- end .body -->
-</div><!-- end .irlist -->
+</div><!-- end .contacts -->
{/strip}
diff --git a/templates/list_contracts.tpl b/templates/list_contracts.tpl
new file mode 100644
index 0000000..6fc8ecb
--- /dev/null
+++ b/templates/list_contracts.tpl
@@ -0,0 +1,78 @@
+{* $Header: /cvsroot/bitweaver/_bit_contact/templates/list_contact.tpl,v 1.3 2010/02/09 17:21:21 wjames5 Exp $ *}
+<div class="floaticon">
+ {if $gBitUser->hasPermission('p_contact_admin')}
+ <a title="{tr}configure listing{/tr}" href="{$gBitLoc.KERNEL_PKG_URL}admin/index.php?page=contact">{biticon ipackage="icons" iname="document-properties" iexplain="configure"}</a>
+ {/if}
+ {bithelp}
+</div>
+
+<div class="admin contact">
+<div class="header">
+<h1><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?contract=2">{tr}Contract Records{/tr}</a></h1>
+</div>
+
+<div class="body">
+
+{*
+<table class="find">
+<tr><td>{tr}Find{/tr}</td>
+ <td>
+ <form method="get" action="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php">
+ <input type="text" name="find" value="{$listInfo.find|escape}" />
+ <input type="submit" name="search" value="{tr}find{/tr}" />
+ <input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" />
+ </form>
+ </td>
+</tr>
+</table>
+*}
+
+<form id="checkform" method="post" action="{$smarty.server.PHP_SELF}">
+<input type="hidden" name="offset" value="{$listInfo.offset|escape}" />
+<input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" />
+<table class="data">
+<tr>
+ <th style="text-align:center;"><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?offset={$listInfo.offset}&amp;sort_mode={if $listInfo.sort_mode eq 'contract_desc'}contract_asc{else}contract_desc{/if}">{tr}Contract Number{/tr}</a></th>
+ <th style="text-align:center;"><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?offset={$listInfo.offset}&amp;sort_mode={if $listInfo.sort_mode eq 'content_id_desc'}content_id_asc{else}content_id_desc{/if}">{tr}Contact Id{/tr}</a></th>
+ <th style="text-align:center;"><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?offset={$listInfo.offset}&amp;sort_mode={if $listInfo.sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}Title{/tr}</a></th>
+ <th style="text-align:center;"><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?offset={$listInfo.offset}&amp;sort_mode={if $listInfo.sort_mode eq 'town_desc'}town_asc{else}town_desc{/if}">{tr}Town{/tr}</a></th>
+ <th style="text-align:center;"><a href="{$gBitLoc.CONTACT_PKG_URL}list_contracts.php?offset={$listInfo.offset}&amp;sort_mode={if $listInfo.sort_mode eq 'postcode_desc'}postcode_asc{else}postcode_desc{/if}">{tr}Postcode{/tr}</a></th>
+</tr>
+
+{cycle values="even,odd" print=false}
+{section name=changes loop=$list}
+<tr class="{cycle}">
+<td style="text-align:center;">{$list[changes].contract}</td>
+<td><a href="{$gBitLoc.CONTACT_PKG_URL}index.php?content_id={$list[changes].content_id|escape:"url"}" title="{$list[changes].content_id}">{$list[changes].content_id|truncate:20:"...":true}</a>
+ {if $gBitUser->hasPermission('p_edit_contact')}
+ <br />(<a href="{$gBitLoc.CONTACT_PKG_URL}edit.php?content_id={$list[changes].content_id|escape:"url"}">{tr}edit{/tr}</a>)
+ {/if}
+</td>
+<td style="text-align:center;">{$list[changes].title}<br />
+ {if isset($list[changes].house) && ($list[changes].house <> '') }
+ {$list[changes].house},&nbsp;{/if}
+ {if isset($list[changes].add1) && ($list[changes].add1 <> '') }
+ {$list[changes].add1},&nbsp;{/if}
+ {if isset($list[changes].add2) && ($list[changes].add2 <> '') }
+ {$list[changes].add2},&nbsp;{/if}
+ {if isset($list[changes].add3) && ($list[changes].add3 <> '') }
+ {$list[changes].add3},&nbsp;{/if}
+ {if isset($list[changes].add4) && ($list[changes].add4 <> '') }
+ {$list[changes].add4},&nbsp;{/if}
+<td style="text-align:center;">{$list[changes].town}<br />
+ {$list[changes].county}</td>
+<td style="text-align:center;">{$list[changes].postcode}</td>
+</tr>
+{sectionelse}
+ <tr class="norecords"><td colspan="16">
+ {tr}No records found{/tr}
+ </td></tr>
+{/section}
+</table>
+</form>
+
+</div><!-- end .body -->
+
+{libertypagination}
+
+</div> {* end .admin *}
diff --git a/templates/menu_contact.tpl b/templates/menu_contact.tpl
index 3ff1841..be5cc71 100644
--- a/templates/menu_contact.tpl
+++ b/templates/menu_contact.tpl
@@ -1,6 +1,8 @@
{strip}
<ul>
<li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}list.php">{tr}List Contacts{/tr}</a></li>
+ <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}list_contracts.php?contract=1">{tr}List Domestic Contracts{/tr}</a></li>
+ <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}list_contracts.php?contract=1">{tr}List Business Contracts{/tr}</a></li>
{if $gBitUser->isAdmin() or $gBitUser->hasPermission( 'p_contact_edit' ) }
<li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}edit.php">{biticon ipackage="icons" iname="document-new" iexplain="create contact" iforce="icon"} {tr}Create/Edit a Contact{/tr}</a></li>
{/if}