2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2009 */
6 /* Adaptive Technology Resource Centre / Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /***********************************************************************/
13 // $Id: preferences.php 9991 2010-06-07 21:30:50Z hwong $
15 define('AT_INCLUDE_PATH', '../../../include/');
16 require (AT_INCLUDE_PATH.'vitals.inc.php');
17 include(AT_JB_INCLUDE.'classes/Employer.class.php');
18 admin_authenticate(AT_ADMIN_PRIV_JOB_BOARD);
20 //Get a list of employers
21 $sql = 'SELECT id FROM '.TABLE_PREFIX.'jb_employers';
22 $result = mysql_query($sql, $db);
24 while($row = mysql_fetch_assoc($result)){
25 $employers[] = new Employer($row['id']);
30 include(AT_INCLUDE_PATH.'header.inc.php');
31 $savant->assign('employers', $employers);
32 $savant->display('admin/jb_employers.tmpl.php');
33 include(AT_INCLUDE_PATH.'footer.inc.php');