5 * Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
9 * This file is part of GForge.
11 * GForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * GForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with GForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 require_once('../env.inc.php');
27 require_once $gfwww.'include/pre.php';
28 require_once $gfwww.'people/people_utils.php';
29 require_once $gfwww.'project/admin/project_admin_utils.php';
31 if (!$sys_use_people) {
35 $group_id = getIntFromRequest('group_id');
36 $category_id = getIntFromRequest('category_id');
40 project_admin_header(array());
43 <p>'._('Here is a list of positions available for this project.').'</p>
46 echo people_show_project_jobs($group_id) . '</p>';
48 } else if ($category_id && is_numeric($category_id)) {
50 people_header(array('title'=>_('Help Wanted System')));
53 <p>'._('Click job titles for more detailed descriptions.').'</p>
55 echo people_show_category_jobs($category_id);
59 people_header(array('title'=>_('Help Wanted System')));
61 printf(_('<p>The %1$s Project Help Wanted board is for non-commercial, project volunteer openings. Commercial use is prohibited.</p><p>Project listings remain live for two weeks, or until closed by the poster, whichever comes first. (Project administrators may always re-post expired openings.)</p><p>Browse through the category menu to find projects looking for your help.</p><p>If you\'re a project admin, log in and submit help wanted requests through your project administration page.</p><p>To suggest new job categories, submit a request via the support manager.</p>'), fusionforge_get_config ('forge_name'));
63 echo people_show_category_table();
65 echo '<h4>'._('Last posts').'</h4>';
67 $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
68 FROM people_job,people_job_category,groups
69 WHERE people_job.group_id=groups.group_id
70 AND people_job.category_id=people_job_category.category_id
71 AND people_job.status_id=1
72 ORDER BY post_date DESC', array(), 5);
73 echo people_show_job_list($result);
74 echo '<p><a href="helpwanted-latest.php">['._('more latest posts').']</a></p>';
78 people_footer(array());