init
This commit is contained in:
26
modules/EcmStockDocIns/setPopupValues.php
Executable file
26
modules/EcmStockDocIns/setPopupValues.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?
|
||||
global $current_user;
|
||||
$w=$GLOBALS['db']->query("select * from user_preferences where assigned_user_id='".$_SESSION['authenticated_user_id']."' and category='global'");
|
||||
$r=$GLOBALS['db']->fetchByAssoc($w);
|
||||
$a=unserialize(base64_decode($r['contents']));
|
||||
|
||||
$a['ContactsQ']['account_id_basic']=$_REQUEST['account_id'];
|
||||
$a['ContactsQ']['account_name_basic']=$_REQUEST['account_name'];
|
||||
$a['ContactsQ']['query']='true';
|
||||
$a['ContactsQ']['module']='Contacts';
|
||||
$a['ContactsQ']['action']='index';
|
||||
$a['ContactsQ']['searchFormTab']='basic_search';
|
||||
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['account_id_basic']=$_REQUEST['account_id'];
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['account_name_basic']=$_REQUEST['account_name'];
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['query']='true';
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['module']='Contacts';
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['action']='index';
|
||||
$_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']['searchFormTab']='basic_search';
|
||||
|
||||
//print_r($_SESSION[$current_user->user_name.'_PREFERENCES']['global']['ContactsQ']);
|
||||
|
||||
$z="update user_preferences set contents='".base64_encode(serialize($a))."' where assigned_user_id='".$_SESSION['authenticated_user_id']."' and category='global'";
|
||||
$GLOBALS['db']->query($z);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user