Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/escort46.de/public_html/admin/ |
<?php
$error = "";
$message = "";
include "db_connection.php";
include "sessioncheck.php";
?>
<!-- Header Start-->
<?php include("header.php"); ?>
<nav class=" navbar navbar-expand navbar-white navbar-light">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#">
<i class="fa fa-bars" style="color:white;"></i>
</a>
</li>
</ul>
<div>
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item ">Seo</li>
<li class="breadcrumb-item">Ad Services</li>
</ol>
</div>
</nav>
<?php if ($detect->isMobile() && !$detect->isTablet()) { ?>
<style>
div.dataTables_wrapper div.dataTables_paginate {
padding-top: 1em !IMPORTANT;
text-align: center !IMPORTANT;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
text-align: center !IMPORTANT;
}
</style>
<?php } else { ?>
<style>
.dataTables_length {
float: left;
}
.dataTables_filter {
float: right;
}
div.dataTables_wrapper div.dataTables_info {
padding-top: 1.5em;
!IMPORTANT;
float: left;
}
div.dataTables_wrapper div.dataTables_paginate {
padding-top: 1em;
!IMPORTANT;
float: right;
}
</style>
<?php } ?>
<script>
$(document).ready(function() {
var table = $('#adservice_table').DataTable({
responsive: true,
dom: 'lBfrtip',
"iDisplayLength": 100,
/* "aLengthMenu": [[ 100, 500, 1000, 2500, 5000, -1], [100, 500, 1000, 2500, 5000, "All"]],*/
"bsort": false,
"oLanguage": {
"oPaginate": {
"sPrevious": "Back"
},
"sSearch": '',
sLengthMenu: "<select class='custom-select custom-select-sm form-control form-control-sm'>" +
"<option value='100'>Show 100</option>" +
"<option value='500'>Show 500</option>" +
"<option value='1000'>Show 1000</option>" +
"<option value='2500'>Show 2500</option>" +
"<option value='5000'>Show 5000</option>" +
"</select>",
},
"scrollX": true,
'processing': false,
'serverSide': true,
'serverMethod': 'post',
"order": [
[1, "asc"]
],
'ajax': {
'url': 'service/load_data_seo_adservice'
},
'columns': [{
data: 'id'
},
{
data: 'adservice'
},
{
data: 'keyword'
},
{
data: 'meta_keyword'
},
{
data: 'meta_title'
},
{
data: 'meta_description'
},
{
data: 'h1_title'
},
{
data: 'h1_description'
},
{
data: 'adservice_anchor'
},
{
data: 'adservice_outgoing_link'
},
{
data: 'action'
},
]
});
$('.dataTables_filter input').attr("placeholder", "Search");
$("#adservice_table_filter").append('<button type="button" class="btn btn-info" onClick="goto_add_addservices()" style="margin-left:5px;">Add Ad Service</button>');
$(".dataTables_scrollBody").height($(document).height() - 260);
//table.fnDraw();
});
function goto_add_addservices() {
window.location.href = "<?php echo MAIN_URL ?>/admin/seo_adservices_add";
}
</script>
<!-- Header Ends-->
<!-- Content Start-->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<!-- /.card-header -->
<div class="card-body">
<?php include_once 'notification.php'; ?>
<table id="adservice_table" class="table table-bordered table-striped text-nowrap" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Adservice</th>
<th>Keyword</th>
<th>Meta Keyword</th>
<th>Meta Title</th>
<th>Meta Description</th>
<th>H1 Title</th>
<th>H1 Description</th>
<th>Anchor</th>
<th>Outgoing Link</th>
<th>Action</th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
</div>
<!-- /.row (main row) -->
</div><!-- /.container-fluid -->
</section>
<!-- Content Ends-->
<script>
$(document.body).on('click', '.btn-confirm-delete', function(e) {
var crud = 'delete';
var val = $(this).data("id");
$.ajax({
url: 'service/delete_seo_adservice',
type: 'post',
data: {
crud: crud,
value: val
},
success: function(data) {
if (data == '1') {
$(".modal-backdrop").remove();
$('#delete_adservice_' + val).closest("tr").remove();
//window.location.href = window.location.href;
}
}
});
$('.btn-confirm-delete').unbind();
});
$(document.body).on('click', '.delete_adservice', function(e) {
$(".btn-confirm-delete").attr("data-id", $(this).data('id'));
$('.delete_adservice').unbind();
});
$(document.body).on('click', '.btn-confirm-close', function(e) {
$(".btn-confirm-delete").attr("data-id", "0");
$('.btn-confirm-close').unbind();
});
</script>
<!-- Footer Start-->
<footer class="main-footer">
<div class="row">
<div class="col-md-2 col-sm-6 col-6">
</div>
<div class="col-md-2 col-sm-6 col-6">
</div>
</div>
</footer>
<?php include("footer.php"); ?>
<style>
/* //////////////////common start////////////// */
.content-wrapper .content {
height: calc(100vh - 112px) !important;
overflow-y: auto;
margin-top: 56px;
}
.content-wrapper .navbar {
height: 56px;
}
.main-footer {
padding: 7px 8px;
border-top: 2px solid #0002;
height: 56px;
}
::-webkit-scrollbar {
height: 6px;
width: 6px;
}
::-webkit-scrollbar-track {
background-color: white;
}
::-webkit-scrollbar-thumb {
background-color: #aaa;
border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #aaa;
}
.card {
border-radius: 0px;
}
@media (min-width: 768px) {
.main-footer {
transition: margin-left 0.3s ease-in-out;
margin-left: 0px!important;
}
}
/*---------------------------------switsh=====*/
.switch {
float: right;
position: relative;
display: inline-block;
vertical-align: top;
width: 56px;
height: 20px;
padding: 3px;
background-color: white;
border-radius: 18px;
box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
cursor: pointer;
background-image: -webkit-linear-gradient(top, #eeeeee, white 25px);
background-image: -moz-linear-gradient(top, #eeeeee, white 25px);
background-image: -o-linear-gradient(top, #eeeeee, white 25px);
background-image: linear-gradient(to bottom, #eeeeee, white 25px);
}
.switch-input {
position: absolute;
top: 0;
left: 0;
opacity: 0;
}
.switch-label {
position: relative;
display: block;
height: inherit;
font-size: 10px;
text-transform: uppercase;
background: #eceeef;
border-radius: inherit;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
-webkit-transition: 0.15s ease-out;
-moz-transition: 0.15s ease-out;
-o-transition: 0.15s ease-out;
transition: 0.15s ease-out;
-webkit-transition-property: opacity background;
-moz-transition-property: opacity background;
-o-transition-property: opacity background;
transition-property: opacity background;
}
.switch-label:before, .switch-label:after {
position: absolute;
top: 50%;
margin-top: -.5em;
line-height: 1;
-webkit-transition: inherit;
-moz-transition: inherit;
-o-transition: inherit;
transition: inherit;
}
.switch-label:before {
content: attr(data-off);
right: 11px;
color: #aaa;
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}
.switch-label:after {
content: attr(data-on);
left: 11px;
color: white;
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
opacity: 0;
}
.switch-input:checked ~ .switch-label {
background: #47a8d8;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.switch-input:checked ~ .switch-label:before {
opacity: 0;
}
.switch-input:checked ~ .switch-label:after {
opacity: 1;
}
.switch-handle {
position: absolute;
top: 4px;
left: 4px;
width: 18px;
height: 18px;
background: white;
border-radius: 10px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
background-image: -webkit-linear-gradient(top, white 40%, #f0f0f0);
background-image: -moz-linear-gradient(top, white 40%, #f0f0f0);
background-image: -o-linear-gradient(top, white 40%, #f0f0f0);
background-image: linear-gradient(to bottom, white 40%, #f0f0f0);
-webkit-transition: left 0.15s ease-out;
-moz-transition: left 0.15s ease-out;
-o-transition: left 0.15s ease-out;
transition: left 0.15s ease-out;
}
.switch-handle:before {
content: '';
position: absolute;
top: 50%;
left: 50%;
margin: -6px 0 0 -6px;
width: 12px;
height: 12px;
background: #f9f9f9;
border-radius: 6px;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
background-image: -webkit-linear-gradient(top, #eeeeee, white);
background-image: -moz-linear-gradient(top, #eeeeee, white);
background-image: -o-linear-gradient(top, #eeeeee, white);
background-image: linear-gradient(to bottom, #eeeeee, white);
}
.switch-input:checked ~ .switch-handle {
left: 40px;
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}
.switch-green > .switch-input:checked ~ .switch-label {
background: #4fb845;
}
/* //////////////////common end////////////// */
/*/////////////////for page//////////////////*/
.dataTables_length {
right: 145px;
}
.sidebar-collapse div.dataTables_wrapper div.dataTables_paginate {
left: calc(235px + 4.6rem);
}
div.dataTables_wrapper div.dataTables_paginate {
left: calc(235px + 250px);
}
div.dataTables_wrapper div.dataTables_info {
padding-left: 6px;
}
/*/////////////////for page end//////////////////*/
</style>