Main Page | Directories | File List | File Members

include/trackers_run/admin/index.php

Go to the documentation of this file.
00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: index.php 5387 2006-02-15 15:21:25Z yeupou $
00006 #
00007 #  Copyright 1999-2000 (c) The SourceForge Crew
00008 #  Copyright 2001-2002 (c) Laurent Julliard, CodeX Team, Xerox
00009 #
00010 #  Copyright 2003-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 $is_admin_page='y';
00027 
00028 if ($group_id && user_ismember($group_id,'A')) 
00029 {
00030 
00031 
00032   # FIXME: test about user are completely broken 
00033   # (if admin, if logged in later!)
00034 
00035   # Initialize global bug structures
00036   trackers_init($group_id);
00037 
00038   /*
00039         Show main page
00040   */
00041 
00042   trackers_header_admin(array());
00043 
00044   print '<p>'._("You can view/change all of this tracker configuration from here.").'</p>';
00045 ###############################
00046 
00047   print "\n\n".html_splitpage(1);
00048   
00049   print $HTML->box_top(_("Miscellaneous"));
00050   
00051 # Permissions
00052   print '<a href="userperms.php?group='.$group_name.'">'._("Set Permissions").'</a>';
00053  print '<p class="smaller">'._("Set permissions and posting restrictions for this tracker.").'</p>';
00054  
00055  unset($i);
00056 
00057 # Mail notifs
00058  print $HTML->box_nextitem(utils_get_alt_row_color($i));
00059  print '<a href="notification_settings.php?group='.$group_name.'">'._("Configure Mail Notifications").'</a>';
00060  print '<p class="smaller">'._("You can define email notification rules for this tracker.").'</p>';
00061  
00062  $i++;
00063  
00064 # Preamble when posting new items
00065  print $HTML->box_nextitem(utils_get_alt_row_color($i));
00066  print '<a href="other_settings.php?group='.$group_name.'">'._("Edit the Item Post Form Preamble").'</a>';
00067  print '<p class="smaller">'._("Define a preamble that will be shown to users when they submit an item on this tracker.").'</p>';
00068  
00069  
00070  $i++;
00071  
00072 # Conf copy
00073  print $HTML->box_nextitem(utils_get_alt_row_color($i));
00074  print '<a href="conf-copy.php?group='.$group_name.'">'._("Copy Configuration").'</a>';
00075  print '<p class="smaller">'._("Copy the configuration of trackers of other projects you are member of.").'</p>';
00076 
00077  
00078  print $HTML->box_bottom();
00079  print "<br />\n";
00080  
00081  
00082  print html_splitpage(2);
00083  
00084  unset($i);
00085 ###############################
00086  print $HTML->box_top(_('Items Fields'));
00087  
00088 # Select Fields
00089  print '<a href="field_usage.php?group='.$group_name.'">'._("Select Fields").'</a>';
00090  print '<p class="smaller">'._("Define which fields you want to use in this tracker, define how they will be used.").'</p>';
00091  
00092  unset($i);
00093  print $HTML->box_nextitem(utils_get_alt_row_color($i));
00094 # Public info
00095  print '<a href="field_values.php?group='.$group_name.'">'._("Edit Fields Values").'</a>';
00096  print '<p class="smaller">'._("Define the set of possible values for the fields you have decided to use in this tracker.").'</p>';
00097  
00098  $i++;
00099  print $HTML->box_nextitem(utils_get_alt_row_color($i));
00100 # Public info
00101  print '<a href="editqueryforms.php?group='.$group_name.'">'._("Manage Query Forms").'</a>';
00102  print '<p class="smaller">'._("Define project-wide query form: what display criteria to use while browsing items and which fields to show in the results table.").'</p>';
00103  
00104  
00105  
00106  print $HTML->box_bottom();
00107  
00108  print html_splitpage(3);
00109  
00110 ###############################
00111 
00112   trackers_footer(array());
00113 
00114 } 
00115 else
00116 {
00117   
00118   #browse for group first message
00119 
00120   if (!$group_id) 
00121     {
00122       exit_no_group();
00123     } 
00124   else 
00125     {
00126       exit_permission_denied();
00127     }
00128 }
00129 
00130 ?>

Generated on Sun Feb 26 13:23:04 2006 for Savane PHP Frontend Developer Reference by  doxygen 1.4.4