[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.base.php, 1.1.1.3
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.base.php, 1.1.1.3 |
Date: |
Sun, 23 May 2004 04:51:34 -0000 |
Update of /property
Modified Files:
Branch:
class.base.php
date: 2004/04/23 21:26:33; author: sigurdne; state: Exp; lines: +109 -109
Log Message:
no message
=====================================================================
Index: property/class.base.php
diff -u property/class.base.php:1.1.1.2 property/class.base.php:1.1.1.3
--- property/class.base.php:1.1.1.2 Fri Apr 23 20:25:05 2004
+++ property/class.base.php Fri Apr 23 21:26:33 2004
@@ -1,109 +1,109 @@
-<?php
-
/**************************************************************************\
- * phpGroupWare - property
*
- * http://www.phpgroupware.org
*
- *
*
- * Facilities Management
*
- * Written by Sigurd Nes [sigurdne at online.no]
*
- *
------------------------------------------------------------------------ *
- * Copyright 2000 - 2003 Free Software Foundation, Inc
*
- * This program is part of the GNU project, see http://www.gnu.org/
*
- *
------------------------------------------------------------------------ *
- * This program is free software; you can redistribute it and/or modify
it *
- * under the terms of the GNU General Public License as published by the
*
- * Free Software Foundation; either version 2 of the License, or (at
your *
- * option) any later version.
*
-
\**************************************************************************/
-
- /* $Id$ */
- /* $Source$ */
-
- $functions = array();
-
- class property_base
- {
- function property_base()
- {
- $GLOBALS['phpgw']->add_xsl('api.widgets');
-
- if (! $GLOBALS['property_menus_loaded'])
- {
- $GLOBALS['phpgw']->add_appmenu('Property
menu','Preferences','api.base.prefs&appname=property');
-
- $GLOBALS['property_menus_loaded'] = true;
- }
-
- $GLOBALS['msgbox']->add(lang('Hepp'),'notice');
-
- $currentapp='property';
-
- $GLOBALS['phpgw_info']['flags'] = array
- (
- 'currentapp' => $currentapp
- );
-
-
- //
$start_page=$GLOBALS['phpgw_info']['user']['preferences'][$currentapp]['default_start_page'];
-
- if ($start_page)
- {
-
$start_page='sid=cookie&op='.$currentapp.'.ui'.$start_page.'.index';
- }
- else
- {
-
$start_page='sid=cookie&op='.$currentapp.'.uilocation.index';
- }
- header('Location:
'.$GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'].'?'.$start_page);
-
//$this->bocommon->redirect_link('/index.php',$start_page);
- }
-
-
- var $prefs = array
- (
- 0 => array
- (
- 'type' => 'selectbox',
- 'name' => 'default_start_page',
- 'label' => 'Default start page',
- 'values' => array
- (
- 0 => array(
- 'value' => 'location',
- 'text' => 'Location'
- ),
- 1 => array(
- 'value' => 'project',
- 'text' => 'Project'
- ),
- 2 => array(
- 'value' => 'tts',
- 'text' => 'Ticket'
- ),
- 3 => array(
- 'value' => 'invoice',
- 'text' => 'Invoice'
- ),
- 4 => array(
- 'value' => 'document',
- 'text' => 'Document'
- )
- )
- ),
- 2 => array
- (
- 'type' => 'inputbox',
- 'name' => 'cellphone',
- 'label' => 'Your Cellphone',
- 'value' => '15'
- ),
- 3 => array
- (
- 'type' => 'inputbox',
- 'name' => 'email',
- 'label' => 'Insert your email address',
- 'value' => '15'
- ),
- );
-
- }
-
+<?php
+
/**************************************************************************\
+ * phpGroupWare - property
*
+ * http://www.phpgroupware.org
*
+ *
*
+ * Facilities Management
*
+ * Written by Sigurd Nes [sigurdne at online.no]
*
+ *
------------------------------------------------------------------------ *
+ * Copyright 2000 - 2003 Free Software Foundation, Inc
*
+ * This program is part of the GNU project, see http://www.gnu.org/
*
+ *
------------------------------------------------------------------------ *
+ * This program is free software; you can redistribute it and/or modify
it *
+ * under the terms of the GNU General Public License as published by the
*
+ * Free Software Foundation; either version 2 of the License, or (at
your *
+ * option) any later version.
*
+
\**************************************************************************/
+
+ /* $Id$ */
+ /* $Source$ */
+
+ $functions = array();
+
+ class property_base
+ {
+ function property_base()
+ {
+ $GLOBALS['phpgw']->add_xsl('api.widgets');
+
+ if (! $GLOBALS['property_menus_loaded'])
+ {
+ $GLOBALS['phpgw']->add_appmenu('Property
menu','Preferences','api.base.prefs&appname=property');
+
+ $GLOBALS['property_menus_loaded'] = true;
+ }
+
+ $GLOBALS['msgbox']->add(lang('Hepp'),'notice');
+
+ $currentapp='property';
+
+ $GLOBALS['phpgw_info']['flags'] = array
+ (
+ 'currentapp' => $currentapp
+ );
+
+
+ //
$start_page=$GLOBALS['phpgw_info']['user']['preferences'][$currentapp]['default_start_page'];
+
+ if ($start_page)
+ {
+
$start_page='sid=cookie&op='.$currentapp.'.ui'.$start_page.'.index';
+ }
+ else
+ {
+
$start_page='sid=cookie&op='.$currentapp.'.uilocation.index';
+ }
+ header('Location:
'.$GLOBALS['HTTP_SERVER_VARS']['PHP_SELF'].'?'.$start_page);
+
//$this->bocommon->redirect_link('/index.php',$start_page);
+ }
+
+
+ var $prefs = array
+ (
+ 0 => array
+ (
+ 'type' => 'selectbox',
+ 'name' => 'default_start_page',
+ 'label' => 'Default start page',
+ 'values' => array
+ (
+ 0 => array(
+ 'value' => 'location',
+ 'text' => 'Location'
+ ),
+ 1 => array(
+ 'value' => 'project',
+ 'text' => 'Project'
+ ),
+ 2 => array(
+ 'value' => 'tts',
+ 'text' => 'Ticket'
+ ),
+ 3 => array(
+ 'value' => 'invoice',
+ 'text' => 'Invoice'
+ ),
+ 4 => array(
+ 'value' => 'document',
+ 'text' => 'Document'
+ )
+ )
+ ),
+ 2 => array
+ (
+ 'type' => 'inputbox',
+ 'name' => 'cellphone',
+ 'label' => 'Your Cellphone',
+ 'value' => '15'
+ ),
+ 3 => array
+ (
+ 'type' => 'inputbox',
+ 'name' => 'email',
+ 'label' => 'Insert your email address',
+ 'value' => '15'
+ ),
+ );
+
+ }
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.base.php, 1.1.1.3,
nomail <=