-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_inbox.php
70 lines (69 loc) · 2.89 KB
/
user_inbox.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
<html>
<body>
<link rel="stylesheet" href="assets/bootstrap.min.css">
<script src="assets/jquery.min.js"></script>
<script src="assets/bootstrap.min.js"></script>
<?php
include('include/connect.php');
include('include/session.php');
include('query_seen.php');
$GET=$_GET['id'];
$query=mysql_query("select * from reply_message where Primary_key='$GET'");
$row=mysql_fetch_array($query);
?>
<!-- Fixed navbar -->
<form action="user_mail.php" method="post">
<!-- Trigger the modal with a button -->
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<div class="well"><Center>
<strong>To:</strong> <a href=""><?php echo $row['Email']; ?></a><br />
<strong>From Admin:</strong> <?php echo $row['From_admin'];?><br />
<strong>Message:</strong><br />
<textarea rows="4" cols="50" readonly><?php echo $row['Message']; ?></textarea>
<form action="user_mail.php" method="POST">
<br />
<input class="btn btn-success" type="hidden" name="customerid" value="<?php echo $ses_id; ?>" />
<input class="btn btn-success" type="hidden" name="key" value="<?php echo $row['Primary_key']; ?>" />
<input type="submit" value="BACK" name="inbox" class="btn btn-primary" />
<input type="submit" value="REPLY" name="compose" class="btn btn-primary" />
<input type="submit" onclick="return confirm('Are you sure you want to delete?')" value="DELETE" name="delete" class="btn btn-danger" />
</form>
</div></Center>
</div>
<div class="modal-footer">
<input class="btn btn-success" type="hidden" name="customerid" value="<?php echo $ses_id; ?>" />
<input type="submit" name="sent" class="btn btn-default" value="Close">
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
$(window).load(function(){
$('#myModal').modal('show');
});
</script>
<center>
<img src="img/aa.jpg" height="" />
</center>
<div class="well"><Center>
<strong>To:</strong> <a href=""><?php echo $row['Email']; ?></a><br />
<strong>From Admin:</strong> <?php echo $row['From_admin'];?><br /><br />
<strong>Message:</strong><br />
<textarea rows="4" cols="50" readonly><?php echo $row['Message']; ?></textarea>
<form action="user_mail.php" method="POST">
<br />
<input class="btn btn-success" type="hidden" name="key" value="<?php echo $row['Primary_key']; ?>" />
<input class="btn btn-success" type="hidden" name="customerid" value="<?php echo $ses_id; ?>" />
<input type="submit" value="BACK" name="inbox" class="btn btn-primary" />
<input type="submit" value="REPLY" name="compose" class="btn btn-primary" />
<input type="submit" onclick="return confirm('Are you sure you want to delete?')" value="DELETE" name="delete" class="btn btn-danger" />
</form>
</div></Center>
</body>
</html>