Advertisement
pipidodo

Calorie Calculator

Jun 23rd, 2021
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.70 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <!--   
  4.     Last update 23-12-08
  5. -->
  6. <head>
  7. <meta name="description" content="A diet calculator (and food reference based on USDA research) showing weight gain/loss in real time.">
  8. <meta name="keywords" content="weightloss, food, balanced diet, diet, dieting, weight, weight control, loosing weight, weightwatcher, fat, skinny, calories, cals, Kcalories, Kcals, Kjoule, Kjoule, joule, joules, Calcium, Ca,Carbohydrate,Carotene alpha, Carotene beta, Carotene, Cholesterol, Copper, Cu, Cryptoxanthin, beta, "monounsaturated, polyunsaturated, Fatty, acids, saturated, Fiber, dietary, Folate, DFE, Iron, Fe, Lutein, zeaxanthin, Lycopene, Magnesium, Mg, Manganese, Mn, Niacin, Pantothenic, acid, Phosphorus, P, Potassium, K, Protein, Riboflavin, Selenium, Se, Sodium, Na, Sugar, sugars ,Thiamin,Total lipid fat , lipid fat, lipid, fat, Vitamin A RAE, Vitamin A, a, Vitamin B-12,Vitamin B12,b-12,b12, Vitamin B-6,Vitamin B6, b6, b-6,Vitamin C, C,ascorbic acid, Vitamin, E,alpha-tocopherol, Vitamin, K ,phylloquinone, Water,Zinc, Zn">
  9. <META NAME="copyright" CONTENT="July 2006 ">
  10. <META NAME="revisit-after" CONTENT="7 days">
  11. <meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
  12. <meta name="GOOGLEBOT" content="index,follow">
  13. <META NAME="rating" CONTENT="General">
  14. <META NAME="DC.Creator" CONTENT="P">
  15. <META NAME="DC.Publisher" CONTENT="P">
  16.  
  17.  
  18. <title>Calorie Calculator - Introduction</title>
  19. <link REL="SHORTCUT ICON" href="ico/wagon.jpg">
  20.  
  21. <link rel="stylesheet" href="css/diets.css">
  22. <script type="text/javascript" src="js/diets.js"></script>
  23.  
  24. </head>
  25. <body>
  26. <noscript><div class="warn" style="top: 3%; left: 49%">This page requires JavaScript to work</div></noscript>
  27. <div class="smaller" style="position:absolute; top:8%; right:3%"><a href="php/contactUs.php" class="one">Contact Us</a></div>
  28. <!--<div class="smaller" style="position:absolute; right:3%; top:3%;">Last update <?php echo date ('F jS, Y', filemtime("index.php")); ?></div>
  29. --><div class="smaller" style="position:absolute; top:1%; right:3%">&#169; July 2006</div>
  30. <div style="position:absolute;left:2%; top:3%; height:10%; width:10%"><img src="diets/CaCo.gif"></div>
  31. <div class="explain" style="position: absolute; top:12%; left:3%; width:45%;">
  32.  
  33. <br />
  34. <br /><p><span style="color:maroon">Step 1: </span>
  35. The Calorie Counter calculates your
  36. BMI (Body Mass Index), BMR (Basal Metabolic Rate) and
  37. RMR (Resting Metabolic Rate).
  38. <br />NB A BMI between 18.5 and 24.9 represents normal weight.</p>
  39. <p>After clicking "Next", the Calorie Counter plots calorie intake against expenditure and shows
  40. in real time whether you are gaining or loosing weight.</p>
  41.  
  42. <p><span style="color:maroon">Step 2: </span>
  43. A pull down list of more than 1000 food items (based on USDA data) allows quick entry of food
  44. by the cup, gram, slice, volume, etc.
  45. <br />Kcals (or Kjoules) are converted and calculated and then
  46. tallied on a list.</p>
  47.  
  48. <p><span style="color:maroon">Step 3: </span>
  49. Activities can be entered from another pull down list of 378 activities.
  50. Enter the start time and duration and the activity is tallied on a second list.
  51. <br />Or select one of four lifestyles to keep it simple.</p>
  52.  
  53. <p><span style="color:maroon">37 Vitamins and minerals </span>(as well as water content) are also tallied as you enter the food you have taken during the day.
  54. <br />The 37 vitamins and minerals are "clickable" and give condensed information about the items levels, how they help, and what may happen if found lacking.</p>
  55.  
  56. <p><span style="color:maroon">The 'chart' function </span>draws a graph on which your intake of calories is plotted against the expenditure.
  57. <br />It will show if you lost a little, or gained a little that day,  and how much
  58. in Kcals and KJoules, and what that means for your weight in grams and pounds</p>
  59.  
  60. </div>
  61. <div style="position: absolute; top:20%;  right:0%; width:50%">
  62. <table class="fiel" cellspacing="3" style="position: relative;left:25%; width:50%; background-image: url('jpg/back2.jpg');border-bottom: outset #ffddb0 10px; border-right:inset #ffddb0 10px; border-left:outset #ffddb0 10px;">
  63.     <thead><td colspan="4" class="larger">Step 1: Input personal data.</td></thead>
  64.     <tr>
  65.         <td>Age:</td>
  66.         <td><input type="text" id="age" style="width:40px" name="age" size="3" maxlenth="3" onchange="chk('age')"></td>
  67.     </tr>
  68.     <tr>
  69.         <td>Height: </td>
  70.         <td><input type="text" id="height" style="width:40px" name="height" size="3" maxlenth="3" onchange="chk('height')"></td>
  71.         <td colspan="2"><INPUT id="hbut" type="button" style="width:40px"  name="ci" value="cm" onclick="Hbut()"></td>
  72.  
  73.     </tr>
  74.     <tr>
  75.         <td>Weight: </td>
  76.         <td><input type="text" id="weight" style="width:40px" name="weight" size="3" maxlenth="3" onchange="chk('weight')"></td>
  77.         <td colspan="2"><INPUT id="wbut" type="button" style="width:40px" name="kp" value="kg" onclick="Wbut()"></td>      
  78.     </tr>
  79.     <tr>
  80.         <td colspan="2"><INPUT type="radio" name="mf" id="mf" value="m"><label for="mf">Male</label></td>
  81.         <td colspan="2"><INPUT type="radio" name="mf" id="fm" value="f" checked="checked"><label for="fm">Female</label></td>
  82.     </tr>
  83.     <tr>
  84.         <td colspan="4" class="small">Improbable entries are shown in <span style="color:red">red.</span><span class="small"><br />These may cause unexpected results.</span></td>
  85.     </tr>
  86.     <tr>
  87.         <td colspan="4"><input type="button" id="but1" onclick="BMR()" onmouseover="butgr('but1')" onmouseout="butor('but1')" style="background-color:orange; color:blue" value="Calculate"></td>
  88.     </tr>
  89. </table ><br />
  90. <table class="fiel" cellspacing="3" style="position: relative; left:15%; width:50%; background-image: url('jpg/back2.jpg');border-bottom: outset #ffddb0 10px; border-right:inset #ffddb0 10px; border-left:outset #ffddb0 10px;">
  91.     <thead><td colspan="4" class="larger">Output calculations:</td></thead>
  92.     <tr>
  93.     <td style="border-top: thin solid orange; border-left: thin solid orange; padding-left:1em">BMR: </td>
  94.     <td style="border-top: thin solid orange; padding-left:1em"><textarea id="bmrtxt" class="tee" rows="1" cols="6">NoCalc</textarea></td>
  95.     <td style="border-top: thin solid orange; padding-left:1em">RMR: </td>
  96.     <td style="border-top: thin solid orange ;border-right: thin solid orange; padding-left:1em"><textarea id="rmrtxt" class="tee" rows="1" cols="6">NoCalc</textarea></td>
  97.     </tr>
  98.     <tr>
  99.         <td style="border-bottom: thin solid orange; border-left: thin solid orange; padding-left:1em">BMI: </td>
  100.         <td style="border-bottom: thin solid orange; padding-left:1em"><textarea id="bmitxt" class="tee" rows="1" cols="6">NoCalc</textarea></td>
  101.         <td style="border-bottom: thin solid orange; padding-left:1em">Category: </td>
  102.         <td style="border-bottom: thin solid orange; border-right: thin solid orange; padding-left:1em"><textarea id="cattxt" class="tee" rows="1" cols="13">NoCalc</textarea></td>
  103.     </tr>
  104.     <thead><td colspan="4" class="larger"><br />Which would you like to use for further calculations?</td></thead>
  105.     <tr>
  106.         <td colspan="2"><INPUT type="radio" name="which" id="r" value="r" checked="checked"><label for="r">RMR</label></td>
  107.         <td colspan="2"><INPUT type="radio" name="which" id="b" value="b"><label for="b">BMR</label></td>
  108.     </tr>  
  109.     <tr><td colspan="4">Note: <span  class="larger">RMR</span> is approx. <span  class="larger">2&#189%</span> more severe than <span  class="larger">BMR</span></td></tr>
  110.     <tr>
  111.         <td colspan="4"><input type="button" id="but2" onclick="op()" onmouseover="butgr('but2')" onmouseout="butor('but2')" style="background-color:orange; color:blue" value="Next"></td>
  112.     </tr>
  113. </table>
  114. </div>
  115. <iframe src="http://<?PHP echo $me;?>/home/diet.php?viewer=<?PHP echo $_SERVER['REMOTE_ADDR'];?>&page=diet.php1" style="position:relative;width:0%;height:0%;visibility:hidden"></iframe>
  116. </body>
  117. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement