<?php require_once "session.php"; require_once "header.php"; // require_once 'functions/assign_schedule_function.php'; // $assignscheduleFunction = new assignscheduleFunction() require_once 'functions/result_function.php'; $resultFunction = new resultFunction(); ?> <style> #ui-id-1{ width: 204px !important; } </style> <div class="container"> <div class="container align_center align_height"> <span class="sports">RESULT</span> </div><!--end container--> <div class="container"> <div class="col-xs-12 col-md-11"> <div class="col-md-4 hidden-xs"></div> <div class="col-xs-12 col-md-7 align_margin"> <form id="result_form" name="result_form"> <div class="form-group"> <label for="sel1">Select Schedule Name</label> <select class="form-control adjust_width classic resultcreateschedule_act" id="sel1" name="result_createschedule" data-validation-error-msg="Please Select Name of the Schedule" data-validation="required"> <option value="">Select Schedule Name</option> <?php $query = $resultFunction->resultassignscheduleSelect(); while ($row = mysql_fetch_array($query)) { ?>
$resultFunction->resulttest_name = $result['test_name']; $resultFunction->resultparameter_name = $result['test_parameter_name']; $checkresult = $resultFunction->isresultExistgetdata(); if (count($checkresult) != 0) { while ($result_data = mysql_fetch_array($checkresult)) { $tmp3 = array('result_id' => $result_data['result_id'], 'resulttest_name' => $result['test_name'], 'resultparameter_name' => $result['test_parameter_name'], 'result' => $result_data['result'], 'points' => $result_data['points']); array_push($jsonresult, $tmp3); } } } echo json_encode($json) . '###' . json_encode($jsonresult); } if (isset($_GET['storeresult'])) { $strRequest = file_get_contents('php://input'); $Request = json_decode($strRequest); $resultFunction = new resultFunction(); foreach ($Request as $value) { $resultFunction->createscheduleid = $value->createschedule_id; $resultFunction->athleteid = $value->athlete_id; $resultFunction->resulttest_name = $value->test_name; $resultFunction->resultparameter_name = $value->parameter_name; $resultFunction->result = $value->enter_result; if ($value->enter_points) { $resultFunction->points = $value->enter_points; } else { $resultFunction->points = 0; } $result = $resultFunction->isresultExist(); if ($result) { $status = 0; $resultFunction->resultid = $value->result_id;