removed mods directory from the ATutor codebase
[atutor.git] / mods / job_board / employer / home.php
diff --git a/mods/job_board/employer/home.php b/mods/job_board/employer/home.php
deleted file mode 100644 (file)
index 4304872..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/***********************************************************************/
-/* ATutor                                                                                                                         */
-/***********************************************************************/
-/* Copyright (c) 2002-2009                                                                                        */
-/* Adaptive Technology Resource Centre / Inclusive Design Institute       */
-/* http://atutor.ca                                                                                                       */
-/*                                                                                                                                        */
-/* This program is free software. You can redistribute it and/or          */
-/* modify it under the terms of the GNU General Public License            */
-/* as published by the Free Software Foundation.                                          */
-/***********************************************************************/
-// $Id$
-$_user_location='public';
-define(AT_INCLUDE_PATH, '../../../include/');
-include(AT_INCLUDE_PATH.'vitals.inc.php');
-include(AT_JB_INCLUDE.'classes/Job.class.php');
-include(AT_JB_INCLUDE.'classes/Employer.class.php');
-$_custom_css = $_base_path . AT_JB_BASENAME . 'module.css'; // use a custom stylesheet
-
-//TODO: If not authenticated with user login, quit.
-if (!Employer::authenticate()){
-       $msg->addError('ACCESS_DENIED');
-       header('Location: ../index.php');
-       exit;
-}
-
-//init
-$job = new Job();
-$page = intval($_GET['p']);
-$page = ($page==0)?1:$page;
-$all_job_posts = $job->getMyJobs($_GET['col'], $_GET['order']);
-
-//handle pages
-if ($page > 0){
-       $offset = ($page - 1) * AT_JB_ROWS_PER_PAGE;
-} else {
-       $offset = 0;
-}
-if (sizeof($all_job_posts) > 0){
-       $current_job_posts = array_slice($all_job_posts, $offset, AT_JB_ROWS_PER_PAGE);
-}
-
-//handle order
-if ($_GET['order']==''){
-       $order = 'DESC';
-} else {
-       //flip the ordre
-       $order = ($_GET['order']=='ASC')?'DESC':'ASC';
-       $page_string = 'col='.$_GET['col'].SEP.'order='.$_GET['order'];
-}
-
-include(AT_INCLUDE_PATH.'header.inc.php');
-echo '<div class="pageinator_box">';
-$savant->display('employer/jb_employer_header.tmpl.php');
-print_paginator($page, sizeof($all_job_posts), $page_string, AT_JB_ROWS_PER_PAGE);
-echo '</div>';
-$savant->assign('job_obj', $job);
-$savant->assign('job_posts', $current_job_posts);
-$savant->display('employer/jb_home.tmpl.php');
-print_paginator($page, sizeof($all_job_posts), $page_string, AT_JB_ROWS_PER_PAGE);
-include(AT_INCLUDE_PATH.'footer.inc.php'); 
-?>