예제 #1
0
파일: athletes.php 프로젝트: eteks/wct
<?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">
예제 #2
0
파일: test_battery.php 프로젝트: eteks/wct
<?php

require_once "session.php";
require_once "functions/sports_function.php";
require_once "functions/category_function.php";
require_once "functions/test_functions.php";
require_once "functions/test_battery_functions.php";
require_once "header.php";
$test_battery = new testbatteryfunction();
$sports = new sportsfunction();
$category = new categoryfunction();
$test = new testfunction();
$url = $_SERVER['PHP_SELF'];
if (isset($_GET['update_success'])) {
    echo "<script>alert('Test Battery update successfully');var url ='" . $url . "'; window.location = url ;</script>";
}
if (isset($_GET['insert_success'])) {
    echo "<script>alert('Test Battery inserted successfully');var url ='" . $url . "'; window.location = url ;</script>";
}
if (isset($_GET['duplicate'])) {
    echo "<script>alert('Test Battery already exist!');var url ='" . $url . "'; window.location = url ;</script>";
}
?>
<div class="container">
	<div class="container align_center align_height">
		<span class="sports">TEST BATTERY</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">
예제 #3
0
파일: sports.php 프로젝트: eteks/wct
<?php

require_once "session.php";
require_once "functions/sports_function.php";
require_once "header.php";
$obj = new sportsfunction();
?>
<div class="container align_center align_height">
	<span class="sports">SPORTS</span>
</div><!--end container-->
<div class="container">
	<div class="col-md-8">
		<div class="col-md-6"></div>
		<div class="col-md-6">
			<form  id="sports_form" name="sport_form" role="form">
				<div class="align_margin">
					<label>Enter the name of the Sports</label><br>
					<input type="text" class="sportsname" name="sports_name" data-validation-error-msg="Please Enter the name of the Sports" data-validation="required">
					<input type="hidden" name="sports_add" value="1">
				</div>
				<!-- <button type="button" id="submmit" class="btn btn-primary align_right clear sports_submit_act">Submit</button> -->
				<input type="submit" id="submmit" class="btn btn-primary align_right clear sports_submit_act" value="Submit">
			</form>
		</div>
	</div>
</div><!-- end  container-->
<div class="container table-position">
	<table class="table state_table" id="sports_table">
	<thead>
		<tr class="row_color">
			<th class="align_center">SLNO</th>
예제 #4
0
    }
}
if (isset($_POST['sports_add'])) {
    $sport = new sportsfunction();
    $sport->sportsname = $_POST['sports_name'];
    if ($sport->sportsinsertfunction()) {
        $last_data = $sport->sportsselectlastdatafunction();
        echo "<tr class='align_center delete_color'><td class='sports_id'>" . $last_data['sports_id'] . "</td><td class='sports_name'>" . $last_data['sports_name'] . "</td><td><span class='edit_state'>Edit</span><span class='delete_state'>Delete</span></td></tr>";
    } else {
        echo "error";
    }
}
if (isset($_POST['sportd_update'])) {
    $sport = new sportsfunction();
    $sport->sportsname = $_POST['sports_name'];
    $sport->sportsid = $_POST['sports_id'];
    if ($sport->sportsupdatefunction()) {
        echo $_POST['sports_name'] . '-' . $_POST['sports_id'];
    } else {
        echo "error";
    }
}
if (isset($_POST['sports_del'])) {
    $sport = new sportsfunction();
    $sport->sportsid = $_POST['del_id'];
    if ($sport->sportsdeletefunction()) {
        echo $_POST['del_id'];
    } else {
        echo "error";
    }
}