Пример #1
0
        $finalArray[$key]['isfatlossplate'] = $optimizer[$key]['isfatlossplate'];
    }
    unset($finalArray[$key]['message']);
}
///////////////////calculate grade fat burning percentage///////////
$total_score = 0;
$returndata = array();
if ($totalwakeup > 0) {
    $returndata['fat_burning_mode'] = $totalfatburning / $totalwakeup * 100;
} else {
    $returndata['fat_burning_mode'] = 0;
}
$total_score += $returndata['fat_burning_mode'] / 2;
////////////////////////////////////////get calories score//////
//////////////
$daily = User_model::getDaily($jDate);
if ($this->session->userdata('sex') == "Male") {
    ////////////////////////////////////////get calories score//////
    if ($burning_total['all_calories'] <= 749 || $burning_total['all_calories'] >= 3001) {
        $total_score += 0;
    } else {
        if ($burning_total['all_calories'] >= 750 && $burning_total['all_calories'] <= 899 || $burning_total['all_calories'] >= 2851 && $burning_total['all_calories'] <= 3000) {
            $total_score += 4;
        } else {
            if ($burning_total['all_calories'] >= 900 && $burning_total['all_calories'] <= 1049 || $burning_total['all_calories'] >= 2701 && $burning_total['all_calories'] <= 2850) {
                $total_score += 8;
            } else {
                if ($burning_total['all_calories'] >= 1050 && $burning_total['all_calories'] <= 1199 || $burning_total['all_calories'] >= 2551 && $burning_total['all_calories'] <= 2700) {
                    $total_score += 12;
                } else {
                    if ($burning_total['all_calories'] >= 1200 && $burning_total['all_calories'] <= 1349 || $burning_total['all_calories'] >= 2401 && $burning_total['all_calories'] <= 2500) {
Пример #2
0
									<h3>My Messages:</h3>
									<div class="scrollable">																		
											<div class="messages-box colored">
												<a href="javascript:void(0);" class="close-opt"><img src="htdocs/images/decline.png" alt="" /></a>
												<div class="image-holder">
													<a href="javascript:void(0);"><img src="htdocs/images/img4.gif" width="38" height="31" alt="" /></a>
												</div>
												<div class="text-box">
													<p>Sleep - Try to get a full 7-8 hours of sleep tonight.  It will help speed weight loss and minimize cravings during the day.</p>
												</div>
											</div>										
									</div>
								</div>
								<?php 
    if ($this->CI->router->method != "signup_step2") {
        $daily = User_model::getDaily();
        ?>
							<div id="edailytracker">	
								<span id="etrackerdate" style="display:none;"><?php 
        echo date('Y-m-d');
        ?>
</span>
								<div class="tracker-box">									
									<h3>My Daily Tracker:</h3>
									<div class="water-tracker-box">
										<strong>Water:</strong>
										<ul class="list">
											<li><a class="more" href="javascript:void(0);">more</a></li>
											<li><a class="less" href="javascript:void(0);">less</a></li>
										</ul>
										<ul class="cups-list">