[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: todo/inc hook_home.inc.php,NONE,1.1.2.1 class.ui
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: todo/inc hook_home.inc.php,NONE,1.1.2.1 class.ui.inc.php,1.2.2.13,1.2.2.14 |
Date: |
Sun, 28 Apr 2002 14:48:14 -0400 |
Update of /cvsroot/phpgroupware/todo/inc
In directory subversions:/tmp/cvs-serv19065/inc
Modified Files:
Tag: Version-0_9_14-branch
class.ui.inc.php
Added Files:
Tag: Version-0_9_14-branch
hook_home.inc.php
Log Message:
Adding new hook HOME.
***** Error reading new file: [Errno 2] No such file or directory:
'hook_home.inc.php'
Index: class.ui.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/todo/inc/class.ui.inc.php,v
retrieving revision 1.2.2.13
retrieving revision 1.2.2.14
diff -C2 -r1.2.2.13 -r1.2.2.14
*** class.ui.inc.php 15 Apr 2002 02:49:46 -0000 1.2.2.13
--- class.ui.inc.php 28 Apr 2002 18:48:10 -0000 1.2.2.14
***************
*** 17,20 ****
--- 17,21 ----
var $grants;
var $historylog;
+ var $t;
var $public_functions = array
(
***************
*** 56,62 ****
$this->matrix = CreateObject('phpgwapi.matrixview');
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
! $this->t = $GLOBALS['phpgw']->template;
$this->grants =
$GLOBALS['phpgw']->acl->get_grants('todo');
- // $this->grants[$this->account] = PHPGW_ACL_READ +
PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE;
$this->start = $this->bo->start;
--- 57,62 ----
$this->matrix = CreateObject('phpgwapi.matrixview');
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
! $this->t =
CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('todo'));
$this->grants =
$GLOBALS['phpgw']->acl->get_grants('todo');
$this->start = $this->bo->start;
***************
*** 112,119 ****
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
! $this->t->set_file(array('todo_list_t' => 'list.tpl'));
! $this->t->set_block('todo_list_t','todo_list','list');
!
$this->set_app_langs();
--- 112,132 ----
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
+ echo $this->show_list_body(True);
+ }
! function show_list_body($show_page_header=True)
! {
! $this->t->set_file(
! Array(
! 'todo_list_t' => 'list.tpl'
! )
! );
!
$this->t->set_block('todo_list_t','page_header','page_header');
!
$this->t->set_block('todo_list_t','table_header','table_header');
!
$this->t->set_block('todo_list_t','todo_list','todo_list');
!
$this->t->set_block('todo_list_t','table_footer','table_footer');
!
$this->t->set_block('todo_list_t','page_footer','page_footer');
!
! $body = '';
$this->set_app_langs();
***************
*** 130,149 ****
// --------------------- nextmatch variable template-declarations
------------------------
! $left =
$this->nextmatchs->left('/index.php',$this->start,$this->bo->total_records,'&menuaction=todo.ui.show_list');
! $right =
$this->nextmatchs->right('/index.php',$this->start,$this->bo->total_records,'&menuaction=todo.ui.show_list');
! $this->t->set_var('left',$left);
! $this->t->set_var('right',$right);
!
$this->t->set_var('total_matchs',$this->nextmatchs->show_hits($this->bo->total_records,$this->start));
// ------------------------- end nextmatch template
--------------------------------------
-
$this->t->set_var('cat_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
-
$this->t->set_var('categories',$this->cats->formated_list('select','all',$this->cat_id,'True'));
-
$this->t->set_var('filter_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
-
$this->t->set_var('filter_list',$this->nextmatchs->filter(1,array('yours' =>
1,'filter' => $this->filter)));
-
$this->t->set_var('search_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
-
$this->t->set_var('search_list',$this->nextmatchs->search(array('search_obj' =>
1,'query' => $this->query)));
-
// ---------------- list header variable template-declarations
--------------------------
--- 143,167 ----
// --------------------- nextmatch variable template-declarations
------------------------
! if($show_page_header)
! {
! $left =
$this->nextmatchs->left('/index.php',$this->start,$this->bo->total_records,'&menuaction=todo.ui.show_list');
! $right =
$this->nextmatchs->right('/index.php',$this->start,$this->bo->total_records,'&menuaction=todo.ui.show_list');
! $this->t->set_var('left',$left);
! $this->t->set_var('right',$right);
!
!
$this->t->set_var('total_matchs',$this->nextmatchs->show_hits($this->bo->total_records,$this->start));
!
!
$this->t->set_var('cat_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
!
$this->t->set_var('categories',$this->cats->formated_list('select','all',$this->cat_id,'True'));
!
$this->t->set_var('filter_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
!
$this->t->set_var('filter_list',$this->nextmatchs->filter(1,array('yours' =>
1,'filter' => $this->filter)));
!
$this->t->set_var('search_action',$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.show_list'));
!
$this->t->set_var('search_list',$this->nextmatchs->search(array('search_obj' =>
1,'query' => $this->query)));
! $body .= $this->t->fp('out','page_header');
! }
// ------------------------- end nextmatch template
--------------------------------------
// ---------------- list header variable template-declarations
--------------------------
***************
*** 159,167 ****
$this->t->set_var('h_lang_delete',lang('Delete'));
// -------------- end header declaration
---------------------------------------
for ($i=0;$i<count($todo_list);$i++)
{
!
$this->nextmatchs->template_alternate_row_color(&$this->t);
$level = $todo_list[$i]['level'];
--- 177,187 ----
$this->t->set_var('h_lang_delete',lang('Delete'));
+ $body .= $this->t->fp('out','table_header');
+
// -------------- end header declaration
---------------------------------------
for ($i=0;$i<count($todo_list);$i++)
{
!
$this->nextmatchs->template_alternate_row_color($this->t);
$level = $todo_list[$i]['level'];
***************
*** 176,180 ****
if ($level == 0)
{
! $title = '<font color="0000EE"><b>' .
$title . '</b></font>';
}
else
--- 196,200 ----
if ($level == 0)
{
! $title = '<font color="#0000EE"><b>' .
$title . '</b></font>';
}
else
***************
*** 189,193 ****
case 1: $pri = lang('Low'); break;
case 2: $pri = '<b>' . lang('normal') .
'</b>'; break;
! case 3: $pri = '<font
color="CC0000"><b>' . lang('high') . '</b></font>'; break;
}
--- 209,213 ----
case 1: $pri = lang('Low'); break;
case 2: $pri = '<b>' . lang('normal') .
'</b>'; break;
! case 3: $pri = '<font
color="#CC0000"><b>' . lang('high') . '</b></font>'; break;
}
***************
*** 207,211 ****
if (($currentdate >= $datedue) &&
($todo_list[$i]['status'] < 100))
{
! $datedueout = '<font
color="CC0000"><b>';
}
else
--- 227,231 ----
if (($currentdate >= $datedue) &&
($todo_list[$i]['status'] < 100))
{
! $datedueout = '<font
color="#CC0000"><b>';
}
else
***************
*** 266,298 ****
}
! $this->t->parse('list','todo_list',True);
}
// ------------------------- end record declaration ------------------------
// --------------- template declaration for Add Form
--------------------------
! if ($this->cat_id && $this->cat_id != 0)
{
! $cat =
$this->cats->return_single($this->cat_id);
! }
! if ($cat[0]['app_name'] == 'phpgw' || $cat[0]['owner']
== '-1' || !$this->cat_id)
! {
! $this->t->set_var('add','<form method="POST"
action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.add&cat_id=' .
$this->cat_id)
!
. '"><input type="submit" name="Add" value="' . lang('Add') .'"></form>');
! }
! else
! {
! if
($this->bo->check_perms($this->grants[$cat[0]['owner']],PHPGW_ACL_ADD) ||
$cat[0]['owner'] == $GLOBALS['phpgw_info']['user']['account_id'])
{
$this->t->set_var('add','<form
method="POST" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.add&cat_id=' .
$this->cat_id)
!
. '"><input type="submit" name="Add" value="' . lang('Add')
.'"></form>');
}
else
{
! $this->t->set_var('add','');
}
- }
// ----------------------- end Add form declaration
----------------------------
--- 286,322 ----
}
! $body .= $this->t->fp('out','todo_list');
}
+ $body .= $this->t->fp('out','table_footer');
+
// ------------------------- end record declaration ------------------------
// --------------- template declaration for Add Form
--------------------------
! if($show_page_header)
{
! if ($this->cat_id && $this->cat_id != 0)
! {
! $cat =
$this->cats->return_single($this->cat_id);
! }
! if ($cat[0]['app_name'] == 'phpgw' ||
$cat[0]['owner'] == '-1' || !$this->cat_id)
{
$this->t->set_var('add','<form
method="POST" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.add&cat_id=' .
$this->cat_id)
! . '"><input type="submit"
name="Add" value="' . lang('Add') .'"></form>');
}
else
{
! if
($this->bo->check_perms($this->grants[$cat[0]['owner']],PHPGW_ACL_ADD) ||
$cat[0]['owner'] == $GLOBALS['phpgw_info']['user']['account_id'])
! {
! $this->t->set_var('add','<form
method="POST" action="' .
$GLOBALS['phpgw']->link('/index.php','menuaction=todo.ui.add&cat_id=' .
$this->cat_id)
! . '"><input type="submit"
name="Add" value="' . lang('Add') .'"></form>');
! }
! else
! {
! $this->t->set_var('add','');
! }
}
// ----------------------- end Add form declaration
----------------------------
***************
*** 300,311 ****
// ------------ get actual date and year for matrixview arguments
--------------
! $year = date('Y');
! $month = date('m');
!
$this->t->set_var('matrixview',$GLOBALS['phpgw']->common->check_owner($GLOBALS['phpgw_info']['user']['account_id'],'/index.php',
! lang('View
matrix of actual month'),'menuaction=todo.ui.matrix&month=' . $month . '&year='
. $year));
- $this->t->pfp('out','todo_list_t',True);
$this->save_sessiondata();
}
--- 324,338 ----
// ------------ get actual date and year for matrixview arguments
--------------
! $year = date('Y');
! $month = date('m');
!
$this->t->set_var('matrixview',$GLOBALS['phpgw']->common->check_owner($GLOBALS['phpgw_info']['user']['account_id'],'/index.php',
! lang('View matrix of actual
month'),'menuaction=todo.ui.matrix&month=' . $month . '&year=' . $year));
!
! $body .= $this->t->fp('out','page_footer');
! }
$this->save_sessiondata();
+ return $body;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: todo/inc hook_home.inc.php,NONE,1.1.2.1 class.ui.inc.php,1.2.2.13,1.2.2.14,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: chora/inc class.cvslib_annotate.inc.php,NONE,1.1 class.cvslib_checkout.inc.php,NONE,1.1 class.cvslib_diff.inc.php,NONE,1.1 class.cvslib_directory.inc.php,NONE,1.1 class.cvslib_error.inc.php,NONE,1.1 class.cvslib_file.inc.php,NONE,1.1 class.cvslib_log.inc.php,NONE,1.1 class.cvslib_rev.inc.php,NONE,1.1 class.cvslib.inc.php,1.5,1.6
- Next by Date:
[Phpgroupware-cvs] CVS: todo/templates/default list.tpl,1.13.2.3,1.13.2.4
- Previous by thread:
[Phpgroupware-cvs] CVS: chora/inc class.cvslib_annotate.inc.php,NONE,1.1 class.cvslib_checkout.inc.php,NONE,1.1 class.cvslib_diff.inc.php,NONE,1.1 class.cvslib_directory.inc.php,NONE,1.1 class.cvslib_error.inc.php,NONE,1.1 class.cvslib_file.inc.php,NONE,1.1 class.cvslib_log.inc.php,NONE,1.1 class.cvslib_rev.inc.php,NONE,1.1 class.cvslib.inc.php,1.5,1.6
- Next by thread:
[Phpgroupware-cvs] CVS: todo/templates/default list.tpl,1.13.2.3,1.13.2.4
- Index(es):