[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.42,1.43
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.42,1.43 |
Date: |
Mon, 02 Sep 2002 17:50:31 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv32331
Modified Files:
class.uiinfolog.inc.php
Log Message:
basic support for link-selection, mainly for testing uilink.getEntry
Index: class.uiinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.uiinfolog.inc.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** class.uiinfolog.inc.php 1 Sep 2002 18:57:24 -0000 1.42
--- class.uiinfolog.inc.php 2 Sep 2002 21:50:29 -0000 1.43
***************
*** 73,76 ****
--- 73,77 ----
$this->categories = CreateObject('phpgwapi.categories');
$this->nextmatchs = CreateObject('phpgwapi.nextmatchs');
+ $this->link = CreateObject('infolog.uilink');
}
***************
*** 711,714 ****
--- 712,731 ----
}
+ $linkto = get_var('linkto',Array('POST'));
+ if (is_array($linkto) && $linkto['create'])
+ {
+ switch ($linkto['app'])
+ {
+ case 'addressbook':
+ $id_addr = $linkto['id'];
+ break;
+ case 'projects':
+ $id_project = $linkto['id'];
+ break;
+ case 'calendar':
+ $id_event = $linkto['id'];
+ break;
+ }
+ }
// check wether to write dates or not
if ($selfortoday)
***************
*** 880,883 ****
--- 897,902 ----
$GLOBALS['phpgw']->template->set_file(array('info_edit_t' => 'form.tpl'));
$GLOBALS['phpgw']->template->set_block('info_edit_t','info_edit');
+
+
$GLOBALS['phpgw']->template->set_var('linkto',$this->link->getEntry('linkto'));
if (is_array($error))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.42,1.43,
Ralf Becker <address@hidden> <=