Exemplo n.º 1
0
    }
    if ($userfirstname_error == "" and $userlastname_error == "" and $userphone_error == "" and $tag_error == "") {
        $response = $user_manage->addcontact($first_name, $last_name, $phone, $usertag);
    }
}
$users_array = $user_manage->getAllUsers();
$tags_array = $user_manage->get_unique_tag();
if (isset($_GET["delete"])) {
    $response = $user_manage->deleteUsers($_GET["delete"]);
}
if (isset($_GET["update"])) {
    $response = $user_manage->updateUsers($_GET['first_name'], $_GET['last_name'], $_GET['phone'], $_GET['tag'], $_GET['list_id']);
}
if (isset($_GET["keyword"])) {
    $keyword = $_GET["keyword"];
    $users_array = $user_manage->get_all_phonebook($keyword);
} else {
    $users_array = $user_manage->get_all_phonebook();
}
?>
	<html>
	
				<form method="POST" action="<?php 
echo htmlspecialchars($_SERVER["PHP_SELF"]);
?>
">
						<?php 
if (isset($response->success)) {
    ?>

						<p><?php