$value) { $path = $pathtoroot. $value."admin/include/parser.php"; if(file_exists($path)) { include_once($path); } } $objEditItems = new clsCatList(); $objEditItems->SourceTable = $objSession->GetEditTable("PortalUser"); //Multiedit init $en = GetVar('en'); $objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable); $objEditItems->EnablePaging = FALSE; $c = $objEditItems->GetItemByIndex($en); if (!isset($c->Data['PortalUserId'])) { $c = $objEditItems->GetItemByIndex(0); } unset($objEditItems); $objEditItems = new clsUserGroupList(); $objEditItems->SourceTable = $objSession->GetEditTable("UserGroup"); if(isset($_POST["itemlist"])) { if(is_array($_POST["itemlist"])) { $group_id = $_POST["itemlist"][0]; } else { $group_id = $_POST["itemlist"]; } $user_group =& $objEditItems->GetItemByField( Array('GroupId','PortalUserId'), Array($group_id, $c->Get('PortalUserId') ) ); // print_r($user_group); $action = "m_group_edit"; $name = $user_group->Get("Name"); } $envar = "env=" . BuildEnv() . "&en=$en"; $section = 'in-portal:edituser_group'; $ado = &GetADODBConnection(); $charset = GetRegionalOption('Charset'); /* page header */ print << In-portal END; $title = GetTitle("la_Text_User", "la_title_EditingGroup", $c->Get('PortalUserId'), $c->Get('Login') );//prompt_language("la_Text_Editing")." ".prompt_language("la_Text_User")." '".$c->Get("Login")."' - ".prompt_language("la_Text_Image"); $title .= " '".$user_group->parsetag('GroupName')."'"; $objCatToolBar = new clsToolBar(); $objCatToolBar->Add("img_save", "la_Save","#","swap('group_save','toolbar/tool_select_f2.gif');", "swap('group_save', 'toolbar/tool_select.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_groups.php',0);",$imagesURL."/toolbar/tool_select.gif"); $objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('group_cancel','toolbar/tool_cancel_f2.gif');", "swap('group_cancel', 'toolbar/tool_cancel.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_groups.php',-1);",$imagesURL."/toolbar/tool_cancel.gif"); //echo "
"; print_r($objCatToolBar); echo "
"; int_header($objCatToolBar,NULL,$title); if ($objSession->GetVariable("HasChanges") == 1) { ?>
> >
parsetag('GroupName') ); ?>
">