00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: index.php 5384 2006-02-15 14:59:11Z yeupou $
00006 #
00007 # Copyright 1999-2000 (c) The SourceForge Crew
00008 # Copyright 2000-2003 (c) Free Software Foundation
00009 #
00010 # Copyright 2002-2006 (c) Mathieu Roy <yeupou--gnu.org>
00011 #
00012 # The Savane project is free software; you can redistribute it and/or
00013 # modify it under the terms of the GNU General Public License
00014 # as published by the Free Software Foundation; either version 2
00015 # of the License, or (at your option) any later version.
00016 #
00017 # The Savane project is distributed in the hope that it will be useful,
00018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020 # GNU General Public License for more details.
00021 #
00022 # You should have received a copy of the GNU General Public License
00023 # along with the Savane project; if not, write to the Free Software
00024 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00025
00026
00027 require "../../include/pre.php";
00028 require "../../include/account.php";
00029
00030 # get current information
00031 $res_grp = group_get_result($group_id);
00032
00033 if (db_numrows($res_grp) < 1)
00034 {
00035 exit_error(_("Invalid Group"));
00036 }
00037
00038 #if the project isnt active, require you to be a member of the super-admin group
00039 if (!(db_result($res_grp,0,'status') == 'A'))
00040 {
00041 session_require (array('group'=>1));
00042 }
00043
00044 session_require(array('group'=>$group_id));
00045
00046 site_project_header(array('group'=>$group_id,'context'=>'ahome'));
00047
00048 print '<p>'._("You can view/change all of your project configuration from here.").'</p>';
00049 utils_get_content("project/admin/index_misc");
00050
00051
00052 ###############################
00053
00054 print "\n\n".html_splitpage(1);
00055
00056 print $HTML->box_top(_("Features"));
00057
00058 # Activate features
00059 print '<a href="editgroupfeatures.php?group='.$group_name.'">'._("Select Active Features").'</a>';
00060 print '<p class="smaller">'._("Define which features you want to use for this project.").'</p>';
00061
00062 unset($i);
00063 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00064
00065 # Feature-specific configuration
00066 $features = array("cookbook" => _("Cookbook"),
00067 "support" => _("Support Tracker"),
00068 "bugs" => _("Bug Tracker"),
00069 "task" => _("Task Manager"),
00070 "patch" => _("Patch Tracker"),
00071 "news" => _("News Manager"),
00072 "mail" => _("Mailing Lists"));
00073 unset($link);
00074 while (list($case, $name) = each($features))
00075 {
00076 if ($project->Uses($case) || $case == "cookbook")
00077 {
00078 $link .= '<a href="../../'.$case.'/admin/?group='.$group_name.'">'.$name.'</a>, ';
00079 }
00080 }
00081 $link = rtrim($link, ', ');
00082 print sprintf(_("Configure Features: %s"), $link);
00083 print '<p class="smaller">'._("You can manage fields used, define query forms, manage mail notifications, etc.").'</p>';
00084
00085 $i++;
00086
00087 # Mail notifs
00088 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00089 print '<a href="editgroupnotifications.php?group='.$group_name.'">'._("Configure Mail Notifications").'</a>';
00090 print '<p class="smaller">'._("For many features, you can modify the type of notification (global/per category), the related address lists and the notification triggers.").'</p>';
00091
00092
00093 $i++;
00094
00095 # Conf copy
00096 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00097 print '<a href="conf-copy.php?group='.$group_name.'">'._("Copy Configuration").'</a>';
00098 print '<p class="smaller">'._("Copy the configuration of trackers of other projects you are member of.").'</p>';
00099
00100
00101 print $HTML->box_bottom();
00102 print "<br />\n";
00103
00104
00105
00106 print html_splitpage(2);
00107
00108 unset($i);
00109 ###############################
00110 print $HTML->box_top(_('Information'));
00111
00112 # Public info
00113 print '<a href="editgroupinfo.php?group='.$group_name.'">'._("Edit Public Information").'</a>';
00114 print '<p class="smaller">'.sprintf(_("Your current short description is: %s"), db_result($res_grp,0,'short_description'));
00115 print '</p>';
00116
00117 unset($i);
00118 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00119 # Public info
00120 print '<a href="history.php?group='.$group_name.'">'._("Show History").'</a>';
00121 print '<p class="smaller">'._("This allows you to keep tracks of important changes occuring on your project configuration.").'</p>';
00122
00123 print $HTML->box_bottom();
00124
00125
00126 print '<br />';
00127
00128 unset($i);
00129 ###############################
00130 print $HTML->box_top(_('Members'));
00131
00132 # Add/Remove members
00133 print '<a href="useradmin.php?group='.$group_name.'">'._("Manage Members").'</a>';
00134 print '<p class="smaller">'. _("Add, remove members, approve or reject requests for inclusion.").'</p>';
00135
00136 unset($i);
00137 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00138 # Edit permissions members
00139 print '<a href="userperms.php?group='.$group_name.'">'._("Set Permissions").'</a>';
00140 print '<p class="smaller">'._("Set members and group default permissions, set posting restrictions.").'</p>';
00141
00142 $i++;
00143 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00144 # Add job offers
00145 print '<a href="../../people/createjob.php?group='.$group_name.'">'._("Post Jobs").'</a>';
00146 print '<p class="smaller">'._("Add a job offer.").'</p>';
00147
00148 $i++;
00149 print $HTML->box_nextitem(utils_get_alt_row_color($i));
00150 # Job offers list
00151 print '<a href="../../people/editjob.php?group='.$group_name.'">'._("Edit Jobs").'</a>';
00152 print '<p class="smaller">'._("Edit jobs offers for this project.").'</p>';
00153
00154
00155 print $HTML->box_bottom();
00156
00157
00158 print html_splitpage(3);
00159
00160 ###############################
00161
00162 site_project_footer(array());
00163
00164 ?>