// prints form to edit COMPANY object and it's secondary data // fields and buttons are displayed acording to $_GET parameters // -empty param list displays empty form with primary data fields // to insert new item into database. Secondary data is possible to edit // after saveing new item // "id" - identifies company object to edit // "insert" // -empty starts inserting function and gets new id from db // "id" - inserts new item with predefined id (after deleting item- kind of undelete) // "department_name" - adds new department to company // "phone_number" - saves new phone item and it's relation to company // "email_url" - saves new email item and it's relation to company // "web_url" - saves new web item and it's relation to company // "address_street" - saves new address item and it's relation to company // "delete" // -empty deletes company object (WARNING - doesn't delete relations) // "update" // -updates one of the secondary information or primary data fields require '../lib/webt_contacts.php'; webt_header("Company form", "../style/global.css"); ?>
id > 0) { /* {{{ secondary data handling ********************/ ?>