Contact Templates
#display for contact display
[[#display]]
(:title {{$$name1}} {{$$name2}}:)
>>right messageheader<<
[-created {(ftime "%d %b %Y - %H:%M" @{{$$date}})}-] (:if expr ( auth admin || {$Author} {$$author} ):) {[foxedit form=NewContact]} {$$deletelink}(:if:)
>>frame messagetext<<
||
|| '''First Name:'''||{{$$name1}} ||
|| '''Surname:'''||{{$$name2}} ||
|| '''Telephone:'''||{{$$telephone}} ||
|| '''Mobile:'''||{{$$mobile}} ||
|| '''Email:'''||{{$$email}} ||
||'''''Address''''' || ||
|| '''House:'''||{{$$address1}} ||
|| '''Street:'''||{{$$address2}} ||
|| '''Town:'''||{{$$town}} ||
|| '''Postcode:'''||{{$$postcode}} ||
|| '''Country:'''||{{$$country}} ||
|| '''Note:'''|| ||
{{$$note}}
>><<
[[<<]]
[[#displayend]]
#new for new contact pages
This is used by form on NewContact page
[[#new]]
#foxbegin#
(:title {$$name1} {$$name2}:)
(:include ContactTemplates#display date="$:date" deletelink="{[foxdelrange]}" name1="$:name1" name2="$:name2" telephone="$:telephone" mobile="$:mobile" email="$:email" address1="$:address1" address2="$:address2" town="$:town" postcode="$:postcode" country="$:country" note="$:note" author="$:author" :)
(:author: {$$author}:)
(:date: {$$(timestamp)}:)
(:name1: {$$name1}:)
(:name2: {$$name2}:)
(:telephone: {$$telephone}:)
(:mobile: {$$mobile}:)
(:email: {$$email}:)
(:address1: {$$address1}:)
(:address2: {$$address2}:)
(:town: {$$town}:)
(:postcode: {$$postcode}:)
(:country: {$$country}:)
(:note: {$$note}:)
(:foxprepend noteform:)
(:include ContactTemplates#noteform:)
#foxend#
[[#newend]]
#noteform for inclusion
[[#noteform]]
(:messages:)
(:fox noteform target={*$FullName} template=ContactTemplates#addnote:)
|| ||'''Add Note''' ||
|| '''Subject'''||(:input text heading size=60:) ||
|| '''Note''' ||(:input textarea text cols=60 rows=6:) ||
|| Author:||(:input text author value="{$Author}" size=30:) (:input submit post Enter:)||
(:foxend noteform:)
[[#noteformend]]
#addnote for adding new notes or comments with noteform
[[#addnote]]
#foxbegin#
(:div0 class=messagebox:)
(:div1 class=messageheader:)
%rfloat%[-{$$(date d.m.Y)}-] (:if expr ( auth admin || {$Author} {$$author} ):){[foxdelrange]}(:if:)
{$$author}
(:div1end:)
(:div3 class=messagesubject:)
{$$subject}
(:div3end:)
(:div4 class=messagetext:)
{$$text}
(:div4end:)
(:div0end:)
#foxend#
[[#addnoteend]]