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/UpdateTab.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"); } $sql_set = "update tab set presence=1 where presence !=2"; $adb->query($sql_set); $j=1; foreach($_POST as $name=>$value) { $sql="update tab set presence=0,tabsequence= " . $j . " where tabid = " .$value; $adb->query($sql); $j++; } ?>

My Account