Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Access-Control-Allow-Origin: *");
- include "../lib/koneksi.php";
- //include "../inc/function.php";
- //include "cek_token.php";
- include "../inc/Library.php";
- $Lib = new Library();
- $app = $Lib->showAplikasis();
- $setting = $app->fetch(PDO::FETCH_OBJ);
- $config = $Lib->lihatSetting();
- $web = $config->fetch(PDO::FETCH_OBJ);
- ?>
- <script>
- $('#calendar').fullCalendar({
- defaultDate: '2015-12-12',
- editable: true,
- eventLimit: true, // allow "more" link when too many events
- events: [
- {
- title: 'All Day Event',
- start: '2015-12-01'
- },
- {
- title: 'Long Event',
- start: '2015-12-07',
- end: '2015-12-10'
- },
- {
- id: 999,
- title: 'Repeating Event',
- start: '2015-12-09T16:00:00'
- },
- {
- id: 999,
- title: 'Repeating Event',
- start: '2015-12-16T16:00:00'
- },
- {
- title: 'Conference',
- start: '2015-12-11',
- end: '2015-12-13'
- },
- {
- title: 'Meeting',
- start: '2015-12-12T10:30:00',
- end: '2015-12-12T12:30:00'
- },
- {
- title: 'Lunch',
- start: '2015-12-12T12:00:00'
- },
- {
- title: 'Meeting',
- start: '2015-12-12T14:30:00'
- },
- {
- title: 'Happy Hour',
- start: '2015-12-12T17:30:00'
- }
- ]
- });
- /*
- $(document).ready(function() {
- $('#calendar').fullCalendar({
- header: {
- left: 'prev,next today',
- center: 'title',
- right: 'month,agendaWeek,agendaDay'
- },
- defaultDate: '2015-12-12',
- editable: true,
- eventLimit: true, // allow "more" link when too many events
- events: {
- url: 'act_kalender',
- error: function() {
- $('#script-warning').show();
- }
- },
- /*
- resources: {
- url: '<?php echo $web->url_web ?>/app/act_kalender',
- type: 'POST'
- },
- loading: function(bool) {
- $('#loading').toggle(bool);
- }
- });
- });
- */
- </script>
- <div id="marquee"><marquee behavior="scroll" direction="left"><?php echo $setting->run_text ?></marquee></div>
- <div id="main_container">
- <div id="judul_isi">Cek Kalender</div>
- <button onclick="buka_halaman('daftar')"> < Kembali</button>
- <div id='calendar'></div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement