diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-09-06 23:33:23 +0100 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-09-06 23:33:23 +0100 |
| commit | ffa698b970cf21692ec88c87490c1f7a5020c4c5 (patch) | |
| tree | 34fc8d19d567829ffacde4e8ce55a9c0281a2221 /templates | |
| parent | 830ed35b6afa7b02cc8f17f225e210c2d76bfc6d (diff) | |
| download | contact-ffa698b970cf21692ec88c87490c1f7a5020c4c5.tar.gz contact-ffa698b970cf21692ec88c87490c1f7a5020c4c5.tar.bz2 contact-ffa698b970cf21692ec88c87490c1f7a5020c4c5.zip | |
Add code from local development copy
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/admin_contact.tpl | 20 | ||||
| -rw-r--r-- | templates/contact.tpl | 12 | ||||
| -rw-r--r-- | templates/contact_action_bar.tpl | 21 | ||||
| -rw-r--r-- | templates/contact_date_bar.tpl | 19 | ||||
| -rw-r--r-- | templates/contact_display.tpl | 17 | ||||
| -rw-r--r-- | templates/contact_header.tpl | 18 | ||||
| -rw-r--r-- | templates/display_address.tpl | 33 | ||||
| -rw-r--r-- | templates/display_contact.tpl | 43 | ||||
| -rw-r--r-- | templates/display_list_header.tpl | 16 | ||||
| -rw-r--r-- | templates/edit.tpl | 168 | ||||
| -rw-r--r-- | templates/edit_contact.tpl | 103 | ||||
| -rw-r--r-- | templates/index.php | 6 | ||||
| -rw-r--r-- | templates/list.tpl | 75 | ||||
| -rw-r--r-- | templates/list_appoint.tpl | 48 | ||||
| -rw-r--r-- | templates/list_contact.tpl | 121 | ||||
| -rw-r--r-- | templates/list_contacts.tpl | 121 | ||||
| -rw-r--r-- | templates/list_ticket.tpl | 48 | ||||
| -rw-r--r-- | templates/list_xref.tpl | 61 | ||||
| -rw-r--r-- | templates/load_contacts.tpl | 11 | ||||
| -rw-r--r-- | templates/menu_contact.tpl | 12 | ||||
| -rw-r--r-- | templates/menu_contact_admin.tpl | 5 | ||||
| -rw-r--r-- | templates/page_display.tpl | 29 | ||||
| -rw-r--r-- | templates/show_contact.tpl | 6 | ||||
| -rw-r--r-- | templates/show_contact_item.tpl | 33 |
24 files changed, 1046 insertions, 0 deletions
diff --git a/templates/admin_contact.tpl b/templates/admin_contact.tpl new file mode 100644 index 0000000..11f98b6 --- /dev/null +++ b/templates/admin_contact.tpl @@ -0,0 +1,20 @@ +{strip} +{form legend="Contact List Features"} + <input type="hidden" name="page" value="{$page}" /> + + {foreach from=$formContactListFeatures key=item item=output} + <div class="row"> + {formlabel label=`$output.label` for=$item} + {forminput} + {html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item) labels=false id=$item} + {/forminput} + {formhelp note=`$output.help` page=`$output.page`} + </div> + {/foreach} + + <div class="row submit"> + <input type="submit" name="contactlistfeatures" value="{tr}Change preferences{/tr}" /> + </div> +{/form} + +{/strip} diff --git a/templates/contact.tpl b/templates/contact.tpl new file mode 100644 index 0000000..d6715e9 --- /dev/null +++ b/templates/contact.tpl @@ -0,0 +1,12 @@ +{* $Header: /cvsroot/bitweaver/_bit_contact/templates/contact.tpl,v 1.1 2008/08/27 16:20:01 lsces Exp $ *} + +<div class="floaticon"> +{if $gContent->hasAdminPermission()} + <a href="{$gBitLoc.CONTACT_PKG_URL}admin/index.php"><img class="icon" src="{$gBitLoc.LIBERTY_PKG_URL}icons/config.gif" alt="{tr}admin{/tr}" /></a> +{/if} +</div> + +<div class="display contact"> +<div class="header"> +<h1><a href="{$gBitLoc.CONTACT_PKG_URL}index.php?view={$view}">{tr}Contact List{/tr}</a></h1> +</div> diff --git a/templates/contact_action_bar.tpl b/templates/contact_action_bar.tpl new file mode 100644 index 0000000..d5554a2 --- /dev/null +++ b/templates/contact_action_bar.tpl @@ -0,0 +1,21 @@ +<div class="navbar"> + {if $show_page eq 'y'} + {if $gBitSystem->isFeatureActive('feature_sample_attachments')} + {if $gBitUser->hasPermission('bit_p_sample_view_attachments') or $gBitUser->hasPermission('bit_p_sample_admin_attachments') or $gBitUser->hasPermission('bit_p_sample_attach_files')} + <a href="javascript:document.location='#attachments';flip('attzone{if $atts_show eq 'y'}open{/if}');">{if $atts_count eq 0}{tr}attach file{/tr}{elseif $atts_count eq 1}{tr}1 attachment{/tr}{else}{$atts_count} {tr}attachments{/tr}{/if}</a> + {else} + {if $atts_count eq 1}{tr}1 attachment{/tr}{else}{$atts_count} {tr}attachments{/tr}{/if} + {/if} + {/if} + {/if} +</div> + +{if $gBitSystem->isFeatureActive('feature_sample_comments')} +<div class="navbar comment"> + {if $comments_cant > 0} + <a href="javascript:document.location='#comments';flip('comzone{if $comments_show eq 'y'}open{/if}');">{if $comments_cant eq 1}{tr}1 comment{/tr}{else}{$comments_cant} {tr}comments{/tr}{/if}</a> + {else} + <a href="javascript:document.location='#comments';flip('comzone{if $comments_show eq 'y'}open{/if}');">{tr}comment{/tr}</a> + {/if} +</div> +{/if} diff --git a/templates/contact_date_bar.tpl b/templates/contact_date_bar.tpl new file mode 100644 index 0000000..06b14a0 --- /dev/null +++ b/templates/contact_date_bar.tpl @@ -0,0 +1,19 @@ +<div class="floaticon"> + {if $lock} + {biticon ipackage="icons" iname="locked" iexplain="locked"}{$info.editor|userlink} + {/if} + {if $print_page ne 'y'} + {if !$lock} + {if $gBitUser->hasPermission('p_edit_contact')} + <a href="edit.php?content_id={$contactInfo.content_id}" {if $beingEdited eq 'y'}{popup_init src="`$gBitLoc.THEMES_PKG_URL`overlib.js"}{popup text="$semUser" width="-1"}{/if}>{biticon ipackage="icons" iname="accessories-text-editor" iexplain="edit"}</a> + {/if} + {/if} + <a title="{tr}print{/tr}" href="print.php?content_id={$contactInfo.content_id}">{biticon ipackage="icons" iname="document-print" iexplain="print"}</a> + {if $gBitUser->hasPermission('p_remove_contact')} + <a title="{tr}remove this contact{/tr}" href="remove_contact.php?content_id={$contactInfo.content_id}">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a> + {/if} + {/if} {* end print_page *} +</div> {*end .floaticon *} +<div class="date"> + {tr}Created by{/tr} {displayname user=$contactInfo.creator_user user_id=$contactInfo.user_id real_name=$contactInfo.creator_real_name}, {tr}Last modification by{/tr} {displayname user=$contactInfo.modifier_user user_id=$contactInfo.modifier_user_id real_name=$contactInfo.modifier_real_name} on {$contactInfo.last_modified|bit_long_datetime} +</div> diff --git a/templates/contact_display.tpl b/templates/contact_display.tpl new file mode 100644 index 0000000..8fe5ab3 --- /dev/null +++ b/templates/contact_display.tpl @@ -0,0 +1,17 @@ +<div class="body"> + <div class="content"> + {include file="bitpackage:liberty/storage_thumbs.tpl"} + Title: {$contactInfo.prefix}<br /> + Forename: {$contactInfo.forename}<br /> + Surname: {$contactInfo.surname}<br /> + Suffix: {$contactInfo.suffix}<br /> + <br /> + Organisation: {$contactInfo.organisation}<br /> + <br /> + NI Number:{$contactInfo.nino} Date of Birth:{$contactInfo.dob} Date of eighteenth:{$contactInfo.eighteenth} Date of Death:{$contactInfo.dod} <br /> + <br /> + Note: {$contactInfo.note}<br /> + Memo:<br /> + {$contactInfo.data}<br /> + </div><!-- end .content --> +</div><!-- end .body --> diff --git a/templates/contact_header.tpl b/templates/contact_header.tpl new file mode 100644 index 0000000..2b35e6e --- /dev/null +++ b/templates/contact_header.tpl @@ -0,0 +1,18 @@ +<div class="header"> +{if $is_categorized eq 'y' and $gBitSystem->isFeatureActive('package_categories') and $gBitSystem->isFeatureActive('feature_categorypath')} +<div class="category"> + <div class="path">{$display_catpath}</div> +</div> {* end category *} +{/if} + + <h1>{$contactInfo.content_id} - + {if isset($contactInfo.organisation) && ($contactInfo.organisation <> '') } + {$contactInfo.organisation} + {else} + {$contactInfo.prefix} + {$contactInfo.forename} + {$contactInfo.surname} + {/if}</h1> + <div class="description">{$contactInfo.description}</div> + +</div> {* end .header *} diff --git a/templates/display_address.tpl b/templates/display_address.tpl new file mode 100644 index 0000000..d6a1d58 --- /dev/null +++ b/templates/display_address.tpl @@ -0,0 +1,33 @@ + <div class="row"> + {formlabel label="Address" for="lpi"} + {forminput} + {if isset($contactInfo.sao) && ($contactInfo.sao <> '') } + {$contactInfo.sao}, {/if} + {if isset($contactInfo.pao) && ($contactInfo.pao <> '') } + {$contactInfo.pao},<br />{/if} + {if isset($contactInfo.number) && ($contactInfo.number <> '') } + {$contactInfo.number},<br />{/if} + {if isset($contactInfo.street) && ($contactInfo.street <> '') } + {$contactInfo.street},<br />{/if} + {if isset($contactInfo.locality) && ($contactInfo.locality <> '') } + {$contactInfo.locality}, {/if} + {if isset($contactInfo.town) && ($contactInfo.town <> '') } + {$contactInfo.town}, {/if} + {if isset($contactInfo.county) && ($contactInfo.county <> '') } + {$contactInfo.county}, {/if} + {$contactInfo.postcode} + {/forminput} + </div> + {if isset($contactInfo.x_coordinate) && ($contactInfo.x_coordinate <> '') } + <div class="row"> + {formlabel label="Visual Centre Coordinates" for="street_start_x"} + {forminput} + Easting: {$contactInfo.x_coordinate|escape} Northing: {$contactInfo.y_coordinate|escape} + <<a href="http://www.multimap.com/maps/?map={$contactInfo.prop_lat},{$contactInfo.prop_lng}|17|4&loc=GB:{$contactInfo.prop_lat}:{$contactInfo.prop_lng}:17" title="{$contactInfo.title}"> + Multimap + </a>><br /> + {$contactInfo.rpa|escape} + {/forminput} + </div> + {/if} + diff --git a/templates/display_contact.tpl b/templates/display_contact.tpl new file mode 100644 index 0000000..b58327b --- /dev/null +++ b/templates/display_contact.tpl @@ -0,0 +1,43 @@ +<div class="body"> + <div class="content"> + + {if isset($contactInfo.usn) && ($contactInfo.usn <> '') } + <div class="row"> + {formlabel label="USN" for="usn"} + {forminput} + {$contactInfo.usn|escape} + {/forminput} + </div> + {/if} + {if isset($contactInfo.organisation) && ($contactInfo.organisation <> '') } + <div class="row"> + {formlabel label="Organisation" for="organisation"} + {forminput} + {$contactInfo.organisation|escape} + {/forminput} + </div> + {/if} + {if isset($contactInfo.dob) && ($contactInfo.dob <> '') } + <div class="row"> + {formlabel label="Date of Birth" for="dob"} + {forminput} + {$contactInfo.dob|bit_long_date} + {/forminput} + </div> + {/if} + {if isset($contactInfo.nino) && ($contactInfo.nino <> '') } + <div class="row"> + {formlabel label="National Insurance Number" for="nino"} + {forminput} + {$contactInfo.nino|escape} + {/forminput} + </div> + {/if} + {include file="bitpackage:contact/display_address.tpl"} + {jstabs} + {include file="bitpackage:contact/list_xref.tpl"} + {include file="bitpackage:contact/list_ticket.tpl"} + {include file="bitpackage:contact/list_appoint.tpl"} + {/jstabs} + </div><!-- end .content --> +</div><!-- end .body --> diff --git a/templates/display_list_header.tpl b/templates/display_list_header.tpl new file mode 100644 index 0000000..8f4dbb1 --- /dev/null +++ b/templates/display_list_header.tpl @@ -0,0 +1,16 @@ + <div class="navbar"> + {form class="find" legend="Find in Contact entries"} + {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:surname_desc}" /> + {biticon ipackage="icons" iname="edit-find" iexplain="Search"} + <label>{tr}Name{/tr}: <input size="20" type="text" name="find_name" value="{$find_name|default:$smarty.request.find_name|escape}" /></label> + <label>{tr}Organisation{/tr}: <input size="20" type="text" name="find_org" value="{$find_org|default:$smarty.request.find_org|escape}" /></label> + <label>{tr}Street{/tr}: <input size="20" type="text" name="find_street" value="{$find_street|default:$smarty.request.find_street|escape}" /></label> + <label>{tr}Postcode{/tr}: <input size="10" type="text" name="find_postcode" value="{$find_postcode|default:$smarty.request.find_postcode|escape}" /></label> + <input type="submit" name="search" value="{tr}Find{/tr}" /> + <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&{/foreach}'" value="{tr}Reset{/tr}" /> + {/form} + </div> + diff --git a/templates/edit.tpl b/templates/edit.tpl new file mode 100644 index 0000000..43e95dd --- /dev/null +++ b/templates/edit.tpl @@ -0,0 +1,168 @@ +{* $Header: /cvsroot/bitweaver/_bit_contact/templates/edit.tpl,v 1.4 2010/04/17 04:28:30 wjames5 Exp $ *} +<div class="floaticon">{bithelp}</div> + +{assign var=serviceEditTpls value=$gLibertySystem->getServiceValues('content_edit_tpl')} + +<div class="admin contact"> + <div class="header"> + <h1> + {* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *} + {if $contactInfo.content_id} + {assign var=editLabel value="{tr}Edit{/tr} $conDescr"} + {tr}{tr}Edit{/tr} {$contactInfo.title}{/tr} + {else} + {assign var=editLabel value="{tr}Create{/tr} $conDescr"} + {tr}{$editLabel}{/tr} + {/if} + </h1> + </div> + + {* Check to see if there is an editing conflict *} + {if $errors.edit_conflict} + <script language="javascript" type="text/javascript"> + <!-- + alert( "{$errors.edit_conflict|strip_tags}" ); + --> + </script> + {formfeedback warning=`$errors.edit_conflict`} + {/if} + + {strip} + <div class="body"> + {form enctype="multipart/form-data" id="editpageform"} + {jstabs} + {jstab title="$editLabel Body"} + {legend legend="`$editLabel` Details"} + <input type="hidden" name="content_id" value="{$contactInfo.content_id}" /> + + <div class="row"> + {formfeedback warning=`$errors.names`} + {formfeedback warning=`$errors.store`} + + {formlabel label="$conDescr Contact" for="contentno"} + {if !$contactInfo.contact_id} + {forminput} + New Contact Entry + {/forminput} + {else} + {forminput} + Edit Contact Entry No : {$contactInfo.contact_id} + {/forminput} + {/if} + + {formlabel label="Contact Type" for="contact_type"} + {forminput} + {html_options name="$contactInfo.contact_type_list[$contactInfo.contact_type]" options=$contactInfo.contact_type_list selected=`$contactInfo.contact_type`} + {formhelp note="Users of only this group can view the content of this category."} + {/forminput} + + </div> + <div class="row"> + {formlabel label="Title" for="prefix"} + {forminput} + <input size="60" type="text" name="prefix" id="prefix" value="{$contactInfo.prefix|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Forename" for="forename"} + {forminput} + <input size="60" type="text" name="forename" id="forename" value="{$contactInfo.forename|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Surname" for="surname"} + {forminput} + <input size="60" type="text" name="surname" id="surname" value="{$contactInfo.surname|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Suffix" for="suffix"} + {forminput} + <input size="60" type="text" name="suffix" id="suffix" value="{$contactInfo.suffix|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Organisation" for="organisation"} + {forminput} + <input size="60" type="text" name="organisation" id="organisation" value="{$contactInfo.organisation|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="NI Number" for="nino"} + {forminput} + <input size="10" type="text" name="nino" id="nino" value="{$contactInfo.nino|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Date of Birth" for="dob"} + {forminput} + <input size="10" type="text" name="dob" id="dob" value="{$contactInfo.dob|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Date of eighteen" for="eighteenth"} + {forminput} + <input size="10" type="text" name="eighteenth" id="eighteenth" value="{$contactInfo.eighteenth|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Date of Death" for="dod"} + {forminput} + <input size="10" type="text" name="dod" id="dod" value="{$contactInfo.dod|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Note" for="description"} + {forminput} + <input size="60" type="text" name="description" id="description" value="{$contactInfo.description|escape}" /> + {/forminput} + </div> + {/legend} + {/jstab} + + {jstab title="Contact Address"} + {include file="bitpackage:contact/display_address.tpl"} + {/jstab} + + {jstab title="Contact Notes"} + {legend legend="Notes Body"} + <div class="row"> + {forminput} + <textarea id="{$textarea_id}" name="edit" rows="{$rows|default:20}" cols="{$cols|default:80}">{$contactInfo.data|escape:html}</textarea> + {/forminput} + </div> + + {if $page ne 'SandBox'} + <div class="row"> + {formlabel label="Comment" for="comment"} + {forminput} + <input size="50" type="text" name="comment" id="comment" value="{$contactInfo.comment}" /> + {formhelp note="Add a comment to illustrate your most recent changes."} + {/forminput} + </div> + {/if} + + {/legend} + {/jstab} + + {jstab title="Liberty Extensions"} + {if $serviceEditTpls.categorization } + {legend legend="Categorize"} + {include file=$serviceEditTpls.categorization} + {/legend} + {/if} + {/jstab} + {/jstabs} + + {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"} + + <div class="row submit"> + <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" /> + <input type="submit" name="fSaveContact" value="{tr}Save{/tr}" /> + </div> + {/form} + + </div><!-- end .body --> +</div><!-- end .admin --> + +{/strip} diff --git a/templates/edit_contact.tpl b/templates/edit_contact.tpl new file mode 100644 index 0000000..d159c2b --- /dev/null +++ b/templates/edit_contact.tpl @@ -0,0 +1,103 @@ +{* $Header: /cvsroot/bitweaver/_bit_contact/templates/edit_contact.tpl,v 1.1 2008/08/27 16:20:01 lsces Exp $ *} +{popup_init src="`$gBitLoc.THEMES_PKG_URL`overlib.js"} +{strip} +<div class="floaticon">{bithelp}</div> + +{* Check to see if there is an editing conflict *} +{if $editpageconflict == 'y'} + <script language="javascript" type="text/javascript"> + <!-- Hide Script + alert("{tr}This page is being edited by{/tr} {$semUser}. {tr}Proceed at your own peril{/tr}.") + //End Hide Script--> + </script> +{/if} + +<div class="admin contact"> + + {if $preview} + <h2>Preview - {$pageInfo.title}</h2> + <div class="preview"> + {include file="bitpackage:contact/contact_display.tpl" page=`$contactInfo.content_id`} + </div> + {/if} + + <div class="header"> + <h1> + {if $contactInfo.content_id} + {tr}{tr}Edit - {/tr} {$contactInfo.title}{/tr} + {else} + {tr}Create New Record{/tr} + {/if} + </h1> + </div> + + <div class="body"> + {form legend="Edit/Create Contact Record" enctype="multipart/form-data" id="editpageform"} + <input type="hidden" name="content_id" value="{$contactInfo.content_id}" /> + + <div class="row"> + {formlabel label="Title" for="title"} + {forminput} + <input size="60" type="text" name="prefix" id="prefix" value="{$contactInfo.prefix|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Forename" for="forename"} + {forminput} + <input size="60" type="text" name="forename" id="forename" value="{$contactInfo.forename|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Surname" for="surname"} + {forminput} + <input size="60" type="text" name="surname" id="surname" value="{$contactInfo.surname|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Suffix" for="suffix"} + {forminput} + <input size="60" type="text" name="suffix" id="suffix" value="{$contactInfo.suffix|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Organisation" for="organisation"} + {forminput} + <input size="60" type="text" name="organisation" id="organisation" value="{$contactInfo.organisation|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="NI Number" for="nino"} + {forminput} + <input size="10" type="text" name="nino" id="nino" value="{$contactInfo.nino|escape}" /> + {/forminput} + </div> + <div class="row"> + {formlabel label="Note" for="description"} + {forminput} + <input size="60" type="text" name="description" id="description" value="{$contactInfo.description|escape}" /> + {/forminput} + </div> + + <div class="row"> + {formlabel label="Memo" for="$textarea_id"} + {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}{$contactInfo.data|escape}{else}{$edit}{/if}</textarea> + {/forminput} + </div> + + <div class="row submit"> + <input type="submit" name="preview" value="{tr}Preview{/tr}" /> + <input type="submit" name="fSavePage" value="{tr}Save{/tr}" /> + <input type="submit" name="cancel" value="{tr}Cancel{/tr}" /> + </div> + {/form} + + </div><!-- end .body --> +</div><!-- end .contact --> + +{/strip} + +<br /> + diff --git a/templates/index.php b/templates/index.php new file mode 100644 index 0000000..3e305fe --- /dev/null +++ b/templates/index.php @@ -0,0 +1,6 @@ +<?php + + // This is not a package. + header ("location: ../index.php"); + +?>
\ No newline at end of file diff --git a/templates/list.tpl b/templates/list.tpl new file mode 100644 index 0000000..3a0b23e --- /dev/null +++ b/templates/list.tpl @@ -0,0 +1,75 @@ +{strip} + +<div class="floaticon">{bithelp}</div> + +<div class="listing contacts"> + <div class="header"> + <h1>{tr}Contacts{/tr}</h1> + </div> + + <div class="body"> + + {include file="bitpackage:contact/display_list_header.tpl"} + + <div class="navbar"> + <ul> + <li>{biticon ipackage="icons" iname="emblem-symbolic-link" iexplain="sort by"}</li> + {* <li>{smartlink ititle="Contact Number" isort="content_id" idefault=1 iorder=desc ihash=$listInfo.ihash}</li> + <li>{smartlink ititle="Forename" isort="forename" ihash=$listInfo.ihash}</li> *} + <li>{smartlink ititle="Surname" isort="surname" ihash=$listInfo.ihash}</li> + <li>{smartlink ititle="Organisation" isort="organisation" ihash=$listInfo.ihash}</li> + <li>{smartlink ititle="Address" isort="street" ihash=$listInfo.ihash}</li> + <li>{smartlink ititle="Town" isort="town" ihash=$listInfo.ihash}</li> + <li>{smartlink ititle="Postcode" isort="postcode" ihash=$listInfo.ihash}</li> + </ul> + </div> + + <ul class="clear data"> + {section name=content loop=$listcontacts} + <li class="item {cycle values='odd,even'}"> + <a href="display_contact.php?content_id={$listcontacts[content].content_id}" title="ci_{$listcontacts[content].content_id}"> + {$listcontacts[content].content_id} - + {$listcontacts[content].prefix} + {$listcontacts[content].forename} + {$listcontacts[content].surname} + </a> + {if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation} {/if} + {if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob} {/if} + {if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino} {/if} + + <div class="footer"> + {if isset($listcontacts[content].uprn) && ($listcontacts[content].uprn <> '') }UPRN: {$listcontacts[content].uprn} {/if} + {tr}Address{/tr}: + {if isset($listcontacts[content].sao) && ($listcontacts[content].sao <> '') } + {$listcontacts[content].sao}, {/if} + {if isset($listcontacts[content].pao) && ($listcontacts[content].pao <> '') } + {$listcontacts[content].pao}, {/if} + {if isset($listcontacts[content].number) && ($listcontacts[content].number <> '') } + {$listcontacts[content].number}, {/if} + {if isset($listcontacts[content].street) && ($listcontacts[content].street <> '') } + {$listcontacts[content].street}, {/if} + {if isset($listcontacts[content].locality) && ($listcontacts[content].locality <> '') } + {$listcontacts[content].locality}, {/if} + {if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') } + {$listcontacts[content].town}, {/if} + {if isset($listcontacts[content].county) && ($listcontacts[content].county <> '') } + {$listcontacts[content].county}, {/if} + {$listcontacts[content].postcode} + {tr}Links{/tr}: {$listcontacts[content].links|default:0} + {tr}Enquiries{/tr}: {$listcontacts[content].enquiries|default:0} + </div> + + <div class="clear"></div> + </li> + {sectionelse} + <li class="item norecords"> + {tr}No records found{/tr} + </li> + {/section} + </ul> + + {pagination} + </div><!-- end .body --> +</div><!-- end .irlist --> + +{/strip} diff --git a/templates/list_appoint.tpl b/templates/list_appoint.tpl new file mode 100644 index 0000000..8f4b3d0 --- /dev/null +++ b/templates/list_appoint.tpl @@ -0,0 +1,48 @@ + + + {assign var=ticketscnt value=$contactInfo.tickets|@count} + {jstab title="Appointments ($ticketscnt)"} + {legend legend="Appointments"} + <div class="row"> + {formlabel label="Tickets" for="ticket"} + {forminput} + <table> + <caption>{tr}List of appointments{/tr}</caption> + <thead> + <tr> + <th>Data</th> + <th>TAG</th> + <th>Note</th> + </tr> + </thead> + <tbody> + {section name=ticket loop=$contactInfo.tickets} + <tr class="{cycle values="even,odd"}" title="{$contactInfo.ticket[ticket].title|escape}"> + <td> + {$contactInfo.tickets[ticket].ticket_ref|bit_long_date} - {$contactInfo.tickets[ticket].ticket_no} + </td> + <td> + {$contactInfo.tickets[ticket].tags|escape} + </td> + <td> + <span class="actionicon"> + {smartlink ititle="View" ifile="view_ticket.php" ibiticon="icons/accessories-text-editor" ticket_id=$contactInfo.tickets[ticket].ticket_id} + </span> + <label for="ev_{$contactInfo.tickets[ticket].ticket_no}"> + {$contactInfo.tickets[ticket].staff_id} + </label> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="3"> + {tr}No records found{/tr} + </td> + </tr> + {/section} + </tbody> + </table> + {/forminput} + </div> + {/legend} + {/jstab} diff --git a/templates/list_contact.tpl b/templates/list_contact.tpl new file mode 100644 index 0000000..608db86 --- /dev/null +++ b/templates/list_contact.tpl @@ -0,0 +1,121 @@ +{* $Header: /cvsroot/bitweaver/_bit_contact/templates/list_contact.tpl,v 1.3 2010/02/09 17:21:21 wjames5 Exp $ *} +<div class="floaticon"> + {if $gBitUser->hasPermission('p_contact_admin')} + <a title="{tr}configure listing{/tr}" href="{$gBitLoc.KERNEL_PKG_URL}admin/index.php?page=contact">{biticon ipackage="icons" iname="document-properties" iexplain="configure"}</a> + {/if} + {bithelp} +</div> + +<div class="admin contact"> +<div class="header"> +<h1><a href="{$gBitLoc.CONTACT_PKG_URL}list_contact.php">{tr}Contact Records{/tr}</a></h1> +</div> + +<div class="body"> + +<table class="find"> +<tr><td>{tr}Find{/tr}</td> + <td> + <form method="get" action="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php"> + <input type="text" name="find" value="{$listInfo.find|escape}" /> + <input type="submit" name="search" value="{tr}find{/tr}" /> + <input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" /> + </form> + </td> +</tr> +</table> + +<form id="checkform" method="post" action="{$smarty.server.PHP_SELF}"> +<input type="hidden" name="offset" value="{$listInfo.offset|escape}" /> +<input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" /> +<table class="data"> +<tr> +{* at the moment, the only working option to use the checkboxes for is deleting pages. so for now the checkboxes are visible iff $bit_p_remove is set. Other applications make sense as well (categorize, convert to pdf, etc). Add necessary corresponding permission here: *} + +{if $gBitUser->hasPermission('p_remove_contact')} {* ... "or $bit_p_other_sufficient_condition_for_checkboxes eq 'y'" *} + {assign var='checkboxes_on' value='y'} +{else} + {assign var='checkboxes_on' value='n'} +{/if} +{if $checkboxes_on eq 'y'} + <th> </th>{/if} +{if $contact_list_content_id eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'content_id_desc'}content_id_asc{else}content_id_desc{/if}">{tr}Contact Id{/tr}</a></th> +{/if}{if $contact_list_title eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}Title{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'town_desc'}town_asc{else}town_desc{/if}">{tr}Town{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'county_desc'}county_asc{else}county_desc{/if}">{tr}County{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'postcode_desc'}postcode_asc{else}postcode_desc{/if}">{tr}Postcode{/tr}</a></th> +{/if}{if $contact_list_description eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'description_desc'}description_asc{else}description_desc{/if}">{tr}Description{/tr}</a></th> +{/if} +</tr> + +{cycle values="even,odd" print=false} +{section name=changes loop=$list} +<tr class="{cycle}"> +{if $checkboxes_on eq 'y'} + <td><input type="checkbox" name="checked[]" value="{$list[changes].content_id|escape}" /></td> +{/if} +{if $contact_list_content_id eq 'y'} + <td><a href="{$gBitLoc.CONTACT_PKG_URL}index.php?content_id={$list[changes].content_id|escape:"url"}" title="{$list[changes].content_id}">{$list[changes].content_id|truncate:20:"...":true}</a> + {if $gBitUser->hasPermission('p_edit_contact')} + <br />(<a href="{$gBitLoc.CONTACT_PKG_URL}edit.php?content_id={$list[changes].content_id|escape:"url"}">{tr}edit{/tr}</a>) + {/if} + </td> +{/if} +{if $contact_list_title eq 'y'} + <td style="text-align:center;">{$list[changes].title}</td> + <td style="text-align:center;">{$list[changes].town}</td> + <td style="text-align:center;">{$list[changes].county}</td> + <td style="text-align:center;">{$list[changes].postcode}<br /> + {$list[changes].pcdetail}</td> +{/if} +{if $contact_list_description eq 'y'} + <td style="text-align:center;">{$list[changes].data}</td> +{/if} +</tr> +{sectionelse} + <tr class="norecords"><td colspan="16"> + {tr}No records found{/tr} + </td></tr> +{/section} + +{if $checkboxes_on eq 'y'} +<tr><td colspan="16"> + <script language="Javascript" type="text/javascript"> + <!-- + // check / uncheck all. + // in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript. + document.write("<tr><td><input name=\"switcher\" type=\"checkbox\" onclick=\"BitBase.switchCheckboxes(this.form.id,'checked[]','switcher')\" /></td>"); + document.write("<td colspan=\"15\">{tr}All{/tr}</td></tr>"); + //--> + </script> +</td></tr> +{/if} +</table> + +{if $checkboxes_on eq 'y'} {* what happens to the checked items *} + <select name="submit_mult" onchange="this.form.submit();"> + <option value="" selected="selected">{tr}with checked{/tr}:</option> + {if $gBitUser->hasPermission('p_remove_contact')} + <option value="remove_contact">{tr}remove{/tr}</option> + {/if} + {* add here e.g. <option value="categorize">{tr}categorize{/tr}</option> *} + </select> + <script language="Javascript" type="text/javascript"> + <!-- + // Fake js to allow the use of the <noscript> tag (so non-js-users kenn still submit) + //--> + </script> + <noscript> + <input type="submit" value="{tr}ok{/tr}" /> + </noscript> +{/if} +</form> + +</div><!-- end .body --> + +{libertypagination} + +</div> {* end .admin *} diff --git a/templates/list_contacts.tpl b/templates/list_contacts.tpl new file mode 100644 index 0000000..58472d8 --- /dev/null +++ b/templates/list_contacts.tpl @@ -0,0 +1,121 @@ +{* $Header: /cvsroot/bitweaver/_bit_contact/templates/list_contacts.tpl,v 1.2 2010/02/09 17:21:21 wjames5 Exp $ *} +<div class="floaticon"> + {if $gBitUser->hasPermission('p_contact_admin')} + <a title="{tr}configure listing{/tr}" href="{$gBitLoc.KERNEL_PKG_URL}admin/index.php?page=contact">{biticon ipackage="icons" iname="document-properties" iexplain="configure"}</a> + {/if} + {bithelp} +</div> + +<div class="admin wiki"> +<div class="header"> +<h1><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php">{tr}Contact Records{/tr}</a></h1> +</div> + +<div class="body"> + +<table class="find"> +<tr><td>{tr}Find{/tr}</td> + <td> + <form method="get" action="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php"> + <input type="text" name="find" value="{$listInfo.find|escape}" /> + <input type="submit" name="search" value="{tr}find{/tr}" /> + <input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" /> + </form> + </td> +</tr> +</table> + +<form id="checkform" method="post" action="{$smarty.server.PHP_SELF}"> +<input type="hidden" name="offset" value="{$listInfo.offset|escape}" /> +<input type="hidden" name="sort_mode" value="{$listInfo.sort_mode|escape}" /> +<table class="data"> +<tr> +{* at the moment, the only working option to use the checkboxes for is deleting pages. so for now the checkboxes are visible iff $bit_p_remove is set. Other applications make sense as well (categorize, convert to pdf, etc). Add necessary corresponding permission here: *} + +{if $gBitUser->hasPermission('p_remove_contact')} {* ... "or $bit_p_other_sufficient_condition_for_checkboxes eq 'y'" *} + {assign var='checkboxes_on' value='y'} +{else} + {assign var='checkboxes_on' value='n'} +{/if} +{if $checkboxes_on eq 'y'} + <th> </th>{/if} +{if $contact_list_content_id eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'content_id_desc'}content_id_asc{else}content_id_desc{/if}">{tr}Contact Id{/tr}</a></th> +{/if}{if $contact_list_title eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'title_desc'}title_asc{else}title_desc{/if}">{tr}Title{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'town_desc'}town_asc{else}town_desc{/if}">{tr}Town{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'county_desc'}county_asc{else}county_desc{/if}">{tr}County{/tr}</a></th> + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'postcode_desc'}postcode_asc{else}postcode_desc{/if}">{tr}Postcode{/tr}</a></th> +{/if}{if $contact_list_description eq 'y'} + <th><a href="{$gBitLoc.CONTACT_PKG_URL}list_contacts.php?offset={$listInfo.offset}&sort_mode={if $listInfo.sort_mode eq 'description_desc'}description_asc{else}description_desc{/if}">{tr}Description{/tr}</a></th> +{/if} +</tr> + +{cycle values="even,odd" print=false} +{section name=changes loop=$list} +<tr class="{cycle}"> +{if $checkboxes_on eq 'y'} + <td><input type="checkbox" name="checked[]" value="{$list[changes].content_id|escape}" /></td> +{/if} +{if $contact_list_content_id eq 'y'} + <td><a href="{$gBitLoc.CONTACT_PKG_URL}index.php?content_id={$list[changes].content_id|escape:"url"}" title="{$list[changes].content_id}">{$list[changes].content_id|truncate:20:"...":true}</a> + {if $gBitUser->hasPermission('p_edit_contact')} + <br />(<a href="{$gBitLoc.CONTACT_PKG_URL}edit.php?content_id={$list[changes].content_id|escape:"url"}">{tr}edit{/tr}</a>) + {/if} + </td> +{/if} +{if $contact_list_title eq 'y'} + <td style="text-align:center;">{$list[changes].title}</td> + <td style="text-align:center;">{$list[changes].town}</td> + <td style="text-align:center;">{$list[changes].county}</td> + <td style="text-align:center;">{$list[changes].postcode}<br /> + {$list[changes].pcdetail}</td> +{/if} +{if $contact_list_description eq 'y'} + <td style="text-align:center;">{$list[changes].data}</td> +{/if} +</tr> +{sectionelse} + <tr class="norecords"><td colspan="16"> + {tr}No records found{/tr} + </td></tr> +{/section} + +{if $checkboxes_on eq 'y'} +<tr><td colspan="16"> + <script language="Javascript" type="text/javascript"> + <!-- + // check / uncheck all. + // in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript. + document.write("<tr><td><input name=\"switcher\" type=\"checkbox\" onclick=\"BitBase.switchCheckboxes(this.form.id,'checked[]','switcher')\" /></td>"); + document.write("<td colspan=\"15\">{tr}All{/tr}</td></tr>"); + //--> + </script> +</td></tr> +{/if} +</table> + +{if $checkboxes_on eq 'y'} {* what happens to the checked items *} + <select name="submit_mult" onchange="this.form.submit();"> + <option value="" selected="selected">{tr}with checked{/tr}:</option> + {if $gBitUser->hasPermission('p_remove_contact')} + <option value="remove_contact">{tr}remove{/tr}</option> + {/if} + {* add here e.g. <option value="categorize">{tr}categorize{/tr}</option> *} + </select> + <script language="Javascript" type="text/javascript"> + <!-- + // Fake js to allow the use of the <noscript> tag (so non-js-users kenn still submit) + //--> + </script> + <noscript> + <input type="submit" value="{tr}ok{/tr}" /> + </noscript> +{/if} +</form> + +</div><!-- end .body --> + +{pagination_c} + +</div> {* end .admin *} diff --git a/templates/list_ticket.tpl b/templates/list_ticket.tpl new file mode 100644 index 0000000..b800875 --- /dev/null +++ b/templates/list_ticket.tpl @@ -0,0 +1,48 @@ + + + {assign var=ticketscnt value=$contactInfo.tickets|@count} + {jstab title="Ticket History ($ticketscnt)"} + {legend legend="Ticket History"} + <div class="row"> + {formlabel label="Tickets" for="ticket"} + {forminput} + <table> + <caption>{tr}List of CMS tickets{/tr}</caption> + <thead> + <tr> + <th>Data</th> + <th>TAG</th> + <th>Note</th> + </tr> + </thead> + <tbody> + {section name=ticket loop=$contactInfo.tickets} + <tr class="{cycle values="even,odd"}" title="{$contactInfo.ticket[ticket].title|escape}"> + <td> + {$contactInfo.tickets[ticket].ticket_ref|bit_long_date} - {$contactInfo.tickets[ticket].ticket_no} + </td> + <td> + {$contactInfo.tickets[ticket].tags|escape} + </td> + <td> + <span class="actionicon"> + {smartlink ititle="View" ifile="view_ticket.php" ibiticon="icons/accessories-text-editor" ticket_id=$contactInfo.tickets[ticket].ticket_id} + </span> + <label for="ev_{$contactInfo.tickets[ticket].ticket_no}"> + {$contactInfo.tickets[ticket].staff_id} + </label> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="3"> + {tr}No records found{/tr} + </td> + </tr> + {/section} + </tbody> + </table> + {/forminput} + </div> + {/legend} + {/jstab} diff --git a/templates/list_xref.tpl b/templates/list_xref.tpl new file mode 100644 index 0000000..77a0be1 --- /dev/null +++ b/templates/list_xref.tpl @@ -0,0 +1,61 @@ + + {assign var=xrefcnt value=$contactInfo.xref|@count} + {jstab title="Cross reference ($xrefcnt)"} + {legend legend="Information References"} + <div class="row"> + {formlabel label="Cross reference" for="xref"} + {forminput} + <table> + <caption>{tr}List of linked references{/tr}</caption> + <thead> + <tr> + <th>Information</th> + <th>Data</th> + <th>Property</th> + <th>Updated</th> + <th>Reference</th> + </tr> + </thead> + <tbody> + {section name=xref loop=$contactInfo.xref} + <tr class="{cycle values="even,odd"}" title="{$list[county].title|escape}"> + <td> + {$contactInfo.xref[xref].source_title|escape} + </td> + <td> + {$contactInfo.xref[xref].data|escape} + </td> + <td> + {if isset($contactInfo.xref[xref].usn) && ($contactInfo.xref[xref].usn <> '') } + {$contactInfo.xref[xref].usn|escape} + {smartlink ititle="Link to" ifile="../property/display_property.php" ibiticon="icons/accessories-text-editor" property_id=$contactInfo.xref[xref].usn} + {/if} + </td> + <td>
+ {$contactInfo.xref[xref].last_update_date|bit_long_date}
+ </td>
+ <td> + <span class="actionicon"> + {smartlink ititle="View" ifile="view_xref.php" ibiticon="icons/view-fullscreen" source=$contactInfo.xref[xref].source xref=$contactInfo.xref[xref].cross_reference} + </span> + <span class="actionicon"> + {smartlink ititle="Edit" ifile="edit_xref.php" ibiticon="icons/accessories-text-editor" source=$contactInfo.xref[xref].source xref=$contactInfo.xref[xref].cross_reference} + </span> + <label for="ev_{$contactInfo.xref[xref].cross_reference}"> + {$contactInfo.xref[xref].cross_reference} + </label> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="3"> + {tr}No records found{/tr} + </td> + </tr> + {/section} + </tbody> + </table> + {/forminput} + </div> + {/legend} + {/jstab} diff --git a/templates/load_contacts.tpl b/templates/load_contacts.tpl new file mode 100644 index 0000000..648e9b5 --- /dev/null +++ b/templates/load_contacts.tpl @@ -0,0 +1,11 @@ +<div class="load nlpg"> + <div class="header"> + <h1>{tr}Loading Contact Data{/tr}</h1> + </div> + + <div class="body"> + <p> {$golden} records in golden.cvs File <br /></p> + <p> {$xref} records in xref.cvs File <br /></p> + </div> +</div> +
\ No newline at end of file diff --git a/templates/menu_contact.tpl b/templates/menu_contact.tpl new file mode 100644 index 0000000..d984540 --- /dev/null +++ b/templates/menu_contact.tpl @@ -0,0 +1,12 @@ +{strip} +<ul> + <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}list.php">{tr}List Contacts{/tr}</a></li> + {if $gBitUser->isAdmin() or $gBitUser->hasPermission( 'p_contact_edit' ) } + <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}edit.php">{biticon ipackage="icons" iname="document-new" iexplain="create contact" iforce="icon"} {tr}Create/Edit a Contact{/tr}</a></li> + {/if} + {if $gBitUser->hasPermission('p_contact_admin')} + <li><a class="item" href="{$smarty.const.CONTACT_PKG_URL}load_contacts.php">{tr}Load Contact Index Dump{/tr}</a></li> + <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contact">{tr}Admin contacts{/tr}</a></li> + {/if} +</ul> +{/strip} diff --git a/templates/menu_contact_admin.tpl b/templates/menu_contact_admin.tpl new file mode 100644 index 0000000..a7ab2da --- /dev/null +++ b/templates/menu_contact_admin.tpl @@ -0,0 +1,5 @@ +{strip} +<ul> + <li><a class="item" href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=contact">{tr}Contact Manager List Settings{/tr}</a></li> +</ul> +{/strip} diff --git a/templates/page_display.tpl b/templates/page_display.tpl new file mode 100644 index 0000000..fd860d9 --- /dev/null +++ b/templates/page_display.tpl @@ -0,0 +1,29 @@ +{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={$contentInfo.content_id}';"{/if}> + <div class="header"> + {tr}<h1>Project-{$contentInfo.project_name}{/tr}{tr} Version-{$contentInfo.revision}</h1>{/tr} + </div> + {if $contentInfo.status=='C' } + <div class="date"> + {tr}Closed by {displayname user=$contentInfo.closed_user user_id=$contentInfo.closed_user_id real_name=$contentInfo.closed_real_name} on {$contentInfo.closed|bit_short_datetime}{/tr} + </div> + {/if} + {if $contentInfo.status=='O' } + <div class="date"> + {tr}Incident Report Open - Priority {$contentInfo.priority} {/tr} + </div> + {/if} + {if $contentInfo.status=='X' } + <div class="date"> + {tr}Incident Report Cancelled{/tr} + </div> + {/if} + <div class="header"> + {tr}<h1>{$contentInfo.title}</h1>{/tr} + </div> + <div class="content"> + {$parsed} + <div class="clear"></div> + </div> <!-- end .content --> +</div> <!-- end .body --> +{/strip} diff --git a/templates/show_contact.tpl b/templates/show_contact.tpl new file mode 100644 index 0000000..116635a --- /dev/null +++ b/templates/show_contact.tpl @@ -0,0 +1,6 @@ +<div class="display contact"> + +{include file="bitpackage:contact/contact_header.tpl"} +{include file="bitpackage:contact/contact_date_bar.tpl"} +{include file="bitpackage:contact/display_contact.tpl"} +</div> {* end .contact *} diff --git a/templates/show_contact_item.tpl b/templates/show_contact_item.tpl new file mode 100644 index 0000000..b881b8b --- /dev/null +++ b/templates/show_contact_item.tpl @@ -0,0 +1,33 @@ +{if $gBitSystem->isPackageActive( 'pigeonholes' )} + {include file="bitpackage:pigeonholes/display_paths.tpl"} +{/if} + +<div class="display contact"> + <div class="header"> + <h1>Contact-{$contentInfo.content_id}</h1> + </div> + <div class="date"> + {tr}Created by {displayname user=$contentInfo.creator_user user_id=$contentInfo.creator_user_id real_name=$contentInfo.creator_real_name}, Last modification by {displayname user=$contentInfo.modifier_user user_id=$contentInfo.modifier_user_id real_name=$contentInfo.modifier_real_name} on {$contentInfo.last_modified|bit_short_datetime}{/tr} + </div> + + {if $comments_at_top_of_page eq 'y' and $print_page ne 'y'} + {include file="bitpackage:liberty/comments.tpl"} + {/if} + + {if $gBitSystem->isPackageActive( 'stickies' )} + {include file="bitpackage:stickies/display_bitsticky.tpl"} + {/if} + + {include file="bitpackage:contact/page_display.tpl"} + + {if $print_page ne 'y'} + {include file="bitpackage:contact/page_action_bar.tpl"} + {/if} +</div> +{if $comments_at_top_of_page ne 'y' and $print_page ne 'y'} + {include file="bitpackage:liberty/comments.tpl"} +{/if} + +{if $gBitSystem->isPackageActive( 'pigeonholes' )} + {include file="bitpackage:pigeonholes/display_members.tpl"} +{/if} |
