[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.listbox.inc.php,1.7,1.8 class
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.listbox.inc.php,1.7,1.8 class.portalbox.inc.php,1.14,1.15 |
Date: |
Sat, 05 Oct 2002 19:40:53 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv25396
Modified Files:
class.listbox.inc.php class.portalbox.inc.php
Log Message:
update portalbox functions
Index: class.listbox.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.listbox.inc.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** class.listbox.inc.php 5 Oct 2002 21:59:27 -0000 1.7
--- class.listbox.inc.php 5 Oct 2002 23:40:51 -0000 1.8
***************
*** 67,70 ****
--- 67,92 ----
function draw($extra_data='')
{
+ $this->start_template();
+
+ if(count($this->data))
+ {
+ for ($x = 0; $x < count($this->data); $x++)
+ {
+ $var[] = array
+ (
+ 'text'
=> $this->data[$x]['text'],
+ 'link'
=> $this->data[$x]['link'],
+ 'lang_link_statustext' =>
$this->data[$x]['lang_link_statustext']
+ );
+ }
+ $this->output['listbox'] = $var;
+ }
+
+ $this->set_internal($extra_data);
+ return $this->draw_box();
+ }
+
+ function xdraw($extra_data='')
+ {
if ($extra_data)
{
***************
*** 90,94 ****
}
! $this->set_internal($extra_data);
return $this->draw_box();
}
--- 112,116 ----
}
! $this->set_xinternal($extra_data);
return $this->draw_box();
}
Index: class.portalbox.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.portalbox.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** class.portalbox.inc.php 5 Oct 2002 21:59:27 -0000 1.14
--- class.portalbox.inc.php 5 Oct 2002 23:40:51 -0000 1.15
***************
*** 84,88 ****
}
! function start_template($extra = False)
{
if ($extra)
--- 84,88 ----
}
! function start_template($extra = '')
{
if ($extra)
***************
*** 122,125 ****
--- 122,134 ----
$this->output['extrabox'] = $data;
+ }
+
+ function set_xinternal($data='')
+ {
+ if($data=='' && !count($this->data))
+ {
+ $data = ' ';
+ }
+ $this->output['xextrabox'] = $data;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.listbox.inc.php,1.7,1.8 class.portalbox.inc.php,1.14,1.15,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: stocks/templates/default extrabox.xsl,1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default portal.xsl,1.4,1.5 widgets.xsl,1.1,1.2
- Previous by thread:
[Phpgroupware-cvs] CVS: stocks/templates/default extrabox.xsl,1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default portal.xsl,1.4,1.5 widgets.xsl,1.1,1.2
- Index(es):