//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 $categories = $encoder->GetGeneralCategory(GeneralCategory::EDUCATIONAL); //get category that are in a generic Education category $company_ownership = $encoder->Get_Ownerships(); //get different type of ownership if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (isset($_GET['CA'])) { $Company_ID = $_GET['company_id']; $single_company = $encoder->Get_Company_With_Out_Building($Company_ID); $Company_Spec = mysqli_fetch_array($single_company, MYSQLI_ASSOC); //get place $Com_Region_ID = $Company_Spec["Region"]; $Com_City_ID = $Company_Spec["City"]; $Com_Sub_City_ID = $Company_Spec["Sub_City"]; $Com_Sefer_ID = $Company_Spec["Sefer"]; $Com_Wereda_ID = $Company_Spec["Wereda"]; $Com_Street_ID = $Company_Spec["Street"]; $Com_Direction = $Company_Spec["Direction"]; $Com_Direction_Amharic = $Company_Spec["Direction_Amharic"];
<?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 $Ownerships = $encoder->Get_Ownerships(); ?> <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 } if (isset($_GET['success'])) {