예제 #1
0
파일: index_old.php 프로젝트: kennho/cs2102
$admin = Admin::get_admin("*****@*****.**", "dogssocute", $connection);
if (is_null($admin)) {
    echo "invalid email or password";
} else {
    echo $admin->get_email();
    echo "<br />";
    echo $admin->get_password();
    echo "<br />";
}
$locations = Location::get_all_location($connection);
for ($i = 0; $i < sizeof($locations); $i++) {
    echo $locations[$i]->get_name();
    echo "<br />";
}
echo "<br />";
$nationalities = Nationality::get_all_nationality($connection);
for ($i = 0; $i < sizeof($nationalities); $i++) {
    echo $nationalities[$i]->get_name();
    echo "<br />";
}
echo "<br />";
//Industry::add_industry("Banking", $connection);
//Industry::update_industry("Banking", "Finance", $connection);
//Industry::delete_industry("Finance", $connection);
$industries = Industry::get_all_industry($connection);
for ($i = 0; $i < sizeof($industries); $i++) {
    echo $industries[$i]->get_name();
    echo "<br />";
}
echo "<br />";
$positions = Position::get_all_position($connection);
예제 #2
0
 public function set_nationality($nationality_name)
 {
     $nationality = new Nationality();
     $nationality->set_name($nationality_name);
     $this->nationality = $nationality;
 }
예제 #3
0
파일: index.php 프로젝트: kennho/cs2102
 public function delete()
 {
     $nationality = $_GET["nationality"];
     Nationality::delete_nationality($nationality, $this->connection);
     header("Location: " . $_SERVER["HTTP_REFERER"]);
 }