?> </div> <div class="col-md-8 col-sm-8 col-xs-12"> <div class="panel panel-white"> <div class="panel-body"> <div id="calendar"></div> </div> </div> </div> </div> <!-- End Row2 --> <?php if ($obj_gym->role == 'member') { $weight_data = $obj_gym->get_weight_report('Weight', $user_id); $option = $obj_gym->report_option('Weight'); require_once GMS_PLUGIN_DIR . '/lib/chart/GoogleCharts.class.php'; $GoogleCharts = new GoogleCharts(); $chart = $GoogleCharts->load('LineChart', 'wait_reort')->get($weight_data, $option); ?> <!---End new dashboard------> <div class="row"><!-- Start Row3 --> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="panel panel-white"> <div class="panel-heading"> <h3 class="panel-title"><?php _e('Weight Progress Report', 'gym_mgt'); ?> </h3> </div>
</span> <a href="<?php echo admin_url(); ?> admin.php?page=gmgt_workout&tab=addmeasurement&user_id=<?php echo $_REQUEST['member_id']; ?> &result_measurment=Weight" class="btn btn-danger right"> <?php _e('Add Weight', 'gym_mgt'); ?> </a> </span> <?php $weight_data = $obj_gyme->get_weight_report('Weight', $_REQUEST['member_id']); $option = $obj_gyme->report_option('Weight'); require_once GMS_PLUGIN_DIR . '/lib/chart/GoogleCharts.class.php'; $GoogleCharts = new GoogleCharts(); $wait_chart = $GoogleCharts->load('LineChart', 'weight_report')->get($weight_data, $option); ?> <div id="weight_report" style="width: 100%; height: 250px;"> <?php if (empty($weight_data) || count($weight_data) == 1) { _e('There is not enough data to generate report', 'gym_mgt'); } ?> </div> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> <?php