Example #1
0
        } else {
            echo "<script type='text/javascript'>alert('The format of account is wrong!');</script>";
        }
    } else {
        //if(isset($_POST['searchWord']))
        $showSearch = true;
    }
} else {
    if ($_SERVER['REQUEST_METHOD'] == 'GET' && isset($_GET['action']) && isset($_GET['account'])) {
        $act = $_GET['action'];
        $acc = $_GET['account'];
        //edit
        if ($act == 1) {
            $Users->UpdateAccount($acc);
        } else {
            $Users->DeleteAccount($acc);
            echo "<script type='text/javascript'>alert('success');</script>";
        }
    }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<!-- All the files that are required -->
		<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
		<link href='http://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>