* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER or $user_type == User_Type::NORMAL_ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); $database = $encoder_con->getDbc(); //will hold a flag to tell us which one to choose from, //when adding the address of the company $with_building = TRUE; //if the building is not chosen if ($_POST['Building'] == 'NOT_FILLED') { //take the regions and stuff like that //1 get the region id $with_building = FALSE; if (empty($_POST['Region']) or $_POST['Region'] == 'NOT_FILLED') { $errors[] = "Choose which region the building is."; } else { $Region_ID = mysqli_real_escape_string($database, trim($_POST['Region'])); } //2 get the city id
if ($type_of_error == Error_Type::SAME_USER_NAME) { $error_type = "Error Same Sub_City Name. Same Sub_City name can not be added"; } } } $dir = "VIEW/html/Encoder/Add_Place/Delete_Sub_City.php?error={$error_type}&Sub_City_ID={$Sub_City_ID}"; $url = BASE_URL . $dir; header("Location:{$url}"); exit; } if ($_SERVER['REQUEST_METHOD'] == "POST") { if (TRUE == check_login_status()) { $user_type = get_user_type(); if ($user_type == User_Type::ENCODER) { $encoder = $_SESSION['Logged_In_User']; $encoder_con = new Encoder_Controller($encoder); if (empty($_POST['Sub_City_ID'])) { $errors[] = "Sub_City id should be filled"; } else { $Sub_City_ID = $_POST['Sub_City_ID']; } if (empty($errors)) { $deleted = $encoder_con->Delete_Sub_City($Sub_City_ID); if ($deleted) { encoder_redirect_success(); } else { encoder_place_redirect(Error_Type::DATA_BASE, $Sub_City_ID); } } else { encoder_place_redirect(Error_Type::FORM, $Sub_City_ID); }
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); /** * get the street name in english */ if (empty($_POST['Street_Name'])) { $errors[] = "Street name should be filled"; } else { $Street_Name = $_POST["Street_Name"]; } /** * get the street name in amharic */ if (empty($_POST['Street_Name_Amharic'])) { $errors[] = "Street Name should be filled in amharic"; } else { $Street_Name_Amharic = $_POST["Street_Name_Amharic"];
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Sort'])) { $Name_Start = $_GET['Name_Start']; $Companies = $encoder->Get_Not_Expired_Companies($Name_Start); $Num_Companies = mysqli_num_rows($Companies); } else { $Companies = $encoder->Get_Not_Expired_Companies(); $Num_Companies = mysqli_num_rows($Companies); $Name_Start = 'A'; } ?> <div class="col-sm-8 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_10"> <div class="panel panel-primary list_header margin_top_10"> <div class="panel-body text-center"> <h4>List of NOT EXPIRED Companies (ጊዜ ያላለፈባቸው ድርጅቶች ዝርዝር በስም)</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error'];
<?php require 'Require.php'; include "Place_Header.php"; include "includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $sefers = $encoder->Get_Sefer(); $num_sefer = mysqli_num_rows($sefers); $streets = $encoder->Get_Streets(); $num_streets = mysqli_num_rows($streets); ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Add Street (የመንገድ መጨመርያ)</h4> </div> </div> <?php /** * if the get server request method has error set * inform the admin about the user */
<?php require "Require.php"; include "Encoder_Header.php"; include "Includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Ownership_ID'])) { $Ownership_ID = $_GET['Ownership_ID']; } $Single_Ownership = $encoder->Get_Single_Ownership($Ownership_ID); $Single_Ownership = mysqli_fetch_array($Single_Ownership, MYSQLI_ASSOC); $Name = $Single_Ownership['Name']; $Name_Amharic = $Single_Ownership['Name_Amharic']; ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Delete Company Ownership</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error'];
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Companies = $encoder->Get_All_Companies(); $Num_Companies = mysqli_num_rows($Companies); ?> <div class="col-sm-8 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_10"> <div class="panel panel-default margin_top_10"> <div class="panel-body text-center"> <h4> ሁሉም የድርጅት ዝርዝር </h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error']; ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>Warning!</strong><?php echo $error_msg; ?>
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); /** * get the user name from post */ if (empty($_POST['Region_Name'])) { $errors[] = "Region should be filled"; } else { $region_name = $_POST['Region_Name']; } if (empty($_POST['Region_Name_Amharic'])) { $errors[] = "Amharic name should be filled"; } else { $region_name_amharic = $_POST['Region_Name_Amharic']; } if (empty($errors)) { $region = new Region($region_name, $region_name_amharic);
if ($type_of_error == Error_Type::SAME_USER_NAME) { $error_type = "Error Same Street Name. Same Street name can not be added"; } } } $dir = "VIEW/html/Encoder/Add_Place/Delete_Street.php?error={$error_type}&Street_ID={$Street_ID}"; $url = BASE_URL . $dir; header("Location:{$url}"); exit; } if ($_SERVER['REQUEST_METHOD'] == "POST") { if (TRUE == check_login_status()) { $user_type = get_user_type(); if ($user_type == User_Type::ENCODER) { $encoder = $_SESSION['Logged_In_User']; $encoder_con = new Encoder_Controller($encoder); if (empty($_POST['Street_ID'])) { $errors[] = "Street id should be filled"; } else { $Street_ID = $_POST['Street_ID']; } if (empty($errors)) { $deleted = $encoder_con->Delete_Street($Street_ID); if ($deleted) { encoder_redirect_success(); } else { encoder_place_redirect(Error_Type::DATA_BASE, $Street_ID); } } else { encoder_place_redirect(Error_Type::FORM, $Street_ID); }
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Companies = $encoder->Get_Companies_For_Different_Listing_All(Registration_Type::SILVER); $Num_Companies = mysqli_num_rows($Companies); ?> <div class="col-sm-8 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_10"> <div class="panel panel-primary list_header margin_top_10 silver_b"> <div class="panel-body text-center"> <h4>List of Silver Companies (ሁሉም የነሃስ የድርጅት ዝርዝር በስም)</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error']; ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>Warning!</strong><?php echo $error_msg;
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); /** * get the user name from post */ if (empty($_POST['City_Name'])) { $errors[] = "City should be filled"; } else { $city_name = $_POST['City_Name']; } if (empty($_POST['City_Name_Amharic'])) { $errors[] = "City name in amharic should be filled"; } else { $city_name_amharic = $_POST["City_Name_Amharic"]; } if (empty($errors)) { $city = new City($city_name, $city_name_amharic);
<?php require 'Require.php'; include "Place_Header.php"; include "includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get the id of the Street if (isset($_GET['Street_ID'])) { $Street_ID = $_GET['Street_ID']; } $Single_Street = $encoder->Get_Single_Street($Street_ID); $Single_Street = mysqli_fetch_array($Single_Street, MYSQL_ASSOC); $Street_Name = $Single_Street['Name']; $Street_Name_Amharic = $Single_Street['Name_Amharic']; $Street_About = $Single_Street['About_Street']; $Street_About_Amharic = $Single_Street['About_Street_Amharic']; ?> <div class=" col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Edit Street</h4> </div> </div>
<?php require 'Require.php'; include "Place_Header.php"; include "includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get the id of the Sefer if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['Sefer_ID'])) { $Sefer_ID = $_GET['Sefer_ID']; } } $Single_Sefer = $encoder->Get_Single_Sefer($Sefer_ID); $Single_Sefer = mysqli_fetch_array($Single_Sefer, MYSQL_ASSOC); $Sefer_Name = $Single_Sefer['Name']; $Sefer_Name_Amharic = $Single_Sefer['Name_Amharic']; ?> <div class=" col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Delete Sefer</h4> </div> </div>
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); $database = $encoder_con->getDbc(); //get the address of the building //1 get the region id if (empty($_POST['Region']) or $_POST['Region'] == 'NOT_FILLED') { $errors[] = "Choose which region the building is."; } else { $Region_ID = mysqli_real_escape_string($database, trim($_POST['Region'])); } //2 get the city id if (empty($_POST['City']) or $_POST['City'] == 'NOT_FILLED') { $errors[] = "Choose which city the building is."; } else { $City_ID = mysqli_real_escape_string($database, trim($_POST['City'])); } //3 get the sub city id
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; //in here we are going to fetch data that is going to feel the drop downs $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Delete'])) { $Company_ID = $_GET["company_id"]; if (isset($_GET['on_building'])) { $single_company = $encoder->Get_Company_With_Building($Company_ID); $single_company = mysqli_fetch_array($single_company, MYSQLI_ASSOC); $Address_Building_Floor_ID = $single_company['Address_Building_Floor_ID']; } else { if (!isset($_GET['on_building'])) { $single_company = $encoder->Get_Company_With_Out_Building($Company_ID); $single_company = mysqli_fetch_array($single_company, MYSQLI_ASSOC); $Direction_ID = $single_company['Direction_ID']; $Place_ID = $single_company['Place_ID']; } } //first lets get the id $About_Company_ID = $single_company['About_Company_ID']; $Payment_Status_ID = $single_company['Payment_Status_ID']; $Company_Service_ID = $single_company['Company_Service_ID']; $Company_Ownership_ID = $single_company['Company_Ownership_ID']; $Company_Category_ID = $single_company['Company_Category_ID']; $Contact_ID = $single_company['Contact_ID']; $single_company = $encoder->Get_Company_For_Delete($Company_ID);
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Sort'])) { $Name_Start = $_GET['Name_Start']; $Companies = $encoder->Get_Company_For_Listing($Name_Start); $Num_Companies = mysqli_num_rows($Companies); } else { $Companies = $encoder->Get_Company_For_Listing(); $Num_Companies = mysqli_num_rows($Companies); $Name_Start = 'A'; } ?> <div class="col-sm-8 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_10"> <div class="panel panel-default margin_top_10"> <div class="panel-body text-center"> <h4>Sorted Company List (የድርጅት ዝርዝር በስም)</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error'];
<?php require 'Require.php'; include "Place_Header.php"; include "includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get the id of the Wereda if (isset($_GET['Wereda_ID'])) { $Wereda_ID = $_GET['Wereda_ID']; } $Single_Wereda = $encoder->Get_Single_Wereda($Wereda_ID); $Single_Wereda = mysqli_fetch_array($Single_Wereda, MYSQL_ASSOC); $Wereda_Name = $Single_Wereda['Name']; $Wereda_Name_Amharic = $Single_Wereda['Name_Amharic']; ?> <div class=" col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Edit Wereda</h4> </div> </div> <!-- start of feedback place--> <?php
<?php require "Require.php"; include "Category_Header.php"; include "Includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Category_ID'])) { $Category_ID = $_GET['Category_ID']; $Single_Category = $encoder->Get_Single_Category($Category_ID); $Single_Category = mysqli_fetch_array($Single_Category, MYSQLI_ASSOC); $Name = $Single_Category['Name']; $Name_Amharic = $Single_Category['Name_Amharic']; $General_Category = $Single_Category['General_Category']; } ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Edit Category</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) {
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER or $user_type == User_Type::NORMAL_ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); /** * get the user name from post */ if (empty($_POST['Name'])) { $errors[] = "Event should be filled"; } else { $Name = $_POST['Name']; } //get event name in amharic if (empty($_POST['Name_Amharic'])) { $errors[] = "Amharic name should be filled"; } else { $Name_Amharic = $_POST['Name_Amharic']; } //get about event
<?php require 'Require.php'; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get the phone id if (isset($_GET['Phone_ID'])) { $Phone_ID = $_GET['Phone_ID']; } $Single_Phone = $encoder->Get_Single_Phone($Phone_ID); $Single_Phone = mysqli_fetch_array($Single_Phone, MYSQLI_ASSOC); $Phone = $Single_Phone['Phone']; $Phone_Description = $Single_Phone['Description']; $Phone_Description_Amharic = $Single_Phone['Description_Amharic']; ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Edit Phone</h4> </div> </div> <?php
require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; //checks if the value exists in the specialization array function exists($value, $array) { for ($i = 0; $i < 5; $i++) { if ($value == $array[$i]) { return TRUE; } } return FALSE; } //in here we are going to fetch data that is going to feel the drop downs $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Regions = $encoder->Get_Regions(); //get regions $Cities = $encoder->Get_City(); //get cities $SubCities = $encoder->Get_Sub_City(); //get sub cities $Weredas = $encoder->Get_Wereda(); //get weredas $Sefers = $encoder->Get_Sefer(); //get sefer $buildings = $encoder->Get_Buildings(); //get the buildings $Street = $encoder->Get_Streets(); //get street
<?php include "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; //we have to get the category //then also a text field to add the specialization $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object if (isset($_GET['Specialization_ID'])) { $Specialization_ID = $_GET['Specialization_ID']; $Single_Specialization = $encoder->Get_Single_Specialization($Specialization_ID); $Single_Specialization = mysqli_fetch_array($Single_Specialization, MYSQLI_ASSOC); $Name = $Single_Specialization['Name']; $Name_Amharic = $Single_Specialization['Name_Amharic']; $General_Category = $Single_Specialization['General_Category']; } ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-danger"> <div class="panel-body text-center"> <h4>Delete Specialization (የስራ መስክ ስፔሻላይዜሽን ማጥፊያ)</h4> </div> </div>
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Companies = $encoder->Get_All_Companies_With_Specialization(GeneralCategory::RECREATIONAL); $Num_Companies = mysqli_num_rows($Companies); ?> <div class="col-sm-8 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_10"> <div class="panel panel-default margin_top_10"> <div class="panel-body text-center"> <h4> ሁሉም የመዝናኛ ተቋማት የድርጅት ዝርዝር </h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error']; ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>Warning!</strong><?php echo $error_msg; ?>
if ($type_of_error == Error_Type::SAME_USER_NAME) { $error_type = "Error Same City Name. Same City name can not be added"; } } } $dir = "VIEW/html/Encoder/Add_Place/Delete_City.php?error={$error_type}&City_ID={$City_ID}"; $url = BASE_URL . $dir; header("Location:{$url}"); exit; } if ($_SERVER['REQUEST_METHOD'] == "POST") { if (TRUE == check_login_status()) { $user_type = get_user_type(); if ($user_type == User_Type::ENCODER) { $encoder = $_SESSION['Logged_In_User']; $encoder_con = new Encoder_Controller($encoder); if (empty($_POST['City_ID'])) { $errors[] = "City id should be filled"; } else { $City_ID = $_POST['City_ID']; } if (empty($errors)) { $deleted = $encoder_con->Delete_City($City_ID); if ($deleted) { encoder_redirect_success(); } else { encoder_place_redirect(Error_Type::DATA_BASE, $City_ID); } } else { encoder_place_redirect(Error_Type::FORM, $City_ID); }
<?php require 'Require.php'; include "Place_Header.php"; include "includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get the id of the Sub_City if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['Sub_City_ID'])) { $Sub_City_ID = $_GET['Sub_City_ID']; } } $Single_Sub_City = $encoder->Get_Single_Sub_City($Sub_City_ID); $Single_Sub_City = mysqli_fetch_array($Single_Sub_City, MYSQL_ASSOC); $Sub_City_Name = $Single_Sub_City['Name']; $Sub_City_Name_Amharic = $Single_Sub_City['Name_Amharic']; ?> <div class=" col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>Delete Sub_City</h4> </div>
* get_user_type function is from a php file"Controller secure access" * it returns the type of the user */ $user_type = get_user_type(); /** * if the user type is admin instantiate an Admin_controller and do what you got to do */ if ($user_type == User_Type::ENCODER) { /** * get the logged in user */ $encoder = $_SESSION['Logged_In_User']; /** * instantiate admin controller with the logged in user */ $encoder_con = new Encoder_Controller($encoder); /** * get the user name from post */ if (empty($_POST['Name'])) { $errors[] = "City Name should be filled"; } else { $Name = $_POST['Name']; } if (empty($_POST['Name_Amharic'])) { $errors[] = "Amharic name should be filled"; } else { $Name_Amharic = $_POST['Name_Amharic']; } if (empty($_POST['City_ID'])) { $errors[] = "City ID should be filled";
<?php require "Require.php"; include "Category_Header.php"; include "Includables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object //get all the category from the database $category = $encoder->Get_Category(); $num_category = mysqli_num_rows($category); ?> <div class="col-sm-7 panel panel-primary"> <div class="col-sm-12 margin_top_20 "> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error']; ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>Warning!</strong><?php echo $error_msg; ?> </div> <?php
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); $event = $encoder->Get_TODAY_Events(); $today = date("Y/m/d"); ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="col-sm-12 margin_top_20"> <?php if (isset($_GET['success_edit'])) { ?> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>You have edited Event Successfully.</strong> </div> <?php } else { if (isset($_GET['success_delete'])) { ?> <div class="alert alert-success alert-dismissable">
<?php require "Require.php"; include "Encoder_Header.php"; include "Includeables.php"; $user = $_SESSION['Logged_In_User']; $encoder = new Encoder_Controller($user); //make an encoder object $Buildings = $encoder->Get_Building_For_Listing_All(); $Num_Bul = mysqli_num_rows($Buildings); ?> <div class="col-sm-7 list_container margin_0"> <div class="col-sm-12"> <div class="panel panel-default"> <div class="panel-body text-center"> <h4>All Building List (ሁሉም የህንጻ ዝርዝር )</h4> </div> </div> <?php if ($_SERVER['REQUEST_METHOD'] == "GET") { if (isset($_GET['error'])) { $error_msg = $_GET['error']; ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <strong>Warning!</strong><?php