Exemple #1
0
         if (isset($_POST['updateContactType'])) {
             $contactType = new PersonType($_GET['contactTypeID']);
             updateContactType($contactType);
         } else {
             displayContacts($contact);
         }
     }
 } else {
     if ($_GET['action'] == editPerson && $_SESSION['access'] >= 50 || $_GET['action'] == showPerson) {
         //get the new group type corresponding to the ID
         $contact = new Person($_GET['contactID']);
         //if this is an update then update the contact
         if (isset($_POST['updateContact'])) {
             updateContact($contact);
         } else {
             displayContacts($contact);
         }
     } else {
         if ($_GET['action'] == editGroupType && $_SESSION['access'] >= 50 || $_GET['action'] == showGroupType) {
             //get the new group type corresponding to the ID
             $groupType = new ContactType($_GET['groupTypeID']);
             //if this is an update then update the contact
             if (isset($_POST['updateGroupType'])) {
                 updateGroupType($groupType);
             } else {
                 displayGroupType($groupType);
             }
         } else {
             if ($_GET['action'] == editContactType && $_SESSION['access'] >= 50 || $_GET['action'] == showContactType) {
                 //get the new contact type corresponding to the ID
                 $contactType = new PersonType($_GET['contactTypeID']);
Exemple #2
0
<!DOCTYPE html>
<html>
	<head>
		<title>Contacts</title>
	</head>
	<body>

		<div id="main_container">

			<h1 style="text-align:center;"></h1><br />
			<fieldset style="padding-left:40%;">
				<legend>Agent Contact Details</legend><br/>
			<?php 
include "Functions.php";
print displayContacts();
?>

			</fieldset>

		</br></br>

			<?php 
include "footer.php";
?>

		</div>

	</body>
</html>