-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_match1.php
111 lines (100 loc) · 3.78 KB
/
new_match1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
ob_start();
session_start();
if (!isset($_SESSION["memID"]) && !isset($_SESSION["password"])) {
header("location:index");
}
require 'connect.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pera Cricket</title>
<link type="image/jpg" rel="icon" href="logo.jpg" />
<link rel="stylesheet" href="./css/global.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
#one {
border: 10px solid black;
background-color: #800000;
border-radius: 25px;
}
body {
background-color: #D3D3D3;
}
</style>
</head>
<body>
<!-- navigation bar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Pera Cricket</a>
</div>
<div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li><a href="/"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li><a href="view"><span class="glyphicon glyphicon-plus"></span> View Match Details</a></li>
<li><a href="player"><span class="glyphicon glyphicon-user"></span> View Player Details</a></li>
<li><a href="rankings"><span class="glyphicon glyphicon-star"></span> View Rankings</a></li>
<li><a href="records"><span class="glyphicon glyphicon-star-empty"></span> View Records</a></li>
</ul>
</div>
</div>
</div>
</nav>
<br><br><br>
<div class="container" id="one"><br>
<div class="row">
<div class="col-md-4"><label> <a href="addplayer"> Before continue please add new players</a></label></div>
</div>
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4"><button class="form-control" type="button" class="btn btn-default"
onclick="location.href='match';">
<font size=3 color="#800000">Continue</font>
</button></div>
</div>
<br>
</div>
<br><br>
<div class='container'>
<div class='row'>
<div class='col-md-1'></div>
<div class='col-md-6'>
<script>
$(document).ready(function () {
$("#myInput1").on("keyup", function () {
var value = $(this).val().toLowerCase();
$("#myTable1 tr").filter(function () {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
<div id="search">
<input class='form-control' type="text" id="myInput1" placeholder="Search...">
<?php
$query = "SELECT * FROM player_informations";
$is_query_run = mysqli_query($connect, $query);
echo "<table><th>Player Name</th><th>---Reg_no</th><tbody id='myTable1'>";
while ($query_execute = mysqli_fetch_assoc($is_query_run)) {
echo "<tr ><td >" . $query_execute['Firstname'] . " " . $query_execute['Lastname'] . "</td><td>--- " . $query_execute['Reg_no'] . "</td></tr>";
}
echo "</tbody><table>";
?>
</div>
</div>
</div>
</body>
</html>