-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwhycomplaint.php
70 lines (52 loc) · 2.1 KB
/
whycomplaint.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
<?php
ob_start();
include 'css/style.css';
session_start();
include 'connection1.php';
include 'staff_header.php';
$sql = "select * from complaint";
$result = $conn->query($sql);
?>
<html>
<head>
<title>products </title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<a href="retailhome.php"><h3> <font color="#0000FF" > <span class="material-icons" >arrow_circle_left</span></font></h3></a>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">COMPLAINT RESPONSE</h4>
</div>
<div class="modal-body">
<form method="post">
<label for="comment">Reply:</label>
<textarea class="form-control" rows="8" id="comment" name="rothanam"></textarea>
</div>
<div class="modal-footer">
<button type="submit" name="rocklee" class="btn btn-default" data-dismiss="modal">Send</button>
</form>
<?php
if(isset($_POST['rocklee'])){
$ons = $_POST['rothanam'];
$sql1= "update complaint set creply= '$ons' where id = '$_GET['id']' ";
$res = mysqli_query($conn,$sql1);
if($res){
$horror = "veiwed";
$sql3= "update complaint set cview = '$horror' where id = '".$_GET['id']."'";
mysqli_query($conn,$sql3);
header("Location:showcomplaint.php");
}
}
?>
</div>
</div>
</div>