PHPDoctor


i_contact_edit.php

Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html


/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ 
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/

    $pageTitle = 'Ofuz :: Edit contact';
    $Author = 'SQLFusion LLC';
    $Keywords = 'Keywords for search engine';
    $Description = 'Description for search engine';
    $background_color = 'white';
    include_once('config.php');
    include_once('includes/ofuz_check_access.script.inc.php');
// PS need a better way to handle that type of message:
    if (!is_object($_SESSION['ContactEditSave']) && !isset($_GET['id'])) {
        echo "Missing idcontact please click back and try again";
        exit;
    }
    include_once('includes/i_header.inc.php');
?>

Edit Contact

if (!is_object($_SESSION['ContactEditSave'])) { $ContactEdit = new Contact($GLOBALS['conx']); $ContactEdit->sessionPersistent("ContactEditSave", "index.php", 120); } if (isset($_GET['id'])) { $_SESSION['ContactEditSave']->getId((int)$_GET['id']); } $e_fullContact = new Event("ContactEditSave->eventValuesFromForm"); $e_fullContact->setLevel(1999); $e_fullContact->addEventAction("ContactEditSave->update", 2000); $e_fullContact->addEventAction("ContactPhone->eventSavePhones", 2001); $e_fullContact->addEventAction("ContactEmail->eventSaveEmails", 2002); $e_fullContact->addEventAction("ContactInstantMessage->eventSaveIM", 2003); $e_fullContact->addEventAction("ContactAddress->eventSaveContactAddress", 2004); $e_fullContact->addEventAction("ContactWebsite->eventSaveWebsites", 2005); $e_fullContact->addEventAction("ContactRssFeed->eventSaveRssFeed", 2006); $e_fullContact->addEventAction("mydb.gotoPage", 2333); $e_fullContact->addParam("goto", "i_contact.php"); echo $e_fullContact->getFormHeader(); echo $e_fullContact->getFormEvent(); $_SESSION['ContactEditSave']->setRegistry("i_ofuz_add_contact"); $_SESSION['ContactEditSave']->setApplyRegistry(true, "Form"); ?>
First name
firstname; ?>
Last name
lastname; ?>
Title
position; ?>
Company
company; ?>
echo "

Phone

"; $ContactPhone = $_SESSION['ContactEditSave']->getChildContactPhone(); echo $ContactPhone->formMultiEntry(); echo "

Email

"; $ContactEmail = $_SESSION['ContactEditSave']->getChildContactEmail(); echo $ContactEmail->formMultiEntry(); //echo "".$ContactEmail->hasData(); //echo count($ContactEmail->values); //echo $ContactEmail->getNumRows(); echo ""; echo "

IM

"; $ContactInstantMessage = $_SESSION['ContactEditSave']->getChildContactInstantMessage(); echo $ContactInstantMessage->formMultiEntry(); echo "

Contact Address

"; $ContactAddress = $_SESSION['ContactEditSave']->getChildContactAddress(); echo $ContactAddress->formMultiEntry(); echo "

Website

"; $ContactWebsite = $_SESSION['ContactEditSave']->getChildContactWebsite(); echo $ContactWebsite->formMultiEntry(); echo "

RSS Feed Import

"; $ContactRssFeed = $_SESSION['ContactEditSave']->getChildContactRssFeed(); echo $ContactRssFeed->formMultiEntry(); echo "

"; echo $e_fullContact->getFormFooter("Save"); echo "
"; ?>
$_SESSION['ContactEditSave']->setApplyRegistry(false); //echo $_SESSION['ContactEditSave']->idcontact; //echo "
key:".$_SESSION['ContactEditSave']->getPrimaryKeyValue(); ?>

PHPDoctor