[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.uilink.inc.php,1.2,1.3
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.uilink.inc.php,1.2,1.3 |
Date: |
Mon, 02 Sep 2002 17:44:26 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv31670
Modified Files:
class.uilink.inc.php
Log Message:
getEntry implemented via eTemplates, some typos corrected
Index: class.uilink.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.uilink.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.uilink.inc.php 2 Sep 2002 11:14:30 -0000 1.2
--- class.uilink.inc.php 2 Sep 2002 21:44:24 -0000 1.3
***************
*** 22,25 ****
--- 22,26 ----
@class uilink
@author ralfbecker
+ @author ralfbecker
@abstract generalized linking between entries of phpGroupware apps -
HTML UI layer
@discussion This class is the UI to show/modify the links
***************
*** 32,36 ****
function uilink( )
{
! bolink( );
// call constructor of derived class
$this->public_functions += array( // extend
public_functions
'getEntry' => True,
--- 33,37 ----
function uilink( )
{
! $this->bolink( );
// call constructor of derived class
$this->public_functions += array( // extend
public_functions
'getEntry' => True,
***************
*** 40,55 ****
/*!
! @function getEntry
! @syntax getEntry( $name )
@author ralfbecker
@abstract HTML UI to query user for one side of a link: an
entry of a supported app
*/
! function getEntry()
{
! }
/*!
! @function show
! @syntax show( $app,$id )
@author ralfbecker
@abstract HTML UI to show & delete existing links to $app,$id
and to make new links
--- 41,88 ----
/*!
! @function getEntry
! @syntax getEntry( $name )
@author ralfbecker
@abstract HTML UI to query user for one side of a link: an
entry of a supported app
+ @param $name base-name of the input-fields
+ @result html for query
*/
! function getEntry($name)
{
! $value = get_var($name,array('POST'));
! if (!is_array($value))
! {
! $value = array();
! }
! echo "<p>$name = "; _debug_array($value);
! if ($value['search'] && count($ids =
$this->query($value['app'],$value['query'])))
! {
! $value = array(
! 'app' => $value['app'],
! 'options-id' => $ids,
! 'remark' => ''
! );
! $etemplate =
CreateObject('etemplate.etemplate','infolog.linkto_widget.create');
! $html = CreateObject('infolog.html');
! $out =
$etemplate->show($value,'','',$name)."\n".$html->input_hidden($name.'[app]',$value['app']);
! }
! else
! {
! $value = array(
! 'app' => $value['app'],
! 'options-app' => $this->app_list(),
! 'query' => '',
! 'msg' => $value['search'] ? 'Nothing
found - try again!!!' : ''
! );
! $etemplate =
CreateObject('etemplate.etemplate','infolog.linkto_widget.search');
! $out = $etemplate->show($value,'','',$name);
! }
! $out = str_replace('[]','',$out);
! return eregi_replace('[</]*table[^>]*>','',$out);
! }
/*!
! @function show
! @syntax show( $app,$id )
@author ralfbecker
@abstract HTML UI to show & delete existing links to $app,$id
and to make new links
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.uilink.inc.php,1.2,1.3,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php,1.2,1.3
- Next by Date:
[Phpgroupware-cvs] CVS: infolog/inc class.solink.inc.php,1.2,1.3 class.vfs.inc.php,1.5,1.6
- Previous by thread:
[Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php,1.2,1.3
- Next by thread:
[Phpgroupware-cvs] CVS: infolog/inc class.solink.inc.php,1.2,1.3 class.vfs.inc.php,1.5,1.6
- Index(es):