Exemple #1
0
    }
}
if (isset($_POST['category_add'])) {
    $sport = new categoryfunction();
    $sport->categoryname = $_POST['category_name'];
    if ($sport->categoryinsertfunction()) {
        $last_data = $sport->categoryselectlastdatafunction();
        echo "<tr class='align_center delete_color'><td class='category_id'>" . $last_data['categories_id'] . "</td><td class='category_name'>" . $last_data['categories_name'] . "</td><td><span class='edit_state'>Edit</span><span class='delete_state'>Delete</span></td></tr>";
    } else {
        echo "error";
    }
}
if (isset($_POST['category_update'])) {
    $sport = new categoryfunction();
    $sport->categoryname = $_POST['category_name'];
    $sport->categoryid = $_POST['category_id'];
    if ($sport->categoryupdatefunction()) {
        echo $_POST['category_name'] . '-' . $_POST['category_id'];
    } else {
        echo "error";
    }
}
if (isset($_POST['category_del'])) {
    $sport = new categoryfunction();
    $sport->categoryid = $_POST['del_id'];
    if ($sport->categorydeletefunction()) {
        echo $_POST['del_id'];
    } else {
        echo "error";
    }
}
Exemple #2
0
<?php

require_once "session.php";
require_once "functions/category_function.php";
require_once "functions/create_schedule_function.php";
require_once "functions/assign_schedule_function.php";
require_once "header.php";
require_once "functions/athletes_functions.php";
$category = new categoryfunction();
$createschedule = new createscheduleFunction();
$assignschedule = new assignschedulefunction();
$athlete = new athletesFunction();
$url = $_SERVER['PHP_SELF'];
if (isset($_GET['update_success'])) {
    echo "<script>alert('Assign schedule update successfully');var url ='" . $url . "'; window.location = url ;</script>";
}
?>
<style>
	#ui-id-1{
    	width: 204px !important;
	}
</style>
<div class="container">
	<div class="container align_center align_height">
		<span class="sports">ASSIGN SCHEDULE</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 method="post" id="assignschedule_form">
Exemple #3
0
<?php

require_once "session.php";
require_once "header.php";
require_once 'functions/range_function.php';
require_once "functions/test_battery_functions.php";
require_once "functions/category_function.php";
require_once "functions/test_functions.php";
$rangeFunction = new rangeFunction();
$testbatteryfunction = new testbatteryfunction();
$categoryfunction = new categoryfunction();
$testfunction = new testfunction();
?>
<div class="container">
	<div class="container align_center align_height">
		<span class="sports">RANGE</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="range_form" id="range_form_id">
					<div class="form-group">
						  <label for="sel1">Select Test Battery Names</label>
						  <select class="form-control adjust_width classic" id="sel1" name="range_testbattery" data-validation-error-msg="Please Select the Name of Test Battery " data-validation="required">
						  <option value="">Select Test Battery Names</option>
						  <?php 
$query = $testbatteryfunction->testbatterySelect();
while ($row = mysql_fetch_array($query)) {
    ?>
	                            <option value="<?php 
Exemple #4
0
<?php

require_once "session.php";
require_once "header.php";
require_once "functions/category_function.php";
$obj = new categoryfunction();
?>
	<div class="container">
		<div class="container align_center align_height">
			<span class="sports">CATEGORY</span>
		</div><!--end container-->
		<div class="container align_margin">
			<div class="col-md-8">
				<div class="col-md-6"></div>
				<div class="col-md-6 align_margin">
					<form id="category_form" name="categories_form" role="form">
						<div class="align_margin">
							<label>Enter the Category Name</label><br>
							<input type="text" class="sportsname" name="category_name" data-validation-error-msg="Please enter the category name" data-validation="required">
							<input type="hidden" name="category_add" value="1">
						</div>
						<!-- <button type="button" class="btn btn-primary align_right clear category_submit_act">Submit</button> -->
						<input type="submit" class="btn btn-primary align_right clear category_submit_act" value="Submit">
					</form>
				</div>
				<div class="container table-position">
				  <table class="table state_table" id="category_table">
				    <thead>
				      <tr class="row_color">
				        <th class="align_center">SLNO</th>
				        <th class="align_center">Category Name</th>