summaryrefslogtreecommitdiff
path: root/display_contact.php
AgeCommit message (Collapse)AuthorFilesLines
2026-06-11Introduce ContactPerson and ContactBusiness subclassesLester Caine1-0/+1
Splits the Contact class into ContactPerson (content_type_guid='contactperson') and ContactBusiness (content_type_guid='contactbusiness'), each using 'contact' as the shared package-level xref schema. Replaces the $isPerson/$00 xref hack with proper class identity via instanceof. - ContactPerson.php, ContactBusiness.php: new subclasses - Contact.php: loadXrefTypeList() reads type tags directly from liberty_xref; getAvailableTypeItems() for edit form (schema-driven with pre-upgrade fallback); getDisplayUrl() now points to display_contact.php - Type item codes: P01/P02 (person), B01-B04 (business, B01=Service new) - list_people.php, list_businesses.php: separate list pages per type - list_contacts.php: combined display-layer merge of both types - 5.0.3.php: upgrade script migrating existing data to new content types and codes - Templates: isPerson flag from instanceof; horizontal type checkboxes; list.tpl accepts $listTitle; menu adds People/Businesses entries Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06display_contact: migrate to loadXrefInfo/gXrefInfo pathLester Caine1-1/+1
display_contact.php: replace getXrefGroupList() with loadXrefInfo() and assign gXrefInfo to Smarty. display_contact.tpl: replace old $source loop with xrefGroup foreach. view_xref_contact_group.tpl: remove fixed column widths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02Rename list.php → list_contacts.php; add odd/even row pairs to listLester Caine1-1/+1
list_contacts.php: modern replacement with clean code, no dead session logic, referencing list.tpl. list.php: now a thin redirect for backward compatibility. list.tpl: alternate odd/even class on each contact's row pair. All internal references (display_contact, index, load_emails, menu, admin_xref_types) updated to list_contacts.php. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-27Fix Firebird/PDO compatibility and strip Cotswold Security remnantsLester Caine1-1/+1
- Fix LOCALTIMESTAMP default in contact_address (CURRENT_TIMESTAMP caused timezone error with Firebird 4+ / PDO session having no timezone set) - Add xref_id sequence call to all liberty_xref INSERTs in Contact::store() - Add CONTACT_PKG_CLASS_PATH so getLibertyObject resolves Contact class - Fix LibertyXref date fields: format Unix timestamps as Y-m-d H:i:s before INSERT; use null instead of empty string for nullable TIMESTAMP columns - Remove Contract/Key Number column from list and edit templates - Remove find_key search box and getContractList() method - Remove alarm and council xref groups and items from schema seed - Add SCREF (Stock Source Reference) to links xref group seed - Archive and git-remove Cotswold-specific templates and list_contracts.php - Clean up contact_header: remove xkey prefix, restore plain title display - Browser title now shows contact name instead of generic "Contact Information" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22Remove xref methods now in LibertyContent; update callersLester Caine1-1/+1
Nine methods deleted from Contact (getContactGroupList, getContactSourceList, getXrefTypeList, getXrefFormatList, loadContentTypeList, loadXrefList, loadXref, storeXref, stepXref) — all now inherited from LibertyContent. Contact sets $mXrefTypeKey = 'contact_types' so loadXrefTypeList() continues to store under the key templates expect. load() updated to call loadXrefTypeList(). Page files updated: getContactGroupList → getXrefGroupList, getContactSourceList → getXrefSourceList. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2025-08-24Just a crude merging of the PHP7 code base with the PHP8.4 versionlsces1-20/+20
2016-02-07Move from Smarty2 to Smarty3 function stylelsces1-2/+2
2014-05-31Initial code to add image/document gallery to contact packagelsces1-0/+11
STill needs a means of supplying gallery number for related gallery.
2011-03-10Move address xref records to their own list and display them below the ↵Lester Caine1-1/+1
property address Still need to add a switch to disable navigation links where not needed - or hide them in a pop-up
2010-11-28Phantom change ... nothing actually appliedLester Caine1-1/+1
2010-11-03Import package again after stripping private data which should not have been ↵"Lester Caine ext:(%22)1-0/+46
commited