include "check_forum_id.inc.php"; ?>
include_once "config.inc";
include "1-Center_Info_Lookup.phtml";
$Page_Title = "$Surg_Name - Recent Profile Updates";
include "header.phtml";
include_once "function_lib/common.lib.php";
?>
Recent Profile Updates
Updated | Name, Location | Status |
$sql = "SELECT unix_timestamp(rop.profile_update_Date), amb.member_Id, amb.city, amb.state, amb.country, amb.show_location, su.display_name, amb.surg_class, amb.postclin_type, amb.postclin_openlap
FROM role_ohmem_profile rop
INNER JOIN " . SYS_DATABASE . ".sys_user su ON su.user_id = rop.user_id
INNER JOIN ambmembers.members amb ON amb.member_id = su.legacy_id
WHERE amb.OH_visible=1 AND amb.account_status='active' AND amb.$Surg_ID_String
ORDER BY rop.profile_update_date desc limit 30";
#echo "$sql
\n";
$rs = db_query_read(SYS_DATABASE, $sql);
$shaded = false;
while($row = mysql_fetch_row($rs))
{
list($Profile_Update_Date, $Member_ID, $City, $State, $Country, $show_location, $name, $Surg_Class, $Postclin_Type, $Postclin_OpenLap) = $row;
$Profile_Update_Date = date("m/d/y", $Profile_Update_Date);
$Member_Name = trim($name);
$Loc = "";
if(intval($show_location) == 1)
{
$City = properCase($City);
if(strlen($State) == 2)
$State = strtoupper($State);
$Loc = $City . (strlen($City) > 0 && strlen($State) > 0 ? ", " : "") . $State;
if(strlen($Country) > 0 && $Country != "USA")
$Loc .= (strlen($Loc) > 0 ? ", " : "") . $Country;
}
if ($Postclin_Type == "RNY - type unknown")
$Postclin_Type = "RNY";
elseif($Postclin_Type == "VSG")
$Postclin_Type = "Vertical Sleeve Gastrectomy";
elseif ($Postclin_Type == "Other")
$Postclin_Type = "";
$Surgtype = trim($Postclin_OpenLap . " " . $Postclin_Type);
if(strlen($Surgtype) > 0)
$Surg_Class .= "
($Surgtype)";
echo "\n";
echo "$Profile_Update_Date | \n";
echo "$Member_Name" . (strlen($Loc) > 0 ? " $Loc" : "") . " | \n";
echo "$Surg_Class | \n";
echo "
\n";
$shaded = !$shaded;
}
?>
include "ohnav/ohnav-footer.inc.php"; ?>