Exemple #1
0
		exit();
}
*/
$em = new Event_Contacts();
$contact = new Contacts();
$ajax = new PHPLiveX();
$evt = new Event();
$note = new Note();
$notify = new Notification();
$cert = new Certification_Type();
$app = new Application();
/******************** Contact Object ***********************/
$em->SetUserID($page->auth->Get_user_id());
$em->SetContactID($_REQUEST[contact_id]);
$em->SetUserName($page->auth->Get_user_name());
$_SESSION['contact_id'] = $em->GetContactID();
/*********************************************************/
/******************** Task Object ***********************/
$user = new User();
$task = new Tasks();
$task->SetUserObject($user);
$task->SetUserID($page->auth->Get_user_id());
$ajax->AjaxifyObjects(array("secure", "cert", "em", "task", "note"));
/*******************************************************/
$page->setPageKeywords('');
$page->setPageDescription('');
$page->setPageTitle("CONTACT PROFILE");
$page->setActiveButton('2');
//$page -> setInnerNav('');
//$page -> setImportCss1('main_style.css');
$page->SetDynamicCSS_1('main_style.php');
?>
<iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;">
</iframe>
<iframe id="add_target" name="add_target" src="#" style="width:0;height:0;border:0px solid #fff;">
</iframe>
</div>
<div class="contact_form">
<div class="profile_box1">
<div id="div_doc" >
<?php 
/*?>    <h2>Latest Calls</h2>
<?php */
?>
    <?php 
if (PHONE_SYSTEM == "asterisk") {
    $asterisk->display_call_rec($em->get_contact_phone($em->GetContactID()), "5");
}
?>

    
</div></div></div>

<?php 
?>
<div class="Clear"><?php 
$note->SetRefreshJs($dynamic_page->phplivex_subpage_link('contacts', 'contact_profile', 'display_contact_area', array('contact_id' => $contact_id)));
if ($_POST[submit] == 'add message') {
    $note->Create_Note('server', $em->GetContactID(), $contact->module, $page->auth->Get_user_id());
    exit;
} else {
    $note->Create_Note('local', $em->GetContactID(), $contact->module, $_SESSION['user_id']);