<form class="form-horizontal" role="form" method="post"> <div class="form-group"> <label for="username">Building Name</label> <input type="text" class="form-control" id="name" name="name" placeholder="Enter building name"> </div> <div class="form-group"> <label for="password">Building Community</label> <input type="text" class="form-control" id="parent" name="parent" placeholder="Enter building community"> </div> <div class="form-group"> <button type="submit" name="add" class="btn btn-default">Add Building</button> </div> </form> <?php } elseif (isset($_GET["name"]) && isset($_GET["delete"])) { if (Building::Exists($_GET["name"])) { Building::Remove($_GET["name"]); ShowInfo("Removed Building Successfully"); RedirectTimer("admin&buildings", 0); } else { ShowError("Invalid building name."); } } else { ?> <p> <a href="index.php?p=admin&buildings&add"><button type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Add Building</button></a> </p> <table class="table table-bordered table-striped table-hover"> <thead>