mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Started work on multi-company feature
This commit is contained in:
39
calendar_domains.php
Normal file
39
calendar_domains.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php include("header.php"); ?>
|
||||
|
||||
<div id='calendar'></div>
|
||||
|
||||
<?php include("footer.php"); ?>
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
|
||||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
plugins: [ 'bootstrap', 'dayGrid', 'timeGrid', 'list' ],
|
||||
themeSystem: 'bootstrap',
|
||||
defaultView: 'dayGridMonth',
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
|
||||
},
|
||||
events: [
|
||||
<?php
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM domains");
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
$domain_id = $row['domain_id'];
|
||||
$domain = $row['domain_name'];
|
||||
$domain_expire = $row['domain_expire'];
|
||||
$event_end = $row['event_end'];
|
||||
|
||||
echo "{ id: '$domain_id', title: '$domain', start: '$domain_expire', color: 'blue'},";
|
||||
}
|
||||
?>
|
||||
],
|
||||
});
|
||||
|
||||
calendar.render();
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user