PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/recruitment/admin/admin_dashboard.php

https://bitbucket.org/lecturer34/hrmis
PHP | 181 lines | 155 code | 22 blank | 4 comment | 10 complexity | e10b35cd156d2969d09aed4c5a250ab2 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. if (!isset($_SESSION)) {
  3. session_start();
  4. }
  5. if(!isset($_SESSION['msgDetails'])){
  6. $_SESSION['msgCaption'] = '';
  7. $_SESSION['msgDetails'] = '';
  8. }
  9. if(!isset($_SESSION['user_account_row_id']) || $_SESSION['user_account_row_id'] < 1){
  10. include_once('../access_error.php');
  11. $redirectToURL = '../';
  12. header("location: $redirectToURL");
  13. exit();
  14. }
  15. require_once('../../lib/database.php');
  16. openConnection();
  17. require_once('../helper_functions.php');
  18. load_settings_into_session_vars();
  19. //clear/reset other session vars to start clean:
  20. //1. Interview Panels:
  21. //2. Interview Panel Members:
  22. $_SESSION['mem_FullNames'] = '';
  23. $_SESSION['mem_PNumber'] = '';
  24. $_SESSION['mem_Department'] = 0;
  25. $_SESSION['mem_Role'] = '';
  26. $_SESSION['interview_panel_member_delete_id'] = 0;
  27. $_SESSION['interview_panel_member_edit_id'] = 0;
  28. $_SESSION['interview_schedule_id'] = 0;
  29. ?>
  30. <!DOCTYPE html>
  31. <html lang="en">
  32. <head>
  33. <?php require_once("../../partials/cssimports.php") ?>
  34. <title>ABU Zaria | Online Job Vacancies and Recruitment Portal</title>
  35. <meta name="keywords" content="ABU Zaria, job vacancies, recruitment">
  36. <meta name="description" content="The official online job vacancies and recruitment portal of Ahmadu Bello University, Zaria - Nigeria.">
  37. <link href="../recruit_css/style.css" rel="stylesheet" type="text/css" media="screen" />
  38. <style type="text/css">
  39. .hero-unit {
  40. background-color: #fff;
  41. opacity: 0.8;
  42. -webkit-border-radius: 3px;
  43. -moz-border-radius: 3px;
  44. border-radius: 3px;
  45. background-image: url('../../assets/img/banner-recruitment.png');
  46. min-height: 120px;
  47. }
  48. .hero-unit p a.btn {
  49. opacity: 1;
  50. }
  51. </style>
  52. <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  53. <!--[if lt IE 9]>
  54. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  55. <![endif]-->
  56. </head>
  57. <body>
  58. <?php include_once dirname(__FILE__) . "/../../partials/recruit_navbar.php" ?>
  59. <div id="container" class="container">
  60. <div class="span12">
  61. <div class="page-header">
  62. <h2>Welcome to Admin Dashboard<small> <?php echo $_SESSION['full_names']?>&nbsp;&nbsp;<font size="-1"><a href="../logout.php">[Log Out]</a></font></small></h2>
  63. <noscript>
  64. <?php include_once('../no_javascript.php');?>
  65. </noscript>
  66. <?php
  67. if(isset($_SESSION['msgDetails']) && strlen($_SESSION['msgDetails']) > 0 ) {
  68. // echo $_SESSION['msgDetails'];
  69. $_SESSION['msgCaption'] = '';
  70. $_SESSION['msgDetails'] = '';
  71. }
  72. ?>
  73. </div>
  74. <div class="dashboard_div" style="width:90%">
  75. <div class="div_caption"><strong>Perform Your Admin Actions Here</strong></div>
  76. <br />
  77. <div class="dashboard_div" style="width:27%; height:230px">
  78. <div class="div_caption"><strong>Business Rules Settings</strong></div>
  79. <p><strong>Set global parameters that control the behaviour of the recruitments portlet:</strong></p>
  80. <ul>
  81. <li>Accounts expiry threshold <strong>&ndash; <?php echo $_SESSION['biz_MaxThreshold'];?> days</strong></li>
  82. <li>Applicants' max. picture uploads <strong>&ndash; <?php echo $_SESSION['biz_MaxPixChange'];?>x</strong></li>
  83. <li>Applicants' max. biodata edits <strong>&ndash; <?php echo $_SESSION['biz_MaxBiodataEdit'];?>x</strong></li>
  84. <li>Applicants' max. job applications <strong>&ndash; <?php echo $_SESSION['biz_MaxJobApps'];?></strong></li>
  85. <li>Referees per job application <strong>&ndash; <?php echo $_SESSION['biz_Referees'];?></strong></li>
  86. </ul><br />
  87. <p align="right"><a class="btn btn-success" href="admin_set_business_rules.php">Update Business Rules &raquo;</a></p>
  88. </div>
  89. <div class="dashboard_div" style="width:27%; height:230px">
  90. <div class="div_caption"><strong>Users / Applicants</strong></div>
  91. <p><strong>Perform actions related to applicants or users of the recruitments portlet, like:</strong></p>
  92. <ul>
  93. <li><a href="block_account.php">Block users' / applicants' accounts</a></li>
  94. <li><a href="unblock_account.php">Unblock users' / applicants' accounts</a></li>
  95. <li><a href="password_reset.php">Reset users' / applicants' passwords</a></li>
  96. <li><a href="#">View / track application status</a></li>
  97. <li><a href="#">View / print applicants' CVs</a></li>
  98. <li><a href="modify_senatorial_district.php">Edit Senatorial Districts</a></li>
  99. <li><a href="add_senatorial_district.php">Add/Delete Senatorial Districts</a></li>
  100. </ul>
  101. <p align="center"><strong>(click the appropriate link to proceed)</strong></p>
  102. </div>
  103. <div class="dashboard_div" style="width:27%; height:230px">
  104. <div class="div_caption"><strong>Interviews</strong></div>
  105. <p><strong>Manage job interviews-related elements or operations here, such as:</strong></p>
  106. <ul>
  107. <li><a href="interview_panels_manage.php">Manage job interview panels</a></li>
  108. <li><a href="interview_panel_members.php">Manage panel memberships</a></li>
  109. <li><a href="interview_schedule.php">Manage job interview schedules</a></li>
  110. <li><a href="interview_score_items.php">Manage interview scoring parameters</a></li>
  111. <li><a href="interview_score_settings.php">Set / Edit interview scoring points</a></li>
  112. <li><a href="shortlist_applicants.php">Shortlist applicants for interview</a></li>
  113. <li><a href="interview_score_entry.php">Record or edit job interview results</a></li>
  114. </ul>
  115. <p align="center"><strong>(click the appropriate link to proceed)</strong></p><br />
  116. </div>
  117. <div class="dashboard_div" style="width:27%; height:230px">
  118. <div class="div_caption"><strong>New Appointments</strong></div>
  119. <p><strong>Handle operations pertaining to new appointments or employments such as:</strong></p>
  120. <ul>
  121. <li><a href="../documentation/recommend.php">Recommend new appointments</a></li>
  122. <li><a href="../documentation/appoint.php">Appoint new employees</a></li>
  123. <li><a href="../documentation/confirm_assumption_of_duty.php">Confirm assumption of duty</a></li>
  124. <li><a href="#">Confirm documentation</a></li>
  125. <li><a href="#">Manage ?????</a></li>
  126. <li><a href="#">Manage ?????</a></li>
  127. </ul><br />
  128. <p align="center"><strong>(Click the appropriate link to proceed)</strong></p><br />
  129. </div>
  130. <div class="dashboard_div" style="width:27%; height:230px">
  131. <div class="div_caption"><strong>Sundry Reports</strong></div>
  132. <p><strong>Generate all manners of recruitments-related reports for viewing or printing:</strong></p>
  133. <ul>
  134. <li>Lists of Job Applicants</li>
  135. <li>Lists of Job Vacancies</li>
  136. <li>Lists of Job Advertisements</li>
  137. <li>Lists of Interview Panels</li>
  138. <li>???????</li>
  139. </ul><br />
  140. <p align="right"><a class="btn btn-success" href="#">Generate Reports &raquo;</a></p>
  141. </div>
  142. <div class="dashboard_div" style="width:27%; height:230px">
  143. <div class="div_caption"><strong>Sundry Reports</strong></div>
  144. <p><strong>Generate all manners of recruitments-related reports for viewing or printing:</strong></p>
  145. <ul>
  146. <li>Lists of Job Applicants</li>
  147. <li>Lists of Job Vacancies</li>
  148. <li>Lists of Job Advertisements</li>
  149. <li>Lists of Interview Panels</li>
  150. <li>???????</li>
  151. </ul><br />
  152. <p align="right"><a class="btn btn-success" href="#">Generate Reports &raquo;</a></p>
  153. </div>
  154. </div>
  155. </div><!-- /span12 -->
  156. </div><!-- /container -->
  157. </body>
  158. </html>