File: /home/httpd/html/baretube.com/admin/publishing_schedule.php
<? require "header.php"; ?>
<link href='<? echo $basehttp; ?>/admin/public/fullcalendar-3.9.0/fullcalendar.min.css' rel='stylesheet' />
<link href='<? echo $basehttp; ?>/admin/public/fullcalendar-3.9.0/fullcalendar.print.min.css' rel='stylesheet' media='print' />
<script src='<? echo $basehttp; ?>/admin/public/fullcalendar-3.9.0/lib/moment.min.js'></script>
<script src='<? echo $basehttp; ?>/admin/public/fullcalendar-3.9.0/fullcalendar.min.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month'
},
defaultDate: '<? echo date('Y-m-d'); ?>',
navLinks: true, // can click day/week names to navigate views
editable: false,
eventLimit: true, // allow "more" link when too many events
events: {
url: 'ajax/publishing_schedule.php',
error: function() {
$('#script-warning').show();
}
},
loading: function(bool) {
$('#loading').toggle(bool);
}
});
});
</script>
<style>
#calendar {
max-width: 900px;
margin: 0 auto;
}
.fc-clear {
display: none;
}
#script-warning {
display: none;
background: #eee;
border-bottom: 1px solid #ddd;
padding: 0 10px;
line-height: 40px;
text-align: center;
font-weight: bold;
font-size: 12px;
color: red;
}
#loading {
display: none;
position: absolute;
top: 10px;
right: 10px;
}
</style>
<div class="content-page">
<div class="header-area">
<div class="breadcrumbs">
<a href="publishing_schedule.php">Publishing Schedule</a>
</div>
</div>
<div class="content-outer">
<h2>Publishing<strong>Schedule</strong></h2>
<div class="content-inner">
<p>Please note: For scheduling to work correctly, you must have the following cron added:<br>
0 0 * * * cd <? echo $basepath; ?>/admin; <? echo $php_path; ?> cronPublishScheduled.php;<br><br>
</p>
<div id='calendar'></div>
</div>
</div>
</div>
<? require "footer.php"; ?>