/recruitment/profile/profile.php
PHP | 164 lines | 138 code | 25 blank | 1 comment | 11 complexity | cd58e2e960dd2f3622809ef7a551e211 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- if (!isset($_SESSION)) {
- session_start();
- }
-
- if(!isset($_SESSION['msgDetails'])){
- $_SESSION['msgCaption'] = '';
- $_SESSION['msgDetails'] = '';
- }
-
- if(!isset($_SESSION['user_account_row_id']) || $_SESSION['user_account_row_id'] < 1){
- include_once('../access_error.php');
- $redirectToURL = '../';
-
- header("location: $redirectToURL");
- exit();
- }
-
- require_once('../../lib/database.php');
- openConnection();
-
- require_once('profile_details.php');
- require_once('../adverts/get_running_adverts_table.php');
- $ads_count = count_running_adverts();
- $ads_responded = count_adverts_responded_to($_SESSION['user_account_row_id']); //defined in helper_functions.php
- ?>
-
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <?php require_once("../../partials/cssimports.php") ?>
- <title>ABU Zaria | Online Job Vacancies and Recruitment Portal</title>
- <meta name="keywords" content="ABU Zaria, job vacancies, recruitment">
- <meta name="description" content="The official online job vacancies and recruitment portal of Ahmadu Bello University, Zaria - Nigeria.">
- <link href="../recruit_css/style.css" rel="stylesheet" type="text/css" media="screen" />
- <style type="text/css">
- .hero-unit {
- background-color: #fff;
- opacity: 0.8;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- background-image: url('../../assets/img/banner-recruitment.png');
- min-height: 120px;
- }
-
- .hero-unit p a.btn {
- opacity: 1;
- }
-
- </style>
- <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- </head>
-
- <body>
- <?php include_once dirname(__FILE__) . "/../../partials/recruit_navbar.php" ?>
- <div id="container" class="container">
- <div class="span12">
- <div class="page-header">
- <h2>Welcome<small> <?php echo $_SESSION['full_names']?> <font size="-1"><a href="../logout.php">[Log Out]</a> <a href="unregister_user.php">[Delete Account]</a> <a href="personal_details.php">[Personal Details]</a> <a href="family_details.php">[Family Details]</a> <a href="my_nok.php">[Next of Kin Details]</a></font></small></h2>
- <noscript>
- <?php include_once('../no_javascript.php');?>
- </noscript>
- <?php
- if(isset($_SESSION['msgDetails']) && strlen($_SESSION['msgDetails']) > 0 ) {
- if($_SESSION['msgDetails'] != 'The contact details information was successfully posted.'){
- // echo $_SESSION['msgDetails'];
- }
-
- $_SESSION['msgCaption'] = '';
- $_SESSION['msgDetails'] = '';
- }
- ?>
- </div>
-
- <div class="dashboard_div" style="width:90%">
- <div class="div_caption">
- Nice to see you again, <strong><?php echo $_SESSION['full_names']?></strong>
- <div class="div_square_link"><a href="print_profile.php" title="click to print your complete profile">[print profile]</a></div>
- </div>
- <br />
- <div class="profile_pic"><?php embed_user_profile_pic($_SESSION['user_account_row_id'], ''); ?></div>
- <div id="left_container" style="width:53%; float:left; display:block;">
- <div class="dashboard_div">
- <div class="div_caption"><strong>Your Profile, In Brief</strong></div>
- <?php
- get_biodata_details($_SESSION['user_account_row_id']);
- ?>
- </div>
-
- <div class="dashboard_div" >
- <div class="div_caption"><strong>Your Contact Details</strong></div>
- <?php
- get_contact_details($_SESSION['user_account_row_id']);
- ?>
- </div>
- </div>
-
- <div id="right_container" style="width:43%;float:left; margin-left:20px; display:block;">
-
- <div class="dashboard_div" style="width:95%;">
- <div class="div_caption"><strong>Your Qualifications</strong></div>
- <?php
- get_qualifications_details($_SESSION['user_account_row_id']);
- ?>
- </div>
-
- <div class="dashboard_div" style="width:95%;">
- <div class="div_caption"><strong>Your Work Experience</strong></div>
- <?php
- get_work_experience_details($_SESSION['user_account_row_id']);
- ?>
- </div>
-
- <div class="dashboard_div" style="width:95%;">
- <div class="div_caption"><strong>Vacancies and Your Job Applications</strong></div>
- <?php
- $ads_notice = '';
- switch ($ads_count) {
- case 0:
- $ads_notice = '<br /><p>There is currently no vacancy position being advertised. You will be notified here whenever new vacancies are advertised by the University.</p>';
- break;
-
- case 1:
- $ads_notice = '<br /><p>There is <strong>1</strong> vacancy position currently being advertised. You may be interested in it. Check out our <a href="../adverts/running_adverts.php">current vacancy adverts.</a></p>';
- break;
-
- default:
- $ads_notice = '<br /><p>There are <a href="../adverts/running_adverts.php"><strong>' . $ads_count . ' vacancy positions</strong></a> currently being advertised. You may be interested in one or two of them. Check out our <a href="../adverts/running_adverts.php">current vacancy adverts.</a></p>';
- break;
- }
-
- echo $ads_notice;
-
- $ad_resp = '<br /><p>You have so far responded to <strong>';
-
- switch ($ads_responded){
- case 0:
- $ad_resp .= 'no advertisements on this portal.';
- break;
-
- case 1:
- $ad_resp .= '<a href="../apply/my_job_applications.php">1 advertisement</a> on this portal.';
- break;
-
- default:
- $ad_resp .= '<a href="../apply/my_job_applications.php">' . $ads_responded . ' advertisements</strong></a> on this portal.';
- break;
- }
- $ad_resp .= ' You can track all your job applications by clicking <a href="../apply/my_job_applications.php">here.</a></p>';
- echo $ad_resp;
- ?>
- </div>
- </div>
- </div>
- </div><!-- /span12 -->
- </div><!-- /container -->
-
- </body>
- </html>