// $place_type = $details->place_type; $sugar = $details->sugar; $num_drinks = $details->num_drinks; $num_water = $details->num_water; $iron = $details->iron; // $num_mealitems_red = $details->num_mealitems_red; $food_score = $details->food_score; // $num_mealitems_with_score = $details->num_mealitems_with_score; $cholesterol = $details->cholesterol; // $accuracy = $details->accuracy; echo "\n <div class='row'>\n <div class='col-md-12'>\n <div class='pull-left' id='meals-title'>\n <div>\n <h2>Today I eat</h2>\n <p class='fa fa-spoon fa-2x' style='color: white'>{$title}</p>\n </div>\n <div class='pull-left animated bounceInDown' id='meals-calories'>\n <h2>卡路里</h2>\n <p class='fa fa-fire fa-2x' style='color: white'>{$calories} cal</p>\n </div>\n <div class='pull-right animated bounceInDown' id='meals-fat'>\n <h2>脂肪</h2>\n <p class='fa fa-cubes fa-2x' style='color: white'>{$fat} g</p>\n </div>\n <div>\n <div class='pull-left animated bounceInDown' id='meals-protein'>\n <h4>蛋白质</h4>\n <p class='fa fa-cube animated bounceInLeft' style='color: white'>{$protein} mg</p>\n </div>\n <div class='pull-left animated bounceInLeft' id='meals-calcium'>\n <h4>钙</h4>\n <p class='fa fa-cube' style='color: white'>{$calcium} mg</p>\n </div>\n <div class='pull-right animated bounceInRight' id='meals-sugar'>\n <h4>糖</h4>\n <p class='fa fa-cube' style='color: white'>{$sugar} mg</p>\n </div>\n <div class='pull-right animated bounceInRight' id='meals-carbohydrate'>\n <h4>碳水化合物</h4>\n <p class='fa fa-cube' style='color: white'>{$carbohydrate} mg</p>\n </div>\n </div>\n <div>\n <div class='pull-left animated bounceInLeft' id='meals-cholesterol'>\n <h4>胆固醇</h4>\n <p class='fa fa-cube' style='color: white'>{$cholesterol} mg</p>\n </div>\n <div class='pull-left animated bounceInUp' id='meals-vitamin_c'>\n <h4>维他命C</h4>\n <p class='fa fa-cube' style='color: white'>{$vitamin_c} mg</p>\n </div>\n <div class='pull-right animated bounceInRight' id='meals-vitamin_a'>\n <h4>维他命A</h4>\n <p class='fa fa-cube' style='color: white'>{$vitamin_a} mg</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n "; update_meals($title, $calories, $fat, $protein, $calcium, $carbohydrate, $sugar, $cholesterol, $vitamin_c, $vitamin_a); } } $date = $_COOKIE["date"]; $output = get_meals($date); read_meals($output); // <p>经度:$place_lat,纬度:$place_lon</p> // <p>创建时间:$time_created</p> // <p>完成时间:$time_completed</p> // <p>更新时间:$time_updated</p> // <p>标题:$title</p> // <p>日期:$date</p> // <p>meal类型:$sub_type</p> // <h3>Details</h3> // <p>时区:$tz</p> // <p>总热量:$calories</p> // <p>纤维(克):$fiber</p> // <p>钾(毫克):$potassium</p> // <p>钙(毫克):$calcium</p> // <p>钠(毫克):$sodium</p>
if ($result->num_rows > 0) { if ($row = $result->fetch_assoc()) { echo "(" . $row["time_served"] . ")"; } } ?> </div> <hr> <div class="col-md-6"> <div class="sub-heading text-center">Meals</div> <div class="scrollcontentfull"> <table class="table menutable"> <?php get_meals("Dinner Menu", $con); ?> </table> </div> </div> <div class="col-md-6" > <div class="sub-heading text-center">Entree Choices</div> <table class="table menutable"> <?php get_menu_items("Dinner Menu", "Entree", $con); ?>