├── footer.php ├── .gitignore ├── images ├── LOGO.cdr ├── logo.jpg ├── spinner.gif ├── appengine.gif ├── copyright.gif ├── leftnav_btm.png ├── leftnav_top.png ├── skin │ ├── empty.png │ ├── house.png │ ├── shadow.jpg │ ├── action_edit.png │ ├── action_show.png │ ├── database_add.png │ ├── exclamation.png │ ├── information.png │ ├── sorted_asc.gif │ ├── sorted_desc.gif │ ├── action_destroy.png │ ├── database_edit.png │ ├── database_save.png │ ├── database_table.png │ ├── shadow_select.jpg │ └── database_delete.png └── leftnav_midstretch.png ├── const.php ├── logout.php ├── periode_delete.php ├── index.php ├── connect.php.sample ├── pembobotan_empty.php ├── view_data_admin.php ├── stylesheets ├── scaffold.css ├── print.css ├── ie.css ├── main.css └── screen.css ├── periode_add.php ├── login.php ├── view_pegawai.php ├── header.php ├── periode.php ├── laporan.php ├── anggaran_view.php ├── inventaris_view.php ├── carapengisian.php ├── absensi_view.php ├── program_kerja_view.php ├── inventaris.php ├── pegawai.php ├── pembobotan_view.php ├── absensi_pegawai.php ├── anggaran.php ├── formAHP.php ├── pembobotan_update.php ├── target_sasaran.php ├── sasaran_add.php ├── targetkerja.php ├── pembobotan_add.php ├── sipek.sql └── js └── mootools-core.js /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | connect.php 2 | *Thumbs.db 3 | -------------------------------------------------------------------------------- /images/LOGO.cdr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/LOGO.cdr -------------------------------------------------------------------------------- /images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/logo.jpg -------------------------------------------------------------------------------- /images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/spinner.gif -------------------------------------------------------------------------------- /images/appengine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/appengine.gif -------------------------------------------------------------------------------- /images/copyright.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/copyright.gif -------------------------------------------------------------------------------- /images/leftnav_btm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/leftnav_btm.png -------------------------------------------------------------------------------- /images/leftnav_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/leftnav_top.png -------------------------------------------------------------------------------- /images/skin/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/skin/empty.png -------------------------------------------------------------------------------- /images/skin/house.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/skin/house.png -------------------------------------------------------------------------------- /images/skin/shadow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATA/sipek/master/images/skin/shadow.jpg -------------------------------------------------------------------------------- /const.php: -------------------------------------------------------------------------------- 1 | prepare('DELETE FROM periode WHERE id = :id'); 5 | $sth->execute(array('id' => $_GET['periode_id'])); 6 | header('Location:periode.php'); 7 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 12 | -------------------------------------------------------------------------------- /pembobotan_empty.php: -------------------------------------------------------------------------------- 1 | prepare('DELETE FROM bobot WHERE periode_id = :periode_id'); 6 | $sth->execute(array('periode_id' => $_GET['periode_id'])); 7 | 8 | $sth = $db->prepare('DELETE FROM bobot_kriteria WHERE periode_id = :periode_id'); 9 | $sth->execute(array('periode_id' => $_GET['periode_id'])); 10 | 11 | $sth = $db->prepare('DELETE FROM kpi WHERE periode_id = :periode_id'); 12 | $sth->execute(array('periode_id' => $_GET['periode_id'])); 13 | 14 | $sth = $db->prepare('UPDATE periode SET terisi_bobot = 0 WHERE id =:periode_id'); 15 | $sth->execute(array('periode_id' => $_GET['periode_id'])); 16 | 17 | header('Location:periode.php'); 18 | -------------------------------------------------------------------------------- /view_data_admin.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 |   16 |
17 |

View Data

18 |   19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
Data Pegawai
Data Anggaran
Data Inventaris
Data Program Kerja
Data Kehadiran Pegawai
27 |
28 |
-------------------------------------------------------------------------------- /stylesheets/scaffold.css: -------------------------------------------------------------------------------- 1 | body { background-color: #fff; color: #333; } 2 | 3 | body, p, ol, ul, td { 4 | font-family: verdana, arial, helvetica, sans-serif; 5 | font-size: 13px; 6 | line-height: 18px; 7 | } 8 | 9 | pre { 10 | background-color: #eee; 11 | padding: 10px; 12 | font-size: 11px; 13 | } 14 | 15 | a { color: #000; } 16 | a:visited { color: #666; } 17 | a:hover { color: #fff; background-color:#000; } 18 | 19 | .fieldWithErrors { 20 | padding: 2px; 21 | background-color: red; 22 | display: table; 23 | } 24 | 25 | #errorExplanation { 26 | width: 400px; 27 | border: 2px solid red; 28 | padding: 7px; 29 | padding-bottom: 12px; 30 | margin-bottom: 20px; 31 | background-color: #f0f0f0; 32 | } 33 | 34 | #errorExplanation h2 { 35 | text-align: left; 36 | font-weight: bold; 37 | padding: 5px 5px 5px 15px; 38 | font-size: 12px; 39 | margin: -7px; 40 | background-color: #c00; 41 | color: #fff; 42 | } 43 | 44 | #errorExplanation p { 45 | color: #333; 46 | margin-bottom: 0; 47 | padding: 5px; 48 | } 49 | 50 | #errorExplanation ul li { 51 | font-size: 12px; 52 | list-style: square; 53 | } 54 | 55 | -------------------------------------------------------------------------------- /stylesheets/print.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* print.css */ 15 | body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} 16 | .container {background:none;} 17 | hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} 18 | hr.space {background:#fff;color:#fff;visibility:hidden;} 19 | h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} 20 | code {font:.9em "Courier New", Monaco, Courier, monospace;} 21 | a img {border:none;} 22 | p img.top {margin-top:0;} 23 | blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} 24 | .small {font-size:.9em;} 25 | .large {font-size:1.1em;} 26 | .quiet {color:#999;} 27 | .hide {display:none;} 28 | a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} 29 | a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} -------------------------------------------------------------------------------- /periode_add.php: -------------------------------------------------------------------------------- 1 | prepare("INSERT INTO periode( 14 | nama) 15 | values(?)"); 16 | $sth->execute(array($_POST['nama'])); 17 | $saved=true; 18 | } 19 | ?> 20 | 21 | 22 |
23 |

Tambah Periode

24 | 25 |
26 | Data Tersimpan! 27 |
28 | 29 |
30 |
31 | 32 | 33 | 34 | 35 | 38 | 42 | 43 | 44 |
36 | 37 | 39 | 40 | 41 |
45 |
46 |
47 | 48 |
49 |
50 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | prepare('SELECT * FROM user WHERE username = :username AND password = :password'); 5 | $sth->execute(array( 6 | 'username' => $_POST['username'], 7 | 'password' => md5($_POST['password']), 8 | )); 9 | $user = $sth->fetch(PDO::FETCH_ASSOC); 10 | if($user){ 11 | session_start(); 12 | $_SESSION['user'] = $user; 13 | header('Location: index.php'); 14 | } 15 | 16 | $wrong = true; 17 | 18 | } 19 | 20 | ?> 21 | 22 | 23 |
24 |

Login Page

25 | 26 |
27 | Login atau Password Salah! 28 |
29 | 30 |
31 |
32 |
33 | 34 | 35 | 36 | 39 | 42 | 43 | 44 | 47 | 50 | 51 | 52 |
37 | 38 | 40 |

41 |
45 | 46 | 48 |

49 |
53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 |
61 | 62 | -------------------------------------------------------------------------------- /view_pegawai.php: -------------------------------------------------------------------------------- 1 | prepare($query); 14 | $statement->execute(); 15 | $hasil = $statement->fetchAll(PDO::FETCH_ASSOC); 16 | ?> 17 | 18 | 19 |   20 |
21 |

Tabel Pegawai

22 |   23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
NoNIPNamaJabatanGolonganPendidikan FormalStatus
51 |
52 |   53 |
54 | Tambah Data 55 |
56 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | SIPEK DISKOMINFO 11 | 12 | 13 | 14 | 15 | 16 | 19 | 22 | 23 | 42 | -------------------------------------------------------------------------------- /stylesheets/ie.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* ie.css */ 15 | body {text-align:center;} 16 | .container {text-align:left;} 17 | * html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {display:inline;overflow-x:hidden;} 18 | * html legend {margin:0px -8px 16px 0;padding:0;} 19 | sup {vertical-align:text-top;} 20 | sub {vertical-align:text-bottom;} 21 | html>body p code {*white-space:normal;} 22 | hr {margin:-8px auto 11px;} 23 | img {-ms-interpolation-mode:bicubic;} 24 | .clearfix, .container {display:inline-block;} 25 | * html .clearfix, * html .container {height:1%;} 26 | fieldset {padding-top:0;} 27 | textarea {overflow:auto;} 28 | input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} 29 | input.text:focus, input.title:focus {border-color:#666;} 30 | input.text, input.title, textarea, select {margin:0.5em 0;} 31 | input.checkbox, input.radio {position:relative;top:.25em;} 32 | form.inline div, form.inline p {vertical-align:middle;} 33 | form.inline label {position:relative;top:-0.25em;} 34 | form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} 35 | button, input.button {position:relative;top:0.25em;} -------------------------------------------------------------------------------- /periode.php: -------------------------------------------------------------------------------- 1 | prepare($query); 15 | $statement->execute(); 16 | $listPeriode = $statement->fetchAll(PDO::FETCH_ASSOC); 17 | ?> 18 | 19 | 20 |
21 |

Tabel Periode Kerja

22 |
23 | 24 |   25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 46 | 47 | 48 | 49 |
NoNamaAction
38 | 39 | lihat laporan kinerja 40 | 41 | Isi pembobot 42 | 43 | 44 | 45 |
50 |
51 |   52 |
53 | Tambah Periode 54 |
55 |
56 | -------------------------------------------------------------------------------- /laporan.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 14 | $sth->execute(); 15 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 16 | ?> 17 | 18 | 19 | 20 | 21 |   22 |
23 |

Tabel Program Kerja

24 |   25 | 26 |   27 |
28 | 29 | 30 | 33 | 40 | 43 | 44 |
31 | 32 | 34 | 39 | 41 | 42 |
45 |
46 |   47 | 48 |   49 |
50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
NoPerspektifSasaran StrategisBobotHasil
FinansialAnggaran Masuk0.451Rp.1.000.000.000
FinansialEfektivitas Anggaran0.37498%
79 |
80 |   81 | 82 | 83 | -------------------------------------------------------------------------------- /anggaran_view.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 9 | $sth->execute(); 10 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 11 | 12 | if($_SESSION['user']['is_admin'] == '0'){ 13 | header('Location:login.php'); 14 | } 15 | 16 | if(isset($_GET['submit'])) { 17 | $sth = $db->prepare("select * from anggaran where periode_id = ?"); 18 | $sth->execute(array($_GET['periode_id'])); 19 | } else { 20 | $sth = $db->prepare("select * from anggaran"); 21 | $sth->execute(); 22 | } 23 | $hasil = $sth->fetchAll(PDO::FETCH_ASSOC); 24 | ?> 25 | 26 | 27 |   28 |
29 |

Tabel Anggaran

30 |   31 |
32 | 33 | 34 | 37 | 44 | 47 | 48 |
35 | 36 | 38 | 43 | 45 | 46 |
49 | 50 |
51 |   52 |
53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
NoSumberJumlahTanggal Terima
74 |
75 |   76 |
77 | Tambah Data 78 |
79 | -------------------------------------------------------------------------------- /inventaris_view.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 9 | $sth->execute(); 10 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 11 | 12 | if($_SESSION['user']['is_admin'] == '0'){ 13 | header('Location:login.php'); 14 | } 15 | 16 | if(isset($_GET['submit'])) { 17 | $sth = $db->prepare("select * from inventaris where periode_id = ?"); 18 | $sth->execute(array($_GET['periode_id'])); 19 | } else { 20 | $sth = $db->prepare("select * from inventaris"); 21 | $sth->execute(); 22 | } 23 | $hasil = $sth->fetchAll(PDO::FETCH_ASSOC); 24 | ?> 25 | 26 | 27 |   28 |
29 |

Tabel Inventaris

30 |   31 |   32 |
33 | 34 | 35 | 38 | 45 | 48 | 49 |
36 | 37 | 39 | 44 | 46 | 47 |
50 |
51 |   52 | 53 |
54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
NoJenisJumlahKondisi
74 |
75 |   76 |
77 | Tambah Data 78 |
79 | -------------------------------------------------------------------------------- /carapengisian.php: -------------------------------------------------------------------------------- 1 |

Cara Pengisian Form Pembobotan dengan AHP

2 | 3 | Perhatikan form pembobotan yang berisi dengan: 4 | 5 |
    6 |
  • Konteks Pembobotan yang tercantum di atasnya
  • 7 |
  • Judul-judul pada kolom dari formulir pembobotan, yaitu:
  • 8 |
      9 |
    1. Kolom faktor/elemen yang akan dibandingkan (judul kolom di bagian paling kiri dan kanan)
    2. 10 |
    3. Kolom penilaian dari 1-9
    4. 11 |
    12 |
  • Pembobotan dilakukan dengan membandingkan faktor/elemen di sebelah kiri dengan di sebelah kanan
  • 13 |
  • Pembobotan dilakukan dengan memilih salah satu dari angka/nilai yang telah disediakan di setiap barisnya.
  • 14 |
  • Nilai harus sesuai dengan arti penilaian sebagai berikut
  • 15 |
    16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
    Nilai SkalaKeterangan
    1Kedua elemen sama penting
    3Elemen yang satu sedikit lebih penting
    5Elemen yang satu lebih penting
    7Elemen yang satu jelas lebih penting
    9Elemen yang satu mutlak lebih penting
    2,4,6,8Nilai antara dua nilai pertimbangan yang berdekatan
    46 |
    47 |
  • Usahakan jawaban terhadap penilaian pasangan faktor/elemen konsisten, misalnya jika X lebih penting dari Y, 48 | dan Y lebih penting dari Z, maka X lebih penting dari Z. Jika tidak, maka jawaban tersebut menjadi tidak konsisten.
  • 49 |
  • Perhatikan contoh pengisian form berikut ini.
  • 50 |
    51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
    Finansial9876543210123456789Pelanggan
    60 |
    61 | Misalkan yang berwarna abu-abu adalah nilai yang dipilih, maka tingkat kepentingan antara Finansial dengan Pelanggan adalah sama pentingnya. 62 |

    63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
    Finansial9876543210123456789Pelanggan
    72 |
    73 | Sedangkan ini berarti tingkat kepentingan Finansial adalah sedikit lebih penting daripada Pelanggan dengan bobot 3. -------------------------------------------------------------------------------- /absensi_view.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 9 | $sth->execute(); 10 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 11 | 12 | if($_SESSION['user']['is_admin'] == '0'){ 13 | header('Location:login.php'); 14 | } 15 | 16 | if(isset($_GET['submit'])) { 17 | $sth = $db->prepare("select * from presensi where periode_id = ?"); 18 | $sth->execute(array($_GET['periode_id'])); 19 | } else { 20 | $sth = $db->prepare("select * from presensi"); 21 | $sth->execute(); 22 | } 23 | $hasil = $sth->fetchAll(PDO::FETCH_ASSOC); 24 | ?> 25 | 26 | 27 |   28 |
    29 |

    Tabel Kehadiran Pegawai

    30 |   31 |
    32 | 33 | 34 | 37 | 44 | 47 | 48 |
    35 | 36 | 38 | 43 | 45 | 46 |
    49 |
    50 |   51 |
    52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 |
    NoNIPJumlah HadirJumlah SakitJumlah IzinJumlah Tanpa Keterangan
    77 |
    78 |   79 |
    80 | Tambah Data 81 |
    82 | -------------------------------------------------------------------------------- /program_kerja_view.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 13 | $sth->execute(); 14 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | if(isset($_GET['submit'])) { 17 | $sth = $db->prepare("select * from program_kerja where periode_id = ?"); 18 | $sth->execute(array($_GET['periode_id'])); 19 | } else { 20 | $sth = $db->prepare("select pk.*, jp.nama jp_nama from program_kerja pk left join jenis_pelayanan jp on pk.jenis_pelayanan_id = jp.id"); 21 | $sth->execute(); 22 | } 23 | $hasil = $sth->fetchAll(PDO::FETCH_ASSOC); 24 | 25 | ?> 26 | 27 | 28 |   29 |
    30 |

    Tabel Program Kerja

    31 |   32 | 33 |   34 |
    35 | 36 | 37 | 40 | 47 | 50 | 51 |
    38 | 39 | 41 | 46 | 48 | 49 |
    52 |
    53 |   54 |
    55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 |
    NoNamaJenis PelayananTarget AnggaranRiil AnggaranTanggal MulaiTarget Tanggal SelesaiRiil Tanggal Selesai
    84 |
    85 |   86 |
    87 | Tambah Data 88 |
    89 | -------------------------------------------------------------------------------- /inventaris.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 13 | $sth->execute(); 14 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | if(isset($_POST['submit'])) { 17 | $sth = $db->prepare("INSERT INTO inventaris( 18 | jenis, 19 | jumlah, 20 | kondisi, 21 | periode_id) 22 | values(?, ?, ?, ?)"); 23 | $sth->execute(array($_POST['jenis'],$_POST['jumlah'],$_POST['kondisi'],$_POST['periode_id'])); 24 | $saved=true; 25 | } 26 | 27 | ?> 28 | 29 | 30 |
    31 |

    Data Inventaris

    32 | 33 |
    34 | Data Tersimpan! 35 |
    36 | 37 |   38 |
    39 |
    40 | 41 | 42 | 43 | 44 | 47 | 51 | 52 | 53 | 56 | 60 | 61 | 62 | 65 | 72 | 73 | 74 | 77 | 84 | 85 | 86 |
    45 | 46 | 48 | 49 | 50 |
    54 | 55 | 57 | 58 | 59 |
    63 | 64 | 66 | 71 |
    75 | 76 | 78 | 83 |
    87 |
    88 |
    89 | 90 |
    91 |
    92 | -------------------------------------------------------------------------------- /pegawai.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 9 | $sth->execute(); 10 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 11 | 12 | if($_SESSION['user']['is_admin'] == '0'){ 13 | header('Location:login.php'); 14 | } 15 | 16 | 17 | if(isset($_POST['submit'])) { 18 | $sth = $db->prepare("INSERT INTO pegawai( 19 | nama, 20 | nip, 21 | jabatan, 22 | golongan, 23 | pend_formal, 24 | status) 25 | values(?, ?, ?, ?, ?, ?)"); 26 | $sth->execute(array($_POST['nama'],$_POST['nip'],$_POST['jabatan'],$_POST['golongan'],$_POST['pend_formal'],$_POST['status'])); 27 | $saved=true; 28 | } 29 | ?> 30 | 31 | 32 |
    33 |

    Data Pegawai

    34 | 35 |
    36 | Data Tersimpan! 37 |
    38 | 39 |   40 |
    41 |
    42 | 43 | 44 | 45 | 46 | 49 | 53 | 54 | 55 | 58 | 62 | 63 | 64 | 67 | 70 | 71 | 72 | 75 | 88 | 89 | 90 | 93 | 96 | 97 | 100 | 106 | 107 | 108 |
    47 | 48 | 50 | 51 | 52 |
    56 | 57 | 59 | 60 | 61 |
    65 | 66 | 68 | 69 |
    73 | 74 | 76 | 87 |
    91 | 92 | 94 | 95 |
    98 | 99 | 101 | 105 |
    109 |
    110 |
    111 | 112 | 113 | 114 |
    115 |
    116 |
    117 | -------------------------------------------------------------------------------- /pembobotan_view.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 19 | $sthPresent->execute(array($_GET['periode_id'],$_GET['periode_id'])); 20 | $listKriteria = $sthPresent->fetchAll (PDO::FETCH_ASSOC); 21 | 22 | $sthPeriode = $db->prepare('SELECT id FROM periode WHERE id < ? ORDER BY id DESC'); 23 | $sthPeriode->execute(array($_GET['periode_id'])); 24 | $periodeBeforeId = $sthPeriode->fetchColumn(); 25 | 26 | $sthBefore = $db->prepare($sql); 27 | $sthBefore->execute(array($periodeBeforeId, $periodeBeforeId)); 28 | $listKriteriaBefore = $sthBefore->fetchAll(PDO::FETCH_ASSOC); 29 | 30 | $sth = $db->prepare("SELECT * FROM periode"); 31 | $sth->execute(); 32 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 33 | ?> 34 | 35 |
    36 | 37 |
    38 | 39 | 40 | 43 | 50 | 53 | 54 |
    41 | 42 | 44 | 49 | 51 | 52 |
    55 |
    56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | $kriteria):?> 71 | 72 | 73 | 74 | 75 | 76 | 85 | 96 | 97 | 98 | 99 |
    No.PerpektifSasaran StrategisBobotHasilKeterangan
    77 | 78 | Rp. 79 | 80 | 81 | 82 | % 83 | 84 | 86 | 87 | $listKriteriaBefore[$i]['hasil']):?> 88 | Naik dari periode sebelumnya 89 | 90 | Sama dari periode sebelumnya 91 | 92 | Turun dari periode sebelumnya 93 | 94 | 95 |
    100 |
    101 | 108 | 109 | -------------------------------------------------------------------------------- /absensi_pegawai.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 15 | $sth->execute(); 16 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 17 | 18 | if(isset($_POST['submit'])) { 19 | // $sth = $db->prepare("SELECT * FROM pegawai where nip = ?"); 20 | // $sth->execute(array($_POST['nip'])); 21 | // $pegawai = $sth->fetch(PDO::FETCH_ASSOC); 22 | $sth = $db->prepare("INSERT INTO presensi( 23 | nip, 24 | jumlah_hadir, 25 | jumlah_sakit, 26 | jumlah_izin, 27 | jumlah_tanpa_keterangan, 28 | periode_id) 29 | values(?, ?, ?, ?, ?, ?)"); 30 | $sth->execute(array($_POST['nip'],$_POST['jumlah_hadir'],$_POST['jumlah_sakit'],$_POST['jumlah_izin'],$_POST['jumlah_tanpa_keterangan'],$_POST['periode_id'])); 31 | $saved=true; 32 | } 33 | 34 | ?> 35 | 36 | 37 |
    38 |

    Data Absensi Pegawai

    39 | 40 |
    41 | Data Tersimpan! 42 |
    43 | 44 |   45 |
    46 |
    47 | 48 | 49 | 50 | 51 | 54 | 57 | 58 | 59 | 62 | 65 | 66 | 67 | 70 | 73 | 74 | 75 | 78 | 81 | 82 | 83 | 86 | 89 | 90 | 91 | 94 | 101 | 102 | 103 |
    52 | 53 | 55 | 56 |
    60 | 61 | 63 | 64 |
    68 | 69 | 71 | 72 |
    76 | 77 | 79 | 80 |
    84 | 85 | 87 | 88 |
    92 | 93 | 95 | 100 |
    104 |
    105 |
    106 | 107 |
    108 |
    109 | -------------------------------------------------------------------------------- /anggaran.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 9 | $sth->execute(); 10 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 11 | 12 | $date = date('Y-m-d'); 13 | 14 | 15 | 16 | $nama_bulan = array("Januari", "Februari", "Maret", "April", "Mei", "Juni", 17 | "Juli", "Agustus", "September", "Oktober", "November", "Desember"); 18 | 19 | 20 | if($_SESSION['user']['is_admin'] == '0'){ 21 | header('Location:login.php'); 22 | } 23 | 24 | if(isset($_POST['submit'])) { 25 | $date = "{$_POST['tahun']}-{$_POST['bulan']}-{$_POST['hari']}"; 26 | $sth = $db->prepare("INSERT INTO anggaran( 27 | sumber, 28 | jumlah, 29 | tanggal_terima, 30 | periode_id) 31 | values(?, ?, ?, ?)"); 32 | $sth->execute(array($_POST['sumber'],$_POST['jumlah'],$date,$_POST['periode_id'])); 33 | $saved=true; 34 | } 35 | 36 | ?> 37 | 38 | 39 |
    40 |

    Data Anggaran

    41 | 42 |
    43 | Data Tersimpan! 44 |
    45 | 46 |   47 |
    48 |
    49 | 50 | 51 | 52 | 53 | 56 | 60 | 61 | 62 | 65 | 69 | 70 | 71 | 74 | 102 | 103 | 104 | 105 | 108 | 115 | 116 | 117 |
    54 | 55 | 57 | 58 | 59 |
    63 | 64 | 66 | 67 | 68 |
    72 | 73 | 75 | 83 | 84 | 92 | 93 | 101 |
    106 | 107 | 109 | 114 |
    118 |
    119 |
    120 | 121 |
    122 |
    123 | -------------------------------------------------------------------------------- /formAHP.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 13 | $sth->execute(); 14 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | $sth = $db->prepare("SELECT * FROM kriteria WHERE parent_id is NULL"); 17 | $sth->execute(); 18 | $listKriteria = $sth->fetchAll (PDO::FETCH_ASSOC); 19 | 20 | 21 | 22 | ?> 23 | 24 | 25 |
    26 |

    Pembobotan Kriteria Balance Scorecard

    27 | 28 |
    29 | Data Tersimpan! 30 |
    31 | 32 |   33 | 34 | 35 | 38 | 45 | 46 |
    36 | 37 | 39 | 44 |
    47 |   48 |

    49 | 50 |
    51 |
    52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 84 | 85 | 86 | 87 |
    Perspektif
    64 | 83 |
    88 | 89 |
    90 | 91 | prepare("SELECT * FROM kriteria WHERE parent_id = :id"); 93 | $sth->execute(array('id' => $parent['id'])); 94 | $listChild = $sth->fetchAll(PDO::FETCH_ASSOC); 95 | ?> 96 | 97 | 0):?> 98 | 99 |
    100 |

    Pembobotan Kriteria Perspektif

    101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 133 | 134 | 135 | 136 |
    Perspektif
    113 | 132 |
    137 | 138 |
    139 | 140 | 141 | 142 |
    143 | 144 |
    145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /pembobotan_update.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM kriteria WHERE parent_id is NULL ORDER BY id"); 13 | $sth->execute(); 14 | $listKriteria = $sth->fetchAll (PDO::FETCH_ASSOC); 15 | 16 | $sth = $db->prepare("SELECT * FROM bobot WHERE periode_id = ? ORDER BY kriteria_id, kriteria_pembanding_id"); 17 | $sth->execute(array($_GET['periode_id'])); 18 | $listBobot = $sth->fetchAll (PDO::FETCH_ASSOC); 19 | 20 | if(isset($_POST['submit'])) { 21 | $db->beginTransaction(); 22 | $sth = $db->prepare("INSERT INTO periode(nama) VALUES(?)"); 23 | $sth->execute(array($_POST['nama_periode'])); 24 | $periodeId = $db->lastInsertId(); 25 | foreach($_POST['bobot'] as $kriteria_id => $kriteria){ 26 | foreach($kriteria as $pembanding_id => $nilai){ 27 | $sth = $db->prepare("INSERT INTO bobot( 28 | periode_id, kriteria_id, kriteria_pembanding_id, nilai) 29 | values(?, ?, ?, ?)"); 30 | $sth->execute(array($periodeId, $kriteria_id, $pembanding_id, $nilai)); 31 | } 32 | } 33 | $saved=true; 34 | $db->commit(); 35 | } 36 | ?> 37 | 38 | 39 |
    40 |

    Pembobotan Kriteria Balance Scorecard

    41 | 42 |
    43 | Data Tersimpan! 44 |
    45 | 46 |   47 |
    48 | 49 | 50 | 53 | 56 | 57 |
    51 | 52 | 54 | 55 |
    58 |
    59 |
    60 |
    61 | 62 | 63 | 64 | 65 | 66 | s 67 | 68 | 69 | 70 | 71 | 72 | 93 | 94 | 95 | 96 |
    Perspektif
    73 | 92 |
    97 |
    98 | 99 | prepare("SELECT * FROM kriteria WHERE parent_id = :id"); 101 | $sth->execute(array('id' => $parent['id'])); 102 | $listChild = $sth->fetchAll(PDO::FETCH_ASSOC); 103 | ?> 104 | 105 | 0):?> 106 | 107 |
    108 |

    Pembobotan Kriteria Perspektif

    109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 141 | 142 | 143 | 144 |
    Perspektif
    121 | 140 |
    145 |
    146 | 147 | 148 |
    149 | 150 |
    151 |
    152 |
    153 |
    154 | 155 | -------------------------------------------------------------------------------- /stylesheets/main.css: -------------------------------------------------------------------------------- 1 | html * { 2 | margin: 0; 3 | /*padding: 0; SELECT NOT DISPLAYED CORRECTLY IN FIREFOX */ 4 | } 5 | 6 | /* GENERAL */ 7 | 8 | .spinner { 9 | padding: 5px; 10 | position: absolute; 11 | right: 0; 12 | } 13 | 14 | body { 15 | background: #fff; 16 | color: #333; 17 | font: 14px verdana, arial, helvetica, sans-serif; 18 | } 19 | #grailsLogo { 20 | padding:20px; 21 | float: center; 22 | align: center; 23 | } 24 | 25 | a:link, a:visited, a:hover { 26 | color: #666; 27 | font-weight: bold; 28 | text-decoration: none; 29 | } 30 | 31 | h1 { 32 | color: #48802c; 33 | font-weight: normal; 34 | font-size: 16px; 35 | margin: .8em 0 .3em 0; 36 | } 37 | 38 | ul { 39 | padding-left: 15px; 40 | } 41 | 42 | input, select, textarea { 43 | background-color: #fcfcfc; 44 | border: 1px solid #ccc; 45 | font: 14px verdana, arial, helvetica, sans-serif; 46 | margin: 2px 0; 47 | padding: 2px 4px; 48 | 49 | } 50 | select { 51 | padding: 2px 2px 2px 0; 52 | } 53 | textarea { 54 | width: 250px; 55 | height: 250px; 56 | vertical-align: top; 57 | align: left; 58 | } 59 | 60 | input:focus, select:focus, textarea:focus { 61 | border: 1px solid #b2d1ff; 62 | } 63 | 64 | .body { 65 | float: center; 66 | margin: 0 15px 10px 15px; 67 | } 68 | 69 | /* NAVIGATION MENU */ 70 | 71 | .nav { 72 | background: #fff url(../images/skin/shadow.jpg) bottom repeat-x; 73 | border: 1px solid #ccc; 74 | border-style: solid none solid none; 75 | margin-top: 5px; 76 | padding: 7px 12px; 77 | } 78 | 79 | .menuButton { 80 | font-size: 14px; 81 | padding: 0 5px; 82 | } 83 | .menuButton a { 84 | color: #333; 85 | padding: 4px 6px; 86 | } 87 | .menuButton a.home { 88 | background: url(../images/skin/house.png) center left no-repeat; 89 | color: #333; 90 | padding-left: 25px; 91 | } 92 | .menuButton a.list { 93 | background: url(../images/skin/database_table.png) center left no-repeat; 94 | color: #333; 95 | padding-left: 25px; 96 | } 97 | .menuButton a.create { 98 | background: url(../images/skin/database_add.png) center left no-repeat; 99 | color: #333; 100 | padding-left: 25px; 101 | } 102 | 103 | /* MESSAGES AND ERRORS */ 104 | 105 | .message { 106 | background: #f3f8fc url(../images/skin/information.png) 8px 50% no-repeat; 107 | border: 1px solid #b2d1ff; 108 | color: #006dba; 109 | margin: 10px 0 5px 0; 110 | padding: 5px 5px 5px 30px; 111 | width: 30%; 112 | } 113 | 114 | div.errors { 115 | background: #fff3f3; 116 | border: 1px solid red; 117 | color: #cc0000; 118 | margin: 10px 0 5px 0; 119 | padding: 5px 0 5px 0; 120 | } 121 | div.errors ul { 122 | list-style: none; 123 | padding: 0; 124 | } 125 | div.errors li { 126 | background: url(../images/skin/exclamation.png) 8px 0% no-repeat; 127 | line-height: 16px; 128 | padding-left: 30px; 129 | } 130 | 131 | td.errors select { 132 | border: 1px solid red; 133 | } 134 | td.errors input { 135 | border: 1px solid red; 136 | } 137 | 138 | /* TABLES */ 139 | 140 | table { 141 | border: 1px solid #ccc; 142 | 143 | 144 | } 145 | tr { 146 | border: 0; 147 | } 148 | td, th { 149 | font: 14px verdana, arial, helvetica, sans-serif; 150 | line-height: 12px; 151 | padding: 5px 6px; 152 | text-align: left; 153 | vertical-align: left; 154 | } 155 | th { 156 | background: #fff url(../images/skin/shadow.jpg); 157 | color: #666; 158 | font-size: 14px; 159 | font-weight: bold; 160 | line-height: 17px; 161 | padding: 2px 6px; 162 | } 163 | th a:link, th a:visited, th a:hover { 164 | color: #333; 165 | display: block; 166 | font-size: 12px; 167 | text-decoration: none; 168 | width: 1000%; 169 | } 170 | th.asc a, th.desc a { 171 | background-position: left; 172 | background-repeat: no-repeat; 173 | } 174 | th.asc a { 175 | background-image: url(../images/skin/sorted_asc.gif); 176 | } 177 | th.desc a { 178 | background-image: url(../images/skin/sorted_desc.gif); 179 | } 180 | 181 | .odd { 182 | background: #f7f7f7; 183 | } 184 | .even { 185 | background: #fff; 186 | } 187 | 188 | /* LIST */ 189 | 190 | .list table { 191 | border-collapse: collapse; 192 | } 193 | .list th, .list td { 194 | border-left: 1px solid #ddd; 195 | } 196 | .list th:hover, .list tr:hover { 197 | background: #b2d1ff; 198 | } 199 | 200 | /* PAGINATION */ 201 | 202 | .paginateButtons { 203 | background: #fff url(../images/skin/shadow.jpg) bottom repeat-x; 204 | border: 1px solid #ccc; 205 | border-top: 0; 206 | color: #666; 207 | font-size: 14px; 208 | overflow: hidden; 209 | padding: 10px 3px; 210 | } 211 | .paginateButtons a { 212 | background: #fff; 213 | border: 1px solid #ccc; 214 | border-color: #ccc #aaa #aaa #ccc; 215 | color: #666; 216 | margin: 0 3px; 217 | padding: 2px 6px; 218 | } 219 | .paginateButtons span { 220 | padding: 2px 3px; 221 | } 222 | 223 | /* DIALOG */ 224 | 225 | .dialog table { 226 | padding: 3px 0; 227 | } 228 | 229 | .prop { 230 | padding: 30px; 231 | } 232 | .prop .name { 233 | text-align: left; 234 | width: 30%; 235 | white-space: nowrap; 236 | } 237 | .prop .value { 238 | text-align: left; 239 | white-space: nowrap; 240 | width: 100%; 241 | } 242 | 243 | /* ACTION BUTTONS */ 244 | 245 | .buttons { 246 | background: #fff url(../images/skin/shadow.jpg) bottom repeat-x; 247 | border: 1px solid #ccc; 248 | color: #666; 249 | font-size: 14px; 250 | margin-top: 5px; 251 | overflow: hidden; 252 | width: 10%; 253 | padding: 0; 254 | } 255 | 256 | .buttons input { 257 | background: #fff; 258 | border: 0; 259 | color: #333; 260 | cursor: pointer; 261 | font-size: 14px; 262 | font-weight: bold; 263 | margin-left: 3px; 264 | overflow: visible; 265 | padding: 2px 6px; 266 | } 267 | .buttons input.delete { 268 | background: transparent url(../images/skin/database_delete.png) 5px 50% no-repeat; 269 | padding-left: 28px; 270 | } 271 | .buttons input.edit { 272 | background: transparent url(../images/skin/database_edit.png) 5px 50% no-repeat; 273 | padding-left: 28px; 274 | } 275 | .buttons input.save { 276 | background: transparent url(../images/skin/database_save.png) 5px 30% no-repeat; 277 | padding-left: 28px; 278 | } 279 | 280 | tr.newtamu td{ 281 | background-color: #C0C0C0; 282 | color: #0000FF; 283 | } -------------------------------------------------------------------------------- /target_sasaran.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 13 | $sth->execute(); 14 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | /*if(isset($_POST['submit'])) { 17 | $sth = $db->prepare("INSERT INTO presensi( 18 | pegawai_id, 19 | jumlah_hadir, 20 | jumlah_sakit, 21 | jumlah_izin, 22 | jumlah_tanpa_keterangan, 23 | periode_id) 24 | values(?, ?, ?, ?, ?, ?)"); 25 | $sth->execute(array($_POST['pegawai_id'],$_POST['jumlah_hadir'],$_POST['jumlah_sakit'],$_POST['jumlah_izin'],$_POST['jumlah_tanpa_keterangan'],$_POST['periode_id'])); 26 | $saved=true; 27 | } 28 | */ 29 | ?> 30 | 31 | 32 |
    33 |

    Data Target Sasaran Strategis

    34 | 35 |
    36 | Data Tersimpan! 37 |
    38 | 39 |   40 | 41 |
    42 | 43 |
    44 | 45 | 46 | 47 | 50 | 57 | 58 | 59 |
    48 | 49 | 51 | 56 |
    60 |   61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 |

    Perspektif Finansial

    No.Sasaran StrategisFormulasiInput
    1.Anggaran MasukJumlah Uang masukRp.
    81 |
    2.Penggunaan AnggaranCash outRp.
    Cash inRp.
    3.Efektivitas AnggaranTarget Penggunaan AnggaranRp.
    106 | 107 |

    108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 |

    Perspektif Pelanggan

    No.Sasaran StrategisFormulasiInput
    1.Kepuasan Pelayanan PublikJumlah Keluhan Terlayani
    127 |

    128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 |

    Perspektif Bisnis Internal

    No.Sasaran StrategisFormulasiInput
    1.Kepuasan Kerja PegawaiJumlah Pegawai Kehadiran Penuhx 100%
    Total Jumlah pegawai
    153 |
    2.Peningkatan Kualitas PegawaiJumlah Kerja Terselesaikanx 100%
    Target Kerja
    3.Kualitas Sarana PrasaranaJumlah S/P Layak Pakaix 100%
    Total Jumlah S/P
    184 |

    185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 |

    Perspektif Pembelajaran dan Pertumbuhan

    No.Sasaran StrategisFormulasiInput
    1.Kualitas SDMJumlah Penugasan Keluar
    206 |
    2.Efektivitas KomunikasiJumlah Pertemuan Rapatx 100%
    Jumlah Target Pertemuan Rapat
    224 | 225 |

    226 |
    227 | 228 |
    229 | 230 | 231 | 232 | -------------------------------------------------------------------------------- /sasaran_add.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 13 | $sth->execute(); 14 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 15 | 16 | /*if(isset($_POST['submit'])) { 17 | $sth = $db->prepare("INSERT INTO presensi( 18 | pegawai_id, 19 | jumlah_hadir, 20 | jumlah_sakit, 21 | jumlah_izin, 22 | jumlah_tanpa_keterangan, 23 | periode_id) 24 | values(?, ?, ?, ?, ?, ?)"); 25 | $sth->execute(array($_POST['pegawai_id'],$_POST['jumlah_hadir'],$_POST['jumlah_sakit'],$_POST['jumlah_izin'],$_POST['jumlah_tanpa_keterangan'],$_POST['periode_id'])); 26 | $saved=true; 27 | } 28 | */ 29 | ?> 30 | 31 | 32 |
    33 |

    Data Target Sasaran Strategis

    34 | 35 |
    36 | Data Tersimpan! 37 |
    38 | 39 |   40 | 41 |
    42 | 43 |
    44 | 45 | 46 | 47 | 50 | 57 | 58 | 59 |
    48 | 49 | 51 | 56 |
    60 |   61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |

    Perspektif Finansial

    No.Sasaran StrategisFormulasiInput
    1.Anggaran MasukJumlah Uang masukRp.
    81 |
    2.Penggunaan AnggaranCash outRp.x 100%
    Cash inRp.
    3.Efektivitas AnggaranPenggunaan AnggaranRp.x 100%
    Target Penggunaan AnggaranRp.
    112 | 113 |

    114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 |

    Perspektif Pelanggan

    No.Sasaran StrategisFormulasiInput
    1.Kepuasan Pelayanan PublikJumlah Keluhan Terlayanix 100%
    Total Jumlah Keluhan
    138 |

    139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 |

    Perspektif Bisnis Internal

    No.Sasaran StrategisFormulasiInput
    1.Kepuasan Kerja PegawaiJumlah Pegawai Kehadiran Penuhx 100%
    Total Jumlah pegawai
    164 |
    2.Peningkatan Kualitas PegawaiJumlah Kerja Terselesaikanx 100%
    Target Kerja
    3.Kualitas Sarana PrasaranaJumlah S/P Layak Pakaix 100%
    Total Jumlah S/P
    195 |

    196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 |

    Perspektif Pembelajaran dan Pertumbuhan

    No.Sasaran StrategisFormulasiInput
    1.Kualitas SDMJumlah Penugasan Keluar
    217 |
    2.Efektivitas KomunikasiJumlah Pertemuan Rapatx 100%
    Jumlah Target Pertemuan Rapat
    235 | 236 |

    237 |
    238 | 239 |
    240 | 241 | 242 | 243 | -------------------------------------------------------------------------------- /targetkerja.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM periode"); 11 | $sth->execute(); 12 | $listPeriode = $sth->fetchAll(PDO::FETCH_ASSOC); 13 | 14 | $nama_bulan = array("Januari", "Februari", "Maret", "April", "Mei", "Juni", 15 | "Juli", "Agustus", "September", "Oktober", "November", "Desember"); 16 | 17 | $sth = $db->prepare("SELECT * FROM jenis_pelayanan"); 18 | $sth->execute(); 19 | $listjenispelayanan = $sth->fetchAll(PDO::FETCH_ASSOC); 20 | 21 | 22 | if($_SESSION['user']['is_admin'] == '0'){ 23 | header('Location:login.php'); 24 | } 25 | 26 | if(isset($_POST['submit'])) { 27 | $date = "{$_POST['tahun']}-{$_POST['bulan']}-{$_POST['hari']}"; 28 | $sth = $db->prepare("INSERT INTO program_kerja( 29 | nama, 30 | target_anggaran, 31 | riil_anggaran, 32 | tanggal_mulai, 33 | tanggal_target_selesai, 34 | riil_tanggal_selesai, 35 | jenis_pelayanan_id, 36 | periode_id) 37 | values(?, ?, ?, ?, ?, ?, ?, ?)"); 38 | $sth->execute(array($_POST['nama'],$_POST['target_anggaran'],$_POST['riil_anggaran'],$date,$date,$date,$_POST['jenis_pelayanan_id'],$_POST['periode_id'])); 39 | $saved=true; 40 | } 41 | 42 | 43 | ?> 44 | 45 | 46 |
    47 |

    Data Program Kerja

    48 | 49 |
    50 | Data Tersimpan! 51 |
    52 | 53 |   54 |
    55 |
    56 | 57 | 58 | 59 | 60 | 63 | 66 | 67 | 68 | 71 | 78 | 79 | 80 | 83 | 87 | 88 | 89 | 92 | 95 | 96 | 97 | 98 | 101 | 130 | 131 | 132 | 133 | 136 | 164 | 165 | 166 | 167 | 168 | 171 | 200 | 201 | 204 | 211 | 212 | 213 |
    61 | 62 | 64 | 65 |
    69 | 70 | 72 | 77 |
    81 | 82 | 84 | 85 | 86 |
    90 | 91 | 93 | 94 |
    99 | 100 | 102 | 103 | 111 | 112 | 120 | 121 | 129 |
    134 | 135 | 137 | 145 | 146 | 154 | 155 | 163 |
    169 | 170 | 172 | 173 | 181 | 182 | 190 | 191 | 199 |
    202 | 203 | 205 | 210 |
    214 |
    215 |
    216 | 217 |
    218 |
    219 | -------------------------------------------------------------------------------- /stylesheets/screen.css: -------------------------------------------------------------------------------- 1 | /* ----------------------------------------------------------------------- 2 | 3 | 4 | Blueprint CSS Framework 0.9 5 | http://blueprintcss.org 6 | 7 | * Copyright (c) 2007-Present. See LICENSE for more info. 8 | * See README for instructions on how to use Blueprint. 9 | * For credits and origins, see AUTHORS. 10 | * This is a compressed file. See the sources in the 'src' directory. 11 | 12 | ----------------------------------------------------------------------- */ 13 | 14 | /* reset.css */ 15 | html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} 16 | body {line-height:1.5;} 17 | table {border-collapse:separate;border-spacing:0;} 18 | caption, th, td {text-align:left;font-weight:normal;} 19 | table, td, th {vertical-align:middle;} 20 | blockquote:before, blockquote:after, q:before, q:after {content:"";} 21 | blockquote, q {quotes:"" "";} 22 | a img {border:none;} 23 | 24 | /* typography.css */ 25 | html {font-size:100.01%;} 26 | body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} 27 | h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} 28 | h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} 29 | h2 {font-size:2em;margin-bottom:0.75em;} 30 | h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} 31 | h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} 32 | h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} 33 | h6 {font-size:1em;font-weight:bold;} 34 | h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} 35 | p {margin:0 0 1.5em;} 36 | p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} 37 | p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} 38 | a:focus, a:hover {color:#000;} 39 | a {color:#009;text-decoration:underline;} 40 | blockquote {margin:1.5em;color:#666;font-style:italic;} 41 | strong {font-weight:bold;} 42 | em, dfn {font-style:italic;} 43 | dfn {font-weight:bold;} 44 | sup, sub {line-height:0;} 45 | abbr, acronym {border-bottom:1px dotted #666;} 46 | address {margin:0 0 1.5em;font-style:italic;} 47 | del {color:#666;} 48 | pre {margin:1.5em 0;white-space:pre;} 49 | pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} 50 | li ul, li ol {margin:0;} 51 | ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;} 52 | ul {list-style-type:disc;} 53 | ol {list-style-type:decimal;} 54 | dl {margin:0 0 1.5em 0;} 55 | dl dt {font-weight:bold;} 56 | dd {margin-left:1.5em;} 57 | table {margin-bottom:1.4em;width:100%;} 58 | th {font-weight:bold;} 59 | thead th {background:#c3d9ff;} 60 | th, td, caption {padding:4px 10px 4px 5px;} 61 | tr.even td {background:#e5ecf9;} 62 | tfoot {font-style:italic;} 63 | caption {background:#eee;} 64 | .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} 65 | .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} 66 | .hide {display:none;} 67 | .quiet {color:#666;} 68 | .loud {color:#000;} 69 | .highlight {background:#ff0;} 70 | .added {background:#060;color:#fff;} 71 | .removed {background:#900;color:#fff;} 72 | .first {margin-left:0;padding-left:0;} 73 | .last {margin-right:0;padding-right:0;} 74 | .top {margin-top:0;padding-top:0;} 75 | .bottom {margin-bottom:0;padding-bottom:0;} 76 | 77 | /* forms.css */ 78 | label {font-weight:bold;} 79 | fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} 80 | legend {font-weight:bold;font-size:1.2em;} 81 | input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;} 82 | input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;} 83 | input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} 84 | input.text, input.title {width:300px;padding:5px;} 85 | input.title {font-size:1.5em;} 86 | textarea {width:390px;height:250px;padding:5px;} 87 | input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;} 88 | form.inline {line-height:3;} 89 | form.inline p {margin-bottom:0;} 90 | .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} 91 | .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} 92 | .notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} 93 | .success {background:#E6EFC2;color:#264409;border-color:#C6D880;} 94 | .error a {color:#8a1f11;} 95 | .notice a {color:#514721;} 96 | .success a {color:#264409;} 97 | 98 | /* grid.css */ 99 | .container {width:950px;margin:0 auto;} 100 | .showgrid {background:url(src/grid.png);} 101 | .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;} 102 | .last, div.last {margin-right:0;} 103 | .span-1 {width:30px;} 104 | .span-2 {width:70px;} 105 | .span-3 {width:110px;} 106 | .span-4 {width:150px;} 107 | .span-5 {width:190px;} 108 | .span-6 {width:230px;} 109 | .span-7 {width:270px;} 110 | .span-8 {width:310px;} 111 | .span-9 {width:350px;} 112 | .span-10 {width:390px;} 113 | .span-11 {width:430px;} 114 | .span-12 {width:470px;} 115 | .span-13 {width:510px;} 116 | .span-14 {width:550px;} 117 | .span-15 {width:590px;} 118 | .span-16 {width:630px;} 119 | .span-17 {width:670px;} 120 | .span-18 {width:710px;} 121 | .span-19 {width:750px;} 122 | .span-20 {width:790px;} 123 | .span-21 {width:830px;} 124 | .span-22 {width:870px;} 125 | .span-23 {width:910px;} 126 | .span-24, div.span-24 {width:950px;margin-right:0;} 127 | input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;} 128 | input.span-1, textarea.span-1 {width:18px!important;} 129 | input.span-2, textarea.span-2 {width:58px!important;} 130 | input.span-3, textarea.span-3 {width:98px!important;} 131 | input.span-4, textarea.span-4 {width:138px!important;} 132 | input.span-5, textarea.span-5 {width:178px!important;} 133 | input.span-6, textarea.span-6 {width:218px!important;} 134 | input.span-7, textarea.span-7 {width:258px!important;} 135 | input.span-8, textarea.span-8 {width:298px!important;} 136 | input.span-9, textarea.span-9 {width:338px!important;} 137 | input.span-10, textarea.span-10 {width:378px!important;} 138 | input.span-11, textarea.span-11 {width:418px!important;} 139 | input.span-12, textarea.span-12 {width:458px!important;} 140 | input.span-13, textarea.span-13 {width:498px!important;} 141 | input.span-14, textarea.span-14 {width:538px!important;} 142 | input.span-15, textarea.span-15 {width:578px!important;} 143 | input.span-16, textarea.span-16 {width:618px!important;} 144 | input.span-17, textarea.span-17 {width:658px!important;} 145 | input.span-18, textarea.span-18 {width:698px!important;} 146 | input.span-19, textarea.span-19 {width:738px!important;} 147 | input.span-20, textarea.span-20 {width:778px!important;} 148 | input.span-21, textarea.span-21 {width:818px!important;} 149 | input.span-22, textarea.span-22 {width:858px!important;} 150 | input.span-23, textarea.span-23 {width:898px!important;} 151 | input.span-24, textarea.span-24 {width:938px!important;} 152 | .append-1 {padding-right:40px;} 153 | .append-2 {padding-right:80px;} 154 | .append-3 {padding-right:120px;} 155 | .append-4 {padding-right:160px;} 156 | .append-5 {padding-right:200px;} 157 | .append-6 {padding-right:240px;} 158 | .append-7 {padding-right:280px;} 159 | .append-8 {padding-right:320px;} 160 | .append-9 {padding-right:360px;} 161 | .append-10 {padding-right:400px;} 162 | .append-11 {padding-right:440px;} 163 | .append-12 {padding-right:480px;} 164 | .append-13 {padding-right:520px;} 165 | .append-14 {padding-right:560px;} 166 | .append-15 {padding-right:600px;} 167 | .append-16 {padding-right:640px;} 168 | .append-17 {padding-right:680px;} 169 | .append-18 {padding-right:720px;} 170 | .append-19 {padding-right:760px;} 171 | .append-20 {padding-right:800px;} 172 | .append-21 {padding-right:840px;} 173 | .append-22 {padding-right:880px;} 174 | .append-23 {padding-right:920px;} 175 | .prepend-1 {padding-left:40px;} 176 | .prepend-2 {padding-left:80px;} 177 | .prepend-3 {padding-left:120px;} 178 | .prepend-4 {padding-left:160px;} 179 | .prepend-5 {padding-left:200px;} 180 | .prepend-6 {padding-left:240px;} 181 | .prepend-7 {padding-left:280px;} 182 | .prepend-8 {padding-left:320px;} 183 | .prepend-9 {padding-left:360px;} 184 | .prepend-10 {padding-left:400px;} 185 | .prepend-11 {padding-left:440px;} 186 | .prepend-12 {padding-left:480px;} 187 | .prepend-13 {padding-left:520px;} 188 | .prepend-14 {padding-left:560px;} 189 | .prepend-15 {padding-left:600px;} 190 | .prepend-16 {padding-left:640px;} 191 | .prepend-17 {padding-left:680px;} 192 | .prepend-18 {padding-left:720px;} 193 | .prepend-19 {padding-left:760px;} 194 | .prepend-20 {padding-left:800px;} 195 | .prepend-21 {padding-left:840px;} 196 | .prepend-22 {padding-left:880px;} 197 | .prepend-23 {padding-left:920px;} 198 | div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} 199 | div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} 200 | .pull-1 {margin-left:-40px;} 201 | .pull-2 {margin-left:-80px;} 202 | .pull-3 {margin-left:-120px;} 203 | .pull-4 {margin-left:-160px;} 204 | .pull-5 {margin-left:-200px;} 205 | .pull-6 {margin-left:-240px;} 206 | .pull-7 {margin-left:-280px;} 207 | .pull-8 {margin-left:-320px;} 208 | .pull-9 {margin-left:-360px;} 209 | .pull-10 {margin-left:-400px;} 210 | .pull-11 {margin-left:-440px;} 211 | .pull-12 {margin-left:-480px;} 212 | .pull-13 {margin-left:-520px;} 213 | .pull-14 {margin-left:-560px;} 214 | .pull-15 {margin-left:-600px;} 215 | .pull-16 {margin-left:-640px;} 216 | .pull-17 {margin-left:-680px;} 217 | .pull-18 {margin-left:-720px;} 218 | .pull-19 {margin-left:-760px;} 219 | .pull-20 {margin-left:-800px;} 220 | .pull-21 {margin-left:-840px;} 221 | .pull-22 {margin-left:-880px;} 222 | .pull-23 {margin-left:-920px;} 223 | .pull-24 {margin-left:-960px;} 224 | .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} 225 | .push-1 {margin:0 -40px 1.5em 40px;} 226 | .push-2 {margin:0 -80px 1.5em 80px;} 227 | .push-3 {margin:0 -120px 1.5em 120px;} 228 | .push-4 {margin:0 -160px 1.5em 160px;} 229 | .push-5 {margin:0 -200px 1.5em 200px;} 230 | .push-6 {margin:0 -240px 1.5em 240px;} 231 | .push-7 {margin:0 -280px 1.5em 280px;} 232 | .push-8 {margin:0 -320px 1.5em 320px;} 233 | .push-9 {margin:0 -360px 1.5em 360px;} 234 | .push-10 {margin:0 -400px 1.5em 400px;} 235 | .push-11 {margin:0 -440px 1.5em 440px;} 236 | .push-12 {margin:0 -480px 1.5em 480px;} 237 | .push-13 {margin:0 -520px 1.5em 520px;} 238 | .push-14 {margin:0 -560px 1.5em 560px;} 239 | .push-15 {margin:0 -600px 1.5em 600px;} 240 | .push-16 {margin:0 -640px 1.5em 640px;} 241 | .push-17 {margin:0 -680px 1.5em 680px;} 242 | .push-18 {margin:0 -720px 1.5em 720px;} 243 | .push-19 {margin:0 -760px 1.5em 760px;} 244 | .push-20 {margin:0 -800px 1.5em 800px;} 245 | .push-21 {margin:0 -840px 1.5em 840px;} 246 | .push-22 {margin:0 -880px 1.5em 880px;} 247 | .push-23 {margin:0 -920px 1.5em 920px;} 248 | .push-24 {margin:0 -960px 1.5em 960px;} 249 | .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;} 250 | .prepend-top {margin-top:1.5em;} 251 | .append-bottom {margin-bottom:1.5em;} 252 | .box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} 253 | hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} 254 | hr.space {background:#fff;color:#fff;visibility:hidden;} 255 | .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} 256 | .clearfix, .container {display:block;} 257 | .clear {clear:both;} -------------------------------------------------------------------------------- /pembobotan_add.php: -------------------------------------------------------------------------------- 1 | prepare('SELECT * FROM periode WHERE id = ?'); 14 | $sth->execute(array($_GET['periode_id'])); 15 | $periode = $sth->fetch(PDO::FETCH_ASSOC); 16 | $periodeId = $periode['id']; 17 | 18 | $sth = $db->prepare('SELECT * FROM kriteria WHERE parent_id is NULL'); 19 | $sth->execute(); 20 | $listKriteria = $sth->fetchAll (PDO::FETCH_ASSOC); 21 | 22 | $sth = $db->prepare('SELECT id,parent_id FROM kriteria'); 23 | $sth->execute(); 24 | $listAllKriteria = $sth->fetchAll(PDO::FETCH_ASSOC); 25 | 26 | if(isset($_POST['submit'])) { 27 | $db->beginTransaction(); 28 | foreach($_POST['bobot'] as $kriteria_id => $kriteria){ 29 | foreach($kriteria as $pembanding_id => $nilai){ 30 | $sth = $db->prepare('INSERT INTO bobot( 31 | periode_id, kriteria_id, kriteria_pembanding_id, nilai) 32 | values(?, ?, ?, ?)'); 33 | $sth->execute(array($periodeId, $kriteria_id, $pembanding_id, $nilai)); 34 | } 35 | } 36 | 37 | foreach($_POST['bobot_kriteria'] as $kriteria_id => $nilai){ 38 | $sth = $db->prepare('INSERT INTO bobot_kriteria( 39 | periode_id, kriteria_id, nilai) 40 | values(?, ?, ?)'); 41 | $sth->execute(array($periodeId, $kriteria_id, $nilai)); 42 | } 43 | 44 | foreach($listAllKriteria as $kriteria){ 45 | 46 | $nilai = null; 47 | switch($kriteria['id']) { 48 | case 5: // anggaran masuk 49 | $sth = $db->prepare('SELECT SUM(jumlah) FROM anggaran WHERE periode_id = ?'); 50 | $sth->execute(array($periodeId)); 51 | $nilai = $sth->fetchColumn(); 52 | break; 53 | case 7: // efektifitas anggaran 54 | $sth = $db->prepare('SELECT SUM(riil_anggaran) / SUM(target_anggaran) 55 | FROM program_kerja WHERE periode_id = ?'); 56 | $sth->execute(array($periodeId)); 57 | $nilai = $sth->fetchColumn(); 58 | break; 59 | case 13: // Tingkat Pelayanan Publik 60 | $sth = $db->prepare('SELECT COUNT(*) 61 | FROM program_kerja 62 | WHERE periode_id = ? 63 | AND jenis_pelayanan_id IN (1,2) 64 | AND selesai = 1'); 65 | $sth->execute(array($periodeId)); 66 | $jumlah_selesai = $sth->fetchColumn(); 67 | $sth = $db->prepare('SELECT COUNT(*) 68 | FROM program_kerja 69 | WHERE periode_id = ? 70 | AND jenis_pelayanan_id IN (1,2)'); 71 | $sth->execute(array($periodeId)); 72 | $jumlah_semua = $sth->fetchColumn(); 73 | if($jumlah_semua == 0) { 74 | $nilai = 0; 75 | } else { 76 | $nilai = (float) $jumlah_selesai / (float) $jumlah_semua; 77 | } 78 | break; 79 | case 8: // kepuasan kerja pegawai 80 | $sth = $db->prepare('SELECT AVG(jumlah_hadir) 81 | FROM presensi WHERE periode_id = ?'); 82 | $sth->execute(array($periodeId)); 83 | $avg_hadir = $sth->fetchColumn(); 84 | $sth = $db->prepare('SELECT jumlah_hadir + jumlah_sakit + jumlah_izin + jumlah_tanpa_keterangan 85 | FROM presensi 86 | WHERE periode_id = ?'); 87 | $sth->execute(array($periodeId)); 88 | $total_hadir = $sth->fetchColumn(); 89 | if ($total_hadir == 0) { 90 | $nilai = 0; 91 | } else { 92 | $nilai = (float) $avg_hadir / (float) $total_hadir; 93 | } 94 | break; 95 | case 9: // Peningkatan Kualitas Pegawai 96 | $sth = $db->prepare('SELECT COUNT(*) 97 | FROM program_kerja 98 | WHERE periode_id = ? 99 | AND selesai = 1'); 100 | $sth->execute(array($periodeId)); 101 | $jumlah_selesai = $sth->fetchColumn(); 102 | $sth = $db->prepare('SELECT COUNT(*) 103 | FROM program_kerja 104 | WHERE periode_id = ?'); 105 | $sth->execute(array($periodeId)); 106 | $jumlah_semua = $sth->fetchColumn(); 107 | if ($jumlah_semua == 0) { 108 | $nilai = 0; 109 | } else { 110 | $nilai = (float) $jumlah_selesai / (float) $jumlah_semua; 111 | } 112 | break; 113 | case 10: // Kualitas sarana prasarana 114 | $sth = $db->prepare('SELECT SUM(jumlah) 115 | FROM inventaris 116 | WHERE periode_id = ? AND kondisi != ? '); 117 | $sth->execute(array($periodeId,'Buruk')); 118 | $jumlah_baik = $sth->fetchColumn(); 119 | $sth = $db->prepare('SELECT SUM(jumlah) 120 | FROM inventaris 121 | WHERE periode_id = ?'); 122 | $sth->execute(array($periodeId)); 123 | $jumlah_semua = $sth->fetchColumn(); 124 | if ($jumlah_semua == 0) { 125 | $nilai = 0; 126 | } else { 127 | $nilai = (float) $jumlah_baik / (float) $jumlah_semua; 128 | } 129 | break; 130 | case 11: // Kualitas SDM 131 | $sth = $db->prepare('SELECT COUNT(*) FROM penugasan WHERE periode_id = ?'); 132 | $sth->execute(array($periodeId)); 133 | $nilai = $sth->fetchColumn(); 134 | break; 135 | case 12: // Efektivitas Komunikasi 136 | $sth = $db->prepare('SELECT COUNT(*) 137 | FROM program_kerja 138 | WHERE periode_id = ? 139 | AND selesai = 1'); 140 | $sth->execute(array($periodeId)); 141 | $jumlah_selesai = $sth->fetchColumn(); 142 | $sth = $db->prepare('SELECT COUNT(*) 143 | FROM pertemuan 144 | WHERE periode_id = ?'); 145 | $sth->execute(array($periodeId)); 146 | $jumlah_pertemuan = $sth->fetchColumn(); 147 | if ($jumlah_pertemuan == 0) { 148 | $nilai = 0; 149 | } else { 150 | $nilai = (float) $jumlah_selesai / (float) $jumlah_pertemuan; 151 | } 152 | break; 153 | } 154 | $sth = $db->prepare('INSERT INTO kpi(periode_id, kriteria_id, nilai) values(?, ?, ?)'); 155 | $sth->execute(array($periodeId, $kriteria['id'], $nilai)); 156 | } 157 | $sth = $db->prepare('UPDATE periode set terisi_bobot = 1 where id = ?'); 158 | $sth->execute(array($periodeId)); 159 | $saved = true; 160 | $db->commit(); 161 | } 162 | ?> 163 | 164 | 165 |
    166 |

    Pembobotan Kriteria Balance Scorecard

    167 | 168 |
    169 | Data Tersimpan! 170 |
    171 | 172 |   173 |
    174 | 175 | 176 | 179 | 182 | 183 |
    177 | 178 | 180 | 181 |
    184 |
    185 |
    186 |
    187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 |
    PerspektifJumlahBobot
    201 | 220 |
    Total
    232 |
    233 | 234 | prepare('SELECT * FROM kriteria WHERE parent_id = :id'); 236 | $sth->execute(array('id' => $parent['id'])); 237 | $listChild = $sth->fetchAll(PDO::FETCH_ASSOC); 238 | ?> 239 | 240 | 0):?> 241 | 242 |
    243 |

    Pembobotan Kriteria Perspektif

    244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 |
    PerspektifJumlahBobot
    258 | 277 |
    Total
    289 |
    290 | 291 | 292 |
    293 | 294 |
    295 |
    296 |
    297 |
    298 | 353 | 354 | -------------------------------------------------------------------------------- /sipek.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 3.4.3.1 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: localhost 6 | -- Generation Time: Aug 07, 2011 at 02:20 PM 7 | -- Server version: 5.1.56 8 | -- PHP Version: 5.3.6-pl0-gentoo 9 | 10 | SET FOREIGN_KEY_CHECKS=0; 11 | SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; 12 | SET AUTOCOMMIT=0; 13 | START TRANSACTION; 14 | SET time_zone = "+00:00"; 15 | 16 | 17 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 18 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 19 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 20 | /*!40101 SET NAMES utf8 */; 21 | 22 | -- 23 | -- Database: `sipek_dev` 24 | -- 25 | 26 | -- -------------------------------------------------------- 27 | 28 | -- 29 | -- Table structure for table `anggaran` 30 | -- 31 | 32 | DROP TABLE IF EXISTS `anggaran`; 33 | CREATE TABLE IF NOT EXISTS `anggaran` ( 34 | `id` int(11) NOT NULL AUTO_INCREMENT, 35 | `sumber` varchar(255) COLLATE latin1_general_ci NOT NULL, 36 | `jumlah` double NOT NULL, 37 | `tanggal_terima` date NOT NULL, 38 | `periode_id` int(11) NOT NULL, 39 | PRIMARY KEY (`id`), 40 | KEY `periode_id` (`periode_id`) 41 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=7 ; 42 | 43 | -- 44 | -- Dumping data for table `anggaran` 45 | -- 46 | 47 | INSERT INTO `anggaran` (`id`, `sumber`, `jumlah`, `tanggal_terima`, `periode_id`) VALUES 48 | (4, '7600000000', 7600000000, '2010-01-07', 1), 49 | (5, 'pemprov jabar', 500000000, '2010-02-02', 1), 50 | (6, 'pemprov jabar', 10000000000, '2010-04-08', 1); 51 | 52 | -- -------------------------------------------------------- 53 | 54 | -- 55 | -- Table structure for table `bobot` 56 | -- 57 | 58 | DROP TABLE IF EXISTS `bobot`; 59 | CREATE TABLE IF NOT EXISTS `bobot` ( 60 | `kriteria_id` int(11) NOT NULL, 61 | `kriteria_pembanding_id` int(11) NOT NULL, 62 | `nilai` double DEFAULT NULL, 63 | `periode_id` int(11) NOT NULL, 64 | PRIMARY KEY (`kriteria_id`,`kriteria_pembanding_id`,`periode_id`), 65 | KEY `kriteria_pembanding_id` (`kriteria_pembanding_id`), 66 | KEY `periode_id` (`periode_id`) 67 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; 68 | 69 | -- 70 | -- Dumping data for table `bobot` 71 | -- 72 | 73 | INSERT INTO `bobot` (`kriteria_id`, `kriteria_pembanding_id`, `nilai`, `periode_id`) VALUES 74 | (1, 2, 8, 1), 75 | (1, 2, 1, 2), 76 | (1, 3, 3, 1), 77 | (1, 3, 1, 2), 78 | (1, 4, 1, 1), 79 | (1, 4, 1, 2), 80 | (2, 1, 0.13, 1), 81 | (2, 1, 1, 2), 82 | (2, 3, 1, 1), 83 | (2, 3, 1, 2), 84 | (2, 4, 1, 1), 85 | (2, 4, 1, 2), 86 | (3, 1, 0.33, 1), 87 | (3, 1, 1, 2), 88 | (3, 2, 1, 1), 89 | (3, 2, 1, 2), 90 | (3, 4, 1, 1), 91 | (3, 4, 1, 2), 92 | (4, 1, 1, 1), 93 | (4, 1, 1, 2), 94 | (4, 2, 1, 1), 95 | (4, 2, 1, 2), 96 | (4, 3, 1, 1), 97 | (4, 3, 1, 2), 98 | (5, 7, 1, 1), 99 | (5, 7, 1, 2), 100 | (7, 5, 1, 1), 101 | (7, 5, 1, 2), 102 | (8, 9, 1, 1), 103 | (8, 9, 1, 2), 104 | (8, 10, 8, 1), 105 | (8, 10, 1, 2), 106 | (9, 8, 1, 1), 107 | (9, 8, 1, 2), 108 | (9, 10, 1, 1), 109 | (9, 10, 1, 2), 110 | (10, 8, 0.13, 1), 111 | (10, 8, 1, 2), 112 | (10, 9, 1, 1), 113 | (10, 9, 1, 2), 114 | (11, 12, 2, 1), 115 | (11, 12, 1, 2), 116 | (12, 11, 0.5, 1), 117 | (12, 11, 1, 2); 118 | 119 | -- -------------------------------------------------------- 120 | 121 | -- 122 | -- Table structure for table `bobot_kriteria` 123 | -- 124 | 125 | DROP TABLE IF EXISTS `bobot_kriteria`; 126 | CREATE TABLE IF NOT EXISTS `bobot_kriteria` ( 127 | `id` int(11) NOT NULL AUTO_INCREMENT, 128 | `kriteria_id` int(11) NOT NULL, 129 | `periode_id` int(11) NOT NULL, 130 | `nilai` double NOT NULL, 131 | PRIMARY KEY (`id`), 132 | KEY `kriteria_id` (`kriteria_id`), 133 | KEY `periode_id` (`periode_id`) 134 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ; 135 | 136 | -- 137 | -- Dumping data for table `bobot_kriteria` 138 | -- 139 | 140 | INSERT INTO `bobot_kriteria` (`id`, `kriteria_id`, `periode_id`, `nilai`) VALUES 141 | (25, 1, 2, 0.25), 142 | (26, 2, 2, 0.25), 143 | (27, 3, 2, 0.25), 144 | (28, 4, 2, 0.25), 145 | (29, 5, 2, 0.13), 146 | (30, 7, 2, 0.13), 147 | (31, 13, 2, 0.25), 148 | (32, 8, 2, 0.08), 149 | (33, 9, 2, 0.08), 150 | (34, 10, 2, 0.08), 151 | (35, 11, 2, 0.13), 152 | (36, 12, 2, 0.13), 153 | (49, 1, 1, 0.54), 154 | (50, 2, 1, 0.14), 155 | (51, 3, 1, 0.14), 156 | (52, 4, 1, 0.26), 157 | (53, 5, 1, 0.57), 158 | (54, 7, 1, 0.5), 159 | (55, 13, 1, 1), 160 | (56, 8, 1, 0.63), 161 | (57, 9, 1, 0.33), 162 | (58, 10, 1, 0.14), 163 | (59, 11, 1, 0.69), 164 | (60, 12, 1, 0.33); 165 | 166 | -- -------------------------------------------------------- 167 | 168 | -- 169 | -- Table structure for table `inventaris` 170 | -- 171 | 172 | DROP TABLE IF EXISTS `inventaris`; 173 | CREATE TABLE IF NOT EXISTS `inventaris` ( 174 | `id` int(11) NOT NULL AUTO_INCREMENT, 175 | `jenis` varchar(255) COLLATE latin1_general_ci NOT NULL, 176 | `jumlah` int(11) NOT NULL, 177 | `kondisi` enum('Baik','Cukup','Buruk') COLLATE latin1_general_ci NOT NULL, 178 | `periode_id` int(11) NOT NULL, 179 | PRIMARY KEY (`id`), 180 | KEY `periode_id` (`periode_id`) 181 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=10 ; 182 | 183 | -- 184 | -- Dumping data for table `inventaris` 185 | -- 186 | 187 | INSERT INTO `inventaris` (`id`, `jenis`, `jumlah`, `kondisi`, `periode_id`) VALUES 188 | (8, 'Modem ADSL Backup', 5, 'Baik', 1), 189 | (9, 'Serveer Mirror', 2, 'Cukup', 1); 190 | 191 | -- -------------------------------------------------------- 192 | 193 | -- 194 | -- Table structure for table `jenis_pelayanan` 195 | -- 196 | 197 | DROP TABLE IF EXISTS `jenis_pelayanan`; 198 | CREATE TABLE IF NOT EXISTS `jenis_pelayanan` ( 199 | `id` int(11) NOT NULL AUTO_INCREMENT, 200 | `nama` varchar(255) COLLATE latin1_general_ci NOT NULL, 201 | PRIMARY KEY (`id`) 202 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=6 ; 203 | 204 | -- 205 | -- Dumping data for table `jenis_pelayanan` 206 | -- 207 | 208 | INSERT INTO `jenis_pelayanan` (`id`, `nama`) VALUES 209 | (1, 'Perencanaan, pengendalian, dan pembangunan daerah'), 210 | (2, 'Pengembangan komunikasi, informasi, media massa, dan pemanfaatan TI'), 211 | (3, 'Peningkatan kapasitas sumber daya aparatur'), 212 | (4, 'Peningkatan sarana dan prasarana aparatur'), 213 | (5, 'Pemeliharaan sarana dan prasarana aparatur'); 214 | 215 | -- -------------------------------------------------------- 216 | 217 | -- 218 | -- Table structure for table `kpi` 219 | -- 220 | 221 | DROP TABLE IF EXISTS `kpi`; 222 | CREATE TABLE IF NOT EXISTS `kpi` ( 223 | `id` int(11) NOT NULL AUTO_INCREMENT, 224 | `kriteria_id` int(11) NOT NULL, 225 | `periode_id` int(11) NOT NULL, 226 | `nilai` double DEFAULT NULL, 227 | PRIMARY KEY (`id`), 228 | KEY `periode_id` (`periode_id`), 229 | KEY `kriteria_id` (`kriteria_id`) 230 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ; 231 | 232 | -- 233 | -- Dumping data for table `kpi` 234 | -- 235 | 236 | INSERT INTO `kpi` (`id`, `kriteria_id`, `periode_id`, `nilai`) VALUES 237 | (25, 1, 2, NULL), 238 | (26, 2, 2, NULL), 239 | (27, 3, 2, NULL), 240 | (28, 4, 2, NULL), 241 | (29, 5, 2, NULL), 242 | (30, 7, 2, NULL), 243 | (31, 13, 2, 0), 244 | (32, 8, 2, 0), 245 | (33, 9, 2, 0), 246 | (34, 10, 2, 0), 247 | (35, 11, 2, 0), 248 | (36, 12, 2, 0), 249 | (49, 1, 1, NULL), 250 | (50, 2, 1, NULL), 251 | (51, 3, 1, NULL), 252 | (52, 4, 1, NULL), 253 | (53, 5, 1, 18100000000), 254 | (54, 7, 1, 1), 255 | (55, 13, 1, 0.5), 256 | (56, 8, 1, 0.97291666666667), 257 | (57, 9, 1, 0.5), 258 | (58, 10, 1, 1), 259 | (59, 11, 1, 0), 260 | (60, 12, 1, 0); 261 | 262 | -- -------------------------------------------------------- 263 | 264 | -- 265 | -- Table structure for table `kriteria` 266 | -- 267 | 268 | DROP TABLE IF EXISTS `kriteria`; 269 | CREATE TABLE IF NOT EXISTS `kriteria` ( 270 | `id` int(11) NOT NULL AUTO_INCREMENT, 271 | `nama` varchar(255) COLLATE latin1_general_ci NOT NULL, 272 | `parent_id` int(11) DEFAULT NULL, 273 | PRIMARY KEY (`id`), 274 | KEY `parent_id` (`parent_id`) 275 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=14 ; 276 | 277 | -- 278 | -- Dumping data for table `kriteria` 279 | -- 280 | 281 | INSERT INTO `kriteria` (`id`, `nama`, `parent_id`) VALUES 282 | (1, 'Finansial', NULL), 283 | (2, 'Pelanggan', NULL), 284 | (3, 'Internal Bisnis', NULL), 285 | (4, 'Pembelajaran dan Pertumbuhan', NULL), 286 | (5, 'Anggaran Masuk', 1), 287 | (7, 'Efektivitas Anggaran', 1), 288 | (8, 'Kepuasan Kerja Pegawai', 3), 289 | (9, 'Peningkatan Kualitas Pegawai', 3), 290 | (10, 'Kualitas Sarana Prasaran', 3), 291 | (11, 'Kualitas SDM', 4), 292 | (12, 'Efektivitas Komunikasi', 4), 293 | (13, 'Tingkat Pelayanan Publik', 2); 294 | 295 | -- -------------------------------------------------------- 296 | 297 | -- 298 | -- Table structure for table `pegawai` 299 | -- 300 | 301 | DROP TABLE IF EXISTS `pegawai`; 302 | CREATE TABLE IF NOT EXISTS `pegawai` ( 303 | `id` int(11) NOT NULL AUTO_INCREMENT, 304 | `nip` varchar(255) COLLATE latin1_general_ci NOT NULL, 305 | `nama` varchar(255) COLLATE latin1_general_ci NOT NULL, 306 | `jabatan` varchar(255) COLLATE latin1_general_ci NOT NULL, 307 | `golongan` varchar(255) COLLATE latin1_general_ci NOT NULL, 308 | `pend_formal` varchar(255) COLLATE latin1_general_ci NOT NULL, 309 | `status` varchar(255) COLLATE latin1_general_ci NOT NULL, 310 | PRIMARY KEY (`id`) 311 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=8 ; 312 | 313 | -- 314 | -- Dumping data for table `pegawai` 315 | -- 316 | 317 | INSERT INTO `pegawai` (`id`, `nip`, `nama`, `jabatan`, `golongan`, `pend_formal`, `status`) VALUES 318 | (4, '123456', 'mamat', 'bendahara', 'III A', 'S1 Ilmu Komunikasi', 'aktif'), 319 | (5, '123333', 'ijong', 'kepala divisi komunikasi', 'IV A', 'S1 Ilmu Komunikasi', 'aktif'), 320 | (6, '1347888', 'agus', 'kepala dinas', 'IV B', 's2 Ilmu komputer', 'aktif'), 321 | (7, '4378929', 'rahmat', 'kepala divisi pelayanan publik', 'IV A', 'S1 Ilmu Komunikasi', 'aktif'); 322 | 323 | -- -------------------------------------------------------- 324 | 325 | -- 326 | -- Table structure for table `penugasan` 327 | -- 328 | 329 | DROP TABLE IF EXISTS `penugasan`; 330 | CREATE TABLE IF NOT EXISTS `penugasan` ( 331 | `pegawai_id` int(11) NOT NULL, 332 | `nama_penugasan` varchar(250) COLLATE latin1_general_ci NOT NULL, 333 | `tingkat` varchar(250) COLLATE latin1_general_ci NOT NULL, 334 | `periode_id` int(11) NOT NULL, 335 | PRIMARY KEY (`pegawai_id`), 336 | KEY `periode_id` (`periode_id`) 337 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; 338 | 339 | -- -------------------------------------------------------- 340 | 341 | -- 342 | -- Table structure for table `periode` 343 | -- 344 | 345 | DROP TABLE IF EXISTS `periode`; 346 | CREATE TABLE IF NOT EXISTS `periode` ( 347 | `id` int(11) NOT NULL AUTO_INCREMENT, 348 | `nama` year(4) NOT NULL, 349 | `terisi_bobot` tinyint(1) NOT NULL, 350 | PRIMARY KEY (`id`) 351 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ; 352 | 353 | -- 354 | -- Dumping data for table `periode` 355 | -- 356 | 357 | INSERT INTO `periode` (`id`, `nama`, `terisi_bobot`) VALUES 358 | (1, 2010, 1), 359 | (2, 2011, 1); 360 | 361 | -- -------------------------------------------------------- 362 | 363 | -- 364 | -- Table structure for table `pertemuan` 365 | -- 366 | 367 | DROP TABLE IF EXISTS `pertemuan`; 368 | CREATE TABLE IF NOT EXISTS `pertemuan` ( 369 | `id` int(11) NOT NULL AUTO_INCREMENT, 370 | `program_kerja_id` int(11) NOT NULL, 371 | `periode_id` int(11) NOT NULL, 372 | `jenis_pertemuan` varchar(255) NOT NULL, 373 | `selesai` tinyint(1) NOT NULL, 374 | PRIMARY KEY (`id`), 375 | KEY `periode_id` (`periode_id`), 376 | KEY `program_kerja_id` (`program_kerja_id`) 377 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 378 | 379 | -- -------------------------------------------------------- 380 | 381 | -- 382 | -- Table structure for table `presensi` 383 | -- 384 | 385 | DROP TABLE IF EXISTS `presensi`; 386 | CREATE TABLE IF NOT EXISTS `presensi` ( 387 | `id` int(11) NOT NULL AUTO_INCREMENT, 388 | `periode_id` int(11) NOT NULL, 389 | `nip` varchar(255) COLLATE latin1_general_ci NOT NULL, 390 | `jumlah_hadir` int(11) NOT NULL, 391 | `jumlah_sakit` int(11) NOT NULL, 392 | `jumlah_izin` int(11) NOT NULL, 393 | `jumlah_tanpa_keterangan` int(11) NOT NULL, 394 | PRIMARY KEY (`id`,`periode_id`), 395 | KEY `periode_id` (`periode_id`) 396 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ; 397 | 398 | -- 399 | -- Dumping data for table `presensi` 400 | -- 401 | 402 | INSERT INTO `presensi` (`id`, `periode_id`, `nip`, `jumlah_hadir`, `jumlah_sakit`, `jumlah_izin`, `jumlah_tanpa_keterangan`) VALUES 403 | (1, 1, '123456', 234, 3, 2, 1), 404 | (2, 1, '123333', 233, 3, 3, 0); 405 | 406 | -- -------------------------------------------------------- 407 | 408 | -- 409 | -- Table structure for table `program_kerja` 410 | -- 411 | 412 | DROP TABLE IF EXISTS `program_kerja`; 413 | CREATE TABLE IF NOT EXISTS `program_kerja` ( 414 | `id` int(11) NOT NULL AUTO_INCREMENT, 415 | `nama` varchar(255) COLLATE latin1_general_ci NOT NULL, 416 | `jenis_pelayanan_id` int(11) NOT NULL, 417 | `target_anggaran` double NOT NULL, 418 | `tanggal_mulai` date NOT NULL, 419 | `tanggal_target_selesai` date NOT NULL, 420 | `riil_tanggal_selesai` date NOT NULL, 421 | `riil_anggaran` double NOT NULL, 422 | `periode_id` int(11) NOT NULL, 423 | `selesai` tinyint(1) NOT NULL, 424 | PRIMARY KEY (`id`), 425 | KEY `jenis_pelayanan_id` (`jenis_pelayanan_id`), 426 | KEY `periode_id` (`periode_id`) 427 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=9 ; 428 | 429 | -- 430 | -- Dumping data for table `program_kerja` 431 | -- 432 | 433 | INSERT INTO `program_kerja` (`id`, `nama`, `jenis_pelayanan_id`, `target_anggaran`, `tanggal_mulai`, `tanggal_target_selesai`, `riil_tanggal_selesai`, `riil_anggaran`, `periode_id`, `selesai`) VALUES 434 | (7, 'Penyusunan RIP Postel', 1, 150000000, '2010-03-07', '2010-03-07', '2010-03-07', 150000000, 1, 1), 435 | (8, 'penyusunan rancangan peraturan daerah kominfo', 1, 150000000, '2010-04-07', '2010-04-07', '2010-04-07', 150000000, 1, 0); 436 | 437 | -- -------------------------------------------------------- 438 | 439 | -- 440 | -- Table structure for table `user` 441 | -- 442 | 443 | DROP TABLE IF EXISTS `user`; 444 | CREATE TABLE IF NOT EXISTS `user` ( 445 | `id` int(11) NOT NULL AUTO_INCREMENT, 446 | `username` varchar(255) COLLATE latin1_general_ci NOT NULL, 447 | `password` varchar(255) COLLATE latin1_general_ci NOT NULL, 448 | `pegawai_id` int(255) NOT NULL, 449 | `is_admin` tinyint(1) NOT NULL, 450 | PRIMARY KEY (`id`) 451 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ; 452 | 453 | -- 454 | -- Dumping data for table `user` 455 | -- 456 | 457 | INSERT INTO `user` (`id`, `username`, `password`, `pegawai_id`, `is_admin`) VALUES 458 | (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 0, 0), 459 | (2, 'user', 'ee11cbb19052e40b07aac0ca060c23ee', 0, 1); 460 | 461 | -- 462 | -- Constraints for dumped tables 463 | -- 464 | 465 | -- 466 | -- Constraints for table `anggaran` 467 | -- 468 | ALTER TABLE `anggaran` 469 | ADD CONSTRAINT `anggaran_ibfk_1` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 470 | 471 | -- 472 | -- Constraints for table `bobot` 473 | -- 474 | ALTER TABLE `bobot` 475 | ADD CONSTRAINT `bobot_ibfk_4` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, 476 | ADD CONSTRAINT `bobot_ibfk_3` FOREIGN KEY (`kriteria_pembanding_id`) REFERENCES `kriteria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 477 | 478 | -- 479 | -- Constraints for table `bobot_kriteria` 480 | -- 481 | ALTER TABLE `bobot_kriteria` 482 | ADD CONSTRAINT `bobot_kriteria_ibfk_4` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, 483 | ADD CONSTRAINT `bobot_kriteria_ibfk_5` FOREIGN KEY (`kriteria_id`) REFERENCES `kriteria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 484 | 485 | -- 486 | -- Constraints for table `inventaris` 487 | -- 488 | ALTER TABLE `inventaris` 489 | ADD CONSTRAINT `inventaris_ibfk_1` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 490 | 491 | -- 492 | -- Constraints for table `kpi` 493 | -- 494 | ALTER TABLE `kpi` 495 | ADD CONSTRAINT `kpi_ibfk_1` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, 496 | ADD CONSTRAINT `kpi_ibfk_2` FOREIGN KEY (`kriteria_id`) REFERENCES `kriteria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 497 | 498 | -- 499 | -- Constraints for table `kriteria` 500 | -- 501 | ALTER TABLE `kriteria` 502 | ADD CONSTRAINT `kriteria_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `kriteria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 503 | 504 | -- 505 | -- Constraints for table `penugasan` 506 | -- 507 | ALTER TABLE `penugasan` 508 | ADD CONSTRAINT `penugasan_ibfk_1` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 509 | 510 | -- 511 | -- Constraints for table `pertemuan` 512 | -- 513 | ALTER TABLE `pertemuan` 514 | ADD CONSTRAINT `pertemuan_ibfk_1` FOREIGN KEY (`program_kerja_id`) REFERENCES `program_kerja` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, 515 | ADD CONSTRAINT `pertemuan_ibfk_2` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 516 | 517 | -- 518 | -- Constraints for table `presensi` 519 | -- 520 | ALTER TABLE `presensi` 521 | ADD CONSTRAINT `presensi_ibfk_2` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 522 | 523 | -- 524 | -- Constraints for table `program_kerja` 525 | -- 526 | ALTER TABLE `program_kerja` 527 | ADD CONSTRAINT `program_kerja_ibfk_1` FOREIGN KEY (`jenis_pelayanan_id`) REFERENCES `jenis_pelayanan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, 528 | ADD CONSTRAINT `program_kerja_ibfk_2` FOREIGN KEY (`periode_id`) REFERENCES `periode` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 529 | SET FOREIGN_KEY_CHECKS=1; 530 | COMMIT; 531 | 532 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 533 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 534 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 535 | -------------------------------------------------------------------------------- /js/mootools-core.js: -------------------------------------------------------------------------------- 1 | /* 2 | --- 3 | MooTools: the javascript framework 4 | 5 | web build: 6 | - http://mootools.net/core/7c56cfef9dddcf170a5d68e3fb61cfd7 7 | 8 | packager build: 9 | - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Element Core/Element.Style Core/Element.Event Core/Element.Dimensions Core/Fx Core/Fx.CSS Core/Fx.Tween Core/Fx.Morph Core/Fx.Transitions Core/Request Core/Request.HTML Core/Request.JSON Core/Cookie Core/JSON Core/DOMReady Core/Swiff 10 | 11 | copyrights: 12 | - [MooTools](http://mootools.net) 13 | 14 | licenses: 15 | - [MIT License](http://mootools.net/license.txt) 16 | ... 17 | */ 18 | (function(){this.MooTools={version:"1.3.2",build:"c9f1ff10e9e7facb65e9481049ed1b450959d587"};var o=this.typeOf=function(i){if(i==null){return"null";}if(i.$family){return i.$family(); 19 | }if(i.nodeName){if(i.nodeType==1){return"element";}if(i.nodeType==3){return(/\S/).test(i.nodeValue)?"textnode":"whitespace";}}else{if(typeof i.length=="number"){if(i.callee){return"arguments"; 20 | }if("item" in i){return"collection";}}}return typeof i;};var j=this.instanceOf=function(t,i){if(t==null){return false;}var s=t.$constructor||t.constructor; 21 | while(s){if(s===i){return true;}s=s.parent;}return t instanceof i;};var f=this.Function;var p=true;for(var k in {toString:1}){p=null;}if(p){p=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]; 22 | }f.prototype.overloadSetter=function(s){var i=this;return function(u,t){if(u==null){return this;}if(s||typeof u!="string"){for(var v in u){i.call(this,v,u[v]); 23 | }if(p){for(var w=p.length;w--;){v=p[w];if(u.hasOwnProperty(v)){i.call(this,v,u[v]);}}}}else{i.call(this,u,t);}return this;};};f.prototype.overloadGetter=function(s){var i=this; 24 | return function(u){var v,t;if(s||typeof u!="string"){v=u;}else{if(arguments.length>1){v=arguments;}}if(v){t={};for(var w=0;w-1:this.indexOf(a)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim(); 59 | },camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase()); 60 | });},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1"); 61 | },toInt:function(a){return parseInt(this,a||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); 62 | return(a)?a.slice(1).hexToRgb(b):null;},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):null;},substitute:function(a,b){return this.replace(b||(/\\?\{([^{}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1); 63 | }return(a[c]!=null)?a[c]:"";});}});Number.implement({limit:function(b,a){return Math.min(a,Math.max(b,this));},round:function(a){a=Math.pow(10,a||0).toFixed(a<0?-a:0); 64 | return Math.round(this*a)/a;},times:function(b,c){for(var a=0;a1)?Array.slice(arguments,1):null;return function(){if(!b&&!arguments.length){return a.call(c);}if(b&&arguments.length){return a.apply(c,b.concat(Array.from(arguments))); 69 | }return a.apply(c,b||arguments);};},pass:function(b,c){var a=this;if(b!=null){b=Array.from(b);}return function(){return a.apply(c,b||arguments);};},delay:function(b,c,a){return setTimeout(this.pass((a==null?[]:a),c),b); 70 | },periodical:function(c,b,a){return setInterval(this.pass((a==null?[]:a),b),c);}});(function(){var a=Object.prototype.hasOwnProperty;Object.extend({subset:function(d,g){var f={}; 71 | for(var e=0,b=g.length;e]*>([\s\S]*?)<\/script>/gi,function(r,s){e+=s+"\n"; 86 | return"";});if(p===true){o.exec(e);}else{if(typeOf(p)=="function"){p(e,q);}}return q;});o.extend({Document:this.Document,Window:this.Window,Element:this.Element,Event:this.Event}); 87 | this.Window=this.$constructor=new Type("Window",function(){});this.$family=Function.from("window").hide();Window.mirror(function(e,p){i[e]=p;});this.Document=k.$constructor=new Type("Document",function(){}); 88 | k.$family=Function.from("document").hide();Document.mirror(function(e,p){k[e]=p;});k.html=k.documentElement;if(!k.head){k.head=k.getElementsByTagName("head")[0]; 89 | }if(k.execCommand){try{k.execCommand("BackgroundImageCache",false,true);}catch(g){}}if(this.attachEvent&&!this.addEventListener){var d=function(){this.detachEvent("onunload",d); 90 | k.head=k.html=k.window=null;};this.attachEvent("onunload",d);}var m=Array.from;try{m(k.html.childNodes);}catch(g){Array.from=function(p){if(typeof p!="string"&&Type.isEnumerable(p)&&typeOf(p)!="array"){var e=p.length,q=new Array(e); 91 | while(e--){q[e]=p[e];}return q;}return m(p);};var l=Array.prototype,n=l.slice;["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice"].each(function(e){var p=l[e]; 92 | Array[e]=function(q){return p.apply(Array.from(q),n.call(arguments,1));};});}})();var Event=new Type("Event",function(a,i){if(!i){i=window;}var o=i.document; 93 | a=a||i.event;if(a.$extended){return a;}this.$extended=true;var n=a.type,k=a.target||a.srcElement,m={},c={},q=null,h,l,b,p;while(k&&k.nodeType==3){k=k.parentNode; 94 | }if(n.indexOf("key")!=-1){b=a.which||a.keyCode;p=Object.keyOf(Event.Keys,b);if(n=="keydown"){var d=b-111;if(d>0&&d<13){p="f"+d;}}if(!p){p=String.fromCharCode(b).toLowerCase(); 95 | }}else{if((/click|mouse|menu/i).test(n)){o=(!o.compatMode||o.compatMode=="CSS1Compat")?o.html:o.body;m={x:(a.pageX!=null)?a.pageX:a.clientX+o.scrollLeft,y:(a.pageY!=null)?a.pageY:a.clientY+o.scrollTop}; 96 | c={x:(a.pageX!=null)?a.pageX-i.pageXOffset:a.clientX,y:(a.pageY!=null)?a.pageY-i.pageYOffset:a.clientY};if((/DOMMouseScroll|mousewheel/).test(n)){l=(a.wheelDelta)?a.wheelDelta/120:-(a.detail||0)/3; 97 | }h=(a.which==3)||(a.button==2);if((/over|out/).test(n)){q=a.relatedTarget||a[(n=="mouseover"?"from":"to")+"Element"];var j=function(){while(q&&q.nodeType==3){q=q.parentNode; 98 | }return true;};var g=(Browser.firefox2)?j.attempt():j();q=(g)?q:null;}}else{if((/gesture|touch/i).test(n)){this.rotation=a.rotation;this.scale=a.scale; 99 | this.targetTouches=a.targetTouches;this.changedTouches=a.changedTouches;var f=this.touches=a.touches;if(f&&f[0]){var e=f[0];m={x:e.pageX,y:e.pageY};c={x:e.clientX,y:e.clientY}; 100 | }}}}return Object.append(this,{event:a,type:n,page:m,client:c,rightClick:h,wheel:l,relatedTarget:document.id(q),target:document.id(k),code:b,key:p,shift:a.shiftKey,control:a.ctrlKey,alt:a.altKey,meta:a.metaKey}); 101 | });Event.Keys={enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46};Event.implement({stop:function(){return this.stopPropagation().preventDefault(); 102 | },stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault(); 103 | }else{this.event.returnValue=false;}return this;}});(function(){var a=this.Class=new Type("Class",function(h){if(instanceOf(h,Function)){h={initialize:h}; 104 | }var g=function(){e(this);if(g.$prototyping){return this;}this.$caller=null;var i=(this.initialize)?this.initialize.apply(this,arguments):this;this.$caller=this.caller=null; 105 | return i;}.extend(this).implement(h);g.$constructor=a;g.prototype.$constructor=g;g.prototype.parent=c;return g;});var c=function(){if(!this.$caller){throw new Error('The method "parent" cannot be called.'); 106 | }var g=this.$caller.$name,h=this.$caller.$owner.parent,i=(h)?h.prototype[g]:null;if(!i){throw new Error('The method "'+g+'" has no parent.');}return i.apply(this,arguments); 107 | };var e=function(g){for(var h in g){var j=g[h];switch(typeOf(j)){case"object":var i=function(){};i.prototype=j;g[h]=e(new i);break;case"array":g[h]=j.clone(); 108 | break;}}return g;};var b=function(g,h,j){if(j.$origin){j=j.$origin;}var i=function(){if(j.$protected&&this.$caller==null){throw new Error('The method "'+h+'" cannot be called.'); 109 | }var l=this.caller,m=this.$caller;this.caller=m;this.$caller=i;var k=j.apply(this,arguments);this.$caller=m;this.caller=l;return k;}.extend({$owner:g,$origin:j,$name:h}); 110 | return i;};var f=function(h,i,g){if(a.Mutators.hasOwnProperty(h)){i=a.Mutators[h].call(this,i);if(i==null){return this;}}if(typeOf(i)=="function"){if(i.$hidden){return this; 111 | }this.prototype[h]=(g)?i:b(this,h,i);}else{Object.merge(this.prototype,h,i);}return this;};var d=function(g){g.$prototyping=true;var h=new g;delete g.$prototyping; 112 | return h;};a.implement("implement",f.overloadSetter());a.Mutators={Extends:function(g){this.parent=g;this.prototype=d(g);},Implements:function(g){Array.from(g).each(function(j){var h=new j; 113 | for(var i in h){f.call(this,i,h[i],true);}},this);}};})();(function(){this.Chain=new Class({$chain:[],chain:function(){this.$chain.append(Array.flatten(arguments)); 114 | return this;},callChain:function(){return(this.$chain.length)?this.$chain.shift().apply(this,arguments):false;},clearChain:function(){this.$chain.empty(); 115 | return this;}});var a=function(b){return b.replace(/^on([A-Z])/,function(c,d){return d.toLowerCase();});};this.Events=new Class({$events:{},addEvent:function(d,c,b){d=a(d); 116 | this.$events[d]=(this.$events[d]||[]).include(c);if(b){c.internal=true;}return this;},addEvents:function(b){for(var c in b){this.addEvent(c,b[c]);}return this; 117 | },fireEvent:function(e,c,b){e=a(e);var d=this.$events[e];if(!d){return this;}c=Array.from(c);d.each(function(f){if(b){f.delay(b,this,c);}else{f.apply(this,c); 118 | }},this);return this;},removeEvent:function(e,d){e=a(e);var c=this.$events[e];if(c&&!d.internal){var b=c.indexOf(d);if(b!=-1){delete c[b];}}return this; 119 | },removeEvents:function(d){var e;if(typeOf(d)=="object"){for(e in d){this.removeEvent(e,d[e]);}return this;}if(d){d=a(d);}for(e in this.$events){if(d&&d!=e){continue; 120 | }var c=this.$events[e];for(var b=c.length;b--;){if(b in c){this.removeEvent(e,c[b]);}}}return this;}});this.Options=new Class({setOptions:function(){var b=this.options=Object.merge.apply(null,[{},this.options].append(arguments)); 121 | if(this.addEvent){for(var c in b){if(typeOf(b[c])!="function"||!(/^on[A-Z]/).test(c)){continue;}this.addEvent(c,b[c]);delete b[c];}}return this;}});})(); 122 | (function(){var k,n,l,g,a={},c={},m=/\\/g;var e=function(q,p){if(q==null){return null;}if(q.Slick===true){return q;}q=(""+q).replace(/^\s+|\s+$/g,"");g=!!p; 123 | var o=(g)?c:a;if(o[q]){return o[q];}k={Slick:true,expressions:[],raw:q,reverse:function(){return e(this.raw,true);}};n=-1;while(q!=(q=q.replace(j,b))){}k.length=k.expressions.length; 124 | return o[k.raw]=(g)?h(k):k;};var i=function(o){if(o==="!"){return" ";}else{if(o===" "){return"!";}else{if((/^!/).test(o)){return o.replace(/^!/,"");}else{return"!"+o; 125 | }}}};var h=function(u){var r=u.expressions;for(var p=0;p+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,"["+f(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")); 128 | function b(x,s,D,z,r,C,q,B,A,y,u,F,G,v,p,w){if(s||n===-1){k.expressions[++n]=[];l=-1;if(s){return"";}}if(D||z||l===-1){D=D||" ";var t=k.expressions[n]; 129 | if(g&&t[l]){t[l].reverseCombinator=i(D);}t[++l]={combinator:D,tag:"*"};}var o=k.expressions[n][l];if(r){o.tag=r.replace(m,"");}else{if(C){o.id=C.replace(m,""); 130 | }else{if(q){q=q.replace(m,"");if(!o.classList){o.classList=[];}if(!o.classes){o.classes=[];}o.classList.push(q);o.classes.push({value:q,regexp:new RegExp("(^|\\s)"+f(q)+"(\\s|$)")}); 131 | }else{if(G){w=w||p;w=w?w.replace(m,""):null;if(!o.pseudos){o.pseudos=[];}o.pseudos.push({key:G.replace(m,""),value:w,type:F.length==1?"class":"element"}); 132 | }else{if(B){B=B.replace(m,"");u=(u||"").replace(m,"");var E,H;switch(A){case"^=":H=new RegExp("^"+f(u));break;case"$=":H=new RegExp(f(u)+"$");break;case"~=":H=new RegExp("(^|\\s)"+f(u)+"(\\s|$)"); 133 | break;case"|=":H=new RegExp("^"+f(u)+"(-|$)");break;case"=":E=function(I){return u==I;};break;case"*=":E=function(I){return I&&I.indexOf(u)>-1;};break; 134 | case"!=":E=function(I){return u!=I;};break;default:E=function(I){return !!I;};}if(u==""&&(/^[*$^]=$/).test(A)){E=function(){return false;};}if(!E){E=function(I){return I&&H.test(I); 135 | };}if(!o.attributes){o.attributes=[];}o.attributes.push({key:B,operator:A,value:u,test:E});}}}}}return"";}var d=(this.Slick||{});d.parse=function(o){return e(o); 136 | };d.escapeRegExp=f;if(!this.Slick){this.Slick=d;}}).apply((typeof exports!="undefined")?exports:this);(function(){var j={},l={},b=Object.prototype.toString; 137 | j.isNativeCode=function(c){return(/\{\s*\[native code\]\s*\}/).test(""+c);};j.isXML=function(c){return(!!c.xmlVersion)||(!!c.xml)||(b.call(c)=="[object XMLDocument]")||(c.nodeType==9&&c.documentElement.nodeName!="HTML"); 138 | };j.setDocument=function(w){var t=w.nodeType;if(t==9){}else{if(t){w=w.ownerDocument;}else{if(w.navigator){w=w.document;}else{return;}}}if(this.document===w){return; 139 | }this.document=w;var y=w.documentElement,u=this.getUIDXML(y),o=l[u],A;if(o){for(A in o){this[A]=o[A];}return;}o=l[u]={};o.root=y;o.isXMLDocument=this.isXML(w); 140 | o.brokenStarGEBTN=o.starSelectsClosedQSA=o.idGetsName=o.brokenMixedCaseQSA=o.brokenGEBCN=o.brokenCheckedQSA=o.brokenEmptyAttributeQSA=o.isHTMLDocument=o.nativeMatchesSelector=false; 141 | var m,n,x,q,r;var s,c="slick_uniqueid";var z=w.createElement("div");var p=w.body||w.getElementsByTagName("body")[0]||y;p.appendChild(z);try{z.innerHTML=''; 142 | o.isHTMLDocument=!!w.getElementById(c);}catch(v){}if(o.isHTMLDocument){z.style.display="none";z.appendChild(w.createComment(""));n=(z.getElementsByTagName("*").length>1); 143 | try{z.innerHTML="foo";s=z.getElementsByTagName("*");m=(s&&!!s.length&&s[0].nodeName.charAt(0)=="/");}catch(v){}o.brokenStarGEBTN=n||m;try{z.innerHTML=''; 144 | o.idGetsName=w.getElementById(c)===z.firstChild;}catch(v){}if(z.getElementsByClassName){try{z.innerHTML='';z.getElementsByClassName("b").length; 145 | z.firstChild.className="b";q=(z.getElementsByClassName("b").length!=2);}catch(v){}try{z.innerHTML='';x=(z.getElementsByClassName("a").length!=2); 146 | }catch(v){}o.brokenGEBCN=q||x;}if(z.querySelectorAll){try{z.innerHTML="foo";s=z.querySelectorAll("*");o.starSelectsClosedQSA=(s&&!!s.length&&s[0].nodeName.charAt(0)=="/"); 147 | }catch(v){}try{z.innerHTML='';o.brokenMixedCaseQSA=!z.querySelectorAll(".MiX").length;}catch(v){}try{z.innerHTML=''; 148 | o.brokenCheckedQSA=(z.querySelectorAll(":checked").length==0);}catch(v){}try{z.innerHTML='';o.brokenEmptyAttributeQSA=(z.querySelectorAll('[class*=""]').length!=0); 149 | }catch(v){}}try{z.innerHTML='
    ';r=(z.firstChild.getAttribute("action")!="s");}catch(v){}o.nativeMatchesSelector=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector; 150 | if(o.nativeMatchesSelector){try{o.nativeMatchesSelector.call(y,":slick");o.nativeMatchesSelector=null;}catch(v){}}}try{y.slick_expando=1;delete y.slick_expando; 151 | o.getUID=this.getUIDHTML;}catch(v){o.getUID=this.getUIDXML;}p.removeChild(z);z=s=p=null;o.getAttribute=(o.isHTMLDocument&&r)?function(D,B){var E=this.attributeGetters[B]; 152 | if(E){return E.call(D);}var C=D.getAttributeNode(B);return(C)?C.nodeValue:null;}:function(C,B){var D=this.attributeGetters[B];return(D)?D.call(C):C.getAttribute(B); 153 | };o.hasAttribute=(y&&this.isNativeCode(y.hasAttribute))?function(C,B){return C.hasAttribute(B);}:function(C,B){C=C.getAttributeNode(B);return !!(C&&(C.specified||C.nodeValue)); 154 | };o.contains=(y&&this.isNativeCode(y.contains))?function(B,C){return B.contains(C);}:(y&&y.compareDocumentPosition)?function(B,C){return B===C||!!(B.compareDocumentPosition(C)&16); 155 | }:function(B,C){if(C){do{if(C===B){return true;}}while((C=C.parentNode));}return false;};o.documentSorter=(y.compareDocumentPosition)?function(C,B){if(!C.compareDocumentPosition||!B.compareDocumentPosition){return 0; 156 | }return C.compareDocumentPosition(B)&4?-1:C===B?0:1;}:("sourceIndex" in y)?function(C,B){if(!C.sourceIndex||!B.sourceIndex){return 0;}return C.sourceIndex-B.sourceIndex; 157 | }:(w.createRange)?function(E,C){if(!E.ownerDocument||!C.ownerDocument){return 0;}var D=E.ownerDocument.createRange(),B=C.ownerDocument.createRange();D.setStart(E,0); 158 | D.setEnd(E,0);B.setStart(C,0);B.setEnd(C,0);return D.compareBoundaryPoints(Range.START_TO_END,B);}:null;y=null;for(A in o){this[A]=o[A];}};var e=/^([#.]?)((?:[\w-]+|\*))$/,g=/\[.+[*$^]=(?:""|'')?\]/,f={}; 159 | j.search=function(U,z,H,s){var p=this.found=(s)?null:(H||[]);if(!U){return p;}else{if(U.navigator){U=U.document;}else{if(!U.nodeType){return p;}}}var F,O,V=this.uniques={},I=!!(H&&H.length),y=(U.nodeType==9); 160 | if(this.document!==(y?U:U.ownerDocument)){this.setDocument(U);}if(I){for(O=p.length;O--;){V[this.getUID(p[O])]=true;}}if(typeof z=="string"){var r=z.match(e); 161 | simpleSelectors:if(r){var u=r[1],v=r[2],A,E;if(!u){if(v=="*"&&this.brokenStarGEBTN){break simpleSelectors;}E=U.getElementsByTagName(v);if(s){return E[0]||null; 162 | }for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}else{if(u=="#"){if(!this.isHTMLDocument||!y){break simpleSelectors;}A=U.getElementById(v); 163 | if(!A){return p;}if(this.idGetsName&&A.getAttributeNode("id").nodeValue!=v){break simpleSelectors;}if(s){return A||null;}if(!(I&&V[this.getUID(A)])){p.push(A); 164 | }}else{if(u=="."){if(!this.isHTMLDocument||((!U.getElementsByClassName||this.brokenGEBCN)&&U.querySelectorAll)){break simpleSelectors;}if(U.getElementsByClassName&&!this.brokenGEBCN){E=U.getElementsByClassName(v); 165 | if(s){return E[0]||null;}for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}else{var T=new RegExp("(^|\\s)"+d.escapeRegExp(v)+"(\\s|$)");E=U.getElementsByTagName("*"); 166 | for(O=0;A=E[O++];){className=A.className;if(!(className&&T.test(className))){continue;}if(s){return A;}if(!(I&&V[this.getUID(A)])){p.push(A);}}}}}}if(I){this.sort(p); 167 | }return(s)?null:p;}querySelector:if(U.querySelectorAll){if(!this.isHTMLDocument||f[z]||this.brokenMixedCaseQSA||(this.brokenCheckedQSA&&z.indexOf(":checked")>-1)||(this.brokenEmptyAttributeQSA&&g.test(z))||(!y&&z.indexOf(",")>-1)||d.disableQSA){break querySelector; 168 | }var S=z,x=U;if(!y){var C=x.getAttribute("id"),t="slickid__";x.setAttribute("id",t);S="#"+t+" "+S;U=x.parentNode;}try{if(s){return U.querySelector(S)||null; 169 | }else{E=U.querySelectorAll(S);}}catch(Q){f[z]=1;break querySelector;}finally{if(!y){if(C){x.setAttribute("id",C);}else{x.removeAttribute("id");}U=x;}}if(this.starSelectsClosedQSA){for(O=0; 170 | A=E[O++];){if(A.nodeName>"@"&&!(I&&V[this.getUID(A)])){p.push(A);}}}else{for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}if(I){this.sort(p); 171 | }return p;}F=this.Slick.parse(z);if(!F.length){return p;}}else{if(z==null){return p;}else{if(z.Slick){F=z;}else{if(this.contains(U.documentElement||U,z)){(p)?p.push(z):p=z; 172 | return p;}else{return p;}}}}this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=(!I&&(s||(F.length==1&&F.expressions[0].length==1)))?this.pushArray:this.pushUID; 173 | if(p==null){p=[];}var M,L,K;var B,J,D,c,q,G,W;var N,P,o,w,R=F.expressions;search:for(O=0;(P=R[O]);O++){for(M=0;(o=P[M]);M++){B="combinator:"+o.combinator; 174 | if(!this[B]){continue search;}J=(this.isXMLDocument)?o.tag:o.tag.toUpperCase();D=o.id;c=o.classList;q=o.classes;G=o.attributes;W=o.pseudos;w=(M===(P.length-1)); 175 | this.bitUniques={};if(w){this.uniques=V;this.found=p;}else{this.uniques={};this.found=[];}if(M===0){this[B](U,J,D,q,G,W,c);if(s&&w&&p.length){break search; 176 | }}else{if(s&&w){for(L=0,K=N.length;L1)){this.sort(p);}return(s)?(p[0]||null):p;};j.uidx=1;j.uidk="slick-uniqueid";j.getUIDXML=function(m){var c=m.getAttribute(this.uidk); 178 | if(!c){c=this.uidx++;m.setAttribute(this.uidk,c);}return c;};j.getUIDHTML=function(c){return c.uniqueNumber||(c.uniqueNumber=this.uidx++);};j.sort=function(c){if(!this.documentSorter){return c; 179 | }c.sort(this.documentSorter);return c;};j.cacheNTH={};j.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;j.parseNTHArgument=function(p){var n=p.match(this.matchNTH); 180 | if(!n){return false;}var o=n[2]||false;var m=n[1]||1;if(m=="-"){m=-1;}var c=+n[3]||0;n=(o=="n")?{a:m,b:c}:(o=="odd")?{a:2,b:1}:(o=="even")?{a:2,b:0}:{a:0,b:m}; 181 | return(this.cacheNTH[p]=n);};j.createNTHPseudo=function(o,m,c,n){return function(r,p){var t=this.getUID(r);if(!this[c][t]){var z=r.parentNode;if(!z){return false; 182 | }var q=z[o],s=1;if(n){var y=r.nodeName;do{if(q.nodeName!=y){continue;}this[c][this.getUID(q)]=s++;}while((q=q[m]));}else{do{if(q.nodeType!=1){continue; 183 | }this[c][this.getUID(q)]=s++;}while((q=q[m]));}}p=p||"n";var u=this.cacheNTH[p]||this.parseNTHArgument(p);if(!u){return false;}var x=u.a,w=u.b,v=this[c][t]; 184 | if(x==0){return w==v;}if(x>0){if(v":function(o,c,q,n,m,p){if((o=o.firstChild)){do{if(o.nodeType==1){this.push(o,c,q,n,m,p); 199 | }}while((o=o.nextSibling));}},"+":function(o,c,q,n,m,p){while((o=o.nextSibling)){if(o.nodeType==1){this.push(o,c,q,n,m,p);break;}}},"^":function(o,c,q,n,m,p){o=o.firstChild; 200 | if(o){if(o.nodeType==1){this.push(o,c,q,n,m,p);}else{this["combinator:+"](o,c,q,n,m,p);}}},"~":function(p,c,r,o,m,q){while((p=p.nextSibling)){if(p.nodeType!=1){continue; 201 | }var n=this.getUID(p);if(this.bitUniques[n]){break;}this.bitUniques[n]=true;this.push(p,c,r,o,m,q);}},"++":function(o,c,q,n,m,p){this["combinator:+"](o,c,q,n,m,p); 202 | this["combinator:!+"](o,c,q,n,m,p);},"~~":function(o,c,q,n,m,p){this["combinator:~"](o,c,q,n,m,p);this["combinator:!~"](o,c,q,n,m,p);},"!":function(o,c,q,n,m,p){while((o=o.parentNode)){if(o!==this.document){this.push(o,c,q,n,m,p); 203 | }}},"!>":function(o,c,q,n,m,p){o=o.parentNode;if(o!==this.document){this.push(o,c,q,n,m,p);}},"!+":function(o,c,q,n,m,p){while((o=o.previousSibling)){if(o.nodeType==1){this.push(o,c,q,n,m,p); 204 | break;}}},"!^":function(o,c,q,n,m,p){o=o.lastChild;if(o){if(o.nodeType==1){this.push(o,c,q,n,m,p);}else{this["combinator:!+"](o,c,q,n,m,p);}}},"!~":function(p,c,r,o,m,q){while((p=p.previousSibling)){if(p.nodeType!=1){continue; 205 | }var n=this.getUID(p);if(this.bitUniques[n]){break;}this.bitUniques[n]=true;this.push(p,c,r,o,m,q);}}};for(var h in i){j["combinator:"+h]=i[h];}var k={empty:function(c){var m=c.firstChild; 206 | return !(m&&m.nodeType==1)&&!(c.innerText||c.textContent||"").length;},not:function(c,m){return !this.matchNode(c,m);},contains:function(c,m){return(c.innerText||c.textContent||"").indexOf(m)>-1; 207 | },"first-child":function(c){while((c=c.previousSibling)){if(c.nodeType==1){return false;}}return true;},"last-child":function(c){while((c=c.nextSibling)){if(c.nodeType==1){return false; 208 | }}return true;},"only-child":function(n){var m=n;while((m=m.previousSibling)){if(m.nodeType==1){return false;}}var c=n;while((c=c.nextSibling)){if(c.nodeType==1){return false; 209 | }}return true;},"nth-child":j.createNTHPseudo("firstChild","nextSibling","posNTH"),"nth-last-child":j.createNTHPseudo("lastChild","previousSibling","posNTHLast"),"nth-of-type":j.createNTHPseudo("firstChild","nextSibling","posNTHType",true),"nth-last-of-type":j.createNTHPseudo("lastChild","previousSibling","posNTHTypeLast",true),index:function(m,c){return this["pseudo:nth-child"](m,""+c+1); 210 | },even:function(c){return this["pseudo:nth-child"](c,"2n");},odd:function(c){return this["pseudo:nth-child"](c,"2n+1");},"first-of-type":function(c){var m=c.nodeName; 211 | while((c=c.previousSibling)){if(c.nodeName==m){return false;}}return true;},"last-of-type":function(c){var m=c.nodeName;while((c=c.nextSibling)){if(c.nodeName==m){return false; 212 | }}return true;},"only-of-type":function(n){var m=n,o=n.nodeName;while((m=m.previousSibling)){if(m.nodeName==o){return false;}}var c=n;while((c=c.nextSibling)){if(c.nodeName==o){return false; 213 | }}return true;},enabled:function(c){return !c.disabled;},disabled:function(c){return c.disabled;},checked:function(c){return c.checked||c.selected;},focus:function(c){return this.isHTMLDocument&&this.document.activeElement===c&&(c.href||c.type||this.hasAttribute(c,"tabindex")); 214 | },root:function(c){return(c===this.root);},selected:function(c){return c.selected;}};for(var a in k){j["pseudo:"+a]=k[a];}j.attributeGetters={"class":function(){return this.getAttribute("class")||this.className; 215 | },"for":function(){return("htmlFor" in this)?this.htmlFor:this.getAttribute("for");},href:function(){return("href" in this)?this.getAttribute("href",2):this.getAttribute("href"); 216 | },style:function(){return(this.style)?this.style.cssText:this.getAttribute("style");},tabindex:function(){var c=this.getAttributeNode("tabindex");return(c&&c.specified)?c.nodeValue:null; 217 | },type:function(){return this.getAttribute("type");}};var d=j.Slick=(this.Slick||{});d.version="1.1.5";d.search=function(m,n,c){return j.search(m,n,c); 218 | };d.find=function(c,m){return j.search(c,m,null,true);};d.contains=function(c,m){j.setDocument(c);return j.contains(c,m);};d.getAttribute=function(m,c){return j.getAttribute(m,c); 219 | };d.match=function(m,c){if(!(m&&c)){return false;}if(!c||c===m){return true;}j.setDocument(m);return j.matchNode(m,c);};d.defineAttributeGetter=function(c,m){j.attributeGetters[c]=m; 220 | return this;};d.lookupAttributeGetter=function(c){return j.attributeGetters[c];};d.definePseudo=function(c,m){j["pseudo:"+c]=function(o,n){return m.call(o,n); 221 | };return this;};d.lookupPseudo=function(c){var m=j["pseudo:"+c];if(m){return function(n){return m.call(this,n);};}return null;};d.override=function(m,c){j.override(m,c); 222 | return this;};d.isXML=j.isXML;d.uidOf=function(c){return j.getUIDHTML(c);};if(!this.Slick){this.Slick=d;}}).apply((typeof exports!="undefined")?exports:this); 223 | var Element=function(b,g){var h=Element.Constructors[b];if(h){return h(g);}if(typeof b!="string"){return document.id(b).set(g);}if(!g){g={};}if(!(/^[\w-]+$/).test(b)){var e=Slick.parse(b).expressions[0][0]; 224 | b=(e.tag=="*")?"div":e.tag;if(e.id&&g.id==null){g.id=e.id;}var d=e.attributes;if(d){for(var f=0,c=d.length;f=this.length){delete this[e--];}return this; 239 | }.protect());}Elements.implement(Array.prototype);Array.mirror(Elements);var f;try{var a=document.createElement("");f=(a.name=="x");}catch(c){}var d=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,"""); 240 | };Document.implement({newElement:function(e,h){if(h&&h.checked!=null){h.defaultChecked=h.checked;}if(f&&h){e="<"+e;if(h.name){e+=' name="'+d(h.name)+'"'; 241 | }if(h.type){e+=' type="'+d(h.type)+'"';}e+=">";delete h.name;delete h.type;}return this.id(this.createElement(e)).set(h);}});})();Document.implement({newTextNode:function(a){return this.createTextNode(a); 242 | },getDocument:function(){return this;},getWindow:function(){return this.window;},id:(function(){var a={string:function(d,c,b){d=Slick.find(b,"#"+d.replace(/(\W)/g,"\\$1")); 243 | return(d)?a.element(d,c):null;},element:function(b,c){$uid(b);if(!c&&!b.$family&&!(/^(?:object|embed)$/i).test(b.tagName)){Object.append(b,Element.Prototype); 244 | }return b;},object:function(c,d,b){if(c.toElement){return a.element(c.toElement(b),d);}return null;}};a.textnode=a.whitespace=a.window=a.document=function(b){return b; 245 | };return function(c,e,d){if(c&&c.$family&&c.uid){return c;}var b=typeOf(c);return(a[b])?a[b](c,e,d||document):null;};})()});if(window.$==null){Window.implement("$",function(a,b){return document.id(a,b,this.document); 246 | });}Window.implement({getDocument:function(){return this.document;},getWindow:function(){return this;}});[Document,Element].invoke("implement",{getElements:function(a){return Slick.search(this,a,new Elements); 247 | },getElement:function(a){return document.id(Slick.find(this,a));}});if(window.$$==null){Window.implement("$$",function(a){if(arguments.length==1){if(typeof a=="string"){return Slick.search(this.document,a,new Elements); 248 | }else{if(Type.isEnumerable(a)){return new Elements(a);}}}return new Elements(arguments);});}(function(){var k={},i={};var n={input:"checked",option:"selected",textarea:"value"}; 249 | var e=function(p){return(i[p]||(i[p]={}));};var j=function(q){var p=q.uid;if(q.removeEvents){q.removeEvents();}if(q.clearAttributes){q.clearAttributes(); 250 | }if(p!=null){delete k[p];delete i[p];}return q;};var o=["defaultValue","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]; 251 | var d=["compact","nowrap","ismap","declare","noshade","checked","disabled","readOnly","multiple","selected","noresize","defer","defaultChecked"];var g={html:"innerHTML","class":"className","for":"htmlFor",text:(function(){var p=document.createElement("div"); 252 | return(p.textContent==null)?"innerText":"textContent";})()};var m=["type"];var h=["value","defaultValue"];var l=/^(?:href|src|usemap)$/i;d=d.associate(d); 253 | o=o.associate(o.map(String.toLowerCase));m=m.associate(m);Object.append(g,h.associate(h));var c={before:function(q,p){var r=p.parentNode;if(r){r.insertBefore(q,p); 254 | }},after:function(q,p){var r=p.parentNode;if(r){r.insertBefore(q,p.nextSibling);}},bottom:function(q,p){p.appendChild(q);},top:function(q,p){p.insertBefore(q,p.firstChild); 255 | }};c.inside=c.bottom;var b=function(s,r){if(!s){return r;}s=Object.clone(Slick.parse(s));var q=s.expressions;for(var p=q.length;p--;){q[p][0].combinator=r; 256 | }return s;};Element.implement({set:function(r,q){var p=Element.Properties[r];(p&&p.set)?p.set.call(this,q):this.setProperty(r,q);}.overloadSetter(),get:function(q){var p=Element.Properties[q]; 257 | return(p&&p.get)?p.get.apply(this):this.getProperty(q);}.overloadGetter(),erase:function(q){var p=Element.Properties[q];(p&&p.erase)?p.erase.apply(this):this.removeProperty(q); 258 | return this;},setProperty:function(q,r){q=o[q]||q;if(r==null){return this.removeProperty(q);}var p=g[q];(p)?this[p]=r:(d[q])?this[q]=!!r:this.setAttribute(q,""+r); 259 | return this;},setProperties:function(p){for(var q in p){this.setProperty(q,p[q]);}return this;},getProperty:function(q){q=o[q]||q;var p=g[q]||m[q];return(p)?this[p]:(d[q])?!!this[q]:(l.test(q)?this.getAttribute(q,2):(p=this.getAttributeNode(q))?p.nodeValue:null)||null; 260 | },getProperties:function(){var p=Array.from(arguments);return p.map(this.getProperty,this).associate(p);},removeProperty:function(q){q=o[q]||q;var p=g[q]; 261 | (p)?this[p]="":(d[q])?this[q]=false:this.removeAttribute(q);return this;},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this; 262 | },hasClass:function(p){return this.className.clean().contains(p," ");},addClass:function(p){if(!this.hasClass(p)){this.className=(this.className+" "+p).clean(); 263 | }return this;},removeClass:function(p){this.className=this.className.replace(new RegExp("(^|\\s)"+p+"(?:\\s|$)"),"$1");return this;},toggleClass:function(p,q){if(q==null){q=!this.hasClass(p); 264 | }return(q)?this.addClass(p):this.removeClass(p);},adopt:function(){var s=this,p,u=Array.flatten(arguments),t=u.length;if(t>1){s=p=document.createDocumentFragment(); 265 | }for(var r=0;r"))[0]);},getLast:function(p){return document.id(Slick.search(this,b(p,">")).getLast()); 270 | },getParent:function(p){return document.id(Slick.find(this,b(p,"!")));},getParents:function(p){return Slick.search(this,b(p,"!"),new Elements);},getSiblings:function(p){return Slick.search(this,b(p,"~~"),new Elements); 271 | },getChildren:function(p){return Slick.search(this,b(p,">"),new Elements);},getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument; 272 | },getElementById:function(p){return document.id(Slick.find(this,"#"+(""+p).replace(/(\W)/g,"\\$1")));},getSelected:function(){this.selectedIndex;return new Elements(Array.from(this.options).filter(function(p){return p.selected; 273 | }));},toQueryString:function(){var p=[];this.getElements("input, select, textarea").each(function(r){var q=r.type;if(!r.name||r.disabled||q=="submit"||q=="reset"||q=="file"||q=="image"){return; 274 | }var s=(r.get("tag")=="select")?r.getSelected().map(function(t){return document.id(t).get("value");}):((q=="radio"||q=="checkbox")&&!r.checked)?null:r.get("value"); 275 | Array.from(s).each(function(t){if(typeof t!="undefined"){p.push(encodeURIComponent(r.name)+"="+encodeURIComponent(t));}});});return p.join("&");},destroy:function(){var p=j(this).getElementsByTagName("*"); 276 | Array.each(p,j);Element.dispose(this);return null;},empty:function(){Array.from(this.childNodes).each(Element.dispose);return this;},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this; 277 | },match:function(p){return !p||Slick.match(this,p);}});var a=function(t,s,q){if(!q){t.setAttributeNode(document.createAttribute("id"));}if(t.clearAttributes){t.clearAttributes(); 278 | t.mergeAttributes(s);t.removeAttribute("uid");if(t.options){var u=t.options,p=s.options;for(var r=u.length;r--;){u[r].selected=p[r].selected;}}}var v=n[s.tagName.toLowerCase()]; 279 | if(v&&s[v]){t[v]=s[v];}};Element.implement("clone",function(r,p){r=r!==false;var w=this.cloneNode(r),q;if(r){var s=w.getElementsByTagName("*"),u=this.getElementsByTagName("*"); 280 | for(q=s.length;q--;){a(s[q],u[q],p);}}a(w,this,p);if(Browser.ie){var t=w.getElementsByTagName("object"),v=this.getElementsByTagName("object");for(q=t.length; 281 | q--;){t[q].outerHTML=v[q].outerHTML;}}return document.id(w);});var f={contains:function(p){return Slick.contains(this,p);}};if(!document.contains){Document.implement(f); 282 | }if(!document.createElement("div").contains){Element.implement(f);}[Element,Window,Document].invoke("implement",{addListener:function(s,r){if(s=="unload"){var p=r,q=this; 283 | r=function(){q.removeListener("unload",r);p();};}else{k[$uid(this)]=this;}if(this.addEventListener){this.addEventListener(s,r,!!arguments[2]);}else{this.attachEvent("on"+s,r); 284 | }return this;},removeListener:function(q,p){if(this.removeEventListener){this.removeEventListener(q,p,!!arguments[2]);}else{this.detachEvent("on"+q,p); 285 | }return this;},retrieve:function(q,p){var s=e($uid(this)),r=s[q];if(p!=null&&r==null){r=s[q]=p;}return r!=null?r:null;},store:function(q,p){var r=e($uid(this)); 286 | r[q]=p;return this;},eliminate:function(p){var q=e($uid(this));delete q[p];return this;}});if(window.attachEvent&&!window.addEventListener){window.addListener("unload",function(){Object.each(k,j); 287 | if(window.CollectGarbage){CollectGarbage();}});}})();Element.Properties={};Element.Properties.style={set:function(a){this.style.cssText=a;},get:function(){return this.style.cssText; 288 | },erase:function(){this.style.cssText="";}};Element.Properties.tag={get:function(){return this.tagName.toLowerCase();}};(function(a){if(a!=null){Element.Properties.maxlength=Element.Properties.maxLength={get:function(){var b=this.getAttribute("maxLength"); 289 | return b==a?null:b;}};}})(document.createElement("input").getAttribute("maxLength"));Element.Properties.html=(function(){var c=Function.attempt(function(){var e=document.createElement("table"); 290 | e.innerHTML="";});var d=document.createElement("div");var a={table:[1,"","
    "],select:[1,""],tbody:[2,"","
    "],tr:[3,"","
    "]}; 291 | a.thead=a.tfoot=a.tbody;var b={set:function(){var f=Array.flatten(arguments).join("");var g=(!c&&a[this.get("tag")]);if(g){var h=d;h.innerHTML=g[1]+f+g[2]; 292 | for(var e=g[0];e--;){h=h.firstChild;}this.empty().adopt(h.childNodes);}else{this.innerHTML=f;}}};b.erase=b.set;return b;})();(function(){var c=document.html; 293 | Element.Properties.styles={set:function(f){this.setStyles(f);}};var e=(c.style.opacity!=null);var d=/alpha\(opacity=([\d.]+)\)/i;var b=function(g,f){if(!g.currentStyle||!g.currentStyle.hasLayout){g.style.zoom=1; 294 | }if(e){g.style.opacity=f;}else{f=(f*100).limit(0,100).round();f=(f==100)?"":"alpha(opacity="+f+")";var h=g.style.filter||g.getComputedStyle("filter")||""; 295 | g.style.filter=d.test(h)?h.replace(d,f):h+f;}};Element.Properties.opacity={set:function(g){var f=this.style.visibility;if(g==0&&f!="hidden"){this.style.visibility="hidden"; 296 | }else{if(g!=0&&f!="visible"){this.style.visibility="visible";}}b(this,g);},get:(e)?function(){var f=this.style.opacity||this.getComputedStyle("opacity"); 297 | return(f=="")?1:f;}:function(){var f,g=(this.style.filter||this.getComputedStyle("filter"));if(g){f=g.match(d);}return(f==null||g==null)?1:(f[1]/100);}}; 298 | var a=(c.style.cssFloat==null)?"styleFloat":"cssFloat";Element.implement({getComputedStyle:function(h){if(this.currentStyle){return this.currentStyle[h.camelCase()]; 299 | }var g=Element.getDocument(this).defaultView,f=g?g.getComputedStyle(this,null):null;return(f)?f.getPropertyValue((h==a)?"float":h.hyphenate()):null;},setOpacity:function(f){b(this,f); 300 | return this;},getOpacity:function(){return this.get("opacity");},setStyle:function(g,f){switch(g){case"opacity":return this.set("opacity",parseFloat(f)); 301 | case"float":g=a;}g=g.camelCase();if(typeOf(f)!="string"){var h=(Element.Styles[g]||"@").split(" ");f=Array.from(f).map(function(k,j){if(!h[j]){return""; 302 | }return(typeOf(k)=="number")?h[j].replace("@",Math.round(k)):k;}).join(" ");}else{if(f==String(Number(f))){f=Math.round(f);}}this.style[g]=f;return this; 303 | },getStyle:function(l){switch(l){case"opacity":return this.get("opacity");case"float":l=a;}l=l.camelCase();var f=this.style[l];if(!f||l=="zIndex"){f=[]; 304 | for(var k in Element.ShortStyles){if(l!=k){continue;}for(var j in Element.ShortStyles[k]){f.push(this.getStyle(j));}return f.join(" ");}f=this.getComputedStyle(l); 305 | }if(f){f=String(f);var h=f.match(/rgba?\([\d\s,]+\)/);if(h){f=f.replace(h[0],h[0].rgbToHex());}}if(Browser.opera||(Browser.ie&&isNaN(parseFloat(f)))){if((/^(height|width)$/).test(l)){var g=(l=="width")?["left","right"]:["top","bottom"],i=0; 306 | g.each(function(m){i+=this.getStyle("border-"+m+"-width").toInt()+this.getStyle("padding-"+m).toInt();},this);return this["offset"+l.capitalize()]-i+"px"; 307 | }if(Browser.opera&&String(f).indexOf("px")!=-1){return f;}if((/^border(.+)Width|margin|padding/).test(l)){return"0px";}}return f;},setStyles:function(g){for(var f in g){this.setStyle(f,g[f]); 308 | }return this;},getStyles:function(){var f={};Array.flatten(arguments).each(function(g){f[g]=this.getStyle(g);},this);return f;}});Element.Styles={left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}; 309 | Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(l){var k=Element.ShortStyles; 310 | var g=Element.Styles;["margin","padding"].each(function(m){var n=m+l;k[m][n]=g[n]="@px";});var j="border"+l;k.border[j]=g[j]="@px @ rgb(@, @, @)";var i=j+"Width",f=j+"Style",h=j+"Color"; 311 | k[j]={};k.borderWidth[i]=k[j][i]=g[i]="@px";k.borderStyle[f]=k[j][f]=g[f]="@";k.borderColor[h]=k[j][h]=g[h]="rgb(@, @, @)";});})();(function(){Element.Properties.events={set:function(b){this.addEvents(b); 312 | }};[Element,Window,Document].invoke("implement",{addEvent:function(f,h){var i=this.retrieve("events",{});if(!i[f]){i[f]={keys:[],values:[]};}if(i[f].keys.contains(h)){return this; 313 | }i[f].keys.push(h);var g=f,b=Element.Events[f],d=h,j=this;if(b){if(b.onAdd){b.onAdd.call(this,h);}if(b.condition){d=function(k){if(b.condition.call(this,k)){return h.call(this,k); 314 | }return true;};}g=b.base||g;}var e=function(){return h.call(j);};var c=Element.NativeEvents[g];if(c){if(c==2){e=function(k){k=new Event(k,j.getWindow()); 315 | if(d.call(j,k)===false){k.stop();}};}this.addListener(g,e,arguments[2]);}i[f].values.push(e);return this;},removeEvent:function(e,d){var c=this.retrieve("events"); 316 | if(!c||!c[e]){return this;}var h=c[e];var b=h.keys.indexOf(d);if(b==-1){return this;}var g=h.values[b];delete h.keys[b];delete h.values[b];var f=Element.Events[e]; 317 | if(f){if(f.onRemove){f.onRemove.call(this,d);}e=f.base||e;}return(Element.NativeEvents[e])?this.removeListener(e,g,arguments[2]):this;},addEvents:function(b){for(var c in b){this.addEvent(c,b[c]); 318 | }return this;},removeEvents:function(b){var d;if(typeOf(b)=="object"){for(d in b){this.removeEvent(d,b[d]);}return this;}var c=this.retrieve("events"); 319 | if(!c){return this;}if(!b){for(d in c){this.removeEvents(d);}this.eliminate("events");}else{if(c[b]){c[b].keys.each(function(e){this.removeEvent(b,e);},this); 320 | delete c[b];}}return this;},fireEvent:function(e,c,b){var d=this.retrieve("events");if(!d||!d[e]){return this;}c=Array.from(c);d[e].keys.each(function(f){if(b){f.delay(b,this,c); 321 | }else{f.apply(this,c);}},this);return this;},cloneEvents:function(e,d){e=document.id(e);var c=e.retrieve("events");if(!c){return this;}if(!d){for(var b in c){this.cloneEvents(e,b); 322 | }}else{if(c[d]){c[d].keys.each(function(f){this.addEvent(d,f);},this);}}return this;}});Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,orientationchange:2,touchstart:2,touchmove:2,touchend:2,touchcancel:2,gesturestart:2,gesturechange:2,gestureend:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:2,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; 323 | var a=function(b){var c=b.relatedTarget;if(c==null){return true;}if(!c){return false;}return(c!=this&&c.prefix!="xul"&&typeOf(this)!="document"&&!this.contains(c)); 324 | };Element.Events={mouseenter:{base:"mouseover",condition:a},mouseleave:{base:"mouseout",condition:a},mousewheel:{base:(Browser.firefox)?"DOMMouseScroll":"mousewheel"}}; 325 | })();(function(){var h=document.createElement("div"),e=document.createElement("div");h.style.height="0";h.appendChild(e);var d=(e.offsetParent===h);h=e=null; 326 | var l=function(m){return k(m,"position")!="static"||a(m);};var i=function(m){return l(m)||(/^(?:table|td|th)$/i).test(m.tagName);};Element.implement({scrollTo:function(m,n){if(a(this)){this.getWindow().scrollTo(m,n); 327 | }else{this.scrollLeft=m;this.scrollTop=n;}return this;},getSize:function(){if(a(this)){return this.getWindow().getSize();}return{x:this.offsetWidth,y:this.offsetHeight}; 328 | },getScrollSize:function(){if(a(this)){return this.getWindow().getScrollSize();}return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(a(this)){return this.getWindow().getScroll(); 329 | }return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var n=this.parentNode,m={x:0,y:0};while(n&&!a(n)){m.x+=n.scrollLeft;m.y+=n.scrollTop; 330 | n=n.parentNode;}return m;},getOffsetParent:d?function(){var m=this;if(a(m)||k(m,"position")=="fixed"){return null;}var n=(k(m,"position")=="static")?i:l; 331 | while((m=m.parentNode)){if(n(m)){return m;}}return null;}:function(){var m=this;if(a(m)||k(m,"position")=="fixed"){return null;}try{return m.offsetParent; 332 | }catch(n){}return null;},getOffsets:function(){if(this.getBoundingClientRect&&!Browser.Platform.ios){var r=this.getBoundingClientRect(),o=document.id(this.getDocument().documentElement),q=o.getScroll(),t=this.getScrolls(),s=(k(this,"position")=="fixed"); 333 | return{x:r.left.toInt()+t.x+((s)?0:q.x)-o.clientLeft,y:r.top.toInt()+t.y+((s)?0:q.y)-o.clientTop};}var n=this,m={x:0,y:0};if(a(this)){return m;}while(n&&!a(n)){m.x+=n.offsetLeft; 334 | m.y+=n.offsetTop;if(Browser.firefox){if(!c(n)){m.x+=b(n);m.y+=g(n);}var p=n.parentNode;if(p&&k(p,"overflow")!="visible"){m.x+=b(p);m.y+=g(p);}}else{if(n!=this&&Browser.safari){m.x+=b(n); 335 | m.y+=g(n);}}n=n.offsetParent;}if(Browser.firefox&&!c(this)){m.x-=b(this);m.y-=g(this);}return m;},getPosition:function(p){if(a(this)){return{x:0,y:0};}var q=this.getOffsets(),n=this.getScrolls(); 336 | var m={x:q.x-n.x,y:q.y-n.y};if(p&&(p=document.id(p))){var o=p.getPosition();return{x:m.x-o.x-b(p),y:m.y-o.y-g(p)};}return m;},getCoordinates:function(o){if(a(this)){return this.getWindow().getCoordinates(); 337 | }var m=this.getPosition(o),n=this.getSize();var p={left:m.x,top:m.y,width:n.x,height:n.y};p.right=p.left+p.width;p.bottom=p.top+p.height;return p;},computePosition:function(m){return{left:m.x-j(this,"margin-left"),top:m.y-j(this,"margin-top")}; 338 | },setPosition:function(m){return this.setStyles(this.computePosition(m));}});[Document,Window].invoke("implement",{getSize:function(){var m=f(this);return{x:m.clientWidth,y:m.clientHeight}; 339 | },getScroll:function(){var n=this.getWindow(),m=f(this);return{x:n.pageXOffset||m.scrollLeft,y:n.pageYOffset||m.scrollTop};},getScrollSize:function(){var o=f(this),n=this.getSize(),m=this.getDocument().body; 340 | return{x:Math.max(o.scrollWidth,m.scrollWidth,n.x),y:Math.max(o.scrollHeight,m.scrollHeight,n.y)};},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var m=this.getSize(); 341 | return{top:0,left:0,bottom:m.y,right:m.x,height:m.y,width:m.x};}});var k=Element.getComputedStyle;function j(m,n){return k(m,n).toInt()||0;}function c(m){return k(m,"-moz-box-sizing")=="border-box"; 342 | }function g(m){return j(m,"border-top-width");}function b(m){return j(m,"border-left-width");}function a(m){return(/^(?:body|html)$/i).test(m.tagName); 343 | }function f(m){var n=m.getDocument();return(!n.compatMode||n.compatMode=="CSS1Compat")?n.html:n.body;}})();Element.alias({position:"setPosition"});[Window,Document,Element].invoke("implement",{getHeight:function(){return this.getSize().y; 344 | },getWidth:function(){return this.getSize().x;},getScrollTop:function(){return this.getScroll().y;},getScrollLeft:function(){return this.getScroll().x; 345 | },getScrollHeight:function(){return this.getScrollSize().y;},getScrollWidth:function(){return this.getScrollSize().x;},getTop:function(){return this.getPosition().y; 346 | },getLeft:function(){return this.getPosition().x;}});(function(){var f=this.Fx=new Class({Implements:[Chain,Events,Options],options:{fps:60,unit:false,duration:500,frames:null,frameSkip:true,link:"ignore"},initialize:function(g){this.subject=this.subject||this; 347 | this.setOptions(g);},getTransition:function(){return function(g){return -(Math.cos(Math.PI*g)-1)/2;};},step:function(g){if(this.options.frameSkip){var h=(this.time!=null)?(g-this.time):0,i=h/this.frameInterval; 348 | this.time=g;this.frame+=i;}else{this.frame++;}if(this.frame=(7-4*d)/11){e=c*c-Math.pow((11-6*d-11*f)/4,2);break;}}return e; 390 | },Elastic:function(b,a){return Math.pow(2,10*--b)*Math.cos(20*b*Math.PI*(a&&a[0]||1)/3);}});["Quad","Cubic","Quart","Quint"].each(function(b,a){Fx.Transitions[b]=new Fx.Transition(function(c){return Math.pow(c,a+2); 391 | });});(function(){var d=function(){},a=("onprogress" in new Browser.Request);var c=this.Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false,timeout:0,noCache:false},initialize:function(e){this.xhr=new Browser.Request(); 392 | this.setOptions(e);this.headers=this.options.headers;},onStateChange:function(){var e=this.xhr;if(e.readyState!=4||!this.running){return;}this.running=false; 393 | this.status=0;Function.attempt(function(){var f=e.status;this.status=(f==1223)?204:f;}.bind(this));e.onreadystatechange=d;if(a){e.onprogress=e.onloadstart=d; 394 | }clearTimeout(this.timer);this.response={text:this.xhr.responseText||"",xml:this.xhr.responseXML};if(this.options.isSuccess.call(this,this.status)){this.success(this.response.text,this.response.xml); 395 | }else{this.failure();}},isSuccess:function(){var e=this.status;return(e>=200&&e<300);},isRunning:function(){return !!this.running;},processScripts:function(e){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return Browser.exec(e); 396 | }return e.stripScripts(this.options.evalScripts);},success:function(f,e){this.onSuccess(this.processScripts(f),e);},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain(); 397 | },failure:function(){this.onFailure();},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr);},loadstart:function(e){this.fireEvent("loadstart",[e,this.xhr]); 398 | },progress:function(e){this.fireEvent("progress",[e,this.xhr]);},timeout:function(){this.fireEvent("timeout",this.xhr);},setHeader:function(e,f){this.headers[e]=f; 399 | return this;},getHeader:function(e){return Function.attempt(function(){return this.xhr.getResponseHeader(e);}.bind(this));},check:function(){if(!this.running){return true; 400 | }switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.pass(arguments,this));return false;}return false;},send:function(o){if(!this.check(o)){return this; 401 | }this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=true;var l=typeOf(o);if(l=="string"||l=="element"){o={data:o};}var h=this.options; 402 | o=Object.append({data:h.data,url:h.url,method:h.method},o);var j=o.data,f=String(o.url),e=o.method.toLowerCase();switch(typeOf(j)){case"element":j=document.id(j).toQueryString(); 403 | break;case"object":case"hash":j=Object.toQueryString(j);}if(this.options.format){var m="format="+this.options.format;j=(j)?m+"&"+j:m;}if(this.options.emulation&&!["get","post"].contains(e)){var k="_method="+e; 404 | j=(j)?k+"&"+j:k;e="post";}if(this.options.urlEncoded&&["post","put"].contains(e)){var g=(this.options.encoding)?"; charset="+this.options.encoding:"";this.headers["Content-type"]="application/x-www-form-urlencoded"+g; 405 | }if(!f){f=document.location.pathname;}var i=f.lastIndexOf("/");if(i>-1&&(i=f.indexOf("#"))>-1){f=f.substr(0,i);}if(this.options.noCache){f+=(f.contains("?")?"&":"?")+String.uniqueID(); 406 | }if(j&&e=="get"){f+=(f.contains("?")?"&":"?")+j;j=null;}var n=this.xhr;if(a){n.onloadstart=this.loadstart.bind(this);n.onprogress=this.progress.bind(this); 407 | }n.open(e.toUpperCase(),f,this.options.async,this.options.user,this.options.password);if(this.options.user&&"withCredentials" in n){n.withCredentials=true; 408 | }n.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(q,p){try{n.setRequestHeader(p,q);}catch(r){this.fireEvent("exception",[p,q]); 409 | }},this);this.fireEvent("request");n.send(j);if(!this.options.async){this.onStateChange();}if(this.options.timeout){this.timer=this.timeout.delay(this.options.timeout,this); 410 | }return this;},cancel:function(){if(!this.running){return this;}this.running=false;var e=this.xhr;e.abort();clearTimeout(this.timer);e.onreadystatechange=d; 411 | if(a){e.onprogress=e.onloadstart=d;}this.xhr=new Browser.Request();this.fireEvent("cancel");return this;}});var b={};["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(e){b[e]=function(g){var f={method:e}; 412 | if(g!=null){f.data=g;}return this.send(f);};});c.implement(b);Element.Properties.send={set:function(e){var f=this.get("send").cancel();f.setOptions(e); 413 | return this;},get:function(){var e=this.retrieve("send");if(!e){e=new c({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")}); 414 | this.store("send",e);}return e;}};Element.implement({send:function(e){var f=this.get("send");f.send({data:this,url:e||f.options.url});return this;}});})(); 415 | Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false,headers:{Accept:"text/html, application/xml, text/xml, */*"}},success:function(e){var d=this.options,b=this.response; 416 | b.html=e.stripScripts(function(f){b.javascript=f;});var c=b.html.match(/]*>([\s\S]*?)<\/body>/i);if(c){b.html=c[1];}var a=new Element("div").set("html",b.html); 417 | b.tree=a.childNodes;b.elements=a.getElements("*");if(d.filter){b.tree=b.elements.filter(d.filter);}if(d.update){document.id(d.update).empty().set("html",b.html); 418 | }else{if(d.append){document.id(d.append).adopt(a.getChildren());}}if(d.evalScripts){Browser.exec(b.javascript);}this.onSuccess(b.tree,b.elements,b.html,b.javascript); 419 | }});Element.Properties.load={set:function(a){var b=this.get("load").cancel();b.setOptions(a);return this;},get:function(){var a=this.retrieve("load");if(!a){a=new Request.HTML({data:this,link:"cancel",update:this,method:"get"}); 420 | this.store("load",a);}return a;}};Element.implement({load:function(){this.get("load").send(Array.link(arguments,{data:Type.isObject,url:Type.isString})); 421 | return this;}});if(typeof JSON=="undefined"){this.JSON={};}(function(){var special={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}; 422 | var escape=function(chr){return special[chr]||"\\u"+("0000"+chr.charCodeAt(0).toString(16)).slice(-4);};JSON.validate=function(string){string=string.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""); 423 | return(/^[\],:{}\s]*$/).test(string);};JSON.encode=JSON.stringify?function(obj){return JSON.stringify(obj);}:function(obj){if(obj&&obj.toJSON){obj=obj.toJSON(); 424 | }switch(typeOf(obj)){case"string":return'"'+obj.replace(/[\x00-\x1f\\"]/g,escape)+'"';case"array":return"["+obj.map(JSON.encode).clean()+"]";case"object":case"hash":var string=[]; 425 | Object.each(obj,function(value,key){var json=JSON.encode(value);if(json){string.push(JSON.encode(key)+":"+json);}});return"{"+string+"}";case"number":case"boolean":return""+obj; 426 | case"null":return"null";}return null;};JSON.decode=function(string,secure){if(!string||typeOf(string)!="string"){return null;}if(secure||JSON.secure){if(JSON.parse){return JSON.parse(string); 427 | }if(!JSON.validate(string)){throw new Error("JSON could not decode the input; security is enabled and the value is not secure.");}}return eval("("+string+")"); 428 | };})();Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(a){this.parent(a);Object.append(this.headers,{Accept:"application/json","X-Request":"JSON"}); 429 | },success:function(c){var b;try{b=this.response.json=JSON.decode(c,this.options.secure);}catch(a){this.fireEvent("error",[c,a]);return;}if(b==null){this.onFailure(); 430 | }else{this.onSuccess(b,c);}}});var Cookie=new Class({Implements:Options,options:{path:"/",domain:false,duration:false,secure:false,document:document,encode:true},initialize:function(b,a){this.key=b; 431 | this.setOptions(a);},write:function(b){if(this.options.encode){b=encodeURIComponent(b);}if(this.options.domain){b+="; domain="+this.options.domain;}if(this.options.path){b+="; path="+this.options.path; 432 | }if(this.options.duration){var a=new Date();a.setTime(a.getTime()+this.options.duration*24*60*60*1000);b+="; expires="+a.toGMTString();}if(this.options.secure){b+="; secure"; 433 | }this.options.document.cookie=this.key+"="+b;return this;},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)"); 434 | return(a)?decodeURIComponent(a[1]):null;},dispose:function(){new Cookie(this.key,Object.merge({},this.options,{duration:-1})).write("");return this;}}); 435 | Cookie.write=function(b,c,a){return new Cookie(b,a).write(c);};Cookie.read=function(a){return new Cookie(a).read();};Cookie.dispose=function(b,a){return new Cookie(b,a).dispose(); 436 | };(function(i,k){var l,f,e=[],c,b,d=k.createElement("div");var g=function(){clearTimeout(b);if(l){return;}Browser.loaded=l=true;k.removeListener("DOMContentLoaded",g).removeListener("readystatechange",a); 437 | k.fireEvent("domready");i.fireEvent("domready");};var a=function(){for(var m=e.length;m--;){if(e[m]()){g();return true;}}return false;};var j=function(){clearTimeout(b); 438 | if(!a()){b=setTimeout(j,10);}};k.addListener("DOMContentLoaded",g);var h=function(){try{d.doScroll();return true;}catch(m){}return false;};if(d.doScroll&&!h()){e.push(h); 439 | c=true;}if(k.readyState){e.push(function(){var m=k.readyState;return(m=="loaded"||m=="complete");});}if("onreadystatechange" in k){k.addListener("readystatechange",a); 440 | }else{c=true;}if(c){j();}Element.Events.domready={onAdd:function(m){if(l){m.call(this);}}};Element.Events.load={base:"load",onAdd:function(m){if(f&&this==i){m.call(this); 441 | }},condition:function(){if(this==i){g();delete Element.Events.load;}return true;}};i.addEvent("load",function(){f=true;});})(window,document);(function(){var Swiff=this.Swiff=new Class({Implements:Options,options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object; 442 | },initialize:function(path,options){this.instance="Swiff_"+String.uniqueID();this.setOptions(options);options=this.options;var id=this.id=options.id||this.instance; 443 | var container=document.id(options.container);Swiff.CallBacks[this.instance]={};var params=options.params,vars=options.vars,callBacks=options.callBacks; 444 | var properties=Object.append({height:options.height,width:options.width},options.properties);var self=this;for(var callBack in callBacks){Swiff.CallBacks[this.instance][callBack]=(function(option){return function(){return option.apply(self.object,arguments); 445 | };})(callBacks[callBack]);vars[callBack]="Swiff.CallBacks."+this.instance+"."+callBack;}params.flashVars=Object.toQueryString(vars);if(Browser.ie){properties.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; 446 | params.movie=path;}else{properties.type="application/x-shockwave-flash";}properties.data=path;var build='';}}build+="";this.object=((container)?container.empty():new Element("div")).set("html",build).firstChild; 448 | },replaces:function(element){element=document.id(element,true);element.parentNode.replaceChild(this.toElement(),element);return this;},inject:function(element){document.id(element,true).appendChild(this.toElement()); 449 | return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].append(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+""); 450 | return eval(rs);};})(); --------------------------------------------------------------------------------