<?php require_once "session.php"; require_once "header.php"; require_once 'functions/states_function.php'; require_once 'functions/district_function.php'; require_once 'functions/athletes_functions.php'; require_once 'functions/sports_function.php'; $statesFunction = new statesFunction(); $districtFunction = new districtFunction(); $sportsfunction = new sportsfunction(); $athleteFunction = new athletesFunction(); ?> <div class="container"> <div class="container align_center align_height"> <span class="sports">ADD ATHLETES</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 name="athletes_form" id="athlete_form"> <div class="form-group"> <label>Athlete Name</label><br> <input type="text" class="adjust_width" name="athlete_name" data-validation-error-msg="Please Enter the name of the Athelete" data-validation="required"> </div> <div class="form-group" style="margin-left: -15px;"> <label for="date" class="fl" style="position: relative; left: 15px;">Date Of Birth</label><br> <input class="athlete_date_pick" type="text"> <!-- <select class="form-control classic dob_align fl" id="date" name="athlete_dobday" data-validation-error-msg="Please Select the Date" data-validation="required">
$dsitrictdelete = $districtFunction->districtDelete(); if ($dsitrictdelete) { echo "success#District Deleted#" . $_POST['delete_id']; } else { echo "failure#Record not found"; } } // To load district for selected state if (isset($_GET['loaddistrict'])) { $search = $_POST['states_name']; $json = array(); foreach ($DISTRICT as $key => $value) { if ($key == $search) { echo json_encode($value); } } } // To load district for selected state if (isset($_GET['loaddistrictfromdb'])) { $json = array(); $districtFunction = new districtFunction(); $districtFunction->statesname = $_POST['states_name']; $districtFunction->statesid = $_POST['states_id']; $select_data = $districtFunction->dsitrictstateselectRecord(); while ($result = mysql_fetch_array($select_data)) { $tmp = array('district_id' => $result['district_id'], 'district_name' => $result['district_name']); array_push($json, $tmp); } echo json_encode($json); } }