<?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">&times;</button>
			<strong>Warning!</strong><?php 
        echo $error_msg;