[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/preferences/ -> preferences.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Preferences                                                 *
   4      * http://www.egroupware.org                                                *
   5      * Written by RalfBecker@outdoor-training.de to emulate the old preferences *
   6      * --------------------------------------------                             *
   7      *  This program is free software; you can redistribute it and/or modify it *
   8      *  under the terms of the GNU General Public License as published by the   *
   9      *  Free Software Foundation; either version 2 of the License, or (at your  *
  10      *  option) any later version.                                              *
  11      \**************************************************************************/
  12  
  13      /* $Id: preferences.php 20295 2006-02-15 12:31:25Z  $ */
  14  
  15      $GLOBALS['egw_info']['flags'] = array(
  16          'noheader'                => True,
  17          'noappheader'             => True,
  18          'nonavbar'                => True,
  19          'currentapp'              => 'preferences',
  20          'enable_nextmatchs_class' => True,
  21      );
  22      include('../header.inc.php');
  23  
  24  	function create_section($title)
  25      {
  26          $GLOBALS['settings'][] = array(
  27              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  28              'xmlrpc' => True,    // make everything availible via xmlrpc
  29              'title'  => $title,
  30              'type'   => 'section'
  31          );
  32      }
  33  
  34  	function create_subsection($title)
  35      {
  36          $GLOBALS['settings'][] = array(
  37              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  38              'xmlrpc' => True,    // make everything availible via xmlrpc
  39              'title'  => $title,
  40              'type'   => 'subsection'
  41          );
  42      }
  43  
  44  	function create_input_box($label,$name,$help='',$default='',$size='',$maxsize='',$type='',$run_lang=True)
  45      {
  46          $GLOBALS['settings'][$name] = array(
  47              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  48              'xmlrpc' => True,    // make everything availible via xmlrpc
  49              'type'   => 'input'
  50          );
  51          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
  52          {
  53              if(isset($$var))
  54              {
  55                  $GLOBALS['settings'][$name][$var] = $$var;
  56              }
  57          }
  58      }
  59  
  60  	function create_password_box($label,$name,$help='',$size='',$maxsize='',$run_lang=True)
  61      {
  62          $GLOBALS['settings'][$name] = array(
  63              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  64              'xmlrpc' => True,    // make everything availible via xmlrpc
  65              'type'   => 'password'
  66          );
  67          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
  68          {
  69              if(isset($$var))
  70              {
  71                  $GLOBALS['settings'][$name][$var] = $$var;
  72              }
  73          }
  74      }
  75  
  76  	function create_text_area($label,$name,$rows,$cols,$help='',$default='',$run_lang=True)
  77      {
  78          $GLOBALS['settings'][$name] = array(
  79              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  80              'xmlrpc' => True,    // make everything availible via xmlrpc
  81              'type'   => 'text'
  82          );
  83          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
  84          {
  85              if(isset($$var))
  86              {
  87                  $GLOBALS['settings'][$name][$var] = $$var;
  88              }
  89          }
  90      }
  91  
  92  	function create_select_box($label,$name,$values,$help='',$default='',$run_lang=True)
  93      {
  94          $GLOBALS['settings'][$name] = array(
  95              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
  96              'xmlrpc' => True,    // make everything availible via xmlrpc
  97              'type'   => 'select'
  98          );
  99          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
 100          {
 101              if(isset($$var))
 102              {
 103                  $GLOBALS['settings'][$name][$var] = $$var;
 104              }
 105          }
 106      }
 107  
 108  	function create_check_box($label,$name,$help='',$default='',$run_lang=True)
 109      {
 110          $GLOBALS['settings'][$name] = array(
 111              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
 112              'xmlrpc' => True,    // make everything availible via xmlrpc
 113              'type'   => 'check'
 114          );
 115          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
 116          {
 117              if(isset($$var))
 118              {
 119                  $GLOBALS['settings'][$name][$var] = $$var;
 120              }
 121          }
 122      }
 123  
 124  	function create_notify($label,$name,$rows,$cols,$help='',$default='',$values='',$subst_help=True,$run_lang=True)
 125      {
 126          $GLOBALS['settings'][$name] = array(
 127              'admin'  => True,    // admin is controlled by the old-format hook_settings file itself
 128              'xmlrpc' => True,    // make everything availible via xmlrpc
 129              'type'   => 'notify'
 130          );
 131          foreach(array('label','name','help','default','size','maxsize','type','run_lang','rows','cols','values','subst_help') as $var)
 132          {
 133              if(isset($$var))
 134              {
 135                  $GLOBALS['settings'][$name][$var] = $$var;
 136              }
 137          }
 138      }
 139      ExecMethod('preferences.uisettings.index');


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