$index = $_REQUEST[index]; if ($index == 'Remove') { if ($page->auth->checkPermessionEdit('TBL_CONTACT', $em->GetContactID()) == 1 or $page->auth->isOwner(TBL_CONTACT, " and contact_id='{$_REQUEST['contact_id']}'") == 1) { $em->RemoveContact($em->GetContactID()); } else { $page->auth->SendToRefrerPage(); exit; } } ?> <div id="div_credential" class="" style="display:none;"></div> <div id="prl" style="display:none;"><img id="prl_image" src="images/spinner.gif" /></div> <div id="content_column_header"> <?php echo $em->GetContactHead($em->GetContactID(), 'display_tag', 'em'); ?> <?php if ($page->auth->checkPermessionEdit('TBL_CONTACT', $_REQUEST[contact_id]) == 1 or $page->auth->isOwner(TBL_CONTACT, " and contact_id='{$_REQUEST['contact_id']}'") == 1) { ?> <div class="edit_link"><?php /*?> $app->getResumeLink($em->GetContactID()); ?> | <?php echo $em->ResetPassword($em->GetContactID()) ?> | <a style="color:#FF0000;" href="javascript:void(0)" onclick="javascript: em.addLocation('local',<?php echo $em->GetContactID(); ?>,'div_credential', { onUpdate: function(response,root){ document.getElementById('div_credential').innerHTML=response; document.getElementById('div_credential').style.display=''; }, preloader: 'prl' } ); return false;" >Location</a> |<?php */ ?>
$page = new basic_page(); $note = new Note(); $task = new Tasks(); $notify = new Notification(); $cases = new cases(); $cert = new Certification_Type(); $app = new Application(); $dynamic_page = new dynamic_page(); $global_tasks = new GlobalTask(); ?> <table style="width: 100%"><tr><td style="width:70%;vertical-align: top;padding-right: 20px;" > <div id="div_credential" class="" style="display:none;"></div> <div id="prl" style="display:none;"><img id="prl_image" src="images/spinner.gif" /></div> <div id="content_column_header"> <?php echo $em->GetContactHead($contact_id, 'display_tag', 'em'); ?> <div class="edit_link" id="edit_link"><?php /*?> $app->getResumeLink($em->GetContactID()); ?> | <?php echo $em->ResetPassword($em->GetContactID()) ?> | <a style="color:#FF0000;" href="javascript:void(0)" onclick="javascript: em.addLocation('local',<?php echo $em->GetContactID(); ?>,'div_credential', { onUpdate: function(response,root){ document.getElementById('div_credential').innerHTML=response; document.getElementById('div_credential').style.display=''; }, preloader: 'prl' } ); return false;" >Location</a> |<?php */ ?> <a onclick="<?php echo $dynamic_page->phplivex_subpage_link('contacts', 'edit', 'display_contact_area', array('contact_id' => $contact_id));