-
Notifications
You must be signed in to change notification settings - Fork 0
/
pet-sport-edit.php
141 lines (115 loc) · 3.95 KB
/
pet-sport-edit.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
session_start();
include'connect.php';
if(empty($_SESSION['TEACHER_ID'])){
header('location:index.php');
}
else
{
$sport_id=$_GET['sport_id'];
$sport_id1=$_GET['sport_id'];
$sport_name=$_GET['sport_name'];
if(!empty($_POST['submit']))
{
$sport_id=$_POST['sport_id1'];
$sport_name=$_POST['sport_name1'];
$stat="UPDATE `sports` SET `sport_id`='$sport_id',`sport_name`='$sport_name' WHERE `sport_id`='$sport_id1'";
$run=mysqli_query($con,$stat);
}
if($run)
{
echo "<script>document.location='pet-sport-edit-list.php'</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<title>Preskool - Students</title>
<link rel="shortcut icon" href="assets/img/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;0,700;1,400&display=swap">
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/plugins/fontawesome/css/fontawesome.min.css">
<link rel="stylesheet" href="assets/plugins/fontawesome/css/all.min.css">
<link rel="stylesheet" href="assets/plugins/select2/css/select2.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<?php
include 'pet-menu.php';
?>
<div class="page-wrapper">
<div class="content container-fluid">
<!-- Page Header -->
<div class="page-header">
<div class="row align-items-center">
<div class="col">
<h3 class="page-title">Add Sport</h3>
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="school-admin-student-list.php">Sport</a></li>
<li class="breadcrumb-item active">Add Sport</li>
</ul>
</div>
</div>
</div>
<!-- /Page Header -->
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<form action="" method="post">
<div class="row">
<div class="co-l-12">
<h5 class="form-title"><span>Sport Add</span></h5>
</div>
<div class="col-12 col-sm-6">
<div class="form-group">
<label>Sport ID</label>
<input type="text" name="sport_id1" value="<?php echo $sport_id ?>" class="form-control">
</div>
</div>
<!-- <div class="col-12 col-sm-6">
<div class="form-group">
<label>Last Name</label>
<input type="text" class="form-control">
</div>
</div> -->
<div class="col-12 col-sm-6">
<div class="form-group">
<label>Sport Name</label>
<input type="text" name="sport_name1" value="<?php echo $sport_name ?>" class="form-control">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary" name="submit" value="submit">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /Page Wrapper -->
</div>
<!-- /Main Wrapper -->
<!-- jQuery -->
<script src="assets/js/jquery-3.6.0.min.js"></script>
<!-- Bootstrap Core JS -->
<script src="assets/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Slimscroll JS -->
<script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Select2 JS -->
<script src="assets/plugins/select2/js/select2.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/script.js"></script>
</body>
</html>