5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2002-2004 (c) GForge Team
7 * http://fusionforge.org/
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 require_once '../env.inc.php';
26 require_once $gfcommon.'include/pre.php';
27 require_once $gfwww.'people/people_utils.php';
28 require_once $gfwww.'project/admin/project_admin_utils.php';
30 if (!forge_get_config('use_people')) {
31 exit_disabled('home');
34 $group_id = getIntFromRequest('group_id');
35 $category_id = getIntFromRequest('category_id');
39 project_admin_header(array());
42 <p>'._('Here is a list of positions available for this project.').'</p>
45 echo people_show_project_jobs($group_id) . '</p>';
47 } elseif ($category_id && is_numeric($category_id)) {
49 people_header(array('title'=>_('Help Wanted System')));
52 <p>'._('Click job titles for more detailed descriptions.').'</p>
54 echo people_show_category_jobs($category_id);
58 people_header(array('title'=>_('Help Wanted System')));
61 printf(_('The %1$s Project Help Wanted board is for non-commercial, project volunteer openings. Commercial use is prohibited.'), forge_get_config ('forge_name'));
65 print _('Project listings remain live for two weeks, or until closed by the poster, whichever comes first. (Project administrators may always re-post expired openings.)');
69 print _('Browse through the category menu to find projects looking for your help.');
73 print _('If you\'re a project admin, log in and submit help wanted requests through your project administration page.');
77 print _('To suggest new job categories, submit a request via the support manager.');
80 echo people_show_category_table();
82 echo '<h2>'._('Last posts').'</h2>';
84 $result=db_query_params('SELECT people_job.group_id,people_job.job_id,groups.group_name,groups.unix_group_name,people_job.title,people_job.post_date,people_job_category.name AS category_name
85 FROM people_job,people_job_category,groups
86 WHERE people_job.group_id=groups.group_id
87 AND people_job.category_id=people_job_category.category_id
88 AND people_job.status_id=1
89 ORDER BY post_date DESC', array(), 5);
90 echo people_show_job_list($result);
91 echo '<p><a href="helpwanted-latest.php">['._('more latest posts').']</a></p>';
95 people_footer(array());