[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] skel class.base.php,1.1.2.1.2.8,1.1.2.1.2.9
From: |
Joseph Engo <address@hidden> |
Subject: |
[Phpgroupware-cvs] skel class.base.php,1.1.2.1.2.8,1.1.2.1.2.9 |
Date: |
Tue, 28 Oct 2003 10:13:32 +0000 |
Update of /cvsroot/phpgroupware/skel
In directory subversions:/tmp/cvs-serv15056/skel
Modified Files:
Tag: proposal-branch
class.base.php
Log Message:
Started working on the preferences interface, its not fully working it
currently only displays the static values
It doesn't save or read the users preferences yet
Index: class.base.php
===================================================================
RCS file: /cvsroot/phpgroupware/skel/Attic/class.base.php,v
retrieving revision 1.1.2.1.2.8
retrieving revision 1.1.2.1.2.9
diff -C2 -d -r1.1.2.1.2.8 -r1.1.2.1.2.9
*** class.base.php 27 Oct 2003 18:54:15 -0000 1.1.2.1.2.8
--- class.base.php 28 Oct 2003 10:13:30 -0000 1.1.2.1.2.9
***************
*** 15,47 ****
/* $Source$ */
class skel_base
{
var $sec;
! function appmenu()
{
! $items[] = array(
! 'title' => lang('ACL Tester'),
! 'op' => 'skel.base.acl_tester',
! );
! $items[] = array(
! 'title' => lang('HTML Outputted by the app'),
! 'op' => 'skel.base.htmloutputtest',
! );
! $items[] = array(
! 'title' => lang('Home'),
! 'op' => 'skel.base.start',
! );
! /*
! $items[] = array(
! 'title' => 'Test item c',
! 'op' => 'skel.base.submenu&step=c',
! );
! $items[] = array(
! 'title' => 'Test item d',
! 'op' => 'skel.base.submenu&step=d',
! );
! */
! return $items;
}
--- 15,122 ----
/* $Source$ */
+ $GLOBALS['skel_base_menus_loaded'] = False;
class skel_base
{
var $sec;
+ var $prefs = array(
+ 0 => array(
+ 'type' => 'inputbox',
+ 'name' => 'inputbox_a',
+ 'label' => 'inputbox_label_a',
+ 'value' => 'value_a',
+ ),
+ 1 => array(
+ 'type' => 'inputbox',
+ 'name' => 'inputbox_b',
+ 'label' => 'inputbox_label_b',
+ 'value' => 'value_b',
+ ),
+ 2 => array(
+ 'type' => 'checkbox',
+ 'name' => 'checkbox_a',
+ 'label' => 'checkbox_label_a',
+ 'value' => 'checkbox_value_a',
+ 'checked' => True
+ ),
+ 3 => array(
+ 'type' => 'inputbox',
+ 'name' => 'inputbox_c',
+ 'label' => 'inputbox_label_c',
+ 'value' => 'value_c'
+ ),
+ 4 => array(
+ 'type' => 'selectbox',
+ 'name' => 'selectbox_a',
+ 'label' => 'selectbox_label_a',
+ 'values' => array(
+ 0 => array(
+ 'value' => 'select_value_a',
+ 'text' => 'select_text_a'
+ ),
+ 1 => array(
+ 'value' => 'select_value_b',
+ 'text' => 'select_text_b',
+ 'selected' => True
+ ),
+ 2 => array(
+ 'value' => 'select_value_c',
+ 'text' => 'select_text_c'
+ ),
+ )
+ ),
+ 5 => array(
+ 'type' => 'selectbox',
+ 'name' => 'selectbox_b',
+ 'label' => 'selectbox_label_b',
+ 'multiple' => True,
+ 'size' => 10,
+ 'values' => array(
+ 0 => array(
+ 'value' => 'select_value_a',
+ 'text' => 'select_text_a'
+ ),
+ 1 => array(
+ 'value' => 'select_value_b',
+ 'text' => 'select_text_b'
+ ),
+ 2 => array(
+ 'value' => 'select_value_c',
+ 'text' => 'select_text_c',
+ 'selected' => True
+ ),
+ )
+ ),
+ 6 => array(
+ 'type' => 'checkbox',
+ 'name' => 'checkbox_b',
+ 'label' => 'checkbox_label_b',
+ 'value' => 'checkbox_value_b'
+ )
+ );
! function skel_base()
{
! if (! $GLOBALS['api_account_mgr_menus_loaded'])
! {
! $appmenu[] = array(
! 'title' => lang('Home'),
! 'op' => 'skel.base.start',
! );
! $appmenu[] = array(
! 'title' => lang('Preferences'),
! 'op' =>
'api.base.prefs&appname=skel',
! );
! $appmenu[] = array(
! 'title' => lang('ACL Tester'),
! 'op' => 'skel.base.acl_tester',
! );
! $appmenu[] = array(
! 'title' => lang('HTML Outputted by the
app'),
! 'op' => 'skel.base.htmloutputtest',
! );
!
!
$GLOBALS['phpgw_xml_apinode']->add_node($appmenu,'appmenu');
! $GLOBALS['api_account_mgr_menus_loaded'] = True;
! }
}
***************
*** 95,99 ****
$GLOBALS['phpgw']->lang->add('blah blah < than this');
!
$GLOBALS['phpgw_xml_apinode']->add_node($this->appmenu(),'appmenu');
$row1[] =
array('column'=>array('lable'=>array('value'=>'First Name')));
--- 170,174 ----
$GLOBALS['phpgw']->lang->add('blah blah < than this');
!
//$GLOBALS['phpgw_xml_apinode']->add_node($this->appmenu(),'appmenu');
$row1[] =
array('column'=>array('lable'=>array('value'=>'First Name')));
***************
*** 239,243 ****
$GLOBALS['phpgw']->add_xsl('skel.acl_tester');
! $appmenu = $this->appmenu();
$appmenu[] = array(
'title' => 'Easter egg menu item',
--- 314,318 ----
$GLOBALS['phpgw']->add_xsl('skel.acl_tester');
! //$appmenu = $this->appmenu();
$appmenu[] = array(
'title' => 'Easter egg menu item',
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] skel class.base.php,1.1.2.1.2.8,1.1.2.1.2.9,
Joseph Engo <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.7, 1.1.2.8 class.base.php, 1.1.1.1.2.6, 1.1.1.1.2.7 class.phpgw.php, 1.1.1.1.2.11, 1.1.1.1.2.12
- Next by Date:
[Phpgroupware-cvs] api class.base.php,1.1.1.1.2.7,1.1.1.1.2.8
- Previous by thread:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.7, 1.1.2.8 class.base.php, 1.1.1.1.2.6, 1.1.1.1.2.7 class.phpgw.php, 1.1.1.1.2.11, 1.1.1.1.2.12
- Next by thread:
[Phpgroupware-cvs] api class.base.php,1.1.1.1.2.7,1.1.1.1.2.8
- Index(es):