summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rwxr-xr-x[-rw-r--r--]templates/add_xref.tpl2
-rwxr-xr-x[-rw-r--r--]templates/add_xref_address.tpl0
-rwxr-xr-x[-rw-r--r--]templates/admin_contact.tpl0
-rwxr-xr-x[-rw-r--r--]templates/admin_contact_type.tpl0
-rwxr-xr-x[-rw-r--r--]templates/admin_xref_types.tpl0
-rwxr-xr-x[-rw-r--r--]templates/comments.tpl6
-rwxr-xr-x[-rw-r--r--]templates/comments_edit.tpl0
-rwxr-xr-x[-rw-r--r--]templates/comments_post_inc.tpl2
-rwxr-xr-x[-rw-r--r--]templates/contact.tpl0
-rwxr-xr-x[-rw-r--r--]templates/contact_action_bar.tpl0
-rwxr-xr-x[-rw-r--r--]templates/contact_date_bar.tpl10
-rwxr-xr-x[-rw-r--r--]templates/contact_display.tpl16
-rwxr-xr-x[-rw-r--r--]templates/contact_header.tpl18
-rwxr-xr-x[-rw-r--r--]templates/contact_options_inc.tpl2
-rwxr-xr-x[-rw-r--r--]templates/display_address.tpl28
-rwxr-xr-x[-rw-r--r--]templates/display_contact.tpl32
-rwxr-xr-x[-rw-r--r--]templates/display_list_header.tpl28
-rwxr-xr-x[-rw-r--r--]templates/display_list_header1.tpl0
-rwxr-xr-xtemplates/display_list_header2.tpl28
-rwxr-xr-x[-rw-r--r--]templates/display_type_header.tpl2
-rwxr-xr-x[-rw-r--r--]templates/edit.tpl34
-rwxr-xr-x[-rw-r--r--]templates/edit_contact.tpl28
-rwxr-xr-x[-rw-r--r--]templates/edit_key_break.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_personal.tpl8
-rwxr-xr-x[-rw-r--r--]templates/edit_type_header.tpl6
-rwxr-xr-x[-rw-r--r--]templates/edit_xref.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_address.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_address_fields.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_contact.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_contact_fields.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_dates.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_generic_fields.tpl0
-rwxr-xr-xtemplates/edit_xref_image.tpl68
-rwxr-xr-xtemplates/edit_xref_inc_report.tpl72
-rwxr-xr-xtemplates/edit_xref_inc_report_fields.tpl10
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_key_seal.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_key_seal_fields.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_locate.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_locate_fields.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_phone.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_phone_fields.tpl0
-rwxr-xr-xtemplates/edit_xref_sig.tpl72
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_text.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_text_fields.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_type.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_value.tpl0
-rwxr-xr-x[-rw-r--r--]templates/edit_xref_value_fields.tpl0
-rwxr-xr-xtemplates/employment.tpl43
-rwxr-xr-xtemplates/employment1.tpl44
-rwxr-xr-xtemplates/employment2.tpl44
-rwxr-xr-xtemplates/employment_full.tpl390
-rwxr-xr-xtemplates/employment_old.tpl372
-rwxr-xr-xtemplates/form_DSInspection.tpl223
-rwxr-xr-xtemplates/incident.tpl41
-rwxr-xr-x[-rw-r--r--]templates/index.php0
-rwxr-xr-x[-rw-r--r--]templates/list.tpl60
-rwxr-xr-x[-rw-r--r--]templates/list1.tpl0
-rwxr-xr-xtemplates/list2.tpl91
-rwxr-xr-x[-rw-r--r--]templates/list_clients.tpl0
-rwxr-xr-x[-rw-r--r--]templates/list_contact.tpl4
-rwxr-xr-x[-rw-r--r--]templates/list_contact_type.tpl14
-rwxr-xr-x[-rw-r--r--]templates/list_contacts.tpl4
-rwxr-xr-x[-rw-r--r--]templates/list_contracts.tpl2
-rwxr-xr-x[-rw-r--r--]templates/list_ticket.tpl16
-rwxr-xr-x[-rw-r--r--]templates/list_xref.tpl28
-rwxr-xr-x[-rw-r--r--]templates/list_xref_generic.tpl66
-rwxr-xr-x[-rw-r--r--]templates/load_contacts.tpl0
-rwxr-xr-x[-rw-r--r--]templates/load_sage_contacts.tpl0
-rwxr-xr-x[-rw-r--r--]templates/menu_contact.tpl6
-rwxr-xr-x[-rw-r--r--]templates/menu_contact_admin.tpl0
-rwxr-xr-x[-rw-r--r--]templates/page_display.tpl16
-rwxr-xr-x[-rw-r--r--]templates/show_contact.tpl10
-rwxr-xr-x[-rw-r--r--]templates/show_contact_item.tpl0
-rwxr-xr-x[-rw-r--r--]templates/view_xref.tpl0
-rwxr-xr-x[-rw-r--r--]templates/view_xref_address.tpl0
-rwxr-xr-xtemplates/view_xref_address_record.tpl43
-rwxr-xr-xtemplates/view_xref_bank_record.tpl40
-rwxr-xr-x[-rw-r--r--]templates/view_xref_contact.tpl0
-rwxr-xr-xtemplates/view_xref_contact_record.tpl50
-rwxr-xr-xtemplates/view_xref_date_record.tpl40
-rwxr-xr-xtemplates/view_xref_image_record.tpl40
-rwxr-xr-xtemplates/view_xref_inc_report.tpl62
-rwxr-xr-xtemplates/view_xref_inc_report_record.tpl42
-rwxr-xr-x[-rw-r--r--]templates/view_xref_key_seal.tpl0
-rwxr-xr-xtemplates/view_xref_key_seal_record.tpl39
-rwxr-xr-x[-rw-r--r--]templates/view_xref_locate.tpl0
-rwxr-xr-xtemplates/view_xref_locate_record.tpl40
-rwxr-xr-x[-rw-r--r--]templates/view_xref_phone.tpl0
-rwxr-xr-xtemplates/view_xref_phone_record.tpl40
-rwxr-xr-xtemplates/view_xref_sig.tpl62
-rwxr-xr-xtemplates/view_xref_sig_record.tpl40
-rwxr-xr-x[-rw-r--r--]templates/view_xref_text.tpl0
-rwxr-xr-xtemplates/view_xref_text_record.tpl50
93 files changed, 2269 insertions, 265 deletions
diff --git a/templates/add_xref.tpl b/templates/add_xref.tpl
index 1c2b6c2..6b07030 100644..100755
--- a/templates/add_xref.tpl
+++ b/templates/add_xref.tpl
@@ -1,5 +1,5 @@
{literal}
-<script type="text/javascript">//<![CDATA[
+<script>//<![CDATA[
function updateContactXrefFormat() { {/literal}
{foreach from=$xrefInfo.xref_format_list key=feature item=output}
document.getElementById('{$output}-format').style.display = 'none';
diff --git a/templates/add_xref_address.tpl b/templates/add_xref_address.tpl
index 67374cd..67374cd 100644..100755
--- a/templates/add_xref_address.tpl
+++ b/templates/add_xref_address.tpl
diff --git a/templates/admin_contact.tpl b/templates/admin_contact.tpl
index bb2de40..bb2de40 100644..100755
--- a/templates/admin_contact.tpl
+++ b/templates/admin_contact.tpl
diff --git a/templates/admin_contact_type.tpl b/templates/admin_contact_type.tpl
index cbcef19..cbcef19 100644..100755
--- a/templates/admin_contact_type.tpl
+++ b/templates/admin_contact_type.tpl
diff --git a/templates/admin_xref_types.tpl b/templates/admin_xref_types.tpl
index 41eb9c1..41eb9c1 100644..100755
--- a/templates/admin_xref_types.tpl
+++ b/templates/admin_xref_types.tpl
diff --git a/templates/comments.tpl b/templates/comments.tpl
index d0b78fc..64970a9 100644..100755
--- a/templates/comments.tpl
+++ b/templates/comments.tpl
@@ -7,7 +7,7 @@
<div class="body"{if !( $post_comment_request || $post_comment_preview )} id="editcomments"{/if}>
<div id="edit_comments" {if $comments_ajax}style="display:none"{/if}>
- {include file="bitpackage:contact/comments_post_inc.tpl" post_title="Post Comment"}
+ {include file="bitpackage:liberty/comments_post_inc.tpl" post_title="Post Comment"}
</div>
{include file="bitpackage:liberty/comments_display_option_bar.tpl"}
@@ -20,11 +20,11 @@
<div id="comment_{$gContent->mContentId}"></div>
{foreach name=comments_loop key=key item=item from=$comments}
- {displaycomment comment="$item"}
+ {displaycomment comment=$item}
{/foreach}
<div id="comment_{$gContent->mContentId}_footer"></div>
- {libertypagination ihash=$commentsPgnHash}
+ {pagination}
</div><!-- end .body -->
</div><!-- end .comment -->
{/strip}
diff --git a/templates/comments_edit.tpl b/templates/comments_edit.tpl
index a6dc14f..a6dc14f 100644..100755
--- a/templates/comments_edit.tpl
+++ b/templates/comments_edit.tpl
diff --git a/templates/comments_post_inc.tpl b/templates/comments_post_inc.tpl
index 1dcfa3f..d28b54a 100644..100755
--- a/templates/comments_post_inc.tpl
+++ b/templates/comments_post_inc.tpl
@@ -54,7 +54,7 @@
{formhelp note=""}
{/forminput}
</div>
- {captcha variant="row" id="post-captcha" style="display:none"}
+ {* captcha variant="row" id="post-captcha" style="display:none" *}
<div class="form-group">
{forminput}
<input type="checkbox" name="anon_post" id="anon-post" value="y" onchange="BitBase.toggleElementDisplay('post-login','block');BitBase.toggleElementDisplay('post-anon','block');BitBase.toggleElementDisplay('post-captcha','block');" /> {tr}Anonymous Post{/tr}
diff --git a/templates/contact.tpl b/templates/contact.tpl
index d6715e9..d6715e9 100644..100755
--- a/templates/contact.tpl
+++ b/templates/contact.tpl
diff --git a/templates/contact_action_bar.tpl b/templates/contact_action_bar.tpl
index 2e7a75d..2e7a75d 100644..100755
--- a/templates/contact_action_bar.tpl
+++ b/templates/contact_action_bar.tpl
diff --git a/templates/contact_date_bar.tpl b/templates/contact_date_bar.tpl
index 77ca728..0ab0290 100644..100755
--- a/templates/contact_date_bar.tpl
+++ b/templates/contact_date_bar.tpl
@@ -5,16 +5,16 @@
{if $print_page ne 'y'}
{if !$lock}
{if $gBitUser->hasPermission('p_edit_contact')}
- {smartlink ititle='Add additional crossref record' ifile="add_xref.php" booticon="icon-note-add" content_id=$pageInfo.content_id xref_type=-1}
- {smartlink ititle="Edit Contact" ifile="edit.php" booticon="icon-user-edit" content_id=$pageInfo.content_id}
+ {smartlink ititle='Add additional crossref record' ifile="add_xref.php" booticon="icon-note-add" content_id=$gContent->mInfo.content_id xref_type=-1}
+ {smartlink ititle="Edit Contact" ifile="edit.php" booticon="icon-user-edit" content_id=$gContent->mInfo.content_id}
{/if}
{/if}
- <a title="{tr}print{/tr}" href="print.php?content_id={$pageInfo.content_id}">{booticon ipackage="icons" iname="icon-print" iexplain="print"}</a>
+ <a title="{tr}print{/tr}" href="print.php?content_id={$gContent->mInfo.content_id}">{booticon ipackage="icons" iname="icon-print" iexplain="print"}</a>
{if $gBitUser->hasPermission('p_remove_contact')}
- <a title="{tr}remove this contact{/tr}" href="remove_contact.php?content_id={$pageInfo.content_id}">{booticon ipackage="icons" iname="icon-user-delete" iexplain="delete"}</a>
+ <a title="{tr}remove this contact{/tr}" href="remove_contact.php?content_id={$gContent->mInfo.content_id}">{booticon ipackage="icons" iname="icon-user-delete" iexplain="delete"}</a>
{/if}
{/if} {* end print_page *}
</div> {*end .floaticon *}
<div class="date">
- {tr}Created by{/tr} {displayname user=$pageInfo.creator_user user_id=$pageInfo.user_id real_name=$pageInfo.creator_real_name}, {tr}Last modification by{/tr} {displayname user=$pageInfo.modifier_user user_id=$pageInfo.modifier_user_id real_name=$pageInfo.modifier_real_name} on {$pageInfo.last_modified|bit_long_datetime}
+ {tr}Created by{/tr} {displayname user=$gContent->mInfo.creator_user user_id=$gContent->mInfo.user_id real_name=$gContent->mInfo.creator_real_name}, {tr}Last modification by{/tr} {displayname user=$gContent->mInfo.modifier_user user_id=$gContent->mInfo.modifier_user_id real_name=$gContent->mInfo.modifier_real_name} on {$gContent->mInfo.last_modified|bit_long_datetime}
</div>
diff --git a/templates/contact_display.tpl b/templates/contact_display.tpl
index d1b612f..2940e64 100644..100755
--- a/templates/contact_display.tpl
+++ b/templates/contact_display.tpl
@@ -1,17 +1,17 @@
<div class="body">
<div class="content">
{include file="bitpackage:liberty/storage_thumbs.tpl"}
- Title: {$pageInfo.prefix}<br />
- Forename: {$pageInfo.forename}<br />
- Surname: {$pageInfo.surname}<br />
- Suffix: {$pageInfo.suffix}<br />
+ Title: {$gContent->mInfo.prefix}<br />
+ Forename: {$gContent->mInfo.forename}<br />
+ Surname: {$gContent->mInfo.surname}<br />
+ Suffix: {$gContent->mInfo.suffix}<br />
<br />
- Organisation: {$pageInfo.organisation}<br />
+ Organisation: {$gContent->mInfo.organisation}<br />
<br />
- NI Number:{$pageInfo.nino} Date of Birth:{$pageInfo.dob} Date of eighteenth:{$pageInfo.eighteenth} Date of Death:{$pageInfo.dod} <br />
+ NI Number:{$gContent->mInfo.nino} Date of Birth:{$gContent->mInfo.dob} Date of eighteenth:{$gContent->mInfo.eighteenth} Date of Death:{$gContent->mInfo.dod} <br />
<br />
- Note: {$pageInfo.note}<br />
+ Note: {$gContent->mInfo.note}<br />
Memo:<br />
- {$pageInfo.data}<br />
+ {$gContent->mInfo.data}<br />
</div><!-- end .content -->
</div><!-- end .body -->
diff --git a/templates/contact_header.tpl b/templates/contact_header.tpl
index 0184bf9..3106b5e 100644..100755
--- a/templates/contact_header.tpl
+++ b/templates/contact_header.tpl
@@ -5,17 +5,17 @@
</div> {* end category *}
{/if}
- <h1>{$pageInfo.xkey}&nbsp;-&nbsp;
-{* {if isset($pageInfo.organisation) && ($pageInfo.organisation <> '') }
- {$pageInfo.organisation}
- {elseif isset($pageInfo.surname) && ($pageInfo.surname <> '') }
- {$pageInfo.prefix}&nbsp;
- {$pageInfo.forename}&nbsp;
- {$pageInfo.surname}
+ <h1>{$gContent->mInfo.xkey}&nbsp;-&nbsp;
+{* {if isset(gContent->mInfo.organisation) && (gContent->mInfo.organisation <> '') }
+ {$gContent->mInfo.organisation}
+ {elseif isset(gContent->mInfo.surname) && (gContent->mInfo.surname <> '') }
+ {$gContent->mInfo.prefix}&nbsp;
+ {$gContent->mInfo.forename}&nbsp;
+ {$gContent->mInfo.surname}
{else} *}
- {$pageInfo.title}
+ {$gContent->mInfo.title}
{* {/if} *}
</h1>
- <div class="description">{$pageInfo.description}</div>
+ <div class="description">{$gContent->mInfo.description|default:''}</div>
</div> {* end .header *}
diff --git a/templates/contact_options_inc.tpl b/templates/contact_options_inc.tpl
index 51b0fc1..e360c3f 100644..100755
--- a/templates/contact_options_inc.tpl
+++ b/templates/contact_options_inc.tpl
@@ -8,7 +8,7 @@
{/foreach}
/> {$type}&nbsp;&nbsp;
{/foreach}
-<script type="text/javascript">/* <![CDATA[ */
+<script>/* <![CDATA[ */
document.write("<label><input name=\"switcher\" id=\"switcher\" type=\"checkbox\" onclick=\"BitBase.switchCheckboxes(this.form.id,'contact_type_guid[]','switcher')\" /> {tr}Select all{/tr}</label><br />");
/* ]]> */</script>
<input type="submit" name="refresh" value="{tr}Update Contact Filter{/tr}" />&nbsp;&nbsp;&nbsp;&nbsp;
diff --git a/templates/display_address.tpl b/templates/display_address.tpl
index 37c1aff..84e8bf3 100644..100755
--- a/templates/display_address.tpl
+++ b/templates/display_address.tpl
@@ -1,46 +1,46 @@
<div class="form-group">
{formlabel label="$header" for="lpi"}
{forminput}
- {if isset($address.sao) && ($address.sao <> '') }
+ {if !empty($address.sao)}
{$address.sao},&nbsp;{/if}
- {if isset($address.pao) && ($address.pao <> '') }
+ {if !empty($address.pao)}
{$address.pao},<br />{/if}
- {if isset($address.number) && ($address.number <> '') }
+ {if !empty($address.number)}
{$address.number},<br />{/if}
- {if isset($address.house) && ($address.house <> '') }
+ {if !empty($address.house)}
{$address.house},<br />{/if}
- {if isset($address.add1) && ($address.add1 <> '') }
+ {if !empty($address.add1)}
{$address.add1},<br />{/if}
- {if isset($address.add2) && ($address.add2 <> '') }
+ {if !empty($address.add2)}
{$address.add2},&nbsp;{/if}
- {if isset($address.add3) && ($address.add3 <> '') }
+ {if !empty($address.add3)}
{$address.add3},<br />{/if}
- {if isset($address.add4) && ($address.add4 <> '') }
+ {if !empty($address.add4)}
{$address.add4},&nbsp;{/if}
- {if isset($address.town) && ($address.town <> '') }
+ {if !empty($address.town)}
{$address.town},&nbsp;{/if}
- {if isset($address.county) && ($address.county <> '') }
+ {if !empty($address.county)}
{$address.county},&nbsp;{/if}
{$address.postcode}&nbsp;&nbsp;
{/forminput}
<div class="clear"></div>
</div>
- {if $locate == 1 && isset($address.x_coordinate) && ($address.x_coordinate <> '') }
+ {if $locate == 1 && !empty($address.x_coordinate)}
<div class="form-group">
{formlabel label="Visual Centre Coordinates" for="street_start_x"}
{forminput}
Lat: {$address.y_coordinate|escape} Lon: {$address.x_coordinate|escape}
<br />&lt;<a href="http://www.openstreetmap.org/index.html?mlat={$address.y_coordinate}&mlon={$address.x_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}" target="_blank">
OpenStreetMap
- </a>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$address.y_coordinate}~{$address.x_coordinate}&lvl=16&style=r&q={$address.postcode}#" title="{$address.title}" target="_blank">
+ </a>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$address.y_coordinate}~{$address.x_coordinate}&lvl=16&style=r&q={$address.postcode}#" title="{$address.title|default:'Bing'}" target="_blank">
Multimap
- </a>&gt;&nbsp;&lt;<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$address.postcode}&ll={$address.y_coordinate},{$address.x_coordinate}&z=16" title="{$address.title}" target="_blank">
+ </a>&gt;&nbsp;&lt;<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$address.postcode}&ll={$address.y_coordinate},{$address.x_coordinate}&z=16" title="{$address.title|default:'Google'}" target="_blank">
Google
</a>&gt;<br />
Navigate to &lt;<a href="http://openrouteservice.org/index.php?start=-1.860930,52.039980&end={$address.x_coordinate},{$address.y_coordinate}&pref=Fastest&lang=en&unit=MI" title="{$propertyInfo.title}" target="_blank">
OpenRouteService
</a>&gt;
- {$address.rpa|escape}
+ {$address.rpa|default:'RPA'|escape}
{/forminput}
<div class="clear"></div>
</div>
diff --git a/templates/display_contact.tpl b/templates/display_contact.tpl
index 92646f3..96767b0 100644..100755
--- a/templates/display_contact.tpl
+++ b/templates/display_contact.tpl
@@ -1,57 +1,57 @@
{include file="bitpackage:contact/display_type_header.tpl"}
- {if isset($pageInfo.usn) && ($pageInfo.usn <> '') }
+ {if isset($gContent->mInfo.usn) && ($gContent->mInfo.usn <> '') }
<div class="form-group">
{formlabel label="USN" for="usn"}
{forminput}
- {$pageInfo.usn|escape}
+ {$gContent->mInfo.usn|escape}
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {if isset($pageInfo.name) && ($pageInfo.name <> '') }
+ {if isset($gContent->mInfo.name) && ($gContent->mInfo.name <> '') }
<div class="form-group">
{formlabel label="Name" for="name"}
{forminput}
- {$pageInfo.name|escape}
+ {$gContent->mInfo.name|escape}
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {if isset($pageInfo.organisation) && ($pageInfo.organisation <> '') }
+ {if isset($gContent->mInfo.organisation) && ($gContent->mInfo.organisation <> '') }
<div class="form-group">
{formlabel label="Organisation" for="organisation"}
{forminput}
- {$pageInfo.organisation|escape}
+ {$gContent->mInfo.organisation|escape}
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {if isset($pageInfo.dob) && ($pageInfo.dob <> '') }
+ {if isset($gContent->mInfo.dob) && ($gContent->mInfo.dob <> '') }
<div class="form-group">
{formlabel label="Date of Birth" for="dob"}
{forminput}
- {$pageInfo.dob|bit_long_date}
+ {$gContent->mInfo.dob|bit_long_date}
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {if isset($pageInfo.nino) && ($pageInfo.nino <> '') }
+ {if isset($gContent->mInfo.nino) && ($gContent->mInfo.nino <> '') }
<div class="form-group">
{formlabel label="National Insurance Number" for="nino"}
{forminput}
- {$pageInfo.nino|escape}
+ {$gContent->mInfo.nino|escape}
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {section name=address loop=$pageInfo.address}
- {include file="bitpackage:contact/display_address.tpl" header=$pageInfo.address[address].source_title address=$pageInfo.address[address] locate=1}
+ {section name=address loop=$gContent->mInfo.address}
+ {include file="bitpackage:contact/display_address.tpl" header=$gContent->mInfo.address[address].source_title address=$gContent->mInfo.address[address] locate=1}
{sectionelse}
<li class="item norecords">
{tr}No addresses found{/tr}
{if $gBitUser->hasPermission('p_edit_contact')}
- {smartlink ititle="Add an address record" ifile="add_xref_address.php" booticon="icon-note-add" content_id=$pageInfo.content_id}
+ {smartlink ititle="Add an address record" ifile="add_xref_address.php" booticon="icon-note-add" content_id=$gContent->mInfo.content_id}
{/if}
</li>
{/section}
@@ -59,12 +59,12 @@
<div class="form-group">
{formlabel label="General Notes" for="data"}
{forminput}
- {$pageInfo.data}
+ {$gContent->mInfo.data}
{/forminput}
</div>
{jstabs}
- {section name=type loop=$pageInfo.type}
- {include file="bitpackage:contact/list_xref_generic.tpl" source=$pageInfo.type[type].source source_title=$pageInfo.type[type].title xref_type=$pageInfo.type[type].xref_type}
+ {section name=type loop=$gContent->mInfo.type}
+ {include file="bitpackage:contact/list_xref_generic.tpl" source=$gContent->mInfo.type[type].source source_title=$gContent->mInfo.type[type].title xref_type=$gContent->mInfo.type[type].xref_type}
{/section}
{/jstabs}
diff --git a/templates/display_list_header.tpl b/templates/display_list_header.tpl
index 82f1f56..58269be 100644..100755
--- a/templates/display_list_header.tpl
+++ b/templates/display_list_header.tpl
@@ -5,24 +5,14 @@
{/foreach}
<input type="hidden" name="sort_mode" value="{$sort_mode|default:$smarty.request.sort_mode}" />
- {include file="bitpackage:contact/contact_options_inc.tpl"}
- <input type="submit" name="refresh" value="{tr}Update Contact Filter{/tr}" />&nbsp;&nbsp;&nbsp;&nbsp;
- {if $gBitUser->hasPermission('p_edit_contact')}
- <input type="hidden" name="active" value="{$active|default:$smarty.request.active}" />
- <input type="submit" name="active" value="{tr}Active{/tr}" />&nbsp;
- <input type="submit" name="active" value="{tr}Inactive{/tr}" />&nbsp;
- <input type="submit" name="active" value="{tr}All{/tr}" />
- {/if}
- <br /><br />
-
- {biticon ipackage="icons" iname="edit-find" iexplain="Search"} &nbsp;
- <label>{tr}Key{/tr}:&nbsp;<input size="6" type="text" name="find_key" value="{$find_key|default:$smarty.request.find_key|escape}" /></label> &nbsp;
- <label>{tr}Title{/tr}:&nbsp;<input size="20" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> &nbsp;
- <label>{tr}Location{/tr}:&nbsp;<input size="20" type="text" name="find_location" value="{$find_location|default:$smarty.request.find_location|escape}" /></label> &nbsp;
- <label>{tr}Postcode{/tr}:&nbsp;<input size="10" type="text" name="find_postcode" value="{$find_postcode|default:$smarty.request.find_postcode|escape}" /></label> &nbsp;
- <br />
- <label>{tr}Number{/tr}:&nbsp;<input size="10" type="text" name="find_xref" value="{$find_xref|default:$smarty.request.find_xref|escape}" /></label> &nbsp;
- <input type="submit" name="search" value="{tr}Find{/tr}" />&nbsp;
- <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&amp;{/foreach}'" value="{tr}Reset{/tr}" />
+ <label class="col-md-1 col-sm-3 col-xs-12">{tr}Key{/tr}:&nbsp;<input size="4" type="text" name="find_key" value="{$find_key|default:$smarty.request.find_key|escape}" /></label>
+ <label class="col-md-3 col-sm-3 col-xs-12">{tr}Title{/tr}:&nbsp;<input size="20" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label>
+ <label class="col-md-3 col-sm-3 col-xs-12">{tr}Location{/tr}:&nbsp;<input size="20" type="text" name="find_location" value="{$find_location|default:$smarty.request.find_location|escape}" /></label>
+ <label class="col-md-2 col-sm-3 col-xs-12">{tr}Postcode{/tr}:&nbsp;<input size="10" type="text" name="find_postcode" value="{$find_postcode|default:$smarty.request.find_postcode|escape}" /></label>
+ <label class="col-md-2 col-sm-3 col-xs-12">{tr}Number{/tr}:&nbsp;<input size="10" type="text" name="find_xref" value="{$find_xref|default:$smarty.request.find_xref|escape}" /></label>
+ <div class="col-md-1 col-sm-3 col-xs-12">
+ <input type="submit" name="search" value="{tr}Find{/tr}" />&nbsp;
+ <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&amp;{/foreach}'" value="{tr}Reset{/tr}" />
+ </div>
{/form}
</div> \ No newline at end of file
diff --git a/templates/display_list_header1.tpl b/templates/display_list_header1.tpl
index f2ed2b0..f2ed2b0 100644..100755
--- a/templates/display_list_header1.tpl
+++ b/templates/display_list_header1.tpl
diff --git a/templates/display_list_header2.tpl b/templates/display_list_header2.tpl
new file mode 100755
index 0000000..82f1f56
--- /dev/null
+++ b/templates/display_list_header2.tpl
@@ -0,0 +1,28 @@
+ <div class="navbar">
+ {form class="find" legend="Find in Contact entries" id="data_options"}
+ {foreach from=$hidden item=value key=name}
+ <input type="hidden" name="{$name}" value="{$value}" />
+ {/foreach}
+ <input type="hidden" name="sort_mode" value="{$sort_mode|default:$smarty.request.sort_mode}" />
+
+ {include file="bitpackage:contact/contact_options_inc.tpl"}
+ <input type="submit" name="refresh" value="{tr}Update Contact Filter{/tr}" />&nbsp;&nbsp;&nbsp;&nbsp;
+ {if $gBitUser->hasPermission('p_edit_contact')}
+ <input type="hidden" name="active" value="{$active|default:$smarty.request.active}" />
+ <input type="submit" name="active" value="{tr}Active{/tr}" />&nbsp;
+ <input type="submit" name="active" value="{tr}Inactive{/tr}" />&nbsp;
+ <input type="submit" name="active" value="{tr}All{/tr}" />
+ {/if}
+ <br /><br />
+
+ {biticon ipackage="icons" iname="edit-find" iexplain="Search"} &nbsp;
+ <label>{tr}Key{/tr}:&nbsp;<input size="6" type="text" name="find_key" value="{$find_key|default:$smarty.request.find_key|escape}" /></label> &nbsp;
+ <label>{tr}Title{/tr}:&nbsp;<input size="20" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> &nbsp;
+ <label>{tr}Location{/tr}:&nbsp;<input size="20" type="text" name="find_location" value="{$find_location|default:$smarty.request.find_location|escape}" /></label> &nbsp;
+ <label>{tr}Postcode{/tr}:&nbsp;<input size="10" type="text" name="find_postcode" value="{$find_postcode|default:$smarty.request.find_postcode|escape}" /></label> &nbsp;
+ <br />
+ <label>{tr}Number{/tr}:&nbsp;<input size="10" type="text" name="find_xref" value="{$find_xref|default:$smarty.request.find_xref|escape}" /></label> &nbsp;
+ <input type="submit" name="search" value="{tr}Find{/tr}" />&nbsp;
+ <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&amp;{/foreach}'" value="{tr}Reset{/tr}" />
+ {/form}
+ </div> \ No newline at end of file
diff --git a/templates/display_type_header.tpl b/templates/display_type_header.tpl
index bdfe449..7440659 100644..100755
--- a/templates/display_type_header.tpl
+++ b/templates/display_type_header.tpl
@@ -1,7 +1,7 @@
<div class="form-group">
{formlabel label="Content Types" for=content_types}
{forminput}
- {foreach from=$pageInfo.contact_types key=type_id item=type}
+ {foreach from=$gContent->mInfo.contact_types key=type_id item=type}
{if isset($type.content_id) }{$type.cross_ref_title}<br/> {/if}
{/foreach}
{/forminput}
diff --git a/templates/edit.tpl b/templates/edit.tpl
index 0f14069..9aae398 100644..100755
--- a/templates/edit.tpl
+++ b/templates/edit.tpl
@@ -7,9 +7,9 @@
<div class="header">
<h1>
{* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *}
- {if $pageInfo.content_id}
+ {if $gContent->mInfo.content_id}
{assign var=editLabel value="{tr}Edit{/tr} $conDescr"}
- {tr}{tr}Edit{/tr} {$pageInfo.title}{/tr}
+ {tr}{tr}Edit{/tr} {$gContent->mInfo.title}{/tr}
{else}
{assign var=editLabel value="{tr}Create{/tr} $conDescr"}
{tr}{$editLabel}{/tr}
@@ -19,7 +19,7 @@
{* Check to see if there is an editing conflict *}
{if $errors.edit_conflict}
- <script language="javascript" type="text/javascript">
+ <script>
<!--
alert( "{$errors.edit_conflict|strip_tags}" );
-->
@@ -32,20 +32,20 @@
{jstabs}
{jstab title="$editLabel Body"}
{legend legend="$editLabel Details"}
- <input type="hidden" name="content_id" value="{$pageInfo.content_id}" />
+ <input type="hidden" name="content_id" value="{$gContent->mInfo.content_id}" />
<div class="form-group">
{formfeedback warning=$errors.names}
{formfeedback warning=$errors.store}
{formlabel label="$conDescr Contact" for="contentno"}
- {if !$pageInfo.content_id}
+ {if !$gContent->mInfo.content_id}
{forminput}
New Contact Entry
{/forminput}
{else}
{forminput}
- Edit Contact Entry No : {$pageInfo.content_id}
+ Edit Contact Entry No : {$gContent->mInfo.content_id}
{/forminput}
{/if}
<div class="clear"></div>
@@ -53,41 +53,41 @@
{include file="bitpackage:contact/edit_type_header.tpl"}
- {if $pageInfo.name or $pageInfo.contact_types.0.content_id or !isset( $pageInfo.contact_types ) }
+ {if $gContent->mInfo.name or $gContent->mInfo.contact_types.0.content_id or !isset( $gContent->mInfo.contact_types ) }
<div class="form-group">
{formlabel label="Title" for="prefix"}
{forminput}
- <input size="60" type="text" name="prefix" id="prefix" value="{$pageInfo.prefix|escape}" />
+ <input size="60" type="text" name="prefix" id="prefix" value="{$gContent->mInfo.prefix|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Forename" for="forename"}
{forminput}
- <input size="60" type="text" name="forename" id="forename" value="{$pageInfo.forename|escape}" />
+ <input size="60" type="text" name="forename" id="forename" value="{$gContent->mInfo.forename|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Surname" for="surname"}
{forminput}
- <input size="60" type="text" name="surname" id="surname" value="{$pageInfo.surname|escape}" />
+ <input size="60" type="text" name="surname" id="surname" value="{$gContent->mInfo.surname|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Suffix" for="suffix"}
{forminput}
- <input size="60" type="text" name="suffix" id="suffix" value="{$pageInfo.suffix|escape}" />
+ <input size="60" type="text" name="suffix" id="suffix" value="{$gContent->mInfo.suffix|escape}" />
{/forminput}
<div class="clear"></div>
</div>
{/if}
- {if $pageInfo.organisation or $pageInfo.contact_types.1.content_id or !isset( $pageInfo.contact_types ) }
+ {if $gContent->mInfo.organisation or $gContent->mInfo.contact_types.1.content_id or !isset( $gContent->mInfo.contact_types ) }
<div class="form-group">
{formlabel label="Organisation" for="organisation"}
{forminput}
- <input size="60" type="text" name="organisation" id="organisation" value="{$pageInfo.organisation|escape}" />
+ <input size="60" type="text" name="organisation" id="organisation" value="{$gContent->mInfo.organisation|escape}" />
{/forminput}
<div class="clear"></div>
</div>
@@ -97,7 +97,7 @@
<div class="form-group">
{formlabel label="Key Number" for="xkey"}
{forminput}
- <input size="10" type="text" name="xkey" id="xkey" value="{$pageInfo.xkey|escape}" />
+ <input size="10" type="text" name="xkey" id="xkey" value="{$gContent->mInfo.xkey|escape}" />
{/forminput}
<div class="clear"></div>
</div>
@@ -105,7 +105,7 @@
<div class="form-group">
{formlabel label="Note" for="description"}
{forminput}
- <input size="60" type="text" name="description" id="description" value="{$pageInfo.description|escape}" />
+ <input size="60" type="text" name="description" id="description" value="{$gContent->mInfo.description|escape}" />
{/forminput}
<div class="clear"></div>
</div>
@@ -115,14 +115,14 @@
{jstab title="Contact Notes"}
{legend legend="Notes Body"}
<div class="form-group">
- {textarea rows=30 noformat=1 edit=$pageInfo.edit}
+ {textarea rows=30 noformat=1 edit=$gContent->mInfo.edit}
</div>
{if $page ne 'SandBox'}
<div class="form-group">
{formlabel label="Comment" for="comment"}
{forminput}
- <input size="50" type="text" name="comment" id="comment" value="{$pageInfo.comment}" />
+ <input size="50" type="text" name="comment" id="comment" value="{$gContent->mInfo.comment}" />
{formhelp note="Add a comment to illustrate your most recent changes."}
{/forminput}
</div>
diff --git a/templates/edit_contact.tpl b/templates/edit_contact.tpl
index 93226a0..80a468b 100644..100755
--- a/templates/edit_contact.tpl
+++ b/templates/edit_contact.tpl
@@ -5,7 +5,7 @@
{* Check to see if there is an editing conflict *}
{if $editpageconflict == 'y'}
- <script language="javascript" type="text/javascript">
+ <script>
<!-- Hide Script
alert("{tr}This page is being edited by{/tr} {$semUser}. {tr}Proceed at your own peril{/tr}.")
//End Hide Script-->
@@ -15,16 +15,16 @@
<div class="admin contact">
{if $preview}
- <h2>Preview - {$pageInfo.title}</h2>
+ <h2>Preview - {$gContent->mInfo.title}</h2>
<div class="preview">
- {include file="bitpackage:contact/contact_display.tpl" page=`$pageInfo.content_id`}
+ {include file="bitpackage:contact/contact_display.tpl" page=`$gContent->mInfo.content_id`}
</div>
{/if}
<div class="header">
<h1>
- {if $pageInfo.content_id}
- {tr}{tr}Edit - {/tr} {$pageInfo.title}{/tr}
+ {if $gContent->mInfo.content_id}
+ {tr}{tr}Edit - {/tr} {$gContent->mInfo.title}{/tr}
{else}
{tr}Create New Record{/tr}
{/if}
@@ -33,49 +33,49 @@
<div class="body">
{form legend="Edit/Create Contact Record" enctype="multipart/form-data" id="editpageform"}
- <input type="hidden" name="content_id" value="{$pageInfo.content_id}" />
+ <input type="hidden" name="content_id" value="{$gContent->mInfo.content_id}" />
{include file="bitpackage:contact/edit_type_header.tpl"}
{* <div class="form-group">
{formlabel label="Title" for="title"}
{forminput}
- <input size="60" type="text" name="prefix" id="prefix" value="{$pageInfo.prefix|escape}" />
+ <input size="60" type="text" name="prefix" id="prefix" value="{$gContent->mInfo.prefix|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Forename" for="forename"}
{forminput}
- <input size="60" type="text" name="forename" id="forename" value="{$pageInfo.forename|escape}" />
+ <input size="60" type="text" name="forename" id="forename" value="{$gContent->mInfo.forename|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Surname" for="surname"}
{forminput}
- <input size="60" type="text" name="surname" id="surname" value="{$pageInfo.surname|escape}" />
+ <input size="60" type="text" name="surname" id="surname" value="{$gContent->mInfo.surname|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Suffix" for="suffix"}
{forminput}
- <input size="60" type="text" name="suffix" id="suffix" value="{$pageInfo.suffix|escape}" />
+ <input size="60" type="text" name="suffix" id="suffix" value="{$gContent->mInfo.suffix|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="Organisation" for="organisation"}
{forminput}
- <input size="60" type="text" name="organisation" id="organisation" value="{$pageInfo.organisation|escape}" />
+ <input size="60" type="text" name="organisation" id="organisation" value="{$gContent->mInfo.organisation|escape}" />
{/forminput}
<div class="clear"></div>
</div>
<div class="form-group">
{formlabel label="NI Number" for="nino"}
{forminput}
- <input size="10" type="text" name="nino" id="nino" value="{$pageInfo.nino|escape}" />
+ <input size="10" type="text" name="nino" id="nino" value="{$gContent->mInfo.nino|escape}" />
{/forminput}
<div class="clear"></div>
</div>
@@ -83,7 +83,7 @@
<div class="form-group">
{formlabel label="Note" for="description"}
{forminput}
- <input size="60" type="text" name="description" id="description" value="{$pageInfo.description|escape}" />
+ <input size="60" type="text" name="description" id="description" value="{$gContent->mInfo.description|escape}" />
{/forminput}
<div class="clear"></div>
</div>
@@ -92,7 +92,7 @@
{forminput}
<input type="hidden" name="rows" value="{$rows}" />
<input type="hidden" name="cols" value="{$cols}" />
- <textarea id="{$textarea_id}" name="edit" rows="{$rows|default:20}" cols="{$cols|default:80}">{if !$preview}{$pageInfo.data|escape}{else}{$edit}{/if}</textarea>
+ <textarea id="{$textarea_id}" name="edit" rows="{$rows|default:20}" cols="{$cols|default:80}">{if !$preview}{$gContent->mInfo.data|escape}{else}{$edit}{/if}</textarea>
{/forminput}
<div class="clear"></div>
</div>
diff --git a/templates/edit_key_break.tpl b/templates/edit_key_break.tpl
index bb070af..bb070af 100644..100755
--- a/templates/edit_key_break.tpl
+++ b/templates/edit_key_break.tpl
diff --git a/templates/edit_personal.tpl b/templates/edit_personal.tpl
index 19dd8fb..d6ba46b 100644..100755
--- a/templates/edit_personal.tpl
+++ b/templates/edit_personal.tpl
@@ -1,25 +1,25 @@
<div class="form-group">
{formlabel label="NI Number" for="nino"}
{forminput}
- <input size="10" type="text" name="nino" id="nino" value="{$pageInfo.nino|escape}" />
+ <input size="10" type="text" name="nino" id="nino" value="{$gContent->mInfo.nino|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Date of Birth" for="dob"}
{forminput}
- <input size="10" type="text" name="dob" id="dob" value="{$pageInfo.dob|escape}" />
+ <input size="10" type="text" name="dob" id="dob" value="{$gContent->mInfo.dob|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Date of eighteen" for="eighteenth"}
{forminput}
- <input size="10" type="text" name="eighteenth" id="eighteenth" value="{$pageInfo.eighteenth|escape}" />
+ <input size="10" type="text" name="eighteenth" id="eighteenth" value="{$gContent->mInfo.eighteenth|escape}" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Date of Death" for="dod"}
{forminput}
- <input size="10" type="text" name="dod" id="dod" value="{$pageInfo.dod|escape}" />
+ <input size="10" type="text" name="dod" id="dod" value="{$gContent->mInfo.dod|escape}" />
{/forminput}
</div>
diff --git a/templates/edit_type_header.tpl b/templates/edit_type_header.tpl
index c37c4b8..171ec58 100644..100755
--- a/templates/edit_type_header.tpl
+++ b/templates/edit_type_header.tpl
@@ -1,12 +1,12 @@
<div class="form-group">
{formlabel label="Content Types" for=content_types}
{forminput}
- {if isset( $pageInfo.contact_types ) }
- {foreach from=$pageInfo.contact_types key=type_id item=type}
+ {if isset( $gContent->mInfo.contact_types ) }
+ {foreach from=$gContent->mInfo.contact_types key=type_id item=type}
<input type="checkbox" name="contact_types[{$type_id}]" value={$type.source} {if isset($type.content_id) } checked="checked"{/if} /> {$type.cross_ref_title}<br/>
{/foreach}
{else}
- {foreach from=$pageInfo.contact_type_list key=type_id item=type}
+ {foreach from=$gContent->mInfo.contact_type_list key=type_id item=type}
<input type="checkbox" name="contact_types[$type_id]" value={$type.source} />{$type.name}<br/>
{/foreach}
{/if}
diff --git a/templates/edit_xref.tpl b/templates/edit_xref.tpl
index d6659f9..d6659f9 100644..100755
--- a/templates/edit_xref.tpl
+++ b/templates/edit_xref.tpl
diff --git a/templates/edit_xref_address.tpl b/templates/edit_xref_address.tpl
index 5f8af06..5f8af06 100644..100755
--- a/templates/edit_xref_address.tpl
+++ b/templates/edit_xref_address.tpl
diff --git a/templates/edit_xref_address_fields.tpl b/templates/edit_xref_address_fields.tpl
index 56e282a..56e282a 100644..100755
--- a/templates/edit_xref_address_fields.tpl
+++ b/templates/edit_xref_address_fields.tpl
diff --git a/templates/edit_xref_contact.tpl b/templates/edit_xref_contact.tpl
index 2ea82b6..2ea82b6 100644..100755
--- a/templates/edit_xref_contact.tpl
+++ b/templates/edit_xref_contact.tpl
diff --git a/templates/edit_xref_contact_fields.tpl b/templates/edit_xref_contact_fields.tpl
index 11b18d4..11b18d4 100644..100755
--- a/templates/edit_xref_contact_fields.tpl
+++ b/templates/edit_xref_contact_fields.tpl
diff --git a/templates/edit_xref_dates.tpl b/templates/edit_xref_dates.tpl
index fb58492..fb58492 100644..100755
--- a/templates/edit_xref_dates.tpl
+++ b/templates/edit_xref_dates.tpl
diff --git a/templates/edit_xref_generic_fields.tpl b/templates/edit_xref_generic_fields.tpl
index 5882d41..5882d41 100644..100755
--- a/templates/edit_xref_generic_fields.tpl
+++ b/templates/edit_xref_generic_fields.tpl
diff --git a/templates/edit_xref_image.tpl b/templates/edit_xref_image.tpl
new file mode 100755
index 0000000..5b12803
--- /dev/null
+++ b/templates/edit_xref_image.tpl
@@ -0,0 +1,68 @@
+{strip}
+<div class="floaticon">{bithelp}</div>
+<div class="edit contact_xref">
+ <div class="header">
+ <h1>{tr}Edit {/tr}{$xrefInfo.template_title|escape}: {$title|escape}-{$xref_title|escape}</h1>
+ </div>
+
+ {formfeedback hash=$feedback}
+ {formfeedback warning=$errors.title}
+
+ <div class="body">
+ {form enctype="multipart/form-data" id="writexref"}
+ <input type="hidden" name="content_id" value="{$xrefInfo.content_id}" />
+ <input type="hidden" name="xref_id" value="{$xrefInfo.xref_id}" />
+
+ {jstabs}
+ {jstab title="Details"}
+ {legend legend="Contents"}
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Number" for="xkey_ext"}
+ {forminput}
+ <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
+ {formhelp note="Simple free format text entries like email or web addresses."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <img class="thumb" src="/storage/attachments/21/21/thumbs/medium.jpg" alt="" />
+ {/legend}
+ {/jstab}
+
+ {jstab title="Time period"}
+ {legend legend="Start and Stop Dates"}
+ <div class="form-group">
+ <input type="hidden" name="startDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_start_date" {if $xrefInfo.ignore_start_date eq "y"}checked{/if} />
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record becomes valid on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ <input type="hidden" name="endDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_end_date" {if $xrefInfo.ignore_end_date eq "y"}checked{/if} />
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record finishes on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+ {/jstab}
+
+ <div class="form-group submit">
+ <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" />&nbsp;
+ <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" />
+ </div>
+ {/jstabs}
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/edit_xref_inc_report.tpl b/templates/edit_xref_inc_report.tpl
new file mode 100755
index 0000000..defdd3b
--- /dev/null
+++ b/templates/edit_xref_inc_report.tpl
@@ -0,0 +1,72 @@
+{strip}
+<div class="floaticon">{bithelp}</div>
+<div class="edit contact_xref">
+ <div class="header">
+ <h1>{tr}Edit {/tr}{$xrefInfo.template_title|escape}: {$title|escape}-{$xref_title|escape}</h1>
+ </div>
+
+ {formfeedback hash=$feedback}
+ {formfeedback warning=$errors.title}
+
+ <div class="body">
+ {form enctype="multipart/form-data" id="writexref"}
+ <input type="hidden" name="content_id" value="{$xrefInfo.content_id}" />
+ <input type="hidden" name="xref_id" value="{$xrefInfo.xref_id}" />
+
+ {jstabs}
+ {jstab title="Details"}
+ {legend legend="Contents"}
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Number" for="xkey_ext"}
+ {forminput}
+ <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
+ {formhelp note="Simple free format text entries like email or web addresses."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ {formlabel label="`$xrefInfo.template_title` Notes" for="data"}
+ {capture assign=textarea_help}
+ {tr}Keep the text attached to reference items short and use comment records to add larger volumns of text. This should be reserved for simple notes such 'as use after 5PM' or the link.{/tr}
+ {/capture}
+ {textarea rows=5 noformat=1 id="edittext" nowysiwyg="yes" edit=$xrefInfo.data}
+ {/legend}
+ {/jstab}
+
+ {jstab title="Time period"}
+ {legend legend="Start and Stop Dates"}
+ <div class="form-group">
+ <input type="hidden" name="startDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_start_date" {if $xrefInfo.ignore_start_date eq "y"}checked{/if} />
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record becomes valid on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ <input type="hidden" name="endDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_end_date" {if $xrefInfo.ignore_end_date eq "y"}checked{/if} />
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record finishes on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+ {/jstab}
+
+ <div class="form-group submit">
+ <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" />&nbsp;
+ <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" />
+ </div>
+ {/jstabs}
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/edit_xref_inc_report_fields.tpl b/templates/edit_xref_inc_report_fields.tpl
new file mode 100755
index 0000000..83bcd47
--- /dev/null
+++ b/templates/edit_xref_inc_report_fields.tpl
@@ -0,0 +1,10 @@
+{strip}
+<div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Text" for="`$output`xkey_ext"}
+ {forminput}
+ <input type="text" name="{$output}xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
+ {formhelp note="Handling Incident Report."}
+ {/forminput}
+ <div class="clear"></div>
+</div>
+{/strip}
diff --git a/templates/edit_xref_key_seal.tpl b/templates/edit_xref_key_seal.tpl
index 3118ac6..3118ac6 100644..100755
--- a/templates/edit_xref_key_seal.tpl
+++ b/templates/edit_xref_key_seal.tpl
diff --git a/templates/edit_xref_key_seal_fields.tpl b/templates/edit_xref_key_seal_fields.tpl
index 75f805d..75f805d 100644..100755
--- a/templates/edit_xref_key_seal_fields.tpl
+++ b/templates/edit_xref_key_seal_fields.tpl
diff --git a/templates/edit_xref_locate.tpl b/templates/edit_xref_locate.tpl
index 3cb599d..3cb599d 100644..100755
--- a/templates/edit_xref_locate.tpl
+++ b/templates/edit_xref_locate.tpl
diff --git a/templates/edit_xref_locate_fields.tpl b/templates/edit_xref_locate_fields.tpl
index f63229f..f63229f 100644..100755
--- a/templates/edit_xref_locate_fields.tpl
+++ b/templates/edit_xref_locate_fields.tpl
diff --git a/templates/edit_xref_phone.tpl b/templates/edit_xref_phone.tpl
index a3b640f..a3b640f 100644..100755
--- a/templates/edit_xref_phone.tpl
+++ b/templates/edit_xref_phone.tpl
diff --git a/templates/edit_xref_phone_fields.tpl b/templates/edit_xref_phone_fields.tpl
index d77f487..d77f487 100644..100755
--- a/templates/edit_xref_phone_fields.tpl
+++ b/templates/edit_xref_phone_fields.tpl
diff --git a/templates/edit_xref_sig.tpl b/templates/edit_xref_sig.tpl
new file mode 100755
index 0000000..defdd3b
--- /dev/null
+++ b/templates/edit_xref_sig.tpl
@@ -0,0 +1,72 @@
+{strip}
+<div class="floaticon">{bithelp}</div>
+<div class="edit contact_xref">
+ <div class="header">
+ <h1>{tr}Edit {/tr}{$xrefInfo.template_title|escape}: {$title|escape}-{$xref_title|escape}</h1>
+ </div>
+
+ {formfeedback hash=$feedback}
+ {formfeedback warning=$errors.title}
+
+ <div class="body">
+ {form enctype="multipart/form-data" id="writexref"}
+ <input type="hidden" name="content_id" value="{$xrefInfo.content_id}" />
+ <input type="hidden" name="xref_id" value="{$xrefInfo.xref_id}" />
+
+ {jstabs}
+ {jstab title="Details"}
+ {legend legend="Contents"}
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Number" for="xkey_ext"}
+ {forminput}
+ <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
+ {formhelp note="Simple free format text entries like email or web addresses."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ {formlabel label="`$xrefInfo.template_title` Notes" for="data"}
+ {capture assign=textarea_help}
+ {tr}Keep the text attached to reference items short and use comment records to add larger volumns of text. This should be reserved for simple notes such 'as use after 5PM' or the link.{/tr}
+ {/capture}
+ {textarea rows=5 noformat=1 id="edittext" nowysiwyg="yes" edit=$xrefInfo.data}
+ {/legend}
+ {/jstab}
+
+ {jstab title="Time period"}
+ {legend legend="Start and Stop Dates"}
+ <div class="form-group">
+ <input type="hidden" name="startDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_start_date" {if $xrefInfo.ignore_start_date eq "y"}checked{/if} />
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record becomes valid on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ <input type="hidden" name="endDateInput" value="1" />
+ &nbsp;Ignore Date <input type="checkbox" name="ignore_end_date" {if $xrefInfo.ignore_end_date eq "y"}checked{/if} />
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
+ <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
+ {formhelp note="This xref record finishes on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+ {/jstab}
+
+ <div class="form-group submit">
+ <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" />&nbsp;
+ <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" />
+ </div>
+ {/jstabs}
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/edit_xref_text.tpl b/templates/edit_xref_text.tpl
index defdd3b..defdd3b 100644..100755
--- a/templates/edit_xref_text.tpl
+++ b/templates/edit_xref_text.tpl
diff --git a/templates/edit_xref_text_fields.tpl b/templates/edit_xref_text_fields.tpl
index be049ba..be049ba 100644..100755
--- a/templates/edit_xref_text_fields.tpl
+++ b/templates/edit_xref_text_fields.tpl
diff --git a/templates/edit_xref_type.tpl b/templates/edit_xref_type.tpl
index 6545e40..6545e40 100644..100755
--- a/templates/edit_xref_type.tpl
+++ b/templates/edit_xref_type.tpl
diff --git a/templates/edit_xref_value.tpl b/templates/edit_xref_value.tpl
index 5f20952..5f20952 100644..100755
--- a/templates/edit_xref_value.tpl
+++ b/templates/edit_xref_value.tpl
diff --git a/templates/edit_xref_value_fields.tpl b/templates/edit_xref_value_fields.tpl
index 2231b61..2231b61 100644..100755
--- a/templates/edit_xref_value_fields.tpl
+++ b/templates/edit_xref_value_fields.tpl
diff --git a/templates/employment.tpl b/templates/employment.tpl
new file mode 100755
index 0000000..24904ac
--- /dev/null
+++ b/templates/employment.tpl
@@ -0,0 +1,43 @@
+{strip}
+<form id="employmentForm" class="form-horizontal" method="post" action="process.php?form=employment"
+ data-fv-framework="bootstrap"
+ data-fv-icon-valid="icon-tick"
+ data-fv-icon-invalid="icon-cross"
+ data-fv-icon-validating="icon-recycle">
+
+ <input type="hidden" value="form_employment" name="formID" />
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Employee Details
+ </h3>
+ </div>
+ </div>
+
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p>
+ <span style="color: #ff0000;"><strong>This form must be completed in full for work to commence and wages to be issued.</strong></span>
+ </p>
+ </div>
+ </div>
+
+ {foreach from=$formInfo key=i item=item}
+ {include file="bitpackage:form/`$item['form_template']`.tpl" value=$item['xkey']}
+ {/foreach}
+
+ <div class="form-group">
+ <div class="col-xs-9 col-xs-offset-3">
+ <button type="submit" class="btn btn-primary" name="signup"
+ value="Sign up">Submit</button>
+ <button type="cancel" class="btn btn-primary" name="fCancel"
+ value="fCancel">Cancel</button>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form>
+{/strip} \ No newline at end of file
diff --git a/templates/employment1.tpl b/templates/employment1.tpl
new file mode 100755
index 0000000..b9b6ab6
--- /dev/null
+++ b/templates/employment1.tpl
@@ -0,0 +1,44 @@
+{strip}
+<form id="employmentForm" class="form-horizontal" method="post" action="process.php?form=employment"
+ data-fv-framework="bootstrap"
+ data-fv-icon-valid="icon-tick"
+ data-fv-icon-invalid="icon-cross"
+ data-fv-icon-validating="icon-recycle">
+
+ <input type="hidden" value="form_employment" name="formID" />
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Employee Details
+ </h3>
+ </div>
+ </div>
+
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p>
+ <span style="color: #ff0000;"><strong>This form must be completed
+ in full for work to commence and wages to be issued.</strong></span>
+ </p>
+ </div>
+ </div>
+
+ {foreach name=template_loop item=item from=$formInfo}
+ {include file="bitpackage:form/$item.form_template" $item.fld_xref=$gContent->mInfo.$item.fld_xref}
+ {/foreach}
+
+ <div class="form-group">
+ <div class="col-xs-9 col-xs-offset-3">
+ <button type="submit" class="btn btn-primary" name="signup"
+ value="Sign up">Submit</button>
+ <button type="cancel" class="btn btn-primary" name="fCancel"
+ value="fCancel">Cancel</button>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form>
+{/strip} \ No newline at end of file
diff --git a/templates/employment2.tpl b/templates/employment2.tpl
new file mode 100755
index 0000000..369a64f
--- /dev/null
+++ b/templates/employment2.tpl
@@ -0,0 +1,44 @@
+{strip}
+<form id="employmentForm" class="form-horizontal" method="post" action="process.php?form=employment"
+ data-fv-framework="bootstrap"
+ data-fv-icon-valid="icon-tick"
+ data-fv-icon-invalid="icon-cross"
+ data-fv-icon-validating="icon-recycle">
+
+ <input type="hidden" value="form_employment" name="formID" />
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Employee Details
+ </h3>
+ </div>
+ </div>
+
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p>
+ <span style="color: #ff0000;"><strong>This form must be completed
+ in full for work to commence and wages to be issued.</strong></span>
+ </p>
+ </div>
+ </div>
+
+ {foreach name=template_loop item=item from=$formInfo}
+ {include file="bitpackage:form/`$item.form_template`.tpl" name=$gContent->mInfo.name}
+ {/foreach}
+
+ <div class="form-group">
+ <div class="col-xs-9 col-xs-offset-3">
+ <button type="submit" class="btn btn-primary" name="signup"
+ value="Sign up">Submit</button>
+ <button type="cancel" class="btn btn-primary" name="fCancel"
+ value="fCancel">Cancel</button>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form>
+{/strip} \ No newline at end of file
diff --git a/templates/employment_full.tpl b/templates/employment_full.tpl
new file mode 100755
index 0000000..3e836e9
--- /dev/null
+++ b/templates/employment_full.tpl
@@ -0,0 +1,390 @@
+<form id="employmentForm" class="form-horizontal" method="post" action="process.php?for=employment"
+ data-fv-framework="bootstrap"
+ data-fv-icon-valid="icon-tick"
+ data-fv-icon-invalid="icon-cross"
+ data-fv-icon-validating="icon-recycle">
+
+ <input type="hidden" value="form_employment" name="formID" />
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Employee Details
+ </h3>
+ </div>
+ </div>
+
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p>
+ <span style="color: #ff0000;"><strong>This form must be completed
+ in full for work to commence and wages to be issued.</strong></span>
+ </p>
+ </div>
+ </div>
+
+ <div id="name" class="form-group"
+ data-toggle="tooltip"
+ data-placement="top"
+ title="Please provide your full name including any middle names">
+ <label class="col-xs-3 control-label">Full name</label>
+ <div class="col-xs-2">
+ <input type="text" class="form-control" name="name_title" placeholder="Title"
+ data-fv-row=".col-xs-2"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The title is required" />
+ </div>
+ <div class="col-xs-2">
+ <input type="text" class="form-control" name="name_first"
+ placeholder="First name" data-fv-row=".col-xs-2"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The first name is required" />
+ </div>
+ <div class="col-xs-2">
+ <input type="text" class="form-control" name="name_middle"
+ placeholder="Middle names" data-fv-row=".col-xs-2"
+ data-fv-notempty="false" />
+ </div>
+ <div class="col-xs-2">
+ <input type="text" class="form-control" name="name_last"
+ placeholder="Last name" data-fv-row=".col-xs-2"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The last name is required" />
+ </div>
+ </div>
+
+ <div id="name_nino" class="form-group"
+ data-toggle="tooltip"
+ data-placement="top"
+ title="National insurance number should be 2 letters, 6 numbers, 1 letter. You will not be paid if this number is incorrect.">
+ <label class="col-xs-3 control-label">National Insurance No.</label>
+ <div class="col-xs-5">
+ <input type="text" class="form-control" name="name_nino"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The national insurance number is required"
+ pattern="^[a-ceghj-nopr-tw-zA-CEGHJ-NOPR-TW-Z]{ldelim}1{rdelim}[a-ceghj-nopr-tw-zA-CEGHJ-NPR-TW-Z]{ldelim}1{rdelim}\d{ldelim}6{rdelim}[a-dA-D]{ldelim}1{rdelim}$"
+ data-fv-regexp-message="The National insurance numbers should be 2 letters, 6 numbers, 1 letter." />
+ </div>
+ </div>
+
+ <div id="sia1" class="form-group">
+ <label class="col-xs-3 control-label">SIA License Number</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="sia1"
+ data-fv-notempty="true"
+ data-fv-notempty-message="SIA License Number is required"
+ data-fv-stringlength="true" data-fv-stringlength-min="9"
+ data-fv-stringlength-max="9"
+ data-fv-stringlength-message="SIA License Number" />
+ </div>
+ </div>
+
+ <div id="sia2" class="form-group" data-toggle="tooltip"
+ data-placement="top"
+ title="Use this box if you have second SIA license such as CCTV">
+ <label class="col-xs-3 control-label">2nd SIA License Number</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="sia2" />
+ </div>
+ </div>
+
+ <div id="address" class="form-group group" data-toggle="tooltip"
+ data-placement="top"
+ title="Please supply your current residential address as it appears on the electoral register.">
+ <label class="col-xs-3 control-label">Address</label>
+ <div>
+ <div class="col-xs-6">
+ <div class="col-xs-12 form-group">
+ <input type="text" class="form-control" name="address_house"
+ placeholder="House number or name ( or flat details )" data-fv-row=".col-xs-12"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The house name or number is required" />
+ </div>
+ <div class="col-sm-6 col-xs-8 form-group">
+ <input type="text" class="address_postcode form-control" name="address_postcode"
+ placeholder="Post Code" data-fv-row=".col-xs-8"
+ onkeydown="upperPostcode(this)"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The post code is required"
+ pattern="^(([A-Z]\d{ldelim}2{rdelim}[A-Z]{ldelim}2{rdelim})|([A-Z]\d{ldelim}3{rdelim}[A-Z]{ldelim}2{rdelim})|([A-Z]{ldelim}2{rdelim}\d{ldelim}2{rdelim}[A-Z]{ldelim}2{rdelim})|([A-Z]{ldelim}2{rdelim}\d{ldelim}3{rdelim}[A-Z]{ldelim}2{rdelim})|([A-Z]\d[A-Z]\d[A-Z]{ldelim}2{rdelim})|([A-Z]{ldelim}2{rdelim}\d[A-Z]\d[A-Z]{ldelim}2{rdelim})|(GIR0AA))$"
+ data-fv-regexp-message="Postcodes should be 1 or 2 letters, 2 or 3 numbers, 2 letters. Please ignore space." />
+ </div>
+ <div class="col-sm-6 col-xs-4">
+ <button type="button" class="btn btn-primary" onclick="update()" />Postcode Lookup</button>
+ </div>
+ <div class="postcode_detail_reply col-xs-12 panel panel-default group collapse">
+ <div id="postcode_detail_match" class="panel-body">
+ </div>
+ </div>
+ <div class="postcode_detail_new col-xs-12 panel panel-default group collapse">
+ <div id="postcode_detail_data" class="panel-body">
+ <div class="col-xs-12 form-group">
+ <input type="text" class="form-control" id="address_street1" name="address_street1"
+ placeholder="Street Address" data-fv-row=".col-xs-8"
+ data-fv-notempty="false"
+ data-fv-notempty-message="The street address is required" />
+ </div>
+ <div class="col-xs-12 form-group">
+ <input type="text" class="form-control" id="address_street2" name="address_street2"
+ placeholder="Street Address Line 2" data-fv-row=".col-xs-8"
+ data-fv-notempty="false" />
+ </div>
+ <div class="col-sm-6 col-xs-12 form-group">
+ <input type="text" class="form-control" name="address_town"
+ placeholder="City / Town" data-fv-row=".col-xs-6"
+ data-fv-notempty="false"
+ data-fv-notempty-message="The last name is required" />
+ </div>
+ <div class="col-sm-6 col-xs-12">
+ <input type="text" class="form-control" id="address_county" name="address_county"
+ placeholder="County" data-fv-row=".col-xs-4"
+ data-fv-notempty="false" />
+ </div>
+ </div>
+ <div class="panel-footer">We are too tight to pay for postcode data updates so can you please supply the details for your postcode as we do not have them!
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div id="email" class="form-group">
+ <label class="col-xs-3 control-label">Email address</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="email"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The email address is required"
+ data-fv-emailaddress="true"
+ data-fv-emailaddress-message="The input is not a valid email address" />
+ </div>
+ </div>
+
+ <div id="birthday" class="form-group">
+ <label class="col-xs-3 control-label">Date of birth</label>
+ <div class="col-xs-3 date">
+ <input type="text" class="form-control" id="datebirthday"
+ name="birthday" placeholder="DD-MM-YYYY" data-fv-notempty="true"
+ data-fv-notempty-message="The date of birth is required"
+ data-fv-date="true" data-fv-date-format="DD-MM-YYYY"
+ data-fv-date-message="The date of birth is not valid" /> <span
+ class="input-group-addon add-on"><span class="icon-calendar"></span></span>
+ </div>
+ </div>
+
+ <div id="gender" class="form-group">
+ <label class="col-xs-3 control-label">Gender</label>
+ <div class="col-xs-5">
+ <div class="btn-group" data-toggle="buttons">
+ <label class="btn btn-default"> <input type="radio" name="gender"
+ value="male" data-fv-notempty="true"
+ data-fv-notempty-message="The gender is required" /> Male
+ </label> <label class="btn btn-default"> <input type="radio"
+ name="gender" value="female" /> Female
+ </label> <label class="btn btn-default"> <input type="radio"
+ name="gender" value="other" /> Other
+ </label>
+ </div>
+ </div>
+ </div>
+
+ <div id="bank" class="form-group group" data-toggle="tooltip"
+ data-placement="top"
+ title="Your bank account details are required in order to make you salary transfers.">
+ <div id="bank_name" class="form-group">
+ <label class="col-xs-3 control-label">Bank Name</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="bank_name"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The bank name is required" />
+ </div>
+ </div>
+
+ <div id="bank_sort" class="form-group">
+ <label class="col-xs-3 control-label">Sort Code</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="bank_sort"
+ data-fv-notempty="true"
+ data-fv-notempty-message="Bank Sort Code is required"
+ data-fv-stringlength="true" data-fv-stringlength-min="6"
+ data-fv-stringlength-max="6"
+ data-fv-stringlength-message="Bank Sort Code is 6 numbers" />
+ </div>
+ </div>
+
+ <div id="bank_account" class="form-group">
+ <label class="col-xs-3 control-label">Account Number</label>
+ <div class="col-xs-6">
+ <input type="text" class="form-control" name="bank_account"
+ data-fv-notempty="true"
+ data-fv-notempty-message="Bank Account Number is required"
+ data-fv-stringlength="true" data-fv-stringlength-min="8"
+ data-fv-stringlength-max="8"
+ data-fv-stringlength-message="Bank Account Number is 8 numbers" />
+ </div>
+ </div>
+ </div>
+
+ <div id="student_loan" class="form-group">
+ <label class="col-xs-3 control-label">Student Loan</label>
+ <div class="col-xs-9">
+ <div class="radio">
+ <label>Do you have a student loan?</label>
+ <div class="btn-group" data-toggle="buttons">
+ <label class="btn btn-default">
+ <input type="radio" name="student_loan" value="sl_no" class="select"
+ data-fv-notempty="true"
+ data-fv-notempty-message="Student Load status is required" />
+ No</label>
+ <label class="btn btn-default">
+ <input type="radio" name="student_loan" value="sl_yes" />
+ Yes</label>
+ </div>
+ </div>
+ <div class="loan_detail panel panel-default collapse">
+ <div class="panel-body">
+ <div class="radio">
+ <input type="radio" name="student_loan" value="sl_old" /> <label>
+ If you left a course of Higher Education before last 6 April and
+ received your first Student Loan instalment on or after 1
+ September 1998 and you have not fully repaid your Student Loan,
+ then check box.</label>
+ </div>
+ <div class="radio">
+ <input type="radio" name="student_loan" value="sl_new" /> <label>
+ New student loan scheme.</label>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div id="current_circs" class="form-group">
+ <label class="col-xs-3 control-label">Your present circumstances</label>
+ <div class="col-xs-9">
+ <div class="radio">
+ <input type="radio" name="current_circs" value="cc_first"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The present circumstances information is required" />
+ <label> This is my first job since last 6 April and I have not been
+ receiving taxable Jobseeker's Allowance or taxable Incapacity
+ Benefit or a state or occupational pension.</label>
+ </div>
+ <div class="radio">
+ <input type="radio" name="current_circs" value="cc_only" /> <label>
+ This is now my only job, but since last 6 April I have had another
+ job, or have received taxable Jobseeker's Allowance or Incapacity
+ Benefit. I do not receive a state or occupational pension.</label>
+ </div>
+ <div class="cc_detail panel panel-info collapse">
+ <div class="panel-heading">
+ <h3 class="panel-title">P45 Details</h3>
+ </div>
+ <div class="panel-body">
+ <div id="left_date" class="form-group">
+ <label class="col-xs-3 control-label">Date left previous employment</label>
+ <div class="col-xs-3 date">
+ <input type="text" class="form-control" id="dateleft"
+ name="left_date" placeholder="DD-MM-YYYY"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The date of leaving previous job is required"
+ data-fv-date="true" data-fv-date-format="DD-MM-YYYY"
+ data-fv-date-message="The date of certification of details is not valid" />
+ <span class="input-group-addon add-on"><span
+ class="icon-calendar"></span></span>
+ </div>
+ </div>
+ </div>
+ <div id="p45-avail" class="form-group">
+ <label class="col-xs-3 control-label">Did your previous employer
+ give you a P45?</label>
+ <div class="col-xs-3">
+ <select id="circs-p45" name="circs-p45-avail" default circs-p45-avail="0"
+ class="form-dropdown required form-p45-avail"
+ data-fv-row=".col-xs-6" data-fv-notempty="true"
+ data-fv-notempty-message="A P45 is required before startin a new job">
+
+ <option selected="" value=""></option>
+ <option value="yes">Yes - Please Supply ASAP</option>
+ <option value="no">No</option>
+ </select>
+ </div>
+ </div>
+ <div id="no_p45" class="form-group">
+ <label class="col-xs-3 control-label">If No are you waiting for
+ them to send it to you?</label>
+ <div class="col-xs-3">
+ <select id="circs-no-p45" name="circs-no-p45" default circs-no-p45="0"
+ class="form-dropdown required form-p45-avail"
+ data-fv-row=".col-xs-6" data-fv-notempty="false"
+ data-fv-notempty-message="The country is required">
+
+ <option selected="" value=""></option>
+ <option value="yes">Yes - Please Supply ASAP</option>
+ <option value="no">No</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="radio">
+ <input type="radio" name="current_circs" value="cc_other" /> <label>
+ I have another job or receive a state or occupational pension.</label>
+ </div>
+ </div>
+ </div>
+
+ <div id="signed_sig" class="form-group">
+ <label class="col-xs-3 control-label">Signature</label>
+ <div class="col-xs-6 sigPad" id="linear" style="width: 404px;">
+ <ul class="sigNav">
+ <li class="clearButton"><a href="#clear">Clear</a></li>
+ </ul>
+ <div class="sig sigWrapper" style="height: auto;">
+ <div class="typed"></div>
+ <canvas class="pad" width="400" height="250"></canvas>
+ <input type="hidden" name="output" class="output">
+ </div>
+ </div>
+ </div>
+
+ <div id="signed_date" class="form-group">
+ <label class="col-xs-3 control-label">Signing Date</label>
+ <div class="col-xs-3 date">
+ <input type="text" class="form-control" id="datesigned"
+ name="signed_date" placeholder="DD-MM-YYYY"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The date of certification of details is required"
+
+ data-fv-date="true"
+ data-fv-date-format="DD-MM-YYYY"
+ data-fv-date-message="The date of certification of details is not valid" />
+ <span class="input-group-addon add-on"><span class="icon-calendar"></span></span>
+ </div>
+ </div>
+
+ <div id="signed_name" class="form-group">
+ <label class="col-xs-3 control-label">Signing name</label>
+ <div class="col-xs-3">
+ <input type="text" class="form-control" name="sig_first" placeholder="First name"
+ data-fv-row=".col-xs-3"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The signed first name is required" />
+ </div>
+ <div class="col-xs-3">
+ <input type="text" class="form-control" name="sig_last" placeholder="Last name"
+ data-fv-row=".col-xs-3"
+ data-fv-notempty="true"
+ data-fv-notempty-message="The signed last name is required" />
+ </div>
+ </div>
+
+ <div class="form-group">
+ <div class="col-xs-9 col-xs-offset-3">
+ <button type="submit" class="btn btn-primary" name="signup"
+ value="Sign up">Submit</button>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form> \ No newline at end of file
diff --git a/templates/employment_old.tpl b/templates/employment_old.tpl
new file mode 100755
index 0000000..485f3ca
--- /dev/null
+++ b/templates/employment_old.tpl
@@ -0,0 +1,372 @@
+<form accept-charset="utf-8" id="form_employment" name="form_employment" method="post" action="process.php?for=employment" class="form" novalidate="true">
+ <input type="hidden" value="form_employment" name="formID">
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+ <ul class="form-section page-section">
+ <li data-type="control_head" class="form-input-wide" id="cid_1">
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Employee Details
+ </h3>
+ </div>
+ </div>
+ </li>
+ <li id="id_18" data-type="control_text" class="form-line">
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p><span style="color:#ff0000;"><strong>This form must be completed in full for work to commence and wages to be issued.</strong></span></p>
+ </div>
+ </div>
+ </li>
+ <li id="id_3" data-type="control_fullname" class="form-line required" data-toggle="tooltip" data-placement="top" title="Please provide your full name including any middle name">
+ <label for="input_3" id="label_3" class="form-label form-label-left form-label-auto">
+ Full Name
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_3">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="prefix_3" size="4" name="q3_name[prefix]" class="form-textbox">
+ <label style="min-height: 13px;" id="sublabel_prefix" for="prefix_3" class="form-sub-label"> Prefix </label>
+ </span>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="first_3" name="q3_name[first]" size="10" class="form-textbox validate[required]">
+ <label style="min-height: 13px;" id="sublabel_first" for="first_3" class="form-sub-label"> First Name </label>
+ </span>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="middle_3" name="q3_name[middle]" size="10" class="form-textbox">
+ <label style="min-height: 13px;" id="sublabel_middle" for="middle_3" class="form-sub-label"> Middle Name </label>
+ </span>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="last_3" name="q3_name[last]" size="15" class="form-textbox validate[required]">
+ <label style="min-height: 13px;" id="sublabel_last" for="last_3" class="form-sub-label"> Last Name </label>
+ </span>
+ </div>
+ </li>
+ <li id="id_4" class="form-line required" data-toggle="tooltip" data-placement="top" title="National insurance number should be 2 letters, 6 numbers, 1 letter. You will not be paid if this number is incorrect.">
+ <label for="input_4" id="label_4" class="form-label form-label-left form-label-auto">
+ National Insurance No.
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_4">
+ <input type="text" maxlength="9" value="" size="15" name="q4_nationalInsurance4" id="input_4" data-type="input-textbox" class=" form-textbox validate[required, AlphaNumeric]" placeholder="AA123456C">
+ </div>
+ </li>
+ <li id="id_19" class="form-line">
+ <label for="input_19" id="label_19" class="form-label form-label-left form-label-auto"> SIA License Number </label>
+ <div class="form-input required" id="cid_19">
+ <input type="text" value="" size="20" name="q19_siaLicense19" id="input_19" data-type="input-textbox" class=" form-textbox">
+ </div>
+ </li>
+ <li id="id_22" class="form-line" data-toggle="tooltip" data-placement="top" title="Use this box if you have second SIA license such as CCTV">
+ <label for="input_22" id="label_22" class="form-label form-label-left form-label-auto"> 2nd SIA License Number </label>
+ <div class="form-input required" id="cid_22">
+ <input type="text" value="" size="20" name="q22_2ndSia" id="input_22" data-type="input-textbox" class=" form-textbox">
+ </div>
+ </li>
+ <li id="id_5" data-type="control_address" class="form-line required">
+ <label for="input_5" id="label_5" class="form-label form-label-left form-label-auto">
+ Address
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_5">
+ <table cellspacing="0" cellpadding="0" border="0" class="form-address-table" undefined="" summary="">
+ <tbody><tr>
+ <td colspan="2">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="input_5_addr_line1" name="q5_address[addr_line1]" class="form-textbox validate[required] form-address-line">
+ <label style="min-height: 13px;" id="sublabel_5_addr_line1" for="input_5_addr_line1" class="form-sub-label"> Street Address </label>
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" size="46" id="input_5_addr_line2" name="q5_address[addr_line2]" class="form-textbox form-address-line">
+ <label style="min-height: 13px;" id="sublabel_5_addr_line2" for="input_5_addr_line2" class="form-sub-label"> Street Address Line 2 </label>
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td width="50%">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" size="21" id="input_5_city" name="q5_address[city]" class="form-textbox validate[required] form-address-city">
+ <label style="min-height: 13px;" id="sublabel_5_city" for="input_5_city" class="form-sub-label"> City / Town </label>
+ </span>
+ </td>
+ <td>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" size="22" id="input_5_state" name="q5_address[state]" class="form-textbox validate[required] form-address-state">
+ <label style="min-height: 13px;" id="sublabel_5_state" for="input_5_state" class="form-sub-label"> County </label>
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td width="50%">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" size="10" id="input_5_postal" name="q5_address[postal]" class="form-textbox validate[required] form-address-postal">
+ <label style="min-height: 13px;" id="sublabel_5_postal" for="input_5_postal" class="form-sub-label"> Post Code </label>
+ </span>
+ </td>
+ <td>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <select id="input_5_country" name="q5_address[country]" defaultcountry="0" class="form-dropdown validate[required] form-address-country">
+ <option selected="" value=""> Please Select </option>
+ <option value="England"> England </option>
+ <option value="Scotland"> Scotland </option>
+ <option value="Wales"> Wales </option>
+ <option value="Northern Ireland"> Northern Ireland </option>
+ <option value="Isle of Man"> Isle of Man </option>
+ <option value="Guernsey"> Guernsey </option>
+ <option value="Jersey"> Jersey </option>
+ <option value="Gibraltar"> Gibraltar </option>
+ <option value="United Kingdom"> United Kingdom </option>
+ <option value="other"> Other </option>
+ </select>
+ <label style="min-height: 13px;" id="sublabel_5_country" for="input_5_country" class="form-sub-label"> Country </label>
+ </span>
+ </td>
+ </tr>
+ </tbody></table>
+ </div>
+ </li>
+ <li id="id_6" data-type="control_email" class="form-line">
+ <label for="input_6" id="label_6" class="form-label form-label-left form-label-auto"> E-mail </label>
+ <div class="form-input required" id="cid_6">
+ <input type="email" value="" size="50" name="q6_email" id="input_6" class=" form-textbox validate[Email]">
+ </div>
+ </li>
+ <li id="id_9" data-type="control_widget" class="form-line required">
+ <label for="input_9" id="label_9" class="form-label form-label-left form-label-auto">
+ Date Of Birth
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_9">
+ <div style="width:100%; text-align:Left;">
+ <div class="widget-inputs-wrapper">
+ <input type="hidden" value="" name="q9_dateOf9" class="form-hidden form-widget widget-required " id="input_9">
+ </div>
+ </div>
+ </div>
+ </li>
+ <li id="id_8" data-type="control_radio" class="form-line required">
+ <label for="input_8" id="label_8" class="form-label form-label-left form-label-auto">
+ Gender
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_8">
+ <div class="form-single-column">
+ <span style="clear:left;" class="form-radio-item">
+ <span class="dragger-item">
+ </span>
+ <input type="radio" value="Male" name="q8_gender" id="input_8_0" class="form-radio validate[required]">
+ <label for="input_8_0" id="label_input_8_0"> Male </label>
+ </span>
+ <span style="clear:left;" class="form-radio-item">
+ <span class="dragger-item">
+ </span>
+ <input type="radio" value="Female" name="q8_gender" id="input_8_1" class="form-radio validate[required]">
+ <label for="input_8_1" id="label_input_8_1"> Female </label>
+ </span>
+ </div>
+ </div>
+ </li>
+ <li id="id_23" class="form-line required">
+ <label for="input_23" id="label_23" class="form-label form-label-left form-label-auto">
+ Bank Name
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_23">
+ <input type="text" value="" size="20" name="q23_bankName" id="input_23" data-type="input-textbox" class=" form-textbox validate[required]">
+ </div>
+ </li>
+ <li id="id_24" class="form-line required">
+ <label for="input_24" id="label_24" class="form-label form-label-left form-label-auto">
+ Sort Code
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_24">
+ <input type="text" maxlength="6" value="" size="20" name="q24_sortCode" id="input_24" data-type="input-textbox" class=" form-textbox validate[required]">
+ </div>
+ </li>
+ <li id="id_25" class="form-line required">
+ <label for="input_25" id="label_25" class="form-label form-label-left form-label-auto">
+ Account Number
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_25">
+ <input type="text" maxlength="8" value="" size="20" name="q25_accountNumber" id="input_25" data-type="input-textbox" class=" form-textbox validate[required]">
+ </div>
+ </li>
+ <li id="id_11" data-type="control_checkbox" class="form-line">
+ <label for="input_11" id="label_11" class="form-label form-label-left form-label-auto"> Student Loan </label>
+ <div class="form-input required" id="cid_11">
+ <div class="form-single-column">
+ <span style="clear:left;" class="form-checkbox-item">
+ <span class="dragger-item">
+ </span>
+ <input type="checkbox" value="If you left a course of Higher Education before last 6 April and received your first Student Loan instalment on or after 1 September 1998 and you have not fully repaid your Student Loan, then check box." name="q11_studentLoan[]" id="input_11_0" class="form-checkbox">
+ <label for="input_11_0" id="label_input_11_0"> If you left a course of Higher Education before last 6 April and received your first Student Loan instalment on or after 1 September 1998 and you have not fully repaid your Student Loan, then check box. </label>
+ </span>
+ </div>
+ </div>
+ </li>
+ <li id="id_12" data-type="control_radio" class="form-line required">
+ <label for="input_12" id="label_12" class="form-label form-label-left form-label-auto">
+ Your present circumstances
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_12">
+ <div class="form-single-column">
+ <span style="clear:left;" class="form-radio-item">
+ <span class="dragger-item">
+ </span>
+ <input type="radio" value="This is my first job since last 6 April and I have not been receiving taxable Jobseeker's Allowance or taxable Incapacity Benefit or a state or occupational pension. 1" name="q12_yourPresent" id="input_12_0" class="form-radio validate[required]">
+ <label for="input_12_0" id="label_input_12_0"> This is my first job since last 6 April and I have not been receiving taxable Jobseeker's Allowance or taxable Incapacity Benefit or a state or occupational pension. 1 </label>
+ </span>
+ <span style="clear:left;" class="form-radio-item">
+ <span class="dragger-item">
+ </span>
+ <input type="radio" value="This is now my only job, but since last 6 April I have had another job, or have received taxable Jobseeker's Allowance or Incapacity Benefit. I do not receive a state or occupational pension." name="q12_yourPresent" id="input_12_1" class="form-radio validate[required]">
+ <label for="input_12_1" id="label_input_12_1"> This is now my only job, but since last 6 April I have had another job, or have received taxable Jobseeker's Allowance or Incapacity Benefit. I do not receive a state or occupational pension. </label>
+ </span>
+ <span style="clear:left;" class="form-radio-item">
+ <span class="dragger-item">
+ </span>
+ <input type="radio" value="I have another job or receive a state or occupational pension." name="q12_yourPresent" id="input_12_2" class="form-radio validate[required]">
+ <label for="input_12_2" id="label_input_12_2"> I have another job or receive a state or occupational pension. </label>
+ </span>
+ </div>
+ </div>
+ </li>
+ <li id="id_26" data-type="control_widget" style="display:none;" class="form-line form-field-hidden">
+ <label for="input_26" id="label_26" class="form-label form-label-left form-label-auto"> Date left previous employment </label>
+ <div class="form-input required" id="cid_26">
+ <div style="width:100%; text-align:Left;">
+ <div class="widget-inputs-wrapper">
+ <input type="hidden" value="" name="q26_dateLeft" class="form-hidden form-widget " id="input_26">
+ </div>
+ </div>
+ </div>
+ </li>
+ <li id="id_27" data-type="control_dropdown" style="display:none;" class="form-line form-field-hidden">
+ <label for="input_27" id="label_27" class="form-label form-label-left form-label-auto"> Did your previous employer give you a P45? </label>
+ <div class="form-input required" id="cid_27">
+ <select name="q27_didYour27" id="input_27" style="width:150px" class="form-dropdown">
+ <option value=""> </option>
+ <option value="Yes - Please Supply ASAP"> Yes - Please Supply ASAP </option>
+ <option value="No"> No </option>
+ </select>
+ </div>
+ </li>
+ <li id="id_28" data-type="control_dropdown" style="display:none;" class="form-line form-field-hidden">
+ <label for="input_28" id="label_28" class="form-label form-label-left form-label-auto"> If No are you waiting for them to send it to you? </label>
+ <div class="form-input required" id="cid_28">
+ <select name="q28_ifNo28" id="input_28" style="width:150px" class="form-dropdown">
+ <option value=""> </option>
+ <option value="Yes - Please send once received "> Yes - Please send once received </option>
+ <option value="No"> No </option>
+ </select>
+ </div>
+ </li>
+ <li id="id_15" data-type="control_signature" class="form-line">
+ <label for="input_15" id="label_15" class="form-label form-label-left form-label-auto"> Signature </label>
+ <div class="form-input required" id="cid_15">
+ <div style="width:302px;height:202px;" class="signature-pad-wrapper" id="signature_pad_15">
+ <!--[if IE 7]>
+ <script src="/js/vendor/json2.js"></script>
+ <![endif]-->
+ <div style="width:302px;height:202px;" class="signature-line signature-wrapper">
+ <div class="pad" data-required="false" data-id="15" data-height="200" data-width="300" id="sig_pad_15" style="width: 300px; height: 200px;">
+ <div style="padding:0 !important; margin:0 !important;width: 100% !important; height: 0 !important; -ms-touch-action: none;margin-top:-1em !important; margin-bottom:1em !important;"></div><canvas style="margin: 0px; padding: 0px; border: medium none; height: 200px; width: 300px;" class="jSignature" width="300" height="200"></canvas><div style="padding:0 !important; margin:0 !important;width: 100% !important; height: 0 !important; -ms-touch-action: none;margin-top:-1.5em !important; margin-bottom:1.5em !important; position: relative;"></div></div>
+ <input type="hidden" id="sig_pad_15" class="output4" name="q15_signature">
+ </div>
+ <span class="clear-pad-btn clear-pad">
+ Clear
+ </span>
+ </div>
+ <script>
+ window.signatureForm = true
+ </script>
+ </div>
+ </li>
+ <li id="id_16" data-type="control_widget" class="form-line required">
+ <label for="input_16" id="label_16" class="form-label form-label-left form-label-auto">
+ Signing Date
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_16">
+ <div style="width:100%; text-align:Left;">
+ <div class="widget-inputs-wrapper">
+ <input type="hidden" value="" name="q16_signingDate" class="form-hidden form-widget widget-required " id="input_16">
+ </div>
+ <script>
+ </script>
+ </div>
+ </div>
+ </li>
+ <li id="id_17" data-type="control_fullname" class="form-line required">
+ <label for="input_17" id="label_17" class="form-label form-label-left form-label-auto">
+ Signing Name
+ <span class="form-required">
+ *
+ </span>
+ </label>
+ <div class="form-input required" id="cid_17">
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="first_17" name="q17_signingName[first]" size="10" class="form-textbox validate[required]">
+ <label style="min-height: 13px;" id="sublabel_first" for="first_17" class="form-sub-label"> First Name </label>
+ </span>
+ <span style="vertical-align: top" class="form-sub-label-container">
+ <input type="text" id="last_17" name="q17_signingName[last]" size="15" class="form-textbox validate[required]">
+ <label style="min-height: 13px;" id="sublabel_last" for="last_17" class="form-sub-label"> Last Name </label>
+ </span>
+ </div>
+ </li>
+ <li id="id_21" data-type="control_widget" class="form-line">
+ <label for="input_21" id="label_21" class="form-label form-label-left form-label-auto"> Portrait Photo </label>
+ <div class="form-input required" id="cid_21">
+ <div style="width:100%; text-align:Left;">
+ <div class="widget-inputs-wrapper">
+ <input type="hidden" value="" name="q21_portraitPhoto" class="form-hidden form-widget " id="input_21">
+ </div>
+
+ </div>
+ </div>
+ </li>
+ <li id="id_2" data-type="control_button" class="form-line">
+ <div class="form-input-wide" id="cid_2">
+ <div class="form-buttons-wrapper" style="margin-left:156px">
+ <button class="form-submit-button" type="submit" id="input_2">
+ Submit
+ </button>
+ </div>
+ </li>
+ <li style="display:none">
+ Should be Empty:
+ <input type="text" value="" name="website">
+ </li>
+ </ul>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form> \ No newline at end of file
diff --git a/templates/form_DSInspection.tpl b/templates/form_DSInspection.tpl
new file mode 100755
index 0000000..e856b8e
--- /dev/null
+++ b/templates/form_DSInspection.tpl
@@ -0,0 +1,223 @@
+{strip}
+<div class="form contact">
+ <div class="header">
+ <h1>Monthly Door Supervisor Inspection Report</h1>
+ </div>
+
+ <div class="body">
+ <form id="testForm" class="form-horizontal" method="post" novalidate="novalidate">
+ <fieldset>
+ <input id="sig1" name="sig1" type="hidden" value="test1" />
+ <input id="sig2" name="sig2" type="hidden" value="test2" />
+ <!-- Text input-->
+ <div class="col-md-6 col-sm-12">
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="DoorSupervisor">Door Supervisor</label>
+ <div class="col-sm-6">
+ <input id="DoorSupervisor" name="DoorSupervisor" placeholder="-----" class="form-control input-md" type="text">
+ </div>
+ <div class="col-sm-2">
+ <button type="button" class="btn btn-info" data-toggle="modal" data-target="#DSSig">Signature</button>
+ <!-- Modal -->
+ <div id="DSSig" class="modal fade" role="dialog">
+ <div class="modal-dialog">
+
+ <!-- Modal content-->
+ <div id="sigpad1" class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
+ <h4 class="modal-title">Door Supervisor Signature</h4>
+ </div>
+ <div class="modal-body">
+ <canvas></canvas>
+ </div>
+ <div class="modal-footer">
+ <div class="description">Sign above</div>
+ <button id="DSSig-clear" class="button clear" type="button">Clear</button>
+ <button id="DSSig-save" class="button save" type="button">Save</button>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Location">Site/Venue</label>
+ <div class="col-sm-8">
+ <input id="Location" name="Location" placeholder="-----" class="form-control input-md" type="text">
+ </div>
+ </div>
+ </div>
+ <div class="col-md-6 col-sm-12">
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Supervisor">Supervisor</label>
+ <div class="col-sm-6">
+ <input id="Supervisor" name="Supervisor" placeholder="-----" class="form-control input-md" type="text">
+ </div>
+ <div class="col-sm-2">
+ <button type="button" class="btn btn-info" data-toggle="modal" data-target="#SSig">Signature</button>
+ <!-- Modal -->
+ <div id="SSig" class="modal fade" role="dialog">
+ <div class="modal-dialog">
+
+ <!-- Modal content-->
+ <div id="sigpad2" class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
+ <h4 class="modal-title">Supervisor Signature</h4>
+ </div>
+ <div class="modal-body">
+ <canvas></canvas>
+ </div>
+ <div class="modal-footer">
+ <div class="description">Sign above</div>
+ <button id="SSig-clear" class="button clear" type="button">Clear</button>
+ <button id="SSig-save" class="button save" type="button">Save</button>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Date">Date</label>
+ <div class="col-sm-8">
+ <input id="Date" name="Date" placeholder="-----" class="form-control input-md" type="text">
+ </div>
+ </div>
+ </div>
+ <div class="clear"></div>
+ <!-- Body Left -->
+ <div class="col-md-6 col-sm-12">
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Uniform">Uniform</label>
+ <div class="col-sm-8">
+ <input id="Uniform" name="Uniform" placeholder="-----" class="form-control input-md" type="text">
+ </div>
+ </div>
+ <!-- Select Badge -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Badge">I.D. Badge</label>
+ <div class="col-sm-8">
+ <select id="Badge" name="Badge" class="form-control">
+ <option value="-">-</option>
+ <option value="1">Yes</option>
+ <option value="0">No</option>
+ </select>
+ </div>
+ </div>
+ <!-- Select SIA Badge -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="SIAB">SIA Badge</label>
+ <div class="col-sm-8">
+ <select id="SIAB" name="SIAB" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">Yes</option>
+ <option value="0">No</option>
+ </select>
+ </div>
+ </div>
+ <!-- Select Alertness -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Alertness">Alertness</label>
+ <div class="col-sm-8">
+ <select id="Alertness" name="Alertness" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">1 Bad</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4 Excellent</option>
+ </select>
+ </div>
+ </div>
+ <!-- Select Accuracy -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Accuracy">Site / Venue Log & Timesheets</label>
+ <div class="col-sm-8">
+ <select id="Accuracy" name="Accuracy" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">1 Bad</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4 Excellent</option>
+ </select>
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Assign">Assignment Instructions</label>
+ <div class="col-sm-8">
+ <input id="Assign" name="Assign" placeholder="placeholder" class="form-control input-md" type="text">
+ </div>
+ </div>
+
+ </div>
+ <!-- Body Right -->
+ <div class="col-md-6 col-sm-12">
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Shortage">Site / Venue Box:<br />(Record any forms missing or those which need replenishing)</label>
+ <div class="col-sm-8">
+ <textarea class="form-control" id="Shortage" name="Shortage" rows="5">Site Shortages</textarea>
+ </div>
+ </div>
+ <!-- Select Knowledge -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Knowledge">Site / Venue Knowledge</label>
+ <div class="col-sm-8">
+ <select id="Knowledge" name="Knowledge" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">1 Bad</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4 Excellent</option>
+ </select>
+ </div>
+ </div>
+ <!-- Select Handbook -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Handbook">Employee Handbook</label>
+ <div class="col-sm-8">
+ <select id="Handbook" name="Handbook" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">Yes</option>
+ <option value="0">No</option>
+ </select>
+ </div>
+ </div>
+ <!-- Select Assessment -->
+ <div class="form-group">
+ <label class="col-sm-4 control-label" for="Assessment">Risk Assessment</label>
+ <div class="col-sm-8">
+ <select id="Assessment" name="Assessment" class="form-control">
+ <option value="-1">-</option>
+ <option value="1">Yes</option>
+ <option value="0">No</option>
+ </select>
+ </div>
+ </div>
+
+ </div>
+ <div class="clear"></div>
+ <!-- Textarea -->
+ <div class="col-sm-12">
+ <div class="form-group">
+ <label class="col-sm-2 control-label" for="textarea">Potential Hazards</label>
+ <div class="col-sm-10">
+ <textarea class="form-control" id="Hazards" name="Hazards" rows="10">Record Identified Hazards</textarea>
+ </div>
+ </div>
+ </div>
+ <!-- Button (Double) -->
+ <div class="form-group">
+ <div class="col-md-2 col-sm-3 col-xs-12">
+ <input class="btn btn-primary" type="submit" value="Save" name="fSaveForm">
+ <input class="btn pull-right" type="submit" value="Cancel" name="fCancel" formnovalidate>
+ </div>
+ </div>
+ </fieldset>
+ </form>
+ </div><!-- end .body -->
+</div><!-- end .form_page -->
+{/strip}
+
diff --git a/templates/incident.tpl b/templates/incident.tpl
new file mode 100755
index 0000000..81ad0b3
--- /dev/null
+++ b/templates/incident.tpl
@@ -0,0 +1,41 @@
+{strip}
+<form id="employmentForm" class="form-horizontal" method="post" action="process.php?form=incident"
+ data-fv-framework="bootstrap"
+ data-fv-icon-valid="icon-tick"
+ data-fv-icon-invalid="icon-cross"
+ data-fv-icon-validating="icon-recycle">
+
+ <input type="hidden" value="form_incident" name="formID" />
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+ <div class="form-all col-lg-8 col-md-10 col-sm-12 col-xs-12">
+
+ <div class="form-header-group">
+ <div class="header-text httal htvam">
+ <h3 class="form-header" id="header_1">
+ Incident Report
+ </h3>
+ </div>
+ </div>
+
+ <div class="form-input-wide" id="cid_18">
+ <div class="form-html" id="text_18">
+ <p>
+ <span style="color: #ff0000;"><strong>OK14A Rev: 1 Date: 04/2014 Pages: 1 of 1</strong></span>
+ </p>
+ </div>
+ </div>
+
+ {foreach from=$formInfo key=i item=item}
+ {include file="bitpackage:form/`$item['form_template']`.tpl" name=$item['cross_ref_title'] value1=$item['xkey'] value2=$item['xkey_ext'] value3=$item['xdata']}
+ {/foreach}
+
+ <div class="form-group">
+ <div class="col-xs-9 col-xs-offset-3">
+ <button type="submit" class="btn btn-primary" name="signup"
+ value="Sign up">Submit</button>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-2 col-md-1 hidden-sm hidden-xs">&nbsp;</div>
+</form>
+{/strip} \ No newline at end of file
diff --git a/templates/index.php b/templates/index.php
index 3e305fe..3e305fe 100644..100755
--- a/templates/index.php
+++ b/templates/index.php
diff --git a/templates/list.tpl b/templates/list.tpl
index 8bf772b..430ad80 100644..100755
--- a/templates/list.tpl
+++ b/templates/list.tpl
@@ -11,25 +11,15 @@
{include file="bitpackage:contact/display_list_header.tpl"}
<div class="table-responsive">
- <table class="table data clear">
+ <table class="col-xs-12">
<caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
<tr>
- <th class="width2p">{booticon ipackage="icons" iname="icon-link" iexplain="sort by"}</th>
- <th>{smartlink ititle="Contract" isort="xkey" ihash=$listInfo.ihash}</th>
- {* {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
- <th>{smartlink ititle="Forename" isort="forename" ihash=$listInfo.ihash}</th>
- <th>{smartlink ititle="Surname" isort="surname" ihash=$listInfo.ihash}</th>
- {/if} *}
- <th>{smartlink ititle="Title" isort="title" idefault=1 iorder=desc ihash=$listInfo.ihash}</th>
- {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
- <th>{smartlink ititle="Address" isort="street" ihash=$listInfo.ihash}</th>
- <th>{smartlink ititle="Town" isort="town" ihash=$listInfo.ihash}</th>
- {/if}
- <th>{smartlink ititle="Location" isort="location" ihash=$listInfo.ihash}</th>
- <th>{smartlink ititle="Postcode" isort="postcode" ihash=$listInfo.ihash}</th>
+ <th class="width2p">{smartlink ititle="Contract" isort="xkey" ihash=$listInfo.ihash|default:''}</th>
+ <th>{smartlink ititle="Title" isort="title" idefault=1 iorder=desc ihash=$listInfo.ihash|default:''}</th>
+ <th>{smartlink ititle="Address" isort="street" ihash=$listInfo.ihash|default:''}</th>
</tr>
{section name=content loop=$listcontacts}
- <tr class="{cycle values='odd,even'}">
+ <tr class="first">
<td class="alignright">
<a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}">
{$listcontacts[content].xkey}
@@ -40,33 +30,23 @@
{$listcontacts[content].title}
</a>
</td>
- <td>{$item.content_status_name}</td>
- {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
- <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') }
- {$listcontacts[content].house},&nbsp;{/if}
- {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') }
- {$listcontacts[content].add1},&nbsp;{/if}
- {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') }
- {$listcontacts[content].add2},&nbsp;{/if}
- {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') }
- {$listcontacts[content].add3},&nbsp;{/if}
- {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') }
- {$listcontacts[content].add4},&nbsp;{/if}</td>
- {/if}
- <td>{if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
- {$listcontacts[content].town}{/if}</td>
- <td>{if isset($listcontacts[content].grideast) }
- &lt;{$listcontacts[content].grideast|escape}&nbsp;,&nbsp;{$listcontacts[content].gridnorth|escape}&gt;&nbsp;{/if}
- {if $listcontacts[content].y_coordinate and $listcontacts[content].x_coordinate }
- &nbsp;Exact Cords:&lt;{$listcontacts[content].y_coordinate|escape}&nbsp;,&nbsp;{$listcontacts[content].x_coordinate|escape}&gt;&nbsp;
- {/if}
- </td>
- <td>{$listcontacts[content].postcode}</td>
+ <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') }
+ {$listcontacts[content].house},&nbsp;{/if}
+ {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') }
+ {$listcontacts[content].add1},&nbsp;{/if}
+ {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') }
+ {$listcontacts[content].add2},&nbsp;{/if}
+ {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') }
+ {$listcontacts[content].add3},&nbsp;{/if}
+ {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') }
+ {$listcontacts[content].add4},&nbsp;{/if}
+ {if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
+ {$listcontacts[content].town},&nbsp;{/if}
+ {$listcontacts[content].postcode}</td>
</tr>
<tr class="second">
- <td>{$item.display_link}</td>
- <td>{if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation}&nbsp;&nbsp;{/if}</td>
- <td>{assign var=content_type_guid value=$item.content_type_guid}{$gLibertySystem->getContentTypeName($content_type_guid)}</td>
+ <td>{$item.display_link|default:'Not Set'}</td>
+ <td>{assign var=content_type_guid value=$item.content_type_guid|default:'bitpage'}{$gLibertySystem->getContentTypeName($content_type_guid|default:'bitpage')}</td>
<td>
{tr}Refs{/tr}: {$listcontacts[content].refs|default:0}&nbsp;&nbsp;
{tr}Tasks{/tr}: {$listcontacts[content].tasks|default:0}&nbsp;&nbsp;
diff --git a/templates/list1.tpl b/templates/list1.tpl
index b9d08c4..b9d08c4 100644..100755
--- a/templates/list1.tpl
+++ b/templates/list1.tpl
diff --git a/templates/list2.tpl b/templates/list2.tpl
new file mode 100755
index 0000000..be00cde
--- /dev/null
+++ b/templates/list2.tpl
@@ -0,0 +1,91 @@
+{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_header2.tpl"}
+ <div class="table-responsive">
+ <table class="table data clear">
+ <caption>{tr}Available Content{/tr} <span class="total">[ {$listInfo.total_records} ]</span></caption>
+ <tr>
+ <th class="width2p">{booticon ipackage="icons" iname="icon-link" iexplain="sort by"}</th>
+ <th>{smartlink ititle="Contract" isort="xkey" ihash=$listInfo.ihash}</th>
+ {* {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
+ <th>{smartlink ititle="Forename" isort="forename" ihash=$listInfo.ihash}</th>
+ <th>{smartlink ititle="Surname" isort="surname" ihash=$listInfo.ihash}</th>
+ {/if} *}
+ <th>{smartlink ititle="Title" isort="title" idefault=1 iorder=desc ihash=$listInfo.ihash}</th>
+ {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
+ <th>{smartlink ititle="Address" isort="street" ihash=$listInfo.ihash}</th>
+ <th>{smartlink ititle="Town" isort="town" ihash=$listInfo.ihash}</th>
+ {/if}
+ <th>{smartlink ititle="Location" isort="location" ihash=$listInfo.ihash}</th>
+ <th>{smartlink ititle="Postcode" isort="postcode" ihash=$listInfo.ihash}</th>
+ </tr>
+ {section name=content loop=$listcontacts}
+ <tr class="{cycle values='odd,even'}">
+ <td class="alignright">
+ <a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}">
+ {$listcontacts[content].xkey}
+ </a>
+ </td>
+ <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>{$item.content_status_name}</td>
+ {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
+ <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') }
+ {$listcontacts[content].house},&nbsp;{/if}
+ {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') }
+ {$listcontacts[content].add1},&nbsp;{/if}
+ {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') }
+ {$listcontacts[content].add2},&nbsp;{/if}
+ {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') }
+ {$listcontacts[content].add3},&nbsp;{/if}
+ {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') }
+ {$listcontacts[content].add4},&nbsp;{/if}</td>
+ {/if}
+ <td>{if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
+ {$listcontacts[content].town}{/if}</td>
+ <td>{if isset($listcontacts[content].grideast) }
+ &lt;{$listcontacts[content].grideast|escape}&nbsp;,&nbsp;{$listcontacts[content].gridnorth|escape}&gt;&nbsp;{/if}
+ {if $listcontacts[content].y_coordinate and $listcontacts[content].x_coordinate }
+ &nbsp;Exact Cords:&lt;{$listcontacts[content].y_coordinate|escape}&nbsp;,&nbsp;{$listcontacts[content].x_coordinate|escape}&gt;&nbsp;
+ {/if}
+ </td>
+ <td>{$listcontacts[content].postcode}</td>
+ </tr>
+ <tr class="second">
+ <td>{$item.display_link}</td>
+ <td>{if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation}&nbsp;&nbsp;{/if}</td>
+ <td>{assign var=content_type_guid value=$item.content_type_guid}{$gLibertySystem->getContentTypeName($content_type_guid)}</td>
+ <td>
+ {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}
+ </td>
+ {if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
+ <td>{if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}{/if}</td>
+ <td>{if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}{/if}</td>
+ {/if}
+ </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}
diff --git a/templates/list_clients.tpl b/templates/list_clients.tpl
index 8c71a8a..8c71a8a 100644..100755
--- a/templates/list_clients.tpl
+++ b/templates/list_clients.tpl
diff --git a/templates/list_contact.tpl b/templates/list_contact.tpl
index 6d9ed21..156ffa1 100644..100755
--- a/templates/list_contact.tpl
+++ b/templates/list_contact.tpl
@@ -83,7 +83,7 @@
{if $checkboxes_on eq 'y'}
<tr><td colspan="16">
- <script language="Javascript" type="text/javascript">
+ <script>
<!--
// check / uncheck all.
// in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript.
@@ -103,7 +103,7 @@
{/if}
{* add here e.g. <option value="categorize">{tr}categorize{/tr}</option> *}
</select>
- <script language="Javascript" type="text/javascript">
+ <script>
<!--
// Fake js to allow the use of the <noscript> tag (so non-js-users kenn still submit)
//-->
diff --git a/templates/list_contact_type.tpl b/templates/list_contact_type.tpl
index b475b70..1800107 100644..100755
--- a/templates/list_contact_type.tpl
+++ b/templates/list_contact_type.tpl
@@ -1,4 +1,4 @@
-{if isset( $pageInfo.xref_type ) }
+{if isset( $gContent->mInfo.xref_type ) }
<div class="form-group">
<table>
<thead>
@@ -9,16 +9,16 @@
</tr>
</thead>
<tbody>
- {section name=xref loop=$pageInfo.xref_type}
+ {section name=xref loop=$gContent->mInfo.xref_type}
<tr class="{cycle values="even,odd"}" title="{$list[county].title|escape}">
<td>
- {$pageInfo.xref0[xref].source_title|escape}
+ {$gContent->mInfo.xref0[xref].source_title|escape}
</td>
- <td>
- {$pageInfo.xref0[xref].last_update_date|bit_short_date}
- </td>
<td>
- {smartlink ititle="Add additional contact types" ifile="add_xref.php" booticon="icon-page-add" content_id=$pageInfo.content_id}
+ {$gContent->mInfo.xref0[xref].last_update_date|bit_short_date}
+ </td>
+ <td>
+ {smartlink ititle="Add additional contact types" ifile="add_xref.php" booticon="icon-page-add" content_id=$gContent->mInfo.content_id}
</td>
</tr>
{/section}
diff --git a/templates/list_contacts.tpl b/templates/list_contacts.tpl
index 58472d8..02545fd 100644..100755
--- a/templates/list_contacts.tpl
+++ b/templates/list_contacts.tpl
@@ -83,7 +83,7 @@
{if $checkboxes_on eq 'y'}
<tr><td colspan="16">
- <script language="Javascript" type="text/javascript">
+ <script>
<!--
// check / uncheck all.
// in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript.
@@ -103,7 +103,7 @@
{/if}
{* add here e.g. <option value="categorize">{tr}categorize{/tr}</option> *}
</select>
- <script language="Javascript" type="text/javascript">
+ <script>
<!--
// Fake js to allow the use of the <noscript> tag (so non-js-users kenn still submit)
//-->
diff --git a/templates/list_contracts.tpl b/templates/list_contracts.tpl
index 6fc8ecb..1bfc040 100644..100755
--- a/templates/list_contracts.tpl
+++ b/templates/list_contracts.tpl
@@ -73,6 +73,6 @@
</div><!-- end .body -->
-{libertypagination}
+{pagination}
</div> {* end .admin *}
diff --git a/templates/list_ticket.tpl b/templates/list_ticket.tpl
index f794fe6..2368fac 100644..100755
--- a/templates/list_ticket.tpl
+++ b/templates/list_ticket.tpl
@@ -1,6 +1,6 @@
- {assign var=ticketscnt value=$pageInfo.tickets|@count}
+ {assign var=ticketscnt value=$gContent->mInfo.tickets|@count}
{jstab title="Ticket History ($ticketscnt)"}
{legend legend="Ticket History"}
<div class="form-group">
@@ -16,20 +16,20 @@
</tr>
</thead>
<tbody>
- {section name=ticket loop=$pageInfo.tickets}
- <tr class="{cycle values="even,odd"}" title="{$pageInfo.ticket[ticket].title|escape}">
+ {section name=ticket loop=$gContent->mInfo.tickets}
+ <tr class="{cycle values="even,odd"}" title="{$gContent->mInfo.ticket[ticket].title|escape}">
<td>
- {$pageInfo.tickets[ticket].ticket_ref|bit_long_date} - {$pageInfo.tickets[ticket].ticket_no}
+ {$gContent->mInfo.tickets[ticket].ticket_ref|bit_long_date} - {$gContent->mInfo.tickets[ticket].ticket_no}
</td>
<td>
- {$pageInfo.tickets[ticket].tags|escape}
+ {$gContent->mInfo.tickets[ticket].tags|escape}
</td>
<td>
<span class="actionicon">
- {smartlink ititle="View" ifile="view_ticket.php" booticon="icon-note-edit" ticket_id=$pageInfo.tickets[ticket].ticket_id}
+ {smartlink ititle="View" ifile="view_ticket.php" booticon="icon-note-edit" ticket_id=$gContent->mInfo.tickets[ticket].ticket_id}
</span>
- <label for="ev_{$pageInfo.tickets[ticket].ticket_no}">
- {$pageInfo.tickets[ticket].staff_id}
+ <label for="ev_{$gContent->mInfo.tickets[ticket].ticket_no}">
+ {$gContent->mInfo.tickets[ticket].staff_id}
</label>
</td>
</tr>
diff --git a/templates/list_xref.tpl b/templates/list_xref.tpl
index edae52c..794f3ad 100644..100755
--- a/templates/list_xref.tpl
+++ b/templates/list_xref.tpl
@@ -1,5 +1,5 @@
- {assign var=xrefcnt value=$pageInfo.xref|@count}
+ {assign var=xrefcnt value=$gContent->mInfo.xref|@count}
{jstab title="Cross reference ($xrefcnt)"}
{legend legend="Information References"}
<div class="form-group">
@@ -19,34 +19,34 @@
</tr>
</thead>
<tbody>
- {section name=xref loop=$pageInfo.xref}
+ {section name=xref loop=$gContent->mInfo.xref}
<tr class="{cycle values="even,odd"}" title="{$list[county].title|escape}">
<td>
- {$pageInfo.xref[xref].source_title|escape}
+ {$gContent->mInfo.xref[xref].source_title|escape}
</td>
<td>
- {$pageInfo.xref[xref].data|escape}
+ {$gContent->mInfo.xref[xref].data|escape}
</td>
<td>
- {if isset($pageInfo.xref[xref].usn) && ($pageInfo.xref[xref].usn <> '') }
- {$pageInfo.xref[xref].usn|escape}
- {smartlink ititle="Link to" ifile="../property/display_property.php" booticon="icon-note-edit" property_id=$pageInfo.xref[xref].usn}
+ {if isset($gContent->mInfo.xref[xref].usn) && ($gContent->mInfo.xref[xref].usn <> '') }
+ {$gContent->mInfo.xref[xref].usn|escape}
+ {smartlink ititle="Link to" ifile="../property/display_property.php" booticon="icon-note-edit" property_id=$gContent->mInfo.xref[xref].usn}
{/if}
</td>
{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
- <td>
- {$pageInfo.xref[xref].last_update_date|bit_long_date}
- </td>
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
{/if}
<td>
<span class="actionicon">
- {smartlink ititle="View" ifile="view_xref.php" booticon="icon-note-go" source=$pageInfo.xref[xref].source xref=$pageInfo.xref[xref].cross_reference}
+ {smartlink ititle="View" ifile="view_xref.php" booticon="icon-note-go" source=$gContent->mInfo.xref[xref].source xref=$gContent->mInfo.xref[xref].cross_reference}
</span>
<span class="actionicon">
- {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" source=$pageInfo.xref[xref].source xref=$pageInfo.xref[xref].cross_reference} </span>
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" source=$gContent->mInfo.xref[xref].source xref=$gContent->mInfo.xref[xref].cross_reference} </span>
</span>
- <label for="ev_{$pageInfo.xref[xref].cross_reference}">
- {$pageInfo.xref[xref].cross_reference}
+ <label for="ev_{$gContent->mInfo.xref[xref].cross_reference}">
+ {$gContent->mInfo.xref[xref].cross_reference}
</label>
</td>
</tr>
diff --git a/templates/list_xref_generic.tpl b/templates/list_xref_generic.tpl
index 355182b..dcd9f40 100644..100755
--- a/templates/list_xref_generic.tpl
+++ b/templates/list_xref_generic.tpl
@@ -1,8 +1,8 @@
-{* if isset( $pageInfo.$source ) *}
- {assign var=xrefcnt value=$pageInfo.$source|@count}
+{* if isset( $gContent->mInfo.$source ) *}
+ {assign var=xrefcnt value=$gContent->mInfo.$source|default:[]|@count}
{jstab title="$source_title ($xrefcnt)"}
{legend legend=$source_title}
- <div class="form-group">
+ <div class="form-group table-responsive">
<table>
<thead>
<tr>
@@ -23,59 +23,9 @@
</tr>
</thead>
<tbody>
- {section name=xref loop=$pageInfo.$source}
- <tr class="{cycle values="even,odd"}" title="{$pageInfo.title|escape}">
- <td>
- {$pageInfo.$source[xref].source_title|escape}
- </td>
- <td>
- {if isset($pageInfo.$source[xref].xref) && $pageInfo.$source[xref].xref <> '' && $pageInfo.$source[xref].xref > 100 }
- {$pageInfo.$source[xref].xref|escape}
- {smartlink ititle="Link to" ifile="display_contact.php" booticon="icon-note-edit" content_id=$pageInfo.$source[xref].xref}
- {else}
- ------
- {/if}
- </td>
- <td>
- {$pageInfo.$source[xref].xkey|escape} {$pageInfo.$source[xref].xkey_ext|escape}
- </td>
- <td>
- {$pageInfo.$source[xref].data|escape}
- </td>
- <td>
- {if $source ne 'history' }
- {$pageInfo.$source[xref].start_date|bit_short_date}
- {else}
- {$pageInfo.$source[xref].end_date|bit_short_date}
- {/if}
- </td>
- {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
- <td>
- {$pageInfo.xref[xref].last_update_date|bit_long_date}
- </td>
- {/if}
- <td>
- <span class="actionicon">
- {if $gBitUser->hasPermission( 'p_contact_view_detail' )}
- {smartlink ititle="View" ifile="view_xref.php" booticon="icon-view" content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id}
- {/if}
- {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
- {if $pageInfo.$source[xref].source eq 'KEY_B' }
- {smartlink ititle="Callout" ifile="edit_key_break.php" booticon="icon-redo" expunge=0 content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id}
- {smartlink ititle="Reseal" ifile="edit_key_break.php" booticon="icon-undo" expunge=2 content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id}
- {else}
- {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id}
- {/if}
- {/if}
- {if $gBitUser->hasPermission( 'p_contact_expunge' ) and $pageInfo.$source[xref].source ne 'KEY_B' }
- {if $source eq 'history' }
- {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id expunge=-1}
- {else}
- {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$pageInfo.content_id xref_id=$pageInfo.$source[xref].xref_id expunge=1}
- {/if}
- {/if}
- </span>
- </td>
+ {section name=xref loop=$gContent->mInfo.$source}
+ <tr class="{cycle values="even,odd"}" title="{$gContent->mInfo.title|escape}">
+ {include file="bitpackage:contact/view_xref_`$gContent->mInfo.$source[xref].template`_record.tpl"}
</tr>
{sectionelse}
<tr class="norecords">
@@ -90,10 +40,10 @@
{if $gBitUser->hasPermission('p_contact_update')}
<div>
{if $source ne 'history' }
- {smartlink ititle="Add additional detail record" ifile="add_xref.php" booticon="icon-note-add" content_id=$pageInfo.content_id xref_type=$xref_type}
+ {smartlink ititle="Add additional detail record" ifile="add_xref.php" booticon="icon-note-add" content_id=$gContent->mInfo.content_id xref_type=$xref_type}
{/if}
</div>
{/if}
{/legend}
{/jstab}
-{* /if *} \ No newline at end of file
+{* /if *}
diff --git a/templates/load_contacts.tpl b/templates/load_contacts.tpl
index 6a02d8d..6a02d8d 100644..100755
--- a/templates/load_contacts.tpl
+++ b/templates/load_contacts.tpl
diff --git a/templates/load_sage_contacts.tpl b/templates/load_sage_contacts.tpl
index e80a34c..e80a34c 100644..100755
--- a/templates/load_sage_contacts.tpl
+++ b/templates/load_sage_contacts.tpl
diff --git a/templates/menu_contact.tpl b/templates/menu_contact.tpl
index 1140569..3033077 100644..100755
--- a/templates/menu_contact.tpl
+++ b/templates/menu_contact.tpl
@@ -7,9 +7,9 @@
{if $gBitUser->isAdmin() or $gBitUser->hasPermission( 'p_contact_edit' ) }
<li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}edit.php">{booticon ipackage="icons" iname="icon-telephone-edit" iexplain="Create/Edit a Contact" ilocation=menu}</a></li>
{/if}
- {if $pageInfo.content_id and ( $gBitUser->isAdmin() or $gBitUser->hasPermission( 'p_task_edit' ) ) }
- <li><a class="item" href="{$smarty.const.TASKS_PKG_URL}edit.php?content_id={$pageInfo.content_id}">{booticon ipackage="icons" iname="icon-build_add" iexplain="Create/Edit a Job" ilocation=menu}</a></li>
- <li><a class="item" href="{$smarty.const.TASKS_PKG_URL}add_callout.php?content_id={$pageInfo.content_id}&property={$pageInfo.content_id}">{booticon ipackage="icons" iname="icon-telephone-error" iexplain="Log a callout" ilocation=menu}</a></li>
+ {if $gContent->mInfo.content_id and ( $gBitUser->isAdmin() or $gBitUser->hasPermission( 'p_task_edit' ) ) }
+ <li><a class="item" href="{$smarty.const.TASKS_PKG_URL}edit.php?content_id={$gContent->mInfo.content_id}">{booticon ipackage="icons" iname="icon-build_add" iexplain="Create/Edit a Job" ilocation=menu}</a></li>
+ <li><a class="item" href="{$smarty.const.TASKS_PKG_URL}add_callout.php?content_id={$gContent->mInfo.content_id}&property={$gContent->mInfo.content_id}">{booticon ipackage="icons" iname="icon-telephone-error" iexplain="Log a callout" ilocation=menu}</a></li>
{/if}
{if $gBitUser->hasPermission('p_contact_admin')}
<li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contact">{booticon ipackage="icons" iname="icon-telephone-go" iexplain="Admin contacts" ilocation=menu}</a></li>
diff --git a/templates/menu_contact_admin.tpl b/templates/menu_contact_admin.tpl
index 9c0af21..9c0af21 100644..100755
--- a/templates/menu_contact_admin.tpl
+++ b/templates/menu_contact_admin.tpl
diff --git a/templates/page_display.tpl b/templates/page_display.tpl
index 572332f..2aa72d4 100644..100755
--- a/templates/page_display.tpl
+++ b/templates/page_display.tpl
@@ -1,25 +1,25 @@
{strip}
-<div class="body"{if $users_double_click eq 'y' and $dblclickedit eq 'y' and $gBitUser->hasPermission( 'bit_p_edit' )} ondblclick="location.href='{$smarty.const.CONTACT_PKG_URL}edit.php?content_id={$pageInfo.content_id}';"{/if}>
+<div class="body"{if $users_double_click eq 'y' and $dblclickedit eq 'y' and $gBitUser->hasPermission( 'bit_p_edit' )} ondblclick="location.href='{$smarty.const.CONTACT_PKG_URL}edit.php?content_id={$gContent->mInfo.content_id}';"{/if}>
<div class="header">
- {tr}<h1>Project-{$pageInfo.project_name}{/tr}{tr} Version-{$pageInfo.revision}</h1>{/tr}
+ {tr}<h1>Project-{$gContent->mInfo.project_name}{/tr}{tr} Version-{$gContent->mInfo.revision}</h1>{/tr}
</div>
- {if $pageInfo.status=='C' }
+ {if $gContent->mInfo.status=='C' }
<div class="date">
- {tr}Closed by {displayname user=$pageInfo.closed_user user_id=$pageInfo.closed_user_id real_name=$pageInfo.closed_real_name} on {$pageInfo.closed|bit_short_datetime}{/tr}
+ {tr}Closed by {displayname user=$gContent->mInfo.closed_user user_id=$gContent->mInfo.closed_user_id real_name=$gContent->mInfo.closed_real_name} on {$gContent->mInfo.closed|bit_short_datetime}{/tr}
</div>
{/if}
- {if $pageInfo.status=='O' }
+ {if $gContent->mInfo.status=='O' }
<div class="date">
- {tr}Incident Report Open - Priority {$pageInfo.priority} {/tr}
+ {tr}Incident Report Open - Priority {$gContent->mInfo.priority} {/tr}
</div>
{/if}
- {if $pageInfo.status=='X' }
+ {if $gContent->mInfo.status=='X' }
<div class="date">
{tr}Incident Report Cancelled{/tr}
</div>
{/if}
<div class="header">
- {tr}<h1>{$pageInfo.title}</h1>{/tr}
+ {tr}<h1>{$gContent->mInfo.title}</h1>{/tr}
</div>
<div class="content">
{$parsed}
diff --git a/templates/show_contact.tpl b/templates/show_contact.tpl
index c399a29..d0346f1 100644..100755
--- a/templates/show_contact.tpl
+++ b/templates/show_contact.tpl
@@ -5,11 +5,11 @@
{include file="bitpackage:contact/display_contact.tpl"}
{jstabs}
{jstab title="Local Notes" class="contact_notes"}
- {include file="bitpackage:liberty/comments.tpl"}
+ {include file="bitpackage:contact/comments.tpl"}
{/jstab}
- {if $pageInfo.client_list }
+ {if !empty($gContent->mInfo.client_list) }
{jstab title="Client List" class="client_list"}
- {include file="bitpackage:contact/list_clients.tpl" client_list=$pageInfo.client_list}
+ {include file="bitpackage:contact/list_clients.tpl" client_list=$gContent->mInfo.client_list}
{/jstab}
{/if}
{if $gBitSystem->isFeatureActive('package_tasks')}
@@ -17,9 +17,7 @@
{include file="bitpackage:tasks/list_tasks.tpl"}
{/jstab}
{/if}
- {jstab title="Images" class="contact_pics"}
- {include file="`$smarty.const.FISHEYE_PKG_PATH`gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl" }
- {/jstab}
{/jstabs}
+ {include file="`$smarty.const.FISHEYE_PKG_PATH`gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl" }
</div> {* end .body *}
</div> {* end .contact *}
diff --git a/templates/show_contact_item.tpl b/templates/show_contact_item.tpl
index b881b8b..b881b8b 100644..100755
--- a/templates/show_contact_item.tpl
+++ b/templates/show_contact_item.tpl
diff --git a/templates/view_xref.tpl b/templates/view_xref.tpl
index 2cab28b..2cab28b 100644..100755
--- a/templates/view_xref.tpl
+++ b/templates/view_xref.tpl
diff --git a/templates/view_xref_address.tpl b/templates/view_xref_address.tpl
index 18c8549..18c8549 100644..100755
--- a/templates/view_xref_address.tpl
+++ b/templates/view_xref_address.tpl
diff --git a/templates/view_xref_address_record.tpl b/templates/view_xref_address_record.tpl
new file mode 100755
index 0000000..8c7a4aa
--- /dev/null
+++ b/templates/view_xref_address_record.tpl
@@ -0,0 +1,43 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+&nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey_ext|escape}, {$gContent->mInfo.$source[xref].address|escape}, {$gContent->mInfo.$source[xref].xkey|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_view_detail' )}
+ {smartlink ititle="View" ifile="view_xref.php" booticon="icon-view" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) and $gContent->mInfo.$source[xref].source ne 'KEY_B' }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_bank_record.tpl b/templates/view_xref_bank_record.tpl
new file mode 100755
index 0000000..fd9d423
--- /dev/null
+++ b/templates/view_xref_bank_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ &nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_contact.tpl b/templates/view_xref_contact.tpl
index c44f46e..c44f46e 100644..100755
--- a/templates/view_xref_contact.tpl
+++ b/templates/view_xref_contact.tpl
diff --git a/templates/view_xref_contact_record.tpl b/templates/view_xref_contact_record.tpl
new file mode 100755
index 0000000..44dda61
--- /dev/null
+++ b/templates/view_xref_contact_record.tpl
@@ -0,0 +1,50 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ {if isset($gContent->mInfo.$source[xref].xref) && $gContent->mInfo.$source[xref].xref <> '' && $gContent->mInfo.$source[xref].xref > 100 }
+ {$gContent->mInfo.$source[xref].xref|escape}
+ {smartlink ititle="Link to" ifile="display_contact.php" booticon="icon-note-edit" content_id=$gContent->mInfo.$source[xref].xref}
+ {else}
+ &nbsp;
+ {/if}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {if $gContent->mInfo.$source[xref].source eq 'KEY_B' }
+ {smartlink ititle="Callout" ifile="edit_key_break.php" booticon="icon-redo" expunge=0 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {smartlink ititle="Reseal" ifile="edit_key_break.php" booticon="icon-undo" expunge=2 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {else}
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) and $gContent->mInfo.$source[xref].source ne 'KEY_B' }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_date_record.tpl b/templates/view_xref_date_record.tpl
new file mode 100755
index 0000000..fd9d423
--- /dev/null
+++ b/templates/view_xref_date_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ &nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_image_record.tpl b/templates/view_xref_image_record.tpl
new file mode 100755
index 0000000..63f9adc
--- /dev/null
+++ b/templates/view_xref_image_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ &nbsp;
+</td>
+<td>
+ <img class="thumb" src="/storage/attachments/21/21/thumbs/avatar.jpg" alt="" />
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_inc_report.tpl b/templates/view_xref_inc_report.tpl
new file mode 100755
index 0000000..329638b
--- /dev/null
+++ b/templates/view_xref_inc_report.tpl
@@ -0,0 +1,62 @@
+{strip}
+<div class="view contact_xref">
+ <div class="header">
+ <h1>{$xrefInfo.template_title|escape}: {$xref_title|escape} for {$title|escape}</h1>
+ </div>
+
+ <div class="body">
+ {legend legend="Contents"}
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title`" for="xkey_ext"}
+ {forminput}
+ {if $xrefInfo.xkey_ext }
+ {$xrefInfo.xkey_ext|escape}
+ {else}
+ Not yet set
+ {/if}
+ {formhelp note="`$xrefInfo.template_title` simple text entry."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Notes" for="data"}
+ {forminput}
+ {$xrefInfo.data|escape}
+ {formhelp note="Summary from full report."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+
+ {legend legend="Start and Stop Dates"}
+ <div class="form-group">
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_start_date eq "y"}
+ No start date set
+ {else}
+ {$xrefInfo.start_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This `$xrefInfo.template_title` number becomes valid on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_end_date eq "y"}
+ No end date set
+ {else}
+ {$xrefInfo.end_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This `$xrefInfo.template_title` number finishes on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+ <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a>
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/view_xref_inc_report_record.tpl b/templates/view_xref_inc_report_record.tpl
new file mode 100755
index 0000000..2c5ee03
--- /dev/null
+++ b/templates/view_xref_inc_report_record.tpl
@@ -0,0 +1,42 @@
+{strip}
+<td>
+ {if $source eq 'history' }
+ {$gContent->mInfo.$source[xref].source_title|escape}
+ {else}
+ &nbsp;
+ {/if}</td>
+<td>
+ {if isset($gContent->mInfo.$source[xref].xref) && $gContent->mInfo.$source[xref].xref <> '' && $gContent->mInfo.$source[xref].xref > 100 }
+ {$gContent->mInfo.$source[xref].xref|escape}
+ {smartlink ititle="Link to" ifile="view_form.php" booticon="icon-note-edit" content_id=$gContent->mInfo.$source[xref].xref}
+ {else}
+ ------
+ {/if}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].start_date|bit_short_datetime}
+</td>
+<td>
+ Completed: {$gContent->mInfo.$source[xref].last_update_date|bit_short_datetime}
+</td>
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_view_detail' )}
+ {smartlink ititle="View" ifile="view_form.php" booticon="icon-view" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_key_seal.tpl b/templates/view_xref_key_seal.tpl
index 883e758..883e758 100644..100755
--- a/templates/view_xref_key_seal.tpl
+++ b/templates/view_xref_key_seal.tpl
diff --git a/templates/view_xref_key_seal_record.tpl b/templates/view_xref_key_seal_record.tpl
new file mode 100755
index 0000000..0313047
--- /dev/null
+++ b/templates/view_xref_key_seal_record.tpl
@@ -0,0 +1,39 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ {if isset($gContent->mInfo.$source[xref].xref) && $gContent->mInfo.$source[xref].xref <> '' && $gContent->mInfo.$source[xref].xref > 100 }
+ {$gContent->mInfo.$source[xref].xref|escape}
+ {smartlink ititle="Link to" ifile="display_contact.php" booticon="icon-note-edit" content_id=$gContent->mInfo.$source[xref].xref}
+ {else}
+ &nbsp;
+ {/if}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Callout" ifile="edit_key_break.php" booticon="icon-redo" expunge=0 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {smartlink ititle="Reseal" ifile="edit_key_break.php" booticon="icon-undo" expunge=2 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_locate.tpl b/templates/view_xref_locate.tpl
index 9aaeb05..9aaeb05 100644..100755
--- a/templates/view_xref_locate.tpl
+++ b/templates/view_xref_locate.tpl
diff --git a/templates/view_xref_locate_record.tpl b/templates/view_xref_locate_record.tpl
new file mode 100755
index 0000000..fd9d423
--- /dev/null
+++ b/templates/view_xref_locate_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ &nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_phone.tpl b/templates/view_xref_phone.tpl
index 77b3c03..77b3c03 100644..100755
--- a/templates/view_xref_phone.tpl
+++ b/templates/view_xref_phone.tpl
diff --git a/templates/view_xref_phone_record.tpl b/templates/view_xref_phone_record.tpl
new file mode 100755
index 0000000..11ae3b2
--- /dev/null
+++ b/templates/view_xref_phone_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+&nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_sig.tpl b/templates/view_xref_sig.tpl
new file mode 100755
index 0000000..aa15ead
--- /dev/null
+++ b/templates/view_xref_sig.tpl
@@ -0,0 +1,62 @@
+{strip}
+<div class="view contact_xref">
+ <div class="header">
+ <h1>{$xrefInfo.template_title|escape}: {$xref_title|escape} for {$title|escape}</h1>
+ </div>
+
+ <div class="body">
+ {legend legend="Contents"}
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title`" for="xkey_ext"}
+ {forminput}
+ {if $xrefInfo.xkey_ext }
+ {$xrefInfo.xkey_ext|escape}
+ {else}
+ Not yet set
+ {/if}
+ {formhelp note="`$xrefInfo.template_title` simple text entry."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ {formlabel label="`$xrefInfo.template_title` Notes" for="data"}
+ {forminput}
+ {$xrefInfo.data|escape}
+ {formhelp note="Keep the text attached to reference items short and use comment records to add larger volumns of text. This should be reserved for simple notes such 'as use after 5PM' or the link."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+
+ {legend legend="Start and Stop Dates"}
+ <div class="form-group">
+ {formlabel label="Start Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_start_date eq "y"}
+ No start date set
+ {else}
+ {$xrefInfo.start_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This `$xrefInfo.template_title` number becomes valid on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+
+ <div class="form-group">
+ {formlabel label="End Date" for=""}
+ {forminput}
+ {if $xrefInfo.ignore_end_date eq "y"}
+ No end date set
+ {else}
+ {$xrefInfo.end_date|bit_long_datetime}
+ {/if}
+ {formhelp note="This `$xrefInfo.template_title` number finishes on this date."}
+ {/forminput}
+ <div class="clear"></div>
+ </div>
+ {/legend}
+ <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a>
+ </div><!-- end .body -->
+</div><!-- end .article -->
+{/strip}
diff --git a/templates/view_xref_sig_record.tpl b/templates/view_xref_sig_record.tpl
new file mode 100755
index 0000000..fd9d423
--- /dev/null
+++ b/templates/view_xref_sig_record.tpl
@@ -0,0 +1,40 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ &nbsp;
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}
diff --git a/templates/view_xref_text.tpl b/templates/view_xref_text.tpl
index aa15ead..aa15ead 100644..100755
--- a/templates/view_xref_text.tpl
+++ b/templates/view_xref_text.tpl
diff --git a/templates/view_xref_text_record.tpl b/templates/view_xref_text_record.tpl
new file mode 100755
index 0000000..44dda61
--- /dev/null
+++ b/templates/view_xref_text_record.tpl
@@ -0,0 +1,50 @@
+{strip}
+<td>
+ {$gContent->mInfo.$source[xref].source_title|escape}
+</td>
+<td>
+ {if isset($gContent->mInfo.$source[xref].xref) && $gContent->mInfo.$source[xref].xref <> '' && $gContent->mInfo.$source[xref].xref > 100 }
+ {$gContent->mInfo.$source[xref].xref|escape}
+ {smartlink ititle="Link to" ifile="display_contact.php" booticon="icon-note-edit" content_id=$gContent->mInfo.$source[xref].xref}
+ {else}
+ &nbsp;
+ {/if}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
+</td>
+<td>
+ {$gContent->mInfo.$source[xref].data|escape}
+</td>
+<td>
+{if $source ne 'history' }
+ {$gContent->mInfo.$source[xref].start_date|bit_short_date}
+{else}
+ {$gContent->mInfo.$source[xref].end_date|bit_short_date}
+{/if}
+</td>
+{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
+ <td>
+ {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+{/if}
+<td>
+ <span class="actionicon">
+ {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' }
+ {if $gContent->mInfo.$source[xref].source eq 'KEY_B' }
+ {smartlink ititle="Callout" ifile="edit_key_break.php" booticon="icon-redo" expunge=0 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {smartlink ititle="Reseal" ifile="edit_key_break.php" booticon="icon-undo" expunge=2 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {else}
+ {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
+ {/if}
+ {/if}
+ {if $gBitUser->hasPermission( 'p_contact_expunge' ) and $gContent->mInfo.$source[xref].source ne 'KEY_B' }
+ {if $source eq 'history' }
+ {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1}
+ {else}
+ {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1}
+ {/if}
+ {/if}
+ </span>
+</td>
+{/strip}