Advertisement
anticims19

kalender.php

Dec 28th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. <?php  
  2. header("Access-Control-Allow-Origin: *");
  3. include "../lib/koneksi.php";
  4. //include "../inc/function.php";
  5. //include "cek_token.php";
  6. include "../inc/Library.php";
  7. $Lib = new Library();
  8. $app = $Lib->showAplikasis();
  9. $setting = $app->fetch(PDO::FETCH_OBJ);
  10. $config = $Lib->lihatSetting();
  11. $web = $config->fetch(PDO::FETCH_OBJ);
  12. ?>
  13. <script>
  14.     $('#calendar').fullCalendar({
  15.             defaultDate: '2015-12-12',
  16.             editable: true,
  17.             eventLimit: true, // allow "more" link when too many events
  18.             events: [
  19.                 {
  20.                     title: 'All Day Event',
  21.                     start: '2015-12-01'
  22.                 },
  23.                 {
  24.                     title: 'Long Event',
  25.                     start: '2015-12-07',
  26.                     end: '2015-12-10'
  27.                 },
  28.                 {
  29.                     id: 999,
  30.                     title: 'Repeating Event',
  31.                     start: '2015-12-09T16:00:00'
  32.                 },
  33.                 {
  34.                     id: 999,
  35.                     title: 'Repeating Event',
  36.                     start: '2015-12-16T16:00:00'
  37.                 },
  38.                 {
  39.                     title: 'Conference',
  40.                     start: '2015-12-11',
  41.                     end: '2015-12-13'
  42.                 },
  43.                 {
  44.                     title: 'Meeting',
  45.                     start: '2015-12-12T10:30:00',
  46.                     end: '2015-12-12T12:30:00'
  47.                 },
  48.                 {
  49.                     title: 'Lunch',
  50.                     start: '2015-12-12T12:00:00'
  51.                 },
  52.                 {
  53.                     title: 'Meeting',
  54.                     start: '2015-12-12T14:30:00'
  55.                 },
  56.                 {
  57.                     title: 'Happy Hour',
  58.                     start: '2015-12-12T17:30:00'
  59.                 }
  60.             ]
  61.         });
  62.        
  63.    
  64. /*
  65.     $(document).ready(function() {
  66.    
  67.         $('#calendar').fullCalendar({
  68.             header: {
  69.                 left: 'prev,next today',
  70.                 center: 'title',
  71.                 right: 'month,agendaWeek,agendaDay'
  72.             },
  73.             defaultDate: '2015-12-12',
  74.             editable: true,
  75.             eventLimit: true, // allow "more" link when too many events
  76.            
  77.             events: {
  78.                 url: 'act_kalender',
  79.                 error: function() {
  80.                     $('#script-warning').show();
  81.                 }
  82.             },
  83.             /*
  84.             resources: {
  85.                 url: '<?php echo $web->url_web ?>/app/act_kalender',
  86.                 type: 'POST'
  87.             },
  88.             loading: function(bool) {
  89.                 $('#loading').toggle(bool);
  90.             }
  91.         });
  92.        
  93.     });
  94.     */
  95.  
  96. </script>
  97. <div id="marquee"><marquee behavior="scroll" direction="left"><?php echo $setting->run_text ?></marquee></div>
  98. <div id="main_container">
  99.     <div id="judul_isi">Cek Kalender</div>
  100.     <button onclick="buka_halaman('daftar')"> < Kembali</button>   
  101.     <div id='calendar'></div>
  102. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement