[20858] Delete obsolete

Sigurd Nes <[email protected]>
Newsgroups gmane.comp.web.phpgroupware.cvs
Message-ID <[email protected]>
Revision: 20858
          http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20858
Author:   sigurdne
Date:     2009-11-20 12:23:59 +0000 (Fri, 20 Nov 2009)
Log Message:
-----------
Delete obsolete

Removed Paths:
-------------
    people/sigurdne/modules/hrm/trunk/inc/check.js
    people/sigurdne/modules/hrm/trunk/inc/class.boadmin.inc.php
    people/sigurdne/modules/hrm/trunk/inc/class.soadmin.inc.php
    people/sigurdne/modules/hrm/trunk/inc/class.uiadmin.inc.php

Deleted: people/sigurdne/modules/hrm/trunk/inc/check.js
===================================================================
--- people/sigurdne/modules/hrm/trunk/inc/check.js	2009-11-20 12:23:26 UTC (rev 20857)
+++ people/sigurdne/modules/hrm/trunk/inc/check.js	2009-11-20 12:23:59 UTC (rev 20858)
@@ -1,58 +0,0 @@
-
-function check_all_radio(which)
-{
-  for (i=0; i<document.form.elements.length; i++)
-  {
-    if (document.form.elements[i].type == "radio"  && document.form.elements[i].value == which)
-    {
-        document.form.elements[i].checked = true;
-    } 
-  }
-}
-
-function check_all_checkbox(which)
-{
-  for (i=0; i<document.form.elements.length; i++)
-  {
-    if (document.form.elements[i].type == "checkbox"  && document.form.elements[i].name.substring(0,which.length) == which)
-    {
-      if (document.form.elements[i].checked)
-      {
-        document.form.elements[i].checked = false;
-      }
-      else
-      {
-        document.form.elements[i].checked = true;
-      }
-    } 
-  }
-}
-
-function check_all_radio2(which)
-{
-  for (i=0; i<document.form2.elements.length; i++)
-  {
-    if (document.form2.elements[i].type == "radio"  && document.form2.elements[i].value == which)
-    {
-        document.form2.elements[i].checked = true;
-    } 
-  }
-}
-
-function check_all_checkbox2(which)
-{
-  for (i=0; i<document.form2.elements.length; i++)
-  {
-    if (document.form2.elements[i].type == "checkbox"  && document.form2.elements[i].name.substring(0,which.length) == which)
-    {
-      if (document.form2.elements[i].checked)
-      {
-        document.form2.elements[i].checked = false;
-      }
-      else
-      {
-        document.form2.elements[i].checked = true;
-      }
-    } 
-  }
-}

Deleted: people/sigurdne/modules/hrm/trunk/inc/class.boadmin.inc.php
===================================================================
--- people/sigurdne/modules/hrm/trunk/inc/class.boadmin.inc.php	2009-11-20 12:23:26 UTC (rev 20857)
+++ people/sigurdne/modules/hrm/trunk/inc/class.boadmin.inc.php	2009-11-20 12:23:59 UTC (rev 20858)
@@ -1,390 +0,0 @@
-<?php
-	/**
-	* phpGroupWare - HRM: a  human resource competence management system.
-	*
-	* @author Sigurd Nes <[email protected]>
-	* @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc. http://www.fsf.org/
-	* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
-	* @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/
-	* @package hrm
-	* @subpackage admin
- 	* @version $Id$
-	*/
-
-	/**
-	 * Description
-	 * @package property
-	 */
-
-	class hrm_boadmin
-	{
-		var $start;
-		var $query;
-		var $filter;
-		var $sort;
-		var $order;
-		var $cat_id;
-
-		function hrm_boadmin($session='')
-		{
-		//	$this->currentapp	= $GLOBALS['phpgw_info']['flags']['currentapp'];
-			$this->so 			= CreateObject('hrm.soadmin');
-			$this->catbo = createobject('phpgwapi.categories');
-
-			$this->acl			= CreateObject('phpgwapi.acl');
-			$this->right		= array(1,2,4,8,16);
-
-			if ($session)
-			{
-				$this->read_sessiondata();
-				$this->use_session = True;
-			}
-
-			$acl_app	= phpgw::get_var('acl_app');
-			$start	= phpgw::get_var('start', 'int', 'REQUEST', 0);
-			$query	= phpgw::get_var('query');
-			$sort	= phpgw::get_var('sort');
-			$order	= phpgw::get_var('order');
-			$filter	= phpgw::get_var('filter', 'int');
-			$cat_id	= phpgw::get_var('cat_id', 'int');
-			$permission	= phpgw::get_var('permission');
-			$module	= phpgw::get_var('module');
-			$granting_group	= phpgw::get_var('granting_group', 'int');
-			$allrows	= phpgw::get_var('allrows', 'bool');
-
-			if ($start)
-			{
-				$this->start=$start;
-			}
-			else
-			{
-				$this->start=0;
-			}
-
-			if($acl_app)
-			{
-				$this->acl_app = $acl_app;
-			}
-			else
-			{
-				$this->acl_app = 'hrm';
-			}
-			if(isset($query))
-			{
-				$this->query = $query;
-			}
-			if(isset($filter))
-			{
-				$this->filter = $filter;
-			}
-			if(isset($sort))
-			{
-				$this->sort = $sort;
-			}
-			if(isset($order))
-			{
-				$this->order = $order;
-			}
-			if(isset($cat_id))
-			{
-				$this->cat_id = $cat_id;
-			}
-			if(isset($module))
-			{
-				$this->location = $module;
-			}
-			if(isset($granting_group))
-			{
-				$this->granting_group = $granting_group;
-			}
-			if(isset($allrows))
-			{
-				$this->allrows = $allrows;
-			}
-		}
-
-
-		function read_sessiondata()
-		{
-			$data = $GLOBALS['phpgw']->session->appsession('session_data','fm_admin');
-
-			$this->start		= $data['start'];
-			$this->query		= $data['query'];
-			$this->filter		= $data['filter'];
-			$this->sort			= $data['sort'];
-			$this->order		= $data['order'];
-			$this->cat_id		= $data['cat_id'];
-			$this->location		= $data['location'];
-			$this->granting_group	= $data['granting_group'];
-			$this->allrows	= $data['allrows'];
-		}
-
-		function save_sessiondata($data)
-		{
-			if ($this->use_session)
-			{
-				$GLOBALS['phpgw']->session->appsession('session_data','fm_admin',$data);
-			}
-		}
-
-		function select_location($format='',$selected='',$grant='')
-		{
-
-			switch($format)
-			{
-				case 'select':
-					$GLOBALS['phpgw']->xslttpl->add_file(array('select_location'));
-					break;
-				case 'filter':
-					$GLOBALS['phpgw']->xslttpl->add_file(array('filter_location'));
-					break;
-			}
-
-			$locations= $this->so->select_location($grant);
-
-			$i = count($locations);
-			$api_cats = $this->catbo->return_array('all', 0, True, False, False, 'cat_name', True);
-			if ( is_array($api_cats) )
-			{
-				foreach ($api_cats as $cat)
-				{
-					$locations[$i]['id']	= 'C' . $cat['id'];
-					$locations[$i]['descr']	= $cat['name'];
-					$i++;
-				}
-			}
-			unset($api_cats);
-
-			while (is_array($locations) && list(,$loc) = each($locations))
-			{
-				$sel_loc = '';
-				if ($loc['id']==$selected)
-				{
-					$sel_loc = 'selected';
-				}
-
-				$location_list[] = array
-				(
-					'id'		=> $loc['id'],
-					'descr'		=> $loc['id'] . ' [' . $loc['descr'] . ']',
-					'selected'	=> $sel_loc
-				);
-			}
-
-			for ($i=0;$i<count($location_list);$i++)
-			{
-				if ($location_list[$i]['selected'] != 'selected')
-				{
-					unset($location_list[$i]['selected']);
-				}
-			}
-
-			return $location_list;
-		}
-
-		function select_category_list($format='',$selected='')
-		{
-			switch($format)
-			{
-				case 'select':
-					$GLOBALS['phpgw']->xslttpl->add_file(array('cat_select'));
-					break;
-				case 'filter':
-					$GLOBALS['phpgw']->xslttpl->add_file(array('cat_filter'));
-					break;
-			}
-
-
-			$categories[0]['id']	= 'groups';
-			$categories[0]['name']	= lang('Groups');
-			$categories[1]['id']	= 'accounts';
-			$categories[1]['name']	= lang('Users');
-
-			while (is_array($categories) && list(,$category) = each($categories))
-			{
-				$sel_category = '';
-				if ($category['id']==$selected)
-				{
-					$sel_category = 'selected';
-				}
-
-				$category_list[] = array
-				(
-					'cat_id'	=> $category['id'],
-					'name'		=> $category['name'],
-					'selected'	=> $sel_category
-				);
-			}
-
-			for ($i=0;$i<count($category_list);$i++)
-			{
-				if ($category_list[$i]['selected'] != 'selected')
-				{
-					unset($category_list[$i]['selected']);
-				}
-			}
-
-			return $category_list;
-		}
-
-
-		function set_permission2($values,$r_processed, $grantor = False, $type = False)
-		{
-			@reset($values);
-			$totalacl = array();
-			while(list($rowinfo,$perm) = each($values))
-			{
-				list($user_id,$rights) = split('_',$rowinfo);
-				$totalacl[$user_id] += $rights;
-			}
-			@reset($totalacl);
-			while(list($user_id,$rights) = @each($totalacl))
-			{
-				$user_checked[]=$user_id;
-
-				$this->acl->account_id=$user_id;
-				$this->acl->read_repository();
-				$this->acl->delete($appname = $this->acl_app, $this->location,$grantor,$type);
-				$this->acl->add($appname = $this->acl_app, $this->location, $rights,$grantor,$type);
-				$this->acl->save_repository();
-			}
-
-			if(is_array($r_processed) && is_array($user_checked))
-			{
-				$user_delete 	= array_diff($r_processed, $user_checked);
-			}
-			else
-			{
-				$user_delete	= $r_processed;
-			}
-			if(is_array($user_delete) && count($user_delete)>0)
-			{
-				while(list(,$user_id) = each($user_delete))
-				{
-					$this->acl->account_id=$user_id;
-					$this->acl->read_repository();
-					$this->acl->delete($appname = $this->acl_app, $this->location,$grantor,$type);
-					$this->acl->save_repository();
-				}
-			}
-		}
-
-		function set_permission($values,$r_processed,$set_grant = '')
-		{
-
-			$r_processed=explode("_",$r_processed);
-
-			if(!$values['right'])
-			{
-				$values['right'] = array();
-			}
-			if(!$values['mask'])
-			{
-				$values['mask'] = array();
-			}
-
-			if($set_grant)
-			{
-				if($this->granting_group)
-				{
-					$grantor = $this->granting_group;
-				}
-				else
-				{
-					$grantor = $GLOBALS['phpgw_info']['user']['account_id'];
-				}
-			}
-
-			$this->set_permission2($values['right'],$r_processed,$grantor,0);
-			$this->set_permission2($values['mask'],$r_processed,$grantor,1);
-
-			$receipt['message'][] = array('msg' => lang('permissions are updated!'));
-			return $receipt;
-		}
-
-
-		function get_user_list($type='',$get_grants='')
-		{
-			if($type == 'groups')
-			{
-				$check_account_type = array('accounts');
-			}
-			else
-			{
-				$check_account_type = array('groups','accounts');
-			}
-
-			if($get_grants)
-			{
-				if($this->granting_group)
-				{
-					$grantor = $this->granting_group;
-				}
-				else
-				{
-					$grantor = $GLOBALS['phpgw_info']['user']['account_id'];
-				}
-			}
-
-			$right=$this->right;
-
-			if ($this->allrows)
-			{
-				$this->start = -1;
-				$offset = -1;
-			}
-			
-			$allusers = $GLOBALS['phpgw']->accounts->get_list($type, $this->start,$this->sort, $this->order, $this->query, $offset);
-
-			if (isSet($allusers) AND is_array($allusers))
-			{
-				$j=0;
-				foreach($allusers as $account)
-				{
-					$user_list[$j]['account_id'] 		= $account['account_id'];
-					$user_list[$j]['account_lid'] 		= $account['account_lid'];
-					$user_list[$j]['account_firstname'] 	= $account['account_firstname'];
-					$user_list[$j]['account_lastname'] 	= $account['account_lastname'];
-
-					$this->acl->account_id=$account['account_id'];
-
-					$this->acl->read_repository();
-
-					$count_right=count($right);
-					for ($i=0;$i<$count_right;$i++)
-					{
-						if($this->acl->check_brutto($this->location, $right[$i],$this->acl_app,$grantor,0,$check_account_type))
-						{
-							if($this->acl->account_type == 'g')
-							{
-								$user_list[$j]['right'][$right[$i]] = 'from_group';
-							}
-							else
-							{
-								$user_list[$j]['right'][$right[$i]] = 'checked';
-							}
-							$user_list[$j]['result'][$right[$i]] = 'checked';
-						}
-						if($this->acl->check_brutto($this->location, $right[$i],$this->acl_app,$grantor,1,$check_account_type))
-						{
-							if($this->acl->account_type == 'g')
-							{
-								$user_list[$j]['mask'][$right[$i]] = 'from_group';
-							}
-							else
-							{
-								$user_list[$j]['mask'][$right[$i]] = 'checked';
-							}
-							unset($user_list[$j]['result'][$right[$i]]);
-						}
-					}
-
-					$j++;
-				}
-			}
-
-			$this->total_records = $GLOBALS['phpgw']->accounts->total;
-
-			return $user_list;
-		}
-	}

Deleted: people/sigurdne/modules/hrm/trunk/inc/class.soadmin.inc.php
===================================================================
--- people/sigurdne/modules/hrm/trunk/inc/class.soadmin.inc.php	2009-11-20 12:23:26 UTC (rev 20857)
+++ people/sigurdne/modules/hrm/trunk/inc/class.soadmin.inc.php	2009-11-20 12:23:59 UTC (rev 20858)
@@ -1,54 +0,0 @@
-<?php
-	/**
-	 * phpGroupWare - HRM: a  human resource competence management system.
-	 *
-	 * @author Sigurd Nes <[email protected]>
-	 * @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc. http://www.fsf.org/
-	 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
-	 * @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/
-	 * @package hrm
-	 * @subpackage admin
- 	* @version $Id$
-	 */
-
-	/**
-	 * Description
-	 * @package hrm
-	 */
-
-	class hrm_soadmin
-	{
-		public function __construct()
-		{
-		//	$this->currentapp	= $GLOBALS['phpgw_info']['flags']['currentapp'];
-			$this->account		= $GLOBALS['phpgw_info']['user']['account_id'];
-			$this->bocommon		= createObject('hrm.bocommon');
-			$this->db			= $this->bocommon->new_db();
-			$this->join			=& $this->bocommon->join;
-			$this->like			=& $this->bocommon->like;
-		}
-
-		public function select_location($grant='', $appname = 'hrm')
-		{
-  			$appname = $GLOBALS['phpgw']->db->db_addslashes($appname);
-			$filter = " WHERE appname='$appname'";
-
-			if($grant)
-			{
-				$filter .= ' AND allow_grant=1';
-			}
-
-			$this->db->query("SELECT * FROM phpgw_hrm_acl_location $filter ORDER BY id ");
-
-			$location = array();
-			while ($this->db->next_record())
-			{
-				$location[] = array
-				(
-					'id'	=> $this->db->f('id'),
-					'descr'	=> $this->db->f('descr', true)
-				);
-			}
-			return $location;
-		}
-	}

Deleted: people/sigurdne/modules/hrm/trunk/inc/class.uiadmin.inc.php
===================================================================
--- people/sigurdne/modules/hrm/trunk/inc/class.uiadmin.inc.php	2009-11-20 12:23:26 UTC (rev 20857)
+++ people/sigurdne/modules/hrm/trunk/inc/class.uiadmin.inc.php	2009-11-20 12:23:59 UTC (rev 20858)
@@ -1,598 +0,0 @@
-<?php
-	/**
-	* phpGroupWare - HRM: a  human resource competence management system.
-	*
-	* @author Sigurd Nes <[email protected]>
-	* @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc. http://www.fsf.org/
-	* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
-	* @internal Development of this application was funded by http://www.bergen.kommune.no/bbb_/ekstern/
-	* @package hrm
-	* @subpackage admin
- 	* @version $Id$
-	*/
-
-	/**
-	 * Description
-	 * @package hrm
-	 */
-
-	class hrm_uiadmin
-	{
-		var $grants;
-		var $cat_id;
-		var $start;
-		var $query;
-		var $sort;
-		var $order;
-		var $filter;
-		var $submodule_id;
-		var $permission;
-		var $sub;
-		var $currentapp;
-
-		var $public_functions = array
-		(
-			'list_acl'		=> True,
-			'aclprefs'		=> True,
-			'edit_id'		=> True,
-			'contact_info'	=> True
-		);
-
-		function hrm_uiadmin()
-		{
-			$GLOBALS['phpgw_info']['flags']['xslt_app'] = True;
-		//	$this->currentapp			= $GLOBALS['phpgw_info']['flags']['currentapp'];
-			$this->nextmatchs			= CreateObject('phpgwapi.nextmatchs');
-			$this->account				= $GLOBALS['phpgw_info']['user']['account_id'];
-
-			$this->bo					= CreateObject('hrm.boadmin',true);
-			$this->bocommon				= CreateObject('hrm.bocommon');
-
-			$this->acl_app				= $this->bo->acl_app;
-			$this->start				= $this->bo->start;
-			$this->query				= $this->bo->query;
-			$this->sort					= $this->bo->sort;
-			$this->order				= $this->bo->order;
-			$this->filter				= $this->bo->filter;
-			$this->cat_id				= $this->bo->cat_id;
-			$this->location				= $this->bo->location;
-			$this->granting_group		= $this->bo->granting_group;
-			$this->allrows				= $this->bo->allrows;
-		}
-
-		function save_sessiondata()
-		{
-			$data = array
-			(
-				'start'			=> $this->start,
-				'query'			=> $this->query,
-				'sort'			=> $this->sort,
-				'order'			=> $this->order,
-				'filter'		=> $this->filter,
-				'cat_id'		=> $this->cat_id,
-				'location'		=> $this->location,
-				'granting_group'		=> $this->granting_group,
-				'allrows'	=> $this->allrows
-			);
-
-			$this->bo->save_sessiondata($data);
-		}
-
-		function aclprefs()
-		{
-			$GLOBALS['phpgw']->xslttpl->add_file(array('admin','nextmatchs',
-										'search_field'));
-
-			$values 	= phpgw::get_var('values');
-			$r_processed	= phpgw::get_var('processed');
-			$set_permission = phpgw::get_var('set_permission', 'bool');
-
-			if($set_permission)
-			{
-				$receipt	= $this->bo->set_permission($values,$r_processed,true);
-			}
-
-			if ($this->location)
-			{
-				if($this->cat_id=='accounts')
-				{
-					$user_list = $this->bo->get_user_list('accounts',true);
-				}
-
-				while (is_array($user_list) && list(,$user) = each($user_list))
-				{
-					$processed[] = $user['account_id'];
-					$users[] = array
-					(
-						'account_id'			=> $user['account_id'],
-						'lid'					=> $user['account_lid'],
-						'name'					=> $user['account_firstname'] . ' ' . $user['account_lastname'],
-						'read_right'				=> $user['right'][1],
-						'add_right'				=> $user['right'][2],
-						'edit_right'				=> $user['right'][4],
-						'delete_right'				=> $user['right'][8],
-						'read_mask'				=> $user['mask'][1],
-						'add_mask'				=> $user['mask'][2],
-						'edit_mask'				=> $user['mask'][4],
-						'delete_mask'				=> $user['mask'][8],
-						'read_result'				=> $user['result'][1],
-						'add_result'				=> $user['result'][2],
-						'edit_result'				=> $user['result'][4],
-						'delete_result'				=> $user['result'][8],
-						'lang_right'				=> lang('right'),
-						'lang_mask'				=> lang('mask'),
-						'lang_result'				=> lang('result'),
-						'lang_read'				=> lang('Read'), 				//1
-						'lang_add'				=> lang('Add'), 				//2
-						'lang_edit'				=> lang('Edit'),				//4
-						'lang_delete'				=> lang('Delete'),				//8
-						'type'					=> 'users'
-					);
-				}
-
-				if($this->cat_id=='groups')
-				{
-					$group_list = $this->bo->get_user_list('groups',true);
-				}
-
-
-				while (is_array($group_list) && list(,$group) = each($group_list))
-				{
-					$processed[] = $group['account_id'];
-					$groups[] = array
-					(
-						'account_id'			=> $group['account_id'],
-						'lid'					=> $group['account_lid'],
-						'name'					=> $group['account_firstname'],
-						'read_right'				=> $group['right'][1],
-						'add_right'				=> $group['right'][2],
-						'edit_right'				=> $group['right'][4],
-						'delete_right'				=> $group['right'][8],
-						'read_mask'				=> $group['mask'][1],
-						'add_mask'				=> $group['mask'][2],
-						'edit_mask'				=> $group['mask'][4],
-						'delete_mask'				=> $group['mask'][8],
-						'read_result'				=> $group['result'][1],
-						'add_result'				=> $group['result'][2],
-						'edit_result'				=> $group['result'][4],
-						'delete_result'				=> $group['result'][8],
-						'lang_right'				=> lang('right'),
-						'lang_mask'				=> lang('mask'),
-						'lang_result'				=> lang('result'),
-						'lang_read'				=> lang('Read'), 				//1
-						'lang_add'				=> lang('Add'), 				//2
-						'lang_edit'				=> lang('Edit'),				//4
-						'lang_delete'				=> lang('Delete'),				//8
-						'type'					=> 'groups'
-					);
-				}
-//_debug_array($groups);
-
-				$processed=@implode("_", $processed);
-			}
-
-
-			$table_header[] = array
-			(
-				'lang_read'				=> lang('Read'), 				//1
-				'lang_add'				=> lang('Add'), 				//2
-				'lang_edit'				=> lang('Edit'),				//4
-				'lang_delete'				=> lang('Delete'),				//8
-				'lang_manager'				=> lang('Manager')				//16
-			);
-
-
-			$link_data = array
-			(
-				'menuaction'	=> 'hrm.uiadmin.aclprefs',
-						'sort'				=>$this->sort,
-						'order'				=>$this->order,
-						'cat_id'			=>$this->cat_id,
-						'filter'			=>$this->filter,
-						'query'				=>$this->query,
-						'module'			=> $this->location,
-						'granting_group'	=> $this->granting_group,
-						'acl_app'			=> $this->acl_app
-			);
-
-			if(!$this->location)
-			{
-				$receipt['error'][] = array('msg' => lang('select a location!'));
-			}
-
-			$num_records = count($user_list) + count($group_list);
-
-			$msgbox_data = $this->bocommon->msgbox_data($receipt);
-
-			$data = array
-			(
-				'msgbox_data'					=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
-				'form_action'					=> $GLOBALS['phpgw']->link('/index.php',$link_data),
-				'done_action'					=> $GLOBALS['phpgw']->link('/preferences/index.php'),
-				'lang_save'						=> lang('save'),
-				'lang_done'						=> lang('done'),
-				'processed'						=> $processed,
-				'location'						=> $this->location,
-				'links'							=> $links,
-				'allow_allrows'					=> false,
-				'start_record'					=> $this->start,
-				'record_limit'					=> $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
-				'num_records'					=> $num_records,
-				'all_records'					=> $this->bo->total_records,
-				'link_url'					=> $GLOBALS['phpgw']->link('/index.php','menuaction='.'hrm.uiadmin.aclprefs'),
-				'img_path'					=> $GLOBALS['phpgw']->common->get_image_path('phpgwapi','default'),
-
-				'lang_groups'					=> lang('groups'),
-				'lang_users'					=> lang('users'),
-				'lang_no_cat'					=> lang('no category'),
-				'lang_cat_statustext'			=> lang('Select the category the permissions belongs to. To do not use a category select NO CATEGORY'),
-				'select_name'					=> 'cat_id',
-				'cat_list'						=> $this->bo->select_category_list('filter',$this->cat_id),
-				'select_action'					=> $GLOBALS['phpgw']->link('/index.php',$link_data),
-				'cat_id'						=> $this->cat_id,
-				'permission'					=> False,
-				'grant'							=> 1,
-
-				'lang_searchfield_statustext'	=> lang('Enter the search string. To show all entries, empty this field and press the SUBMIT button again'),
-				'lang_searchbutton_statustext'	=> lang('Submit the search string'),
-				'query'							=> $this->query,
-				'lang_search'					=> lang('search'),
-				'table_header_permission'		=> $table_header,
-				'values_groups'					=> $groups,
-				'values_users'					=> $users,
-				'lang_no_location'				=> lang('No location'),
-				'lang_location_statustext'		=> lang('Select submodule'),
-				'select_name_location'			=> 'module',
-				'location_list'					=> $this->bo->select_location('filter',$this->location,True),
-
-				'is_admin'						=> $GLOBALS['phpgw_info']['user']['apps']['admin'],
-				'lang_group_statustext'			=> lang('Select the granting group. To do not use a granting group select NO GRANTING GROUP'),
-				'select_group_name'				=> 'granting_group',
-				'lang_no_group'					=> lang('No granting group'),
-				'group_list'					=> $this->bocommon->get_group_list('filter',$this->granting_group,$start=-1,$sort='ASC',$order='account_firstname',$query='',$offset=-1),
-			);
-
-			$appname						= lang('preferences');
-			$function_msg					= lang('set grants');
-			$owner_name = $GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->accounts->account_id);		// get owner name for title
-
-			$GLOBALS['phpgw_info']['flags']['app_header'] = lang('hrm') . ' - ' . $appname . ': ' . $function_msg . ': ' . $owner_name;
-			$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('list_permission' => $data));
-			$this->save_sessiondata();
-		}
-
-		function list_acl()
-		{
-
-			$GLOBALS['phpgw']->xslttpl->add_file(array('admin','nextmatchs',
-										'search_field'));
-
-			$values 		= phpgw::get_var('values');
-			$r_processed	= phpgw::get_var('processed');
-
-			$set_permission = phpgw::get_var('set_permission', 'bool');
-
-			if($set_permission)
-			{
-				$receipt	= $this->bo->set_permission($values,$r_processed);
-			}
-
-			if ($this->location)
-			{
-				if($this->cat_id=='accounts')
-				{
-					$user_list = $this->bo->get_user_list('accounts');
-				}
-
-				if (isSet($user_list) AND is_array($user_list))
-				{
-					foreach($user_list as $user)
-					{
-						$processed[] = $user['account_id'];
-						$users[] = array
-						(
-							'account_id'				=> $user['account_id'],
-							'lid'					=> $user['account_lid'],
-							'name'					=> $user['account_firstname'] . ' ' . $user['account_lastname'] . ' [' . $user['account_lid'] . ']',
-							'read_right'				=> $user['right'][1],
-							'add_right'				=> $user['right'][2],
-							'edit_right'				=> $user['right'][4],
-							'delete_right'				=> $user['right'][8],
-							'manage_right'				=> $user['right'][16],
-							'read_mask'				=> $user['mask'][1],
-							'add_mask'				=> $user['mask'][2],
-							'edit_mask'				=> $user['mask'][4],
-							'delete_mask'				=> $user['mask'][8],
-							'manage_mask'				=> $user['mask'][16],
-							'read_result'				=> $user['result'][1],
-							'add_result'				=> $user['result'][2],
-							'edit_result'				=> $user['result'][4],
-							'delete_result'				=> $user['result'][8],
-							'manage_result'				=> $user['result'][16],
-							'lang_right'				=> lang('right'),
-							'lang_mask'				=> lang('mask'),
-							'lang_result'				=> lang('result'),
-							'lang_read'				=> lang('Read'), 				//1
-							'lang_add'				=> lang('Add'), 				//2
-							'lang_edit'				=> lang('Edit'),				//4
-							'lang_delete'				=> lang('Delete'),				//8
-							'lang_manage'				=> lang('Manage'),				//16
-							'type'					=> 'users'
-						);
-					}
-				}
-
-				if($this->cat_id=='groups')
-				{
-					$group_list = $this->bo->get_user_list('groups');
-				}
-
-				if (isSet($group_list) AND is_array($group_list))
-				{
-					foreach($group_list as $group)
-					{
-						$processed[] = $group['account_id'];
-						$groups[] = array
-						(
-							'account_id'				=> $group['account_id'],
-							'lid'					=> $group['account_lid'],
-							'name'					=> $group['account_firstname'],
-							'read_right'				=> $group['right'][1],
-							'add_right'				=> $group['right'][2],
-							'edit_right'				=> $group['right'][4],
-							'delete_right'				=> $group['right'][8],
-							'manage_right'				=> $group['right'][16],
-							'read_mask'				=> $group['mask'][1],
-							'add_mask'				=> $group['mask'][2],
-							'edit_mask'				=> $group['mask'][4],
-							'delete_mask'				=> $group['mask'][8],
-							'manage_mask'				=> $group['mask'][16],
-							'read_result'				=> $group['result'][1],
-							'add_result'				=> $group['result'][2],
-							'edit_result'				=> $group['result'][4],
-							'delete_result'				=> $group['result'][8],
-							'manage_result'				=> $group['result'][16],
-							'lang_right'				=> lang('right'),
-							'lang_mask'				=> lang('mask'),
-							'lang_result'				=> lang('result'),
-							'lang_read'				=> lang('Read'), 				//1
-							'lang_add'				=> lang('Add'), 				//2
-							'lang_edit'				=> lang('Edit'),				//4
-							'lang_delete'				=> lang('Delete'),				//8
-							'lang_manage'				=> lang('Manage'),				//16
-							'type'					=> 'groups'
-						);
-					}
-				}
-
-
-				$processed=@implode("_", $processed);
-			}
-
-
-			$table_header[] = array
-			(
-				'sort_lid'	=> $this->nextmatchs->show_sort_order(array
-										(
-											'sort'	=> $this->sort,
-											'var'	=>	'account_lid',
-											'order'	=>	$this->order,
-											'extra'	=> array('menuaction'	=> 'hrm.uiadmin.list_acl',
-																	'cat_id'	=>$this->cat_id,
-																	'query'		=>$this->query,
-																	'module'		=> $this->location,
-																	'submodule_id'	=>$this->submodule_id)
-										)),
-				'sort_lastname'	=> $this->nextmatchs->show_sort_order(array
-										(
-											'sort'	=>	$this->sort,
-											'var'	=>	'account_lastname',
-											'order'	=>	$this->order,
-											'extra'	=>	array('menuaction'	=> 'hrm.uiadmin.list_acl',
-																	'cat_id'	=>$this->cat_id,
-																	'query'		=>$this->query,
-																	'module'		=> $this->location,
-																	'submodule_id'	=>$this->submodule_id)
-										)),
-				'sort_firstname'	=> $this->nextmatchs->show_sort_order(array
-										(
-											'sort'	=>	$this->sort,
-											'var'	=>	'account_firstname',
-											'order'	=>	$this->order,
-											'extra'	=>	array('menuaction'	=> 'hrm.uiadmin.list_acl',
-																	'cat_id'	=>$this->cat_id,
-																	'query'		=>$this->query,
-																	'module'		=> $this->location,
-																	'submodule_id'	=>$this->submodule_id)
-										)),
-
-
-				'lang_values'				=> lang('values'),
-				'lang_read'					=> lang('Read'), 				//1
-				'lang_add'					=> lang('Add'), 				//2
-				'lang_edit'					=> lang('Edit'),				//4
-				'lang_delete'				=> lang('Delete'),				//8
-				'lang_manager'				=> lang('Manager'),				//16
-			);
-
-			$link_data = array
-			(
-				'menuaction'	=> 'hrm.uiadmin.list_acl',
-						'sort'			=>$this->sort,
-						'order'			=>$this->order,
-						'cat_id'		=>$this->cat_id,
-						'filter'		=>$this->filter,
-						'query'			=>$this->query,
-						'module'		=> $this->location
-
-			);
-
-			if(!$this->location)
-			{
-				$receipt['error'][] = array('msg' => lang('select a location!'));
-			}
-
-			if(!$this->allrows)
-			{
-				$record_limit	= $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
-			}
-			else
-			{
-				$record_limit	= $this->bo->total_records;
-			}
-
-				$num_records = count($user_list) + count($group_list);
-
-			$msgbox_data = $this->bocommon->msgbox_data($receipt);
-
-			$data = array
-			(
-				'allrows'						=> $this->allrows,
-				'allow_allrows'					=> true,
-				'start_record'					=> $this->start,
-				'record_limit'					=> $record_limit,
-
-				'msgbox_data'					=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
-				'form_action'					=> $GLOBALS['phpgw']->link('/index.php',$link_data),
-				'done_action'					=> $GLOBALS['phpgw']->link('/admin/index.php'),
-				'lang_save'						=> lang('save'),
-				'lang_done'						=> lang('done'),
-				'processed'						=> $processed,
-				'location'						=> $this->location,
-				'links'							=> $links,
-
-				'num_records'					=> $num_records,
-				'all_records'					=> $this->bo->total_records,
-				'link_url'						=> $GLOBALS['phpgw']->link('/index.php',$link_data),
-				'img_path'						=> $GLOBALS['phpgw']->common->get_image_path('phpgwapi','default'),
-
-				'lang_no_cat'					=> lang('no category'),
-				'lang_cat_statustext'			=> lang('Select the category the permissions belongs to. To do not use a category select NO CATEGORY'),
-				'select_name'					=> 'cat_id',
-				'cat_list'						=> $this->bo->select_category_list('filter',$this->cat_id),
-				'select_action'					=> $GLOBALS['phpgw']->link('/index.php',$link_data),
-				'cat_id'						=> $this->cat_id,
-				'permission'					=> 1,
-
-				'lang_searchfield_statustext'	=> lang('Enter the search string. To show all entries, empty this field and press the SUBMIT button again'),
-				'lang_searchbutton_statustext'	=> lang('Submit the search string'),
-				'query'							=> $this->query,
-				'lang_search'					=> lang('search'),
-				'table_header_permission'		=> $table_header,
-				'values_groups'					=> $groups,
-				'values_users'					=> $users,
-				'lang_groups'					=> lang('groups'),
-				'lang_users'					=> lang('users'),
-
-				'lang_no_location'				=> lang('No location'),
-				'lang_location_statustext'		=> lang('Select submodule'),
-				'select_name_location'			=> 'module',
-				'location_list'					=> $this->bo->select_location('filter',$this->location,False)
-			);
-
-			$appname						= lang('permission');
-			$function_msg					= lang('set permission');
-
-			$GLOBALS['phpgw_info']['flags']['app_header'] = lang('hrm') . ' - ' . $appname . ': ' . $function_msg;
-			$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('list_permission' => $data));
-			$this->save_sessiondata();
-		}
-
-		function contact_info()
-		{
-			$GLOBALS['phpgw']->xslttpl->add_file(array('admin'));
-
-			$values		= phpgw::get_var('values');
-
-			if ($values['save'])
-			{
-				$GLOBALS['phpgw']->preferences->account_id=$this->filter;
-				$GLOBALS['phpgw']->preferences->read_repository();
-
-				if ($values['old_email'] != $values['email'])
-				{
-					$GLOBALS['phpgw']->preferences->add('hrm',"email",$values['email'],'user');
-					$receipt['message'][] = array('msg' => lang('Users email is updated'));
-				}
-				if ($values['old_phone'] != $values['phone'])
-				{
-					$GLOBALS['phpgw']->preferences->add('hrm',"cellphone",$values['phone'],'user');
-					$receipt['message'][] = array('msg' => lang('Users phone is updated'));
-				}
-				if ($values['old_approval_from'] != $values['approval_from'])
-				{
-					$GLOBALS['phpgw']->preferences->add('hrm',"approval_from",$values['approval_from'],'user');
-					$receipt['message'][] = array('msg' => lang('Approval from is updated'));
-				}
-				if ($values['old_default_vendor_category'] != $values['default_vendor_category'])
-				{
-					$GLOBALS['phpgw']->preferences->add('hrm',"default_vendor_category",$values['default_vendor_category'],'user');
-					$receipt['message'][] = array('msg' => lang('default vendor category is updated'));
-				}
-				$GLOBALS['phpgw']->preferences->save_repository();
-			}
-
-			if($this->filter)
-			{
-				$prefs = $this->bocommon->create_preferences('hrm',$this->filter);
-			}
-
-			$cats		= CreateObject('phpgwapi.categories');
-			$cats->app_name = 'fm_vendor';
-
-			$cat_data	= $cats->formatted_xslt_list(array('selected' => $prefs['default_vendor_category'],'globals' => True, 'link_data' =>array()));
-
-			$msgbox_data = $this->bocommon->msgbox_data($receipt);
-
-			$data = array
-			(
-				'msgbox_data'					=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
-				'form_action'					=> $GLOBALS['phpgw']->link('/index.php','menuaction='.'hrm.uiadmin.contact_info'),
-				'done_action'					=> $GLOBALS['phpgw']->link('/admin/index.php'),
-				'lang_submit'					=> lang('submit'),
-				'lang_save'						=> lang('Edit'),
-				'lang_add_statustext'			=> lang('Edit ID'),
-				'lang_done'						=> lang('done'),
-				'lang_done_statustext'			=> lang('Back to Admin'),
-
-				'lang_email_statustext'			=> lang('Enter the email-address for this user'),
-
-				'lang_user'						=> lang('User'),
-				'lang_email'					=> lang('Email'),
-				'value_old_email'				=> $prefs['email'],
-				'value_email'					=> $prefs['email'],
-
-				'lang_phone'					=> lang('Phone'),
-				'value_old_phone'				=> $prefs['cellphone'],
-				'value_phone'					=> $prefs['cellphone'],
-
-				'lang_approval_from'			=> lang('Approval from'),
-				'value_old_approval_from'		=> $prefs['approval_from'],
-				'approval_from'					=> $this->bocommon->get_user_list('select',$prefs['approval_from'],$extra=False,$default=False,$start=-1,$sort='ASC',$order='account_lastname',$query='',$offset=-1),
-
-				'select_user_name'				=> 'approval_from',
-				'lang_approval_from_statustext'	=> lang('Select the users supervisor'),
-
-				'lang_default_vendor_category'		=> lang('default vendor category'),
-				'value_old_default_vendor_category'	=> $prefs['default_vendor_category'],
-				'vendor_category'					=> $cat_data['cat_list'],
-				'select_user_name'					=> 'approval_from',
-				'lang_default_vendor_category_statustext'	=> lang('Select default vendor category'),
-				'lang_no_cat'						=> lang('No category'),
-
-
-				'lang_user_statustext'			=> lang('Select the user to edit email'),
-				'select_user_name'				=> 'filter',
-				'lang_no_user'					=> lang('No user'),
-				'value_user_id'					=> $this->filter,
-				'user_list'						=> $this->bocommon->get_user_list('filter',$this->filter,$extra=False,$default=False,$start=-1,$sort='ASC',$order='account_lastname',$query='',$offset=-1),
-			);
-
-			$appname							= lang('User contact info');
-			$function_msg						= lang('edit info');
-
-			$GLOBALS['phpgw_info']['flags']['app_header'] = lang('hrm') . ' - ' . $appname . ': ' . $function_msg;
-			$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('contact_info' => $data));
-			$this->save_sessiondata();
-		}
-	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.