2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* 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 /***********************************************************************/
14 if (!defined('AT_INCLUDE_PATH')) { exit; }
15 include(AT_JB_INCLUDE.'classes/Job.class.php');
18 * Get the latest updates of this module
19 * @return list of news, [timestamp]=>
21 function job_board_news() {
26 $result = $job->getAllJobs('created_date', 'desc');
28 if(is_array($result)){
29 foreach ($result as $row){
30 $title = htmlentities_utf8($row['title']);
32 $news[] = array('time'=>$row['revised_date'],
34 'thumb'=>AT_JB_BASENAME.'images/jb_icon_tiny.png',
35 'link'=>'<span title="'.strip_tags($title).'"><a href="'.AT_JB_BASENAME.'view_post.php?jid='.$row['id'].'">'.$title."</a></span>");