Example #1
0
 public function uploadImage($file)
 {
     $file_name = parent::uploadImage($file);
     $this->image = $file_name;
 }
Example #2
0
    if (empty($_POST['Fname']) === FALSE) {
        $model->updateUserFName((string) $_COOKIE['user'], $_POST['Fname']);
    }
    if (empty($_POST['Lname']) === FALSE) {
        $model->updateUserLName((string) $_COOKIE['user'], $_POST['Lname']);
    }
    if (empty($_POST['DOB']) === FALSE) {
        $model->updateUserDOB((string) $_COOKIE['user'], $_POST['DOB']);
    }
    if (empty($_POST['Institution']) === FALSE) {
        $model->updateUserInsitution((string) $_COOKIE['user'], $_POST['Institution']);
    }
    header("Refresh:0");
}
if (isset($_POST['upload'])) {
    $model->uploadImage((string) $_COOKIE['user']);
}
if (isset($_POST['Logout'])) {
    $model->logUserOut();
    header('Refresh :0');
}
?>
<!DOCTYPE html>
<html>
	<head>
		<link rel="icon" href="resources/images/logo.png">
		<title>HC > Profile</title>
		<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
		 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Jquery Library-->
		<link rel="stylesheet" href="resources/plugins/jquery-popup-form/css/jquery_popup.css" /><!-- Popup Window Stlyesheet-->
        <script src="resources/plugins/jquery-popup-form/jquery_popup.js"></script><!-- Popup Window JS File-->