-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage_log.php
49 lines (34 loc) · 1.09 KB
/
message_log.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
<?php include('include/header.php'); ?>
<table id="sms_log" cellspacing="0">
<tr><th>ID</th><th>SMS</th><th>STATUS</th></tr>
<?php
include('include/connect.php');
$query = "SELECT * FROM raw_sms";
$result = mysqli_query($connection, $query);
$print = "";
while($row = mysqli_fetch_assoc($result)){
if($row['save_status']==true){
$print .= "<tr><td>".$row['id']."</td><td class=\"edit\">".$row['text']."</td><td style=\"color:green\">Saved</td></tr>";
}
else if($row['save_status']==false){
$print .= "<tr><td>".$row['id']."</td><td class=\"edit\">".$row['text']."</td><td style=\"color:red\">Not Saved</td></tr>";
}
}
echo $print;
?>
</table>
<script>
$(document).ready(function(){
$('body').show();
$('#menus').hide(0,function(){
$(this).slideDown(500)
});
});
$(".edit").on("dblclick",function(){
this.contentEditable = true;
this.focus();
});
document.getElementById("log_lnk").style.color="#FFE300";
document.getElementById("log_lnk").style.fontWeight="bold";
</script>
<?php include('include/footer.php'); ?>