/
home
/
techb158
/
workloadmatch.com
/
workloadmatch.com
/
Manager
/
/home/techb158/workloadmatch.com/workloadmatch.com/Manager
mkdir
upload
Name
Size
Mode
Actions
core/
-
0755
rm
css/
-
0755
rm
data/
-
0755
rm
fonts/
-
0755
rm
Inc/
-
0755
rm
js/
-
0755
rm
php/
-
0755
rm
accesscontrol.php
16039
0644
edit
dl
rm
AddClient.php
3930
0644
edit
dl
rm
addcourse.php
17736
0644
edit
dl
rm
addcoursesession.php
20528
0644
edit
dl
rm
addcoursetime.php
17305
0644
edit
dl
rm
addgroup - Copy.php
21212
0644
edit
dl
rm
addgroup.php
22999
0644
edit
dl
rm
addgroup1.php
20667
0644
edit
dl
rm
addholiday.php
18019
0644
edit
dl
rm
addmanager.php
18765
0644
edit
dl
rm
addremediation.php
17877
0644
edit
dl
rm
addretake.php
21914
0644
edit
dl
rm
adduser.php
30079
0644
edit
dl
rm
adduser1.php
23527
0644
edit
dl
rm
Add_Course_Session.php
6529
0644
edit
dl
rm
add_event.php
1960
0644
edit
dl
rm
Add_Teacher_Unavailability.php
1746
0644
edit
dl
rm
adminreports.php
16219
0644
edit
dl
rm
AI_Generate_Schedule - Copy.php
12217
0644
edit
dl
rm
AI_Generate_Schedule.php
10731
0644
edit
dl
rm
ajax_course_group_Backup.php
17270
0644
edit
dl
rm
ajax_course_group_Backup_1.php
18742
0644
edit
dl
rm
ajax_fetch_schedule.php
3760
0644
edit
dl
rm
ajax_get_group_slots.php
872
0644
edit
dl
rm
ajax_replace_saturday -Completed.php
18739
0644
edit
dl
rm
ajax_replace_saturday - Copy (2).php
18739
0644
edit
dl
rm
ajax_replace_saturday - Copy (3).php
26554
0644
edit
dl
rm
ajax_replace_saturday - Copy (4).php
26615
0644
edit
dl
rm
ajax_replace_saturday - Copy (5).php
28374
0644
edit
dl
rm
ajax_replace_saturday - Copy.php
13452
0644
edit
dl
rm
ajax_replace_saturday - Good.php
17270
0644
edit
dl
rm
ajax_replace_saturday.php
30779
0644
edit
dl
rm
ajax_swap_courses.php
4279
0644
edit
dl
rm
assign_course_group-BackUp.php
21331
0644
edit
dl
rm
assign_course_group - Copy (BackUp).php
18315
0644
edit
dl
rm
assign_course_group - Copy.php
21318
0644
edit
dl
rm
assign_course_group.php
18315
0644
edit
dl
rm
assign_course_group1.php
20962
0644
edit
dl
rm
Assign_Course_Report.php
1375
0644
edit
dl
rm
assign_teacher_manual-1.php
21095
0644
edit
dl
rm
assign_teacher_manual - Copy (2).php
22328
0644
edit
dl
rm
assign_teacher_manual - Copy.php
22388
0644
edit
dl
rm
assign_teacher_manual-Not work.php
20585
0644
edit
dl
rm
assign_teacher_manual.php
22328
0644
edit
dl
rm
assign_teacher_manual_force_conflicts.php
22359
0644
edit
dl
rm
availableteacherreport.php
13718
0644
edit
dl
rm
Available_Teacher_Report - Copy.php
2236
0644
edit
dl
rm
Available_Teacher_Report.php
7691
0644
edit
dl
rm
brokerreports.php
16318
0644
edit
dl
rm
calendar - Copy (2).php
16891
0644
edit
dl
rm
calendar - Copy.php
23193
0644
edit
dl
rm
calendar.php
30653
0644
edit
dl
rm
changestatus.php
865
0644
edit
dl
rm
Check_if_Teacher_Report.php
1587
0644
edit
dl
rm
complete_schedule_report_by_teacher.php
19312
0644
edit
dl
rm
courseflagtime.php
3411
0644
edit
dl
rm
Create_Group_Schedule_Algorithm.php
3828
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (2).php
41412
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (3).php
46352
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (4).php
53569
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (5).php
67956
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (6).php
71134
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (7).php
72529
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (8).php
73084
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (9).php
73577
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (10).php
76505
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (11).php
76764
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (12).php
86324
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (13).php
83133
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (14).php
87274
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (get info only).php
69747
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (with 2 course 2nd SPECIAL ).php
82314
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy.php
40581
0644
edit
dl
rm
Create_Schedule_Algorithm.php
88276
0644
edit
dl
rm
Create_Schedule_Algorithm_1.php
41412
0644
edit
dl
rm
Create_Schedule_Algorithm_2.php
76505
0644
edit
dl
rm
Create_Schedule_Algorithm_2_combined.php
89764
0644
edit
dl
rm
Create_Schedule_Algorithm_2_combined_both_slots.php
91932
0644
edit
dl
rm
Create_Schedule_Algorithm_2_fixed.php
76829
0644
edit
dl
rm
Create_Schedule_Algorithm_3.php
87274
0644
edit
dl
rm
Create_Schedule_Algorithm_4.php
87274
0644
edit
dl
rm
dashboard-BackUp.php
18806
0644
edit
dl
rm
dashboard.php
22507
0644
edit
dl
rm
deleteschedulefromgroup.php
16819
0644
edit
dl
rm
delete_course.php
580
0644
edit
dl
rm
delete_course_from_teacher.php
4990
0644
edit
dl
rm
delete_course_from_teacher_backup.php
3094
0644
edit
dl
rm
delete_event.php
1212
0644
edit
dl
rm
delete_group.php
1858
0644
edit
dl
rm
delete_holiday.php
715
0644
edit
dl
rm
delete_retake.php
1276
0644
edit
dl
rm
delete_schedule_from_group-1.php
1870
0644
edit
dl
rm
delete_schedule_from_group.php
1850
0644
edit
dl
rm
delete_teacher_level.php
798
0644
edit
dl
rm
delete_teacher_unavailability.php
1347
0644
edit
dl
rm
delete_timeslot.php
597
0644
edit
dl
rm
display_schedule-1.php
18846
0644
edit
dl
rm
display_schedule.php
18846
0644
edit
dl
rm
do_remove_saturday.php
6170
0644
edit
dl
rm
edit_event.php
1612
0644
edit
dl
rm
error_log
74070
0644
edit
dl
rm
examschedulereport.php
16267
0644
edit
dl
rm
Exam_Schedule_Report.php
2677
0644
edit
dl
rm
export_absences.php
1221
0644
edit
dl
rm
fetch_all_scheduled_courses.php
6318
0644
edit
dl
rm
fetch_courses - BackUp.php
9711
0644
edit
dl
rm
fetch_courses - Copy.php
7719
0644
edit
dl
rm
fetch_courses.php
9167
0644
edit
dl
rm
fetch_courses_for_program.php
788
0644
edit
dl
rm
fetch_courses_for_program_by_schedule - Copy.php
2297
0644
edit
dl
rm
fetch_courses_for_program_by_schedule.php
3935
0644
edit
dl
rm
fetch_courses_teacher_preference.php
3852
0644
edit
dl
rm
fetch_course_for_added_group.php
897
0644
edit
dl
rm
fetch_course_hours.php
691
0644
edit
dl
rm
fetch_disabled_dates.php
518
0644
edit
dl
rm
fetch_events.php
975
0644
edit
dl
rm
fetch_exist_dates.php
1099
0644
edit
dl
rm
fetch_groups_exist_in_schedule.php
956
0644
edit
dl
rm
fetch_groups_for_program.php
843
0644
edit
dl
rm
fetch_group_timeslot.php
847
0644
edit
dl
rm
fetch_reserve_courses.php
7429
0644
edit
dl
rm
fetch_retake_courses.php
923
0644
edit
dl
rm
fetch_scheduled_courses.php
2178
0644
edit
dl
rm
fetch_schedule_report_by_group.php
5440
0644
edit
dl
rm
fetch_teachers_by_group.php
4421
0644
edit
dl
rm
fetch_teachers_by_program.php
1821
0644
edit
dl
rm
fetch_teachers_for_group.php
3170
0644
edit
dl
rm
fetch_teacher_assignment.php
24776
0644
edit
dl
rm
fetch_teacher_by_course.php
3880
0644
edit
dl
rm
fetch_teacher_conflicts.php
5682
0644
edit
dl
rm
fetch_teacher_conflicts_only.php
7665
0644
edit
dl
rm
fetch_teacher_conflicts_only_force_conflicts.php
7114
0644
edit
dl
rm
fetch_teacher_conflicts_showonly.php
10447
0644
edit
dl
rm
fetch_teacher_load.php
1482
0644
edit
dl
rm
fetch_teacher_prefrence_courses_accounting.php
1606
0644
edit
dl
rm
find_replacement-1.php
16075
0644
edit
dl
rm
find_replacement.php
18161
0644
edit
dl
rm
followup.php
16160
0644
edit
dl
rm
Generate Group Schedule.php
16987
0644
edit
dl
rm
Generate Group Schedule 1.php
18121
0644
edit
dl
rm
generateschedule.php
15706
0644
edit
dl
rm
Generate_Schedule.php
33620
0644
edit
dl
rm
generate_schedule_handler.php
7095
0644
edit
dl
rm
Generate_Schedule_Script.php
29731
0644
edit
dl
rm
getlang.php
326
0644
edit
dl
rm
getrefer.php
4349
0644
edit
dl
rm
getstatus.php
1260
0644
edit
dl
rm
get_groups_by_program.php
608
0644
edit
dl
rm
get_schedule_ai-1.php
37755
0644
edit
dl
rm
get_schedule_ai - Copy.php
36459
0644
edit
dl
rm
get_schedule_ai.php
36855
0644
edit
dl
rm
get_schedule_report.php
2393
0644
edit
dl
rm
group_schedule_form - Copy.php
16994
0644
edit
dl
rm
group_schedule_form.php
16994
0644
edit
dl
rm
main-header-inc.php
1196
0644
edit
dl
rm
main-header.php
16671
0644
edit
dl
rm
managecategory.php
9233
0644
edit
dl
rm
managerreports.php
25056
0644
edit
dl
rm
Preference_Accounting.php
22503
0644
edit
dl
rm
profile.php
20680
0644
edit
dl
rm
reference_list.php
8207
0644
edit
dl
rm
remove_saturday_course.php
19503
0644
edit
dl
rm
report_absence.php
19287
0644
edit
dl
rm
report_absence_1.php
6160
0644
edit
dl
rm
reserve_course.php
18957
0644
edit
dl
rm
rewrite_ajax_replace_saturday.php
12800
0644
edit
dl
rm
rewrite_Create_Schedule_Algorithm.php
88318
0644
edit
dl
rm
rewrite_Create_Schedule_Algorithm_2.php
88900
0644
edit
dl
rm
save_schedule.php
2970
0644
edit
dl
rm
save_schedule_group_course.php
25367
0644
edit
dl
rm
schedulereportbygroup.php
17731
0644
edit
dl
rm
schedulereportbyteacher.php
19111
0644
edit
dl
rm
scheduleteacherbygroupreport - Copy.php
31986
0644
edit
dl
rm
scheduleteacherbygroupreport.php
36556
0644
edit
dl
rm
scheduleteacherreport.php
28150
0644
edit
dl
rm
schedule_report.php
17664
0644
edit
dl
rm
Schedule_Report_by_Group.php
3647
0644
edit
dl
rm
Schedule_Report_by_Teacher.php
92433
0644
edit
dl
rm
selectuser.php
1172
0644
edit
dl
rm
swapcourses.php
19469
0644
edit
dl
rm
teacher_preference.php
18182
0644
edit
dl
rm
teacher_preference_by_course.php
19244
0644
edit
dl
rm
teacher_unavailability.php
17835
0644
edit
dl
rm
test.php
13895
0644
edit
dl
rm
test1.php
21837
0644
edit
dl
rm
transfer_reference.php
27288
0644
edit
dl
rm
unassigncoursereport.php
16029
0644
edit
dl
rm
unassign_course.php
19011
0644
edit
dl
rm
Unassign_Course_Report.php
1697
0644
edit
dl
rm
unscheduledgroupreport.php
15675
0644
edit
dl
rm
Unscheduled_Group_Report.php
2007
0644
edit
dl
rm
updateclient.php
14765
0644
edit
dl
rm
updatecourse.php
21626
0644
edit
dl
rm
updatecoursesessionhours.php
18197
0644
edit
dl
rm
updatecoursetime.php
21831
0644
edit
dl
rm
updategroup - Copy.php
24534
0644
edit
dl
rm
updategroup.php
18001
0644
edit
dl
rm
updateholiday.php
22493
0644
edit
dl
rm
updateteacherlevel.php
24532
0644
edit
dl
rm
updateteacherunavailability.php
14184
0644
edit
dl
rm
UpdateUser.php
18214
0644
edit
dl
rm
Update_Course_Hours.php
2135
0644
edit
dl
rm
Update_Follow_Up.php
4618
0644
edit
dl
rm
update_reserve_course.php
1934
0644
edit
dl
rm
update_teacher_level
2508
0644
edit
dl
rm
update_teacher_level.php
2430
0644
edit
dl
rm
useraccesslist.php
12875
0644
edit
dl
rm
users.php
9049
0644
edit
dl
rm
view_swap_log.php
894
0644
edit
dl
rm
Edit:
/home/techb158/workloadmatch.com/workloadmatch.com/Manager/calendar - Copy.php
(23193B)
<?php include_once '../includes/db_connect.php'; include_once '../includes/functions.php'; include_once 'Inc/AddGroup.php'; include_once 'Inc/Update_Group.php'; // CSRF Protection require '../includes/CSRF_Protect.php'; $csrf = new CSRF_Protect(); sec_session_start(); $page = 'Manager | Course Management System | Calendar'; addinfo($page, $mysqli); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Course Management System | Calendar</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css"> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"> <!-- daterange picker --> <link rel="stylesheet" href="../plugins/daterangepicker/daterangepicker-bs3.css"> <!-- bootstrap datepicker --> <link rel="stylesheet" href="../plugins/datepicker/datepicker3.css"> <!-- iCheck for checkboxes and radio inputs --> <link rel="stylesheet" href="../plugins/iCheck/all.css"> <!-- Bootstrap Color Picker --> <link rel="stylesheet" href="../plugins/colorpicker/bootstrap-colorpicker.min.css"> <!-- Bootstrap time Picker --> <link rel="stylesheet" href="../plugins/timepicker/bootstrap-timepicker.min.css"> <!-- Select2 --> <link rel="stylesheet" href="../plugins/select2/select2.min.css"> <!-- Theme style --> <link rel="stylesheet" href="../dist/css/AdminLTE.min.css"> <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. --> <link rel="stylesheet" href="../dist/css/skins/skin-black-light.min.css"> <!-- fullCalendar --> <link rel="stylesheet" href="../bower_components/fullcalendar/dist/fullcalendar.min.css"> <link rel="stylesheet" href="../bower_components/fullcalendar/dist/fullcalendar.print.min.css" media="print"> <script> $(document).ready(function() { const calendar = new FullCalendar.Calendar(document.getElementById('calendar'), { initialView: 'dayGridMonth', headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay' }, events: 'fetch_events', // Backend script to fetch events editable: true, selectable: true, // Event details on click eventClick: function(info) { alert('Event: ' + info.event.title + '\nStart: ' + info.event.start + '\nEnd: ' + info.event.end); } // Add new event select: function(info) { const eventName = prompt('Enter Event Name:'); if (eventName) { $.ajax({ url: 'add_event.php', type: 'POST', data: { event_name: eventName, start_date: info.startStr, end_date: info.endStr }, success: function(response) { calendar.refetchEvents(); // Refresh events alert(response.message); }, error: function() { alert('Failed to add event.'); } }); } }, // Edit event eventClick: function(info) { const newEventName = prompt('Edit Event Name:', info.event.title); if (newEventName) { $.ajax({ url: 'edit_event.php', type: 'POST', data: { id: info.event.id, event_name: newEventName }, success: function(response) { calendar.refetchEvents(); alert(response.message); }, error: function() { alert('Failed to edit event.'); } }); } }, // Delete event eventDrop: function(info) { if (confirm('Are you sure you want to delete this event?')) { $.ajax({ url: 'delete_event.php', type: 'POST', data: { id: info.event.id }, success: function(response) { calendar.refetchEvents(); alert(response.message); }, error: function() { alert('Failed to delete event.'); } }); } } }); calendar.render(); }); </script> <!-- DataTables --> <link rel="stylesheet" href="../plugins/datatables/dataTables.bootstrap.css"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <script type="text/JavaScript" src="../js/_all-skins.js"></script> <script type="text/JavaScript" src="../js/_all-skins.min.js"></script> <style> .example-modal .modal { position: relative; top: auto; bottom: auto; right: auto; left: auto; display: block; z-index: 1; } .example-modal .modal { background: transparent !important; } </style> </head> <body class="hold-transition skin-black-light sidebar-mini"> <?php if (login_check($mysqli) == true) : ?> <?php if (!empty($error_msg)) { echo $error_msg; } include'main-header-inc.php'; ?> <div class="wrapper"> <?php include'main-header.php';?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <?php echo LANG_VALUE_260; ?> </h1> <ol class="breadcrumb"> <li><a href="index.php"><i class="fa fa-dashboard"></i> <?php echo LANG_VALUE_167; ?></a></li> <li class="active"> <?php echo LANG_VALUE_260; ?></li> </ol> </section> <!-- Content Wrapper. Contains page content --> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-3"> <div class="box box-solid"> <div class="box-header with-border"> <h4 class="box-title">Draggable Events</h4> </div> <div class="box-body"> <!-- the events --> <div id="external-events"> <div class="external-event bg-green">Lunch</div> <div class="external-event bg-yellow">Go home</div> <div class="external-event bg-aqua">Do homework</div> <div class="external-event bg-light-blue">Work on UI design</div> <div class="external-event bg-red">Sleep tight</div> <div class="checkbox"> <label for="drop-remove"> <input type="checkbox" id="drop-remove"> remove after drop </label> </div> </div> </div> <!-- /.box-body --> </div> <!-- /. box --> <div class="box box-solid"> <div class="box-header with-border"> <h3 class="box-title">Create Event</h3> </div> <div class="box-body"> <div class="btn-group" style="width: 100%; margin-bottom: 10px;"> <!--<button type="button" id="color-chooser-btn" class="btn btn-info btn-block dropdown-toggle" data-toggle="dropdown">Color <span class="caret"></span></button>--> <ul class="fc-color-picker" id="color-chooser"> <li><a class="text-aqua" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-blue" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-light-blue" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-teal" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-yellow" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-orange" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-green" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-lime" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-red" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-purple" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-fuchsia" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-muted" href="#"><i class="fa fa-square"></i></a></li> <li><a class="text-navy" href="#"><i class="fa fa-square"></i></a></li> </ul> </div> <!-- /btn-group --> <div class="input-group"> <input id="new-event" type="text" class="form-control" placeholder="Event Title"> <div class="input-group-btn"> <button id="add-new-event" type="button" class="btn btn-primary btn-flat">Add</button> </div> <!-- /btn-group --> </div> <!-- /input-group --> </div> </div> </div> <!-- /.col --> <div class="col-md-9"> <div class="box box-primary"> <div class="box-body no-padding"> <!-- THE CALENDAR --> <div id="calendar"></div> </div> <!-- /.box-body --> </div> <!-- /. box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <!-- /.content-wrapper --> </div> <!-- /.content-wrapper --> <footer class="main-footer"> <strong>Copyright © 2016 <a href="http://techbala.com">Bala Groupe Technologies Inc.</a>.</strong> All rights reserved. </footer> <!-- Modal --> <div class="modal fade alert" id="squarespaceModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">x</span><span class="sr-only"><?php echo LANG_VALUE_266; ?></span></button> <h3 class="modal-title" id="lineModalLabel"><?php echo LANG_VALUE_265; ?></h3> </div> <div class="modal-body"> <form class='sidebar' method="post" name="registration_form" onsubmit="return validateForm()" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>"> <?php $csrf->echoInputField(); ?> <div class="form-group"> <label for="Name"><?php echo LANG_VALUE_264; ?></label> <input type="hidden" class="form-control" id="g_id" name="g_id" data-name="user-email0" required="required" readonly="user-email0"> <input type="text" class="form-control" id="Group_Names" name="Group_Names" placeholder="<?php echo LANG_VALUE_264; ?>" data-name="user-email0" required="required" > </div> <div class="form-group"> <input type="submit" name="submits" value="<?php echo LANG_VALUE_5; ?>" class="btn btn-primary center-block"> </div> </form> </div> </div> </div> </div> <!-- jQuery 3 --> <script src="../bower_components/jquery/dist/jquery.min.js"></script> <!-- Bootstrap 3.3.7 --> <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <!-- jQuery UI 1.11.4 --> <script src="../bower_components/jquery-ui/jquery-ui.min.js"></script> <!-- Slimscroll --> <script src="../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> <!-- fullCalendar --> <script src="../bower_components/moment/moment.js"></script> <script src="../bower_components/fullcalendar/dist/fullcalendar.min.js"></script> <!-- Select2 --> <script src="../plugins/select2/select2.full.min.js"></script> <!-- InputMask --> <script src="../plugins/input-mask/jquery.inputmask.js"></script> <script src="../plugins/input-mask/jquery.inputmask.date.extensions.js"></script> <script src="../plugins/input-mask/jquery.inputmask.extensions.js"></script> <!-- date-range-picker --> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script> <script src="../plugins/daterangepicker/daterangepicker.js"></script> <!-- bootstrap datepicker --> <script src="../plugins/datepicker/bootstrap-datepicker.js"></script> <!-- bootstrap color picker --> <script src="../plugins/colorpicker/bootstrap-colorpicker.min.js"></script> <!-- bootstrap time picker --> <script src="../plugins/timepicker/bootstrap-timepicker.min.js"></script> <!-- SlimScroll 1.3.0 --> <script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script> <!-- iCheck 1.0.1 --> <script src="../plugins/iCheck/icheck.min.js"></script> <!-- FastClick --> <script src="../plugins/fastclick/fastclick.js"></script> <!-- AdminLTE App --> <script src="../dist/js/app.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="../dist/js/demo.js"></script> <!-- DataTables --> <script src="../plugins/datatables/jquery.dataTables.min.js"></script> <script src="../plugins/datatables/dataTables.bootstrap.min.js"></script> <!-- Page specific script --> <script> $(function () { /* initialize the external events -----------------------------------------------------------------*/ function init_events(ele) { ele.each(function () { // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end var eventObject = { title: $.trim($(this).text()) // use the element's text as the event title } // store the Event Object in the DOM element so we can get to it later $(this).data('eventObject', eventObject) // make the event draggable using jQuery UI $(this).draggable({ zIndex : 1070, revert : true, // will cause the event to go back to its revertDuration: 0 // original position after the drag }) }) } init_events($('#external-events div.external-event')) /* initialize the calendar -----------------------------------------------------------------*/ //Date for the calendar events (dummy data) var date = new Date() var d = date.getDate(), m = date.getMonth(), y = date.getFullYear() $('#calendar').fullCalendar({ header : { left : 'prev,next today', center: 'title', right : 'month,agendaWeek,agendaDay' }, buttonText: { today: 'today', month: 'month', week : 'week', day : 'day' }, //Random default events editable: true, selectable: true, events: 'fetch_events', /* events : [ { title : 'All Day Event', start : new Date(y, m, 1), backgroundColor: '#f56954', //red borderColor : '#f56954' //red }, { title : 'Long Event', start : new Date(y, m, d - 5), end : new Date(y, m, d - 2), backgroundColor: '#f39c12', //yellow borderColor : '#f39c12' //yellow }, { title : 'Meeting', start : new Date(y, m, d, 10, 30), allDay : false, backgroundColor: '#0073b7', //Blue borderColor : '#0073b7' //Blue }, { title : 'Lunch', start : new Date(y, m, d, 12, 0), end : new Date(y, m, d, 14, 0), allDay : false, backgroundColor: '#00c0ef', //Info (aqua) borderColor : '#00c0ef' //Info (aqua) }, { title : 'Birthday Party', start : new Date(y, m, d + 1, 19, 0), end : new Date(y, m, d + 1, 22, 30), allDay : false, backgroundColor: '#00a65a', //Success (green) borderColor : '#00a65a' //Success (green) }, { title : 'Click for Google', start : new Date(y, m, 28), end : new Date(y, m, 29), url : 'http://google.com/', backgroundColor: '#3c8dbc', //Primary (light-blue) borderColor : '#3c8dbc' //Primary (light-blue) } ], */ editable : true, droppable : true, // this allows things to be dropped onto the calendar !!! drop : function (date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject') // we need to copy it, so that multiple events don't have a reference to the same object var copiedEventObject = $.extend({}, originalEventObject) // assign it the date that was reported copiedEventObject.start = date copiedEventObject.allDay = allDay copiedEventObject.backgroundColor = $(this).css('background-color') copiedEventObject.borderColor = $(this).css('border-color') // render the event on the calendar // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/) $('#calendar').fullCalendar('renderEvent', copiedEventObject, true) // is the "remove after drop" checkbox checked? if ($('#drop-remove').is(':checked')) { // if so, remove the element from the "Draggable Events" list $(this).remove() } } }) /* ADDING EVENTS */ var currColor = '#3c8dbc'; // Default color (Red) // Color chooser button var colorChooser = $('#color-chooser-btn'); $('#color-chooser > li > a').click(function (e) { e.preventDefault(); // Save color currColor = $(this).css('color'); // Add color effect to button $('#add-new-event').css({ 'background-color': currColor, 'border-color': currColor }); }); $('#add-new-event').click(function (e) { e.preventDefault(); // Get value and make sure it is not null var val = $('#new-event').val(); if (val.length == 0) { return; } // Create event element var event = $('<div />'); event.css({ 'background-color': currColor, 'border-color': currColor, 'color': '#fff' }).addClass('external-event'); event.html(val); $('#external-events').prepend(event); // Add draggable functionality (assuming init_events function is defined elsewhere) init_events(event); // Remove event from text input $('#new-event').val(''); // Prepare data to send with Ajax var eventData = { event_name: val, color: currColor }; // Ajax request to send event data to the server $.ajax({ url: 'add_event', // Change this to your server-side URL type: 'POST', data: eventData, success: function(response) { // Handle success (optional) if(response.status === 'success') { console.log('Event added successfully'); } else { console.log('Failed to add event'); } }, error: function(xhr, status, error) { // Handle error console.log('Error: ' + error); } }); }); }) </script> <!-- page script --> <script> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false }); }); </script> <script> $(function () { //Initialize Select2 Elements $(".select2").select2(); //Datemask dd/mm/yyyy $("#datemask").inputmask("dd/mm/yyyy", {"placeholder": "dd/mm/yyyy"}); //Datemask2 mm/dd/yyyy $("#datemask2").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"}); //Money Euro $("[data-mask]").inputmask(); //Date range picker $('#reservation').daterangepicker(); //Date range picker with time picker $('#reservationtime').daterangepicker({timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A'}); //Date range as a button $('#daterange-btn').daterangepicker( { ranges: { 'Today': [moment(), moment()], 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] }, startDate: moment().subtract(29, 'days'), endDate: moment() }, function (start, end) { $('#daterange-btn span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); } ); //Date picker $('#datepicker').datepicker({ autoclose: true }); //iCheck for checkbox and radio inputs $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({ checkboxClass: 'icheckbox_minimal-blue', radioClass: 'iradio_minimal-blue' }); //Red color scheme for iCheck $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({ checkboxClass: 'icheckbox_minimal-red', radioClass: 'iradio_minimal-red' }); //Flat red color scheme for iCheck $('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({ checkboxClass: 'icheckbox_flat-green', radioClass: 'iradio_flat-green' }); //Colorpicker $(".my-colorpicker1").colorpicker(); //color picker with addon $(".my-colorpicker2").colorpicker(); //Timepicker $(".timepicker").timepicker({ showInputs: false }); }); </script> <?php else : ?> <?php include'../authorized.php';?> <?php endif; ?> </body> </html>
Save
cmd:
run