retrieve($_REQUEST['record']); } if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; } global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $log->info("User detail view"); $xtpl=new XTemplate ('modules/Users/TabCustomise.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("THEME", $theme); $xtpl->assign("IMAGE_PATH", $image_path);$xtpl->assign("PRINT_URL", "phprint.php?jt=".session_id()); $xtpl->assign("ID", $focus->id); $xtpl->assign("USER_NAME", $focus->user_name); $xtpl->assign("FIRST_NAME", $focus->first_name); $xtpl->assign("LAST_NAME", $focus->last_name); $xtpl->assign("STATUS", $focus->status); $xtpl->assign("YAHOO_ID", $focus->yahoo_id); if (isset($focus->yahoo_id) && $focus->yahoo_id !== "") $xtpl->assign("YAHOO_MESSENGER", ""); $xtpl->parse("main"); $xtpl->out("main"); if ((is_admin($current_user) || $_REQUEST['record'] == $current_user->id) && $focus->is_admin == 'on') { $xtpl->assign("IS_ADMIN", "checked"); $xtpl->parse("user_settings"); $xtpl->out("user_settings"); } ?> query($tabavail); if($adb->num_rows($tabrow) != 0) { while ($result = $adb->fetch_array($tabrow)) { $availabletab[]=$result; } } $tabsel="SELECT tabid,name from tab where presence=0 order by tabsequence"; $tabrow=$adb->query($tabsel); if($adb->num_rows($tabrow) != 0) { while ($result = $adb->fetch_array($tabrow)) { $selectedtab[]=$result; } } ?>

1.: