-
Notifications
You must be signed in to change notification settings - Fork 0
/
all-index-website.php
149 lines (95 loc) · 3.66 KB
/
all-index-website.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
require_once('functions/function.php');
needtologin();
get_header();
get_sidebar();
admin();
$select='SELECT * FROM search_engine_data ORDER BY id DESC';
$Query=mysqli_query($con,$select);
if($_SESSION['success_alert']=='1'){
?>
<script>
swal({title: "Done!", text: "Website Successfully Indexed!", icon: "success", button: "OK",});
</script>
<?php
$_SESSION['success_alert']='0';
}elseif($_SESSION['success_alert']=='2'){
?>
<script>
swal({title: "Done!", text: "Indexed Website Information Updated Successfully!", icon: "success", button: "OK",});
</script>
<?php
$_SESSION['success_alert']='0';
}elseif($_SESSION['success_alert']=='3'){
?>
<script>
swal({title: "Done!", text: "Website Deleted Successfully!", icon: "success", button: "OK",});
</script>
<?php
$_SESSION['success_alert']='0';
}
?>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- Main row -->
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header bg-light">
<div class="row">
<div class="col-md-10 card_header_text">
<b>All Indexed Websites</b>
</div>
<div class="col-md-2 card_header_for_one_button">
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-bordered" id="dataTable">
<thead>
<tr>
<th>Title</th>
<th>Website</th>
<th>Manage</th>
</tr>
</thead>
<tbody>
<?php
foreach($Query as $data){
?>
<tr>
<td><?= $data['title']; ?></td>
<td><a href="<?= $data['websites']; ?>"><?= $data['websites']; ?></a></td>
<td>
<a href="view-index-website.php?v=<?= $data['slug']; ?>"><i class="fas fa-plus-square"></i></a>
<a href="edit-index-website.php?e=<?= $data['slug']; ?>"><i class="fas fa-edit"></i></a>
<a href="delete-index-website.php?d=<?= $data['slug']; ?>"><i class="fas fa-trash-alt"></i></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<div class="card-footer text-muted">
</div>
</div>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php
get_footer();
?>
<script>
$(document).ready(function(){
$('#dataTable').DataTable();
});
</script>