jQuery(document).ready(function(){ if (getQuerystring != ""){ var selectedValue = getQuerystring("practiceId"); jQuery("input#id").val(selectedValue); } jQuery("#txtDate").datepicker({dateFormat: 'yy-mm-dd'}); jQuery('input#txtTime').timepicker({ timeFormat: 'hh:mm:ss', }); addTextBox(); <?php if (isset($_GET["practiceId"])) { $practiceId = $_GET["practiceId"]; } if (isset($practiceId)) { $practice = GetPractice($practiceId); foreach ($practice as $p) { $practiceTeam = $p->teamId; $practiceDate = $p->date; $practiceTime = $p->time; $practiceVenue = $p->venue; } } else { $practiceId = null; $practiceTeam = 0; $practiceDate = null; $practiceTime = null; $practiceVenue = null; } ?> jQuery("#selectTeam option#<?php
if ($requestType == "Add") { header("Location: http://localhost/practice/addPractice.php"); /* Redirect browser */ exit; } } foreach ($deletePractices as $deletePractice) { DeletePractice($deletePractice); } if ($practiceId != null) { $practices = GetPractice($practiceId, null, null); } else { if ($practiceTeam != null) { $practices = GetPractice(null, $practiceTeam, null); } else { $practices = GetPractice(); } } $counter = 0; foreach ($practices as $practice) { $id = $practice->practiceId; if ($counter % 2 == 1) { echo "<tr class='alt'>"; } else { echo "<tr>"; } $counter++; $teamId = $practice->teamId; $teams = GetTeam($teamId); foreach ($teams as $team) { $teamName = $team->teamName;