[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.portalbox.inc.php,1.10,1.11
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.portalbox.inc.php,1.10,1.11 |
Date: |
Thu, 03 Oct 2002 17:36:52 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv14072
Modified Files:
class.portalbox.inc.php
Log Message:
update to use xslt
Index: class.portalbox.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.portalbox.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** class.portalbox.inc.php 3 Oct 2002 00:11:48 -0000 1.10
--- class.portalbox.inc.php 3 Oct 2002 21:36:49 -0000 1.11
***************
*** 1,26 ****
<?php
! /**************************************************************************\
! * phpGroupWare API - Portal Box manager *
! * This file written by Joseph Engo <address@hidden> *
! * Helps manage the portal boxes for phpGroupWares main page *
! * Copyright (C) 2000, 2001 Joseph Engo *
! * -------------------------------------------------------------------------*
! * This library is part of the phpGroupWare API *
! * http://www.phpgroupware.org/api
*
! * ------------------------------------------------------------------------ *
! * This library is free software; you can redistribute it and/or modify it *
! * under the terms of the GNU Lesser General Public License as published by *
! * the Free Software Foundation; either version 2.1 of the License, *
! * or any later version. *
! * This library is distributed in the hope that it will be useful, but *
! * WITHOUT ANY WARRANTY; without even the implied warranty of *
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
! * See the GNU Lesser General Public License for more details. *
! * You should have received a copy of the GNU Lesser General Public License *
! * along with this library; if not, write to the Free Software Foundation, *
! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
! \**************************************************************************/
!
! /* $Id$ */
class portalbox
--- 1,25 ----
<?php
!
/**************************************************************************\
! * phpGroupWare API - Portal Box manager
*
! * Written by Joseph Engo <address@hidden> *
! * Helps manage the portal boxes for phpGroupWares main page
*
! * Copyright (C) 2000 - 2002 Joseph Engo
*
! *
------------------------------------------------------------------------ *
! * This library is part of the phpGroupWare API
*
! * http://www.phpgroupware.org/api
*
! *
------------------------------------------------------------------------ *
! * This library is free software; you can redistribute it and/or modify
it *
! * under the terms of the GNU Lesser General Public License as published
by *
! * the Free Software Foundation; either version 2.1 of the License,
*
! * or any later version.
*
! * This library is distributed in the hope that it will be useful, but
*
! * WITHOUT ANY WARRANTY; without even the implied warranty of
*
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
! * See the GNU Lesser General Public License for more details.
*
! * You should have received a copy of the GNU Lesser General Public
License *
! * along with this library; if not, write to the Free Software
Foundation, *
! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
!
\**************************************************************************/
! /* $Id$ */
class portalbox
***************
*** 40,44 ****
var $question;
var $edit;
!
var $data = Array();
--- 39,44 ----
var $question;
var $edit;
!
! var $output;
var $data = Array();
***************
*** 89,123 ****
function start_template()
{
! $this->p =
CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('home'));
! $this->p->set_file(
! array(
! 'PORTAL' => 'portal.tpl'
! )
! );
! $this->p->set_block('PORTAL','portal_box','portal_box');
! $this->p->set_block('PORTAL','portal_row','portal_row');
!
$this->p->set_block('PORTAL','portal_listbox_header','portal_listbox_header');
!
$this->p->set_block('PORTAL','portal_listbox_link','portal_listbox_link');
!
$this->p->set_block('PORTAL','portal_listbox_footer','portal_listbox_footer');
!
$this->p->set_block('PORTAL','portal_control','portal_control');
! $this->p->set_block('PORTAL','link_field','link_field');
!
! $var = Array(
'outer_border' =>
$this->getvar('outerborderwidth'),
'outer_width' =>
$this->getvar('width'),
'title'
=> $this->getvar('title'),
'inner_width' =>
$this->getvar('width'),
! 'header_background_image' =>
$this->getvar('header_background_image'),
! 'control_link' => ''
);
- $this->p->set_var($var);
- $this->p->set_var('row','',False);
}
function set_controls($control='',$control_param='')
{
! // echo '<br>Control: ' . $control . ', control_param="' .
$control_param . '"';
! // if($control != '' && $control_param != '')
if($control != '' && is_array($control_param))
{
--- 89,108 ----
function start_template()
{
! $GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
! $this->output = array
! (
'outer_border' =>
$this->getvar('outerborderwidth'),
'outer_width' =>
$this->getvar('width'),
'title'
=> $this->getvar('title'),
'inner_width' =>
$this->getvar('width'),
! 'header_background_image' =>
$this->getvar('header_background_image')
);
}
function set_controls($control='',$control_param='')
{
! //echo '<br>Control: ' . $control . ', control_param="'
. $control_param . '"';
!
if($control != '' && is_array($control_param))
{
***************
*** 130,137 ****
if($data=='' && !count($this->data))
{
! $data = '<td> </td>';
}
! $this->p->set_var('output',$data);
! $this->p->parse('row','portal_row',true);
}
--- 115,125 ----
if($data=='' && !count($this->data))
{
! $data = ' ';
}
!
! $this->output['portal_row']['extrabox'] = array
! (
! 'data' => $data
! );
}
***************
*** 141,145 ****
if($this->up || $this->down || $this->close ||
$this->question || $this->edit)
{
! $control_array = Array(
'up',
'down',
--- 129,134 ----
if($this->up || $this->down || $this->close ||
$this->question || $this->edit)
{
! $control_array = array
! (
'up',
'down',
***************
*** 158,168 ****
$image_width = 30;
}
!
$this->p->set_var('link_field_data','<a href="'.$this->$param.'"><img
src="'.$GLOBALS['phpgw']->common->image('phpgwapi',$param.'.button.gif').'"
border="0" width="'.$image_width.'" height="15" alt="'.lang($param).'"></a>');
!
$this->p->parse('control_link','link_field',True);
}
}
!
$this->p->parse('portal_controls','portal_control',True);
}
! return $this->p->fp('out','portal_box');
}
}
--- 147,165 ----
$image_width = 30;
}
!
! $control_link[] = array
! (
! 'param_url'
=> $this->$param,
! 'link_img'
=>
$GLOBALS['phpgw']->common->image('phpgwapi',$param.'.button'),
! 'img_width'
=> $image_width,
! 'lang_param_statustext'
=> lang($param)
! );
}
}
!
! $this->output['control_link'] = $control_link;
}
!
$GLOBALS['phpgw']->xslttpl->set_var('portal',$this->output);
! return $GLOBALS['phpgw']->xslttpl->parse();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.portalbox.inc.php,1.10,1.11,
Bettina Gille <address@hidden> <=