//if the user is logged in return true
        return true;
    } else {
        //if the user is not logged in return false
        return false;
    }
}
function get_encoder_type()
{
    $user = $_SESSION['Logged_In_User'];
    $user_type = $user->getUserType();
    return $user_type;
}
//this will redirect the user to the login page
function redirect_to_index()
{
    $dir = "VIEW/html/Login/Login.php";
    //this is the login directory
    $url = BASE_URL . $dir;
    header("Location:{$url}");
    exit;
}
//if the user is not logged in redirect it to index
//if the user is not also encoder redirect it to the index
if (check_encoder_status()) {
    if (User_Type::OPERATOR != get_encoder_type()) {
        redirect_to_index();
    }
} else {
    redirect_to_index();
}
        //if the user is logged in return true
        return true;
    } else {
        //if the user is not logged in return false
        return false;
    }
}
function get_encoder_type()
{
    $user = $_SESSION['Logged_In_User'];
    $user_type = $user->getUserType();
    return $user_type;
}
//this will redirect the user to the login page
function redirect_to_index()
{
    $dir = "VIEW/html/Login/Login.php";
    //this is the login directory
    $url = BASE_URL . $dir;
    header("Location:{$url}");
    exit;
}
//if the user is not logged in redirect it to index
//if the user is not also encoder redirect it to the index
if (check_encoder_status()) {
    if (User_Type::ENCODER != get_encoder_type()) {
        redirect_to_index();
    }
} else {
    redirect_to_index();
}
        echo $Own_ID;
        ?>
"><?php 
        echo $Name . " ( " . $Name_Amharic . " )";
        ?>
</option>

				<?php 
    }
}
?>
		</select>
	</div>
	<div class="col-sm-2">
		<?php 
if (get_encoder_type() == User_Type::ENCODER) {
    ?>
			<a href="../Add_Ownership/Add_Ownership.php" class="btn btn-info">new</a>

		<?php 
}
?>

	</div>
</div>

<div class="form-group">
	<label for="Specialization" class="col-sm-4 control-label">Specialization (የስራ መስክ ስፔሻላይዜሽን) </label>
	<div class="col-sm-6">

		<?php 
        return true;
    } else {
        //if the user is not logged in return false
        return false;
    }
}
function get_encoder_type()
{
    $user = $_SESSION['Logged_In_User'];
    $user_type = $user->getUserType();
    return $user_type;
}
//this will redirect the user to the login page
function redirect_to_index()
{
    $dir = "VIEW/html/Login/Login.php";
    //this is the login directory
    $url = BASE_URL . $dir;
    header("Location:{$url}");
    exit;
}
//if the user is not logged i redirect it to index
//if the user is not also encoder or normal encoder redirect it to the index
if (check_encoder_status()) {
    if (User_Type::ENCODER == get_encoder_type() or User_Type::NORMAL_ENCODER == get_encoder_type()) {
    } else {
        redirect_to_index();
    }
} else {
    redirect_to_index();
}