[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] admin/inc class.uiaclmanager.inc.php
From: |
Bettina Gille |
Subject: |
[Phpgroupware-cvs] admin/inc class.uiaclmanager.inc.php |
Date: |
Wed, 11 Jan 2006 23:25:20 +0000 |
CVSROOT: /cvsroot/phpgroupware
Module name: admin
Branch:
Changes by: Bettina Gille <address@hidden> 06/01/11 23:25:20
Modified files:
inc : class.uiaclmanager.inc.php
Log message:
added acl demo mode patch
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/admin/inc/class.uiaclmanager.inc.php.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
Patches:
Index: admin/inc/class.uiaclmanager.inc.php
diff -u admin/inc/class.uiaclmanager.inc.php:1.15
admin/inc/class.uiaclmanager.inc.php:1.16
--- admin/inc/class.uiaclmanager.inc.php:1.15 Wed May 11 07:23:07 2005
+++ admin/inc/class.uiaclmanager.inc.php Wed Jan 11 23:25:20 2006
@@ -5,7 +5,7 @@
* @copyright Copyright (C) 2001-2005 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @package admin
- * @version $Id: class.uiaclmanager.inc.php,v 1.15 2005/05/11 07:23:07
powerstat Exp $
+ * @version $Id: class.uiaclmanager.inc.php,v 1.16 2006/01/11 23:25:20
ceb Exp $
*/
@@ -16,7 +16,7 @@
*/
class uiaclmanager
{
- var $template;
+ var $account_id;
var $nextmatchs;
var $public_functions = array
(
@@ -35,7 +35,6 @@
{
$GLOBALS['phpgw']->redirect_link('/index.php');
}
- $this->template =
createobject('phpgwapi.Template',PHPGW_APP_TPL);
$this->nextmatchs =
CreateObject('phpgwapi.nextmatchs');
$this->boacl =
CreateObject('admin.boaclmanager');
}
@@ -44,41 +43,40 @@
{
$GLOBALS['phpgw_info']['flags']['app_header'] =
lang('Admin') . ' - ' . lang('ACL Manager') .
': ' .
$GLOBALS['phpgw']->common->grab_owner_name($this->account_id);
- $GLOBALS['phpgw']->common->phpgw_header();
- echo parse_navbar();
+ $GLOBALS['phpgw']->common->phpgw_header(True);
}
function list_apps()
{
$this->common_header();
-
$GLOBALS['phpgw']->hooks->process('acl_manager',array('preferences'));
+
$GLOBALS['phpgw']->hooks->process('acl_manager',array('admin','preferences'));
- $this->template->set_file(array(
+ $GLOBALS['phpgw']->template->set_file(array(
'app_list' => 'acl_applist.tpl'
));
- $this->template->set_block('app_list','list');
- $this->template->set_block('app_list','app_row');
- $this->template->set_block('app_list','app_row_noicon');
- $this->template->set_block('app_list','link_row');
- $this->template->set_block('app_list','spacer_row');
+
$GLOBALS['phpgw']->template->set_block('app_list','list');
+
$GLOBALS['phpgw']->template->set_block('app_list','app_row');
+
$GLOBALS['phpgw']->template->set_block('app_list','app_row_noicon');
+
$GLOBALS['phpgw']->template->set_block('app_list','link_row');
+
$GLOBALS['phpgw']->template->set_block('app_list','spacer_row');
while (is_array($GLOBALS['acl_manager']) &&
list($app,$locations) = each($GLOBALS['acl_manager']))
{
$icon =
$GLOBALS['phpgw']->common->image($app,array('navbar.gif',$app.'.gif'));
-
$this->template->set_var('icon_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
-
$this->template->set_var('link_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
-
$this->template->set_var('app_name',$GLOBALS['phpgw_info']['apps'][$app]['title']);
- $this->template->set_var('a_name',$appname);
- $this->template->set_var('app_icon',$icon);
+
$GLOBALS['phpgw']->template->set_var('icon_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
+
$GLOBALS['phpgw']->template->set_var('link_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
+
$GLOBALS['phpgw']->template->set_var('app_name',$GLOBALS['phpgw_info']['apps'][$app]['title']);
+
$GLOBALS['phpgw']->template->set_var('a_name',$appname);
+
$GLOBALS['phpgw']->template->set_var('app_icon',$icon);
if ($icon)
{
-
$this->template->fp('rows','app_row',True);
+
$GLOBALS['phpgw']->template->fp('rows','app_row',True);
}
else
{
-
$this->template->fp('rows','app_row_noicon',True);
+
$GLOBALS['phpgw']->template->fp('rows','app_row_noicon',True);
}
while (is_array($locations) &&
list($loc,$value) = each($locations))
@@ -90,18 +88,18 @@
'account_id' =>
$this->account_id
);
-
$this->template->set_var('link_location',$GLOBALS['phpgw']->link('/index.php',$link_values));
-
$this->template->set_var('lang_location',lang($value['name']));
-
$this->template->fp('rows','link_row',True);
+
$GLOBALS['phpgw']->template->set_var('link_location',$GLOBALS['phpgw']->link('/index.php',$link_values));
+
$GLOBALS['phpgw']->template->set_var('lang_location',lang($value['name']));
+
$GLOBALS['phpgw']->template->fp('rows','link_row',True);
}
-
$this->template->parse('rows','spacer_row',True);
+
$GLOBALS['phpgw']->template->parse('rows','spacer_row',True);
}
- $this->template->set_var(array(
+ $GLOBALS['phpgw']->template->set_var(array(
'cancel_action' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccounts.list_users'),
'lang_cancel' => lang('Cancel')
));
- $this->template->pfp('out','list');
+ $GLOBALS['phpgw']->template->pfp('out','list');
}
function access_form()
@@ -134,13 +132,11 @@
$acl_manager =
$GLOBALS['acl_manager'][$_GET['acl_app']][$location];
$this->common_header();
-
$this->template->set_file('form','acl_manager_form.tpl');
+
$GLOBALS['phpgw']->template->set_file('form','acl_manager_form.tpl');
- $acc =
createobject('phpgwapi.accounts',$this->account_id);
- $acc->read_repository();
- $afn =
$GLOBALS['phpgw']->common->display_fullname($acc->data['account_lid'],$acc->data['firstname'],$acc->data['lastname']);
+ $afn =
$GLOBALS['phpgw']->common->grab_owner_name($this->account_id);
- $this->template->set_var('lang_message',lang('Check
items to <b>%1</b> to %2 for
%3',lang($acl_manager['name']),$GLOBALS['phpgw_info']['apps'][$_GET['acl_app']]['title'],$afn));
+
$GLOBALS['phpgw']->template->set_var('lang_message',lang('Check items to
<b>%1</b> to %2 for
%3',lang($acl_manager['name']),$GLOBALS['phpgw_info']['apps'][$_GET['acl_app']]['title'],$afn));
$link_values = array(
'menuaction' =>
'admin.uiaclmanager.access_form',
'acl_app' => $_GET['acl_app'],
@@ -152,18 +148,18 @@
$acl->read_repository();
$grants = $acl->get_rights($location,$_GET['acl_app']);
-
$this->template->set_var('form_action',$GLOBALS['phpgw']->link('/index.php',$link_values));
+
$GLOBALS['phpgw']->template->set_var('form_action',$GLOBALS['phpgw']->link('/index.php',$link_values));
$total = 0;
while (list($name,$value) =
each($acl_manager['rights']))
{
$cb .= '<input type="checkbox"
name="acl_rights[]" value="'.$value.'"'.($grants & $value ? ' checked' :
'').'> '.lang($name)."<br>\n";
}
- $this->template->set_var('select_values',$cb);
- $this->template->set_var('lang_submit',lang('Save'));
- $this->template->set_var('lang_cancel',lang('Cancel'));
+
$GLOBALS['phpgw']->template->set_var('select_values',$cb);
+
$GLOBALS['phpgw']->template->set_var('lang_submit',lang('Save'));
+
$GLOBALS['phpgw']->template->set_var('lang_cancel',lang('Cancel'));
- $this->template->pfp('out','form');
+ $GLOBALS['phpgw']->template->pfp('out','form');
}
function list_addressmasters()
@@ -185,8 +181,7 @@
}
$GLOBALS['phpgw_info']['flags']['app_header'] =
lang('admin') . ': ' . lang('list addressmasters');
- $GLOBALS['phpgw']->common->phpgw_header();
- echo parse_navbar();
+ $GLOBALS['phpgw']->common->phpgw_header(True);
$GLOBALS['phpgw']->template->set_file(array('admin_list_t' =>
'list_accountmasters.tpl'));
$GLOBALS['phpgw']->template->set_block('admin_list_t','user_list','list');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] admin/inc class.uiaclmanager.inc.php,
Bettina Gille <=