Example #1
0
<?php

$obj_nutrition = new Gmgtnutrition();
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'nutritionlist';
?>
<!-- POP up code -->
<div class="popup-bg">
    <div class="overlay-content">
    <div class="modal-content">
    <div class="category_list">
     </div>
     
    </div>
    </div> 
    
</div>
<!-- End POP-UP Code -->
<div class="page-inner" style="min-height:1631px !important">
<div class="page-title">
		<h3><img src="<?php 
echo get_option('gmgt_system_logo');
?>
" class="img-circle head_logo" width="40" height="40" /><?php 
echo get_option('gmgt_system_name');
?>
</h3>
	</div>
	<?php 
if (isset($_POST['save_nutrition'])) {
    if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit') {
        $result = $obj_nutrition->gmgt_add_nutrition($_POST);
Example #2
0
function gmgt_nutrition_schedule_view()
{
    //var_dump($notice);
    $obj_nutrition = new Gmgtnutrition();
    $result = $obj_nutrition->get_single_nutrition($_REQUEST['nutrition_id']);
    ?>
			<div class="form-group"> 	<a href="#" class="close-btn badge badge-success pull-right">X</a>
			  <h4 class="modal-title" id="myLargeModalLabel">
				<?php 
    echo $result->day . ' ' . __('Nutrition Schedule', 'gym_mgt');
    ?>
			  </h4>
			</div>
			<hr>
			<div class="panel panel-white form-horizontal">
			  <div class="form-group">
				<label class="col-sm-3" for="Breakfast"><strong>
				<?php 
    _e(' Breakfast', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->breakfast;
    ?>
 </div>
			  </div>
			  <div class="form-group">
				<label class="col-sm-3" for="notice_title"><strong>
				<?php 
    _e('Midmorning Snack', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->midmorning_snack;
    ?>
 </div>
			  </div>
			  <div class="form-group">
				<label class="col-sm-3" for="lunch"><strong>
				<?php 
    _e('Lunch', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->lunch;
    ?>
 </div>
			  </div>
			  <div class="form-group">
				<label class="col-sm-3" for="afternoon_snack"><strong>
				<?php 
    _e('Afternoon Snack', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->afternoon_snack;
    ?>
 </div>
			  </div>
			   <div class="form-group">
				<label class="col-sm-3" for="dinner"><strong>
				<?php 
    _e('Dinner', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->dinner;
    ?>
 </div>
			  </div>
			   <div class="form-group">
				<label class="col-sm-3" for="afterdinner_snack"><strong>
				<?php 
    _e('Afterdinner Snack', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->afterdinner_snack;
    ?>
 </div>
			  </div>
			  			   <div class="form-group">
				<label class="col-sm-3" for="afterdinner_snack"><strong>
				<?php 
    _e('Afterdinner Snack', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->start_date;
    ?>
 </div>
			  </div>
			  			   <div class="form-group">
				<label class="col-sm-3" for="afterdinner_snack"><strong>
				<?php 
    _e('Afterdinner Snack', 'gym_mgt');
    ?>
</strong>
				: </label>
				<div class="col-sm-9"> <?php 
    echo $result->expire_date;
    ?>
 </div>
			  </div>
			<?php 
    die;
}