-
Notifications
You must be signed in to change notification settings - Fork 0
/
editpackageplan.php
76 lines (73 loc) · 4.39 KB
/
editpackageplan.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
<?php
include "connectdb.php";
// session_start();
$id = $_GET['editpp'] ?? "";
$_SESSION['ppid']=$id;
$query = mysqli_query($conn,"SELECT * FROM package_plan WHERE package_plan_id='$id'");
$data = mysqli_fetch_array($query);
// echo $data;
// print_r($data[3]);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<title>Gladiator Gym</title>
<style>
td{
vertical-align: middle !important;
}
</style>
</head>
<body>
<div class="container mt-5">
<div class="card container align-items-center mt-3" style="width: 45rem;">
<!-- <div class="row d-flex justify-content-center"> -->
<div class="col-md-6 text-center">
<!-- <br>
<br>
<h3>Edit Package Plan Info</h3>
<br> -->
<h3 class="card-title mt-3">Package Plan Information</h3>
<hr size=4>
<form action="updatepackageplan.php" method="POST">
<input type="hidden" name="update_ppid" id="update_ppid" value="<?php echo $id?>">
<div class="form-group">
<label class="control-label mt-4">Package Plan Name</label>
<input type="text" class="form-control" name="ppname" value="<?php echo $data['package_plan_type'] ?>" id="ppname">
</div>
<div class="form-group">
<label class="control-label mt-3">Description</label>
<!-- <textarea class="form-control" cols="30" rows='3' name="ppdescription" value="<?php //echo $data['package_plan_desc'] ?>" id="ppdescription"></textarea> -->
<input type="text" class="form-control" cols="30" rows='3' name="ppdescription" value="<?php echo $data['package_plan_desc'] ?>" id="ppdescription">
</div>
<div class="form-group">
<label class="control-label mt-3">Number of Days</label>
<input type="number" class="form-control" name="ppdays" value="<?php echo $data['numdays'] ?>" id="ppdays">
</div>
<div class="form-group">
<label class="control-label mt-3">Amount</label>
<input type="text" class="form-control" step="any" name="ppamount" min="0" value="<?php echo $data['package_plan_amount'] ?>" id="ppamount">
</div>
<br>
<div class="mb-3">
<button type="submit" class="btn btn-primary" name="updatepp">Done</button>
<a href="home.php">
<input type="button" class="btn btn-secondary" name="back" id="back" value="Back">
</a>
</div>
</form>
</div>
<!-- </div> -->
</div>
</div>
</body>
</html>