[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/sitemgr/modules/ -> class.module_administration.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare SiteMgr - Web Content Management                              *
   4      * http://www.egroupware.org                                                *
   5      * --------------------------------------------                             *
   6      *  This program is free software; you can redistribute it and/or modify it *
   7      *  under the terms of the GNU General Public License as published by the   *
   8      *  Free Software Foundation; either version 2 of the License, or (at your  *
   9      *  option) any later version.                                              *
  10      \**************************************************************************/
  11  
  12      /* $Id: class.module_administration.inc.php 13729 2004-02-10 14:56:34Z ralfbecker $ */
  13  
  14  class module_administration extends Module
  15  {
  16  	function module_administration()
  17      {
  18          $this->arguments = array();
  19          $this->properties = array();
  20          $this->title = lang('Administration');
  21          $this->description = lang('This module is a selectbox to change the mode (production, draft or edit) plus a link back to SiteMgr and to log out. It is meant for registered users only');
  22      }
  23  
  24  	function get_content(&$arguments,$properties)
  25      {
  26          $content = '<form name="modeselect" method="post">' . "\n".
  27              '<select onChange="location.href=this.value" name="mode">'."\n";
  28          foreach(array(
  29              'Production' => lang('Production mode'),
  30              'Draft'      => lang('Draft mode'),
  31              'Edit'       => lang('Edit mode')) as $mode => $label)
  32          {
  33              $selected = ($GLOBALS['sitemgr_info']['mode'] == $mode) ? ' selected="selected"' : '';
  34              $content .=    '<option value="' .$this->link(array(),array('mode'=>$mode)) .'"' . $selected  . '>' . $label . "</option>\n";
  35          }
  36          $content .= "</select>\n</form>\n" .
  37              '<p>&nbsp;&nbsp;<strong><big>&middot;</big></strong><a href="' . phpgw_link('/sitemgr/') .
  38              '">' . lang('Content Manager') . "</a><br />\n".
  39              '&nbsp;&nbsp;<strong><big>&middot;</big></strong><a href="' . phpgw_link('/logout.php') .
  40              '">' . lang('Logout') . "</a></p>\n";
  41          return $content;
  42      }
  43  
  44  }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7