170 lines
5.7 KiB
PHP
170 lines
5.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title></title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" crossorigin="anonymous">
|
|
<link href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css' rel='stylesheet' />
|
|
<!-- <link href="/public/assets/css/tabulator_semanticui.min.css" rel="stylesheet"> -->
|
|
<link href="https://parsleyjs.org/src/parsley.css" rel="stylesheet">
|
|
<script src="https://code.jquery.com/jquery-2.2.4.min.js" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/stapes/1.0.0/stapes.js" crossorigin="anonymous"></script>
|
|
|
|
<link href="https://parsleyjs.org/src/parsley.css" rel="stylesheet">
|
|
<link href="/style.css" rel="stylesheet">
|
|
|
|
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.css" integrity="sha384-Bn538FnJABF+10ld5ha9hT5IqfDz0nN9gZ+RS4yR1JKGgsUKLB2Np3ucx8Wi6pyy" crossorigin="anonymous"> -->
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/@fullcalendar/bootstrap@6.1.10/index.global.min.js"></script> -->
|
|
|
|
<script src='https://cdn.jsdelivr.net/npm/fullcalendar/index.global.min.js'></script>
|
|
|
|
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.css" integrity="sha384-Bn538FnJABF+10ld5ha9hT5IqfDz0nN9gZ+RS4yR1JKGgsUKLB2Np3ucx8Wi6pyy" crossorigin="anonymous">
|
|
<script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha384-o9I/XbYzAOi6aAdG8eEIAIQV7wppF5P8EUGdXq0jH8LVMpG4LAV+OxlUqjKE0W0f" crossorigin="anonymous"></script> -->
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.js" integrity="sha384-PZ19vJ/QGsewiY3DW3uVgtAw9pxo9+UErhlKn+JzKMuhE+6j0UD54d1CIWc0yXHF" crossorigin="anonymous"></script> -->
|
|
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.10/index.global.min.js"></script> -->
|
|
|
|
|
|
|
|
<style>
|
|
.time-container {
|
|
display: none;
|
|
}
|
|
|
|
.flex-container {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-item {
|
|
flex: 1;
|
|
/* margin-right: 10px; */
|
|
/* Adjust margin as needed */
|
|
}
|
|
|
|
#calendar {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* #calendar-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
} */
|
|
|
|
/* Toast styling */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.toast {
|
|
background: #333;
|
|
color: white;
|
|
padding: 15px 25px;
|
|
border-radius: 5px;
|
|
margin-bottom: 10px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease-in;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
}
|
|
|
|
.toast.error {
|
|
background: #dc3545;
|
|
}
|
|
|
|
.toast.success {
|
|
background: #28a745;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<!-- Add toast container right after body tag -->
|
|
<div class="toast-container"></div>
|
|
|
|
<!-- Add script before the wrapper div -->
|
|
<script>
|
|
function showToast(message, type = 'default') {
|
|
const toastContainer = document.querySelector('.toast-container');
|
|
const toast = document.createElement('div');
|
|
toast.className = `toast ${type}`;
|
|
toast.textContent = message;
|
|
|
|
toastContainer.appendChild(toast);
|
|
|
|
// Trigger reflow to enable animation
|
|
toast.offsetHeight;
|
|
|
|
// Show toast
|
|
toast.classList.add('show');
|
|
|
|
// Remove after 3 seconds
|
|
setTimeout(() => {
|
|
toast.classList.remove('show');
|
|
setTimeout(() => toast.remove(), 300);
|
|
}, 3000);
|
|
}
|
|
|
|
// Check for error and success parameters on page load
|
|
window.addEventListener('load', function() {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
const error = urlParams.get('error');
|
|
const success = urlParams.get('success');
|
|
|
|
if (error) {
|
|
let message = '';
|
|
switch(error) {
|
|
case 'drive_not_connected':
|
|
message = 'Google Drive is not connected';
|
|
break;
|
|
default:
|
|
message = error.replace(/_/g, ' ');
|
|
}
|
|
showToast(message, 'error');
|
|
}
|
|
|
|
if (success) {
|
|
let message = '';
|
|
switch(success) {
|
|
case 'completed':
|
|
message = 'Operation completed successfully';
|
|
break;
|
|
default:
|
|
message = success.replace(/_/g, ' ');
|
|
}
|
|
showToast(message, 'success');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<div class="wrapper">
|
|
<nav id="sidebar">
|
|
<div class="sidebar-header">
|
|
Team Followup
|
|
</div>
|
|
<ul class="list-unstyled components">
|
|
<li><a href="/client/project" <?php echo ($data['page_title'] == 'Project') ? 'class="active"' : '';
|
|
?>> Availability Checker</a></li>
|
|
<li><a href="/client/campaign" <?php echo ($data['page_title'] == 'Campaign') ? 'class="active"' : '';
|
|
?>> Campaigns</a></li>
|
|
<li><a href="/client/report" <?php echo ($data['page_title'] == 'Report') ? 'class="active"' : '';
|
|
?>> Report</a></li>
|
|
<li><a href="/client/location" <?php echo ($data['page_title'] == 'Location') ? 'class="active"' : '';
|
|
?>> Locations</a></li>
|
|
<li><a href="/client/profile" <?php echo ($data['page_title'] == 'Profile') ? 'class="active"' : ''; ?>> Profile </a></li>
|
|
<li><a href="/client/logout"> Logout </a></li>
|
|
</ul>
|
|
</nav>
|
|
<div id="content">
|