Esempio n. 1
0
include "Includeables.php";
$user = $_SESSION['Logged_In_User'];
$encoder = new Encoder_Controller($user);
//make an encoder object
$Gold_Companies = $encoder->Get_Companies_For_Summary(Registration_Type::GOLD);
$Expired_Gold_Companies = $encoder->Get_Expired_Companies_For_Summary(Registration_Type::GOLD);
$Not_Expired_Gold_Companies = $encoder->Get_Not_Expired_Companies_For_Summary(Registration_Type::GOLD);
$Silver_Companies = $encoder->Get_Companies_For_Summary(Registration_Type::SILVER);
$Expired_Silver_Companies = $encoder->Get_Expired_Companies_For_Summary(Registration_Type::SILVER);
$Not_Expired_Silver_Companies = $encoder->Get_Not_Expired_Companies_For_Summary(Registration_Type::SILVER);
$Bronze_Companies = $encoder->Get_Companies_For_Summary(Registration_Type::BRONZE);
$Expired_Bronze_Companies = $encoder->Get_Expired_Companies_For_Summary(Registration_Type::BRONZE);
$Not_Expired_Bronze_Companies = $encoder->Get_Not_Expired_Companies_For_Summary(Registration_Type::BRONZE);
$Not_Official_Companies = $encoder->Get_Companies_For_Summary(Registration_Type::NOT_OFFICIAL);
//get the total number of company
$Num_Company = $encoder->Get_Total_Company();
$Num_Official_Company = $encoder->Get_Officially_Registered_Companies();
$Num_Not_Official_Company = $encoder->Get_Not_Officially_Registered_Companies();
$Num_Expired_Companies = $encoder->Get_Expired_Companies_Num();
$Num_Not_Expired_Companies = $encoder->Get_Not_Expired_Companies_Num();
?>
<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>Summary of Companies</h4>
				</div>