"Fossies" - the Fresh Open Source Software Archive

Member "phpESP/admin/include/where/manage.inc" (6 Apr 2008, 6350 Bytes) of package /linux/www/old/phpESP-2.1.4.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) fasm source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "manage.inc" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 /* $Id$ */
    4 
    5 /* vim: set tabstop=4 shiftwidth=4 expandtab: */
    6 
    7 // Written by James Flemer
    8 // For eGrad2000.com
    9 // <jflemer@alum.rpi.edu>
   10 
   11 $base =& $GLOBALS['ESPCONFIG']['ME'];
   12 
   13 ?>
   14 <h2><?php echo(_('Management Interface')); ?></h2>
   15 <p><?php
   16     if($GLOBALS['ESPCONFIG']['auth_design']) {
   17         if($_SESSION['acl']['superuser'] == 'Y')
   18         echo(mkwarn(_('Superuser')));
   19         else {
   20             echo(_('Username'));
   21         }
   22         echo(': <tt>'. $_SESSION['acl']['username'] .'</tt>');
   23     }
   24     $db_version = get_dbversion();
   25     $new_version = $ESPCONFIG['version'];
   26     if (version_compare($db_version,$new_version,"!=")) {
   27 ?></p>
   28             <div id="surveyAdmin">
   29                         <ul>
   30                             <li><a href="<?php echo("${base}?where=update");     ?>"><?php echo(_('Update the database')); ?></a></li>
   31                         </ul>
   32             </div>
   33 <?php
   34     } else {
   35 ?></p>
   36             <!-- Survey Administration -->
   37             <div id="surveyAdmin">
   38                         <ul>
   39                             <li><a href="<?php echo("${base}?where=new");     ?>"><?php echo(_('Create a New Survey')); ?></a></li>
   40                             <li><a href="<?php echo("${base}?where=edit");    ?>"><?php echo(_('Edit an Existing Survey')); ?></a></li>
   41                             <li><a href="<?php echo("${base}?where=test");    ?>"><?php echo(_('Test a Survey')); ?></a></li>
   42                             <li><a href="<?php echo("${base}?where=copy");    ?>"><?php echo(_('Copy an Existing Survey')); ?></a></li>
   43                             <?php       if($_SESSION['acl']['superuser'] == 'Y') { ?>
   44                             <li><a href="<?php echo("${base}?where=purge");  ?>"><?php echo(_('Purge a survey')); ?></a></li>
   45                             <?php } ?>
   46                         </ul>
   47                         <ul>
   48                     <li><a href="<?php echo("${base}?where=status");  ?>"><?php echo(_('Change the Status of a Survey')); ?></a><br />
   49                             <?php echo(_('(test/active/end/delete)')); ?></li>
   50                             <?php if($GLOBALS['ESPCONFIG']['auth_response']) { ?>
   51                             <li><a href="<?php echo("${base}?where=access");  ?>"><?php echo(_('Change Access To a Survey')); ?></a><br /> (<?php echo(_('Limit Respondents.')); ?>)</li>
   52                             <?php } ?>
   53                         </ul>
   54             </div>
   55             <!-- End Survey Administration -->
   56             <!-- Survey Results -->
   57             <div id="surveyResults">
   58                         <ul>
   59                             <li><a href="<?php echo("${base}?where=results"); ?>"><?php echo(_('View Results from a Survey')); ?></a></li>
   60                             <li><a href="<?php echo(htmlentities("${base}?where=results&type=cross")); ?>"><?php echo(_('Cross Tabulate Survey Results')); ?></a></li>
   61                             <li><a href="<?php echo("${base}?where=report");  ?>"><?php echo(_('View a Survey Report')); ?></a></li>
   62                             <li><a href="<?php echo("${base}?where=export");  ?>"><?php echo(_('Export Data')); ?></a></li>
   63                             <?php       if($_SESSION['acl']['superuser'] == 'Y') { ?>
   64                             <li><a href="<?php echo("${base}?where=response_purge");  ?>"><?php echo(_('Purge a response')); ?></a></li>
   65                             <?php } ?>
   66                             <li><a href="<?php echo("${base}?where=statistics");  ?>"><?php echo(_('View Survey Statistics')); ?></a></li>
   67                         </ul>
   68             </div>
   69             <!-- End Survey Results -->
   70                         <?php if($GLOBALS['ESPCONFIG']['auth_design']) { ?>
   71             <!-- User Administration -->
   72             <div id="userAdmin">
   73                         <ul>
   74                             <?php
   75                             if($GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_both' && $GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_des') { ?>
   76                             <li><a href="<?php echo("${base}?where=passwd");   ?>"><?php echo(_('Change Your Password')); ?></a></li>
   77                             <?php
   78                             }
   79                             if($GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_both' &&
   80                 $GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_resp' &&
   81                 ($_SESSION['acl']['superuser'] == 'Y' ||
   82                  count($_SESSION['acl']['puser']) > 0)) { ?>
   83                             <li><a href="<?php echo("${base}?where=respondents"); ?>"><?php echo(_('Manage Respondent Accounts')); ?></a></li>
   84                             <?php   }
   85                             if($GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_both' &&
   86                 $GLOBALS['ESPCONFIG']['auth_type'] != 'ldap_des' &&
   87                 ($_SESSION['acl']['superuser'] == 'Y' ||
   88                                  count($_SESSION['acl']['pgroup']) > 0)) { ?>
   89                             <li><a href="<?php echo("${base}?where=designers");   ?>"><?php echo(_('Manage Designer Accounts')); ?></a></li>
   90                             <?php   if($_SESSION['acl']['superuser'] == 'Y') { ?>
   91                             <li><a href="<?php echo("${base}?where=groups"); ?>"><?php echo(_('Manage Groups')); ?></a></li>
   92                             <?php   }
   93                             } ?>
   94                         </ul>
   95             </div>
   96             <!-- End User Administration -->
   97                         <?php } /* AUTH_DESIGN */ ?>
   98                         <!-- Guide -->
   99             <div id="guide">
  100             <ul>
  101                             <!--                <li><a href="<?php echo("${base}?where=TODO");    ?>"><?php echo(_('View the list of things still to do')); ?></a>
  102                             <?php echo(_('(development goals)')); ?></li> -->
  103                             <li><a href="<?php echo("${base}?where=guide");  ?>"><?php echo(_('View the User &amp; Administrator Guide')); ?></a></li>
  104                             <li><a href="<?php echo("${base}?where=help");  ?>"><?php echo(_('Click here to open the Help window.')); ?></a></li>
  105                         </ul>
  106             </div>
  107             <!-- End Guide -->
  108                         <?php if($GLOBALS['ESPCONFIG']['auth_design']) { ?>
  109             <!-- Logout -->
  110             <div id="logout">
  111                         <ul>
  112                             <li><a href="<?php echo("${base}?where=logout");  ?>"><?php echo(_('Log out')); ?></a></li>
  113                         </ul>
  114             </div>
  115             <!-- End Logout -->
  116                         <?php } /* AUTH_DESIGN */ 
  117 }
  118 ?>
  119 &nbsp;