include "check_forum_id.inc.php"; ?> include "1-Center_Info_Lookup.phtml"; $Page_Title = "$Surg_Name - Body Mass Index Results"; $Page_Meta = "\n". ""; include "header.phtml"; ?>
$F = "";
$FW = "";
# ==================== Calculations =============================
if ($inches == 0) {$inches = 0.000000001;}
if ( ($feet >.01) && ($inches != "") && ($pounds > .01)) {$All_In = "TRUE";}
# echo "All In = $All_In ."; if ($All_In == "TRUE") { $totalinches = $inches + 12 * $feet; $totalcentimeters = DoubleVal($totalinches) * 2.54; $totalmeters = DoubleVal($totalcentimeters) / 100; $kilograms = DoubleVal($pounds) / 2.2046; $BMI = $kilograms / ($totalmeters * $totalmeters); # $BMI = $BMI / $totalmeters; $BMI = sprintf("%.1f", $BMI); } # ====================== Output Page ================================= if ($All_In != "TRUE") { echo " Data Missing "; if ($inches == "") {echo "$F Please supply Inches. ";} if ($feet == "") {echo "$F Please supply a value for feet. ";} if ($pounds == "") {echo "$F Please supply a value for pounds. ";} #exit; } echo " | |||||||||||||||||
";
echo " "; if ( $BMI <= 18.5 ) echo "$F Your Body Mass Index is $BMI. This shows that you may be underweight. "; if ( $BMI <= 24.9 && $BMI >=18.6 ) echo "$F Your Body Mass Index is $BMI. This shows that you are of a normal weight."; if ( $BMI <= 29.9 && $BMI >= 25) echo " $F Your Body Mass Index is $BMI. This shows that you are moderately overweight. Your BMI is not high enough to qualify you for bariatric surgery."; if ( $BMI <= 34.9 && $BMI >= 30 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Obese. Your BMI may qualify you for bariatric surgery if you have severe comorbid conditions such as diabetes (type ll), hypertension, sleep apnea or other potentially life-threatening diseases. "; if ( $BMI <= 39.9 && $BMI >= 35 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Severely Obese. Your BMI is high enough to qualify you for bariatric surgery if you have comorbid conditions such as diabetes (type ll), hypertension, sleep apnea or other potentially life-threatening diseases. "; if ( $BMI <= 49.9&& $BMI >=40 ) echo "$F Your Body Mass Index is $BMI. This indicates that you are Morbidly Obese. Your BMI is high enough to qualify you for bariatric surgery. "; if ($BMI >50) echo "$F Your Body Mass Index is $BMI. This puts you in the Super Morbid Obesity catagory. Your BMI is extremly high and is enough to qualify you for bariatric surgery "; echo " "; #echo "
|