-
Notifications
You must be signed in to change notification settings - Fork 6
/
admin-courier-edit-page.php
91 lines (79 loc) · 3.79 KB
/
admin-courier-edit-page.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
<?php
include_once('admin-header.php');
include_once('classes/admin.php');
$AdminClass = new AdminClass();
if(isset($_GET['edit'])){
$edited_id = $_GET['edit'];
$edit_id = $AdminClass->DataQuaery($edited_id);
$edit = $edit_id->fetch_assoc();
}
?>
<section class="main-content">
<div class="container">
<div class="row">
<div class="col-xs-9 col-xs-offset-3">
<content class="right-content">
<h1>Courier Registration Form</h1>
</content>
<?php
if(isset($_POST['c_reg'])){
$updation = $_GET['updation'];
$AdminClass->UpdateCourierInfo($_POST, $updation);
}
?>
<div class="row registrationForm">
<form action="admin-courier-edit-page.php?updation=<?php echo $edited_id?>" method="POST">
<div class="form-group col-sm-6">
<label class="text-left" style="display: block;">Email</label>
<div class="col-10">
<input class="form-control" type="email" name="courier_admin_email" placeholder="Enter Courier Email" id="example-email-input" value="<?php echo $edit['courier_admin_email']?>" required>
</div>
</div>
<div class="form-group col-sm-6">
<label class="text-left" style="display: block;">Password</label>
<div class="col-10">
<input class="form-control" type="password" name="confirm_pass" placeholder="Enter Confirm Password" id="example-password-input" required>
</div>
</div>
<div class="form-group col-sm-6">
<label class="text-left" style="display: block;">Company Name</label>
<div class="col-10">
<input class="form-control" type="text" name="company_name" id="example-text-input" placeholder="Enter Courier Name" required value="<?php echo $edit['company_name'];?>">
</div>
</div>
<div class="form-group col-sm-6">
<label class="text-left" style="display: block;">Author</label>
<div class="col-10">
<input class="form-control" type="text" name="author_name" id="example-text-input" placeholder="Enter Autor Name" required value="<?php echo $edit['author_name'] ?>">
</div>
</div>
<div class="form-group col-sm-6">
<label class="text-left" style="display: block;">Contact Number</label>
<div class="col-10">
<input class="form-control" type="text" name="mobile" placeholder="Enter Author Name" id="example-text-input" required value="<?php echo $edit['mobile']?>">
</div>
</div>
<div class="form-group col-sm-12">
<label class="text-left" style="display: block;">Adddress</label>
<textarea class="form-control" placeholder="Enter Address" name="address" rows="3" required><?php echo $edit['address'];?></textarea>
</div>
<div class="form-group col-sm-12">
<button type="submit" name="c_reg" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section><!-- end of .main-content -->
<footer></footer><!-- end of footer -->
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
<script src="https://code.jquery.com/jquery-migrate-3.0.0.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/ie10-viewport-bug-workaround.js"></script>
<script src="owl.carousel/owl.carousel.min.js"></script>
<script src="nivo.slider/nivo.slider.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>