 </div> <!--content wrapper -->
 <footer class="main-footer">
        <div class="pull-right hidden-xs">
          <b>Version</b> 2.0
        </div>
        <strong>Copyright &copy; 2016-2017 <a href="http://www.wemake.com.co">WEMAKE</a>.</strong> All rights reserved.
      </footer>

    </div><!-- ./wrapper -->
    

<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.25.6/sweetalert2.all.min.js"></script>
 <?php
 if ($path['call_parts'][1]=='index.php'||$path['call_parts'][1]=='') {
 	?>

<!--home asset -->
   <!-- Bootstrap 3.3.2 JS -->
    <script src="<?=base_admin();?>assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- FastClick -->
    <script src='<?=base_admin();?>assets/plugins/fastclick/fastclick.min.js'></script>
    <!-- AdminLTE App -->
    <script src="<?=base_admin();?>assets/dist/js/app.min.js" type="text/javascript"></script>
    <!-- Sparkline -->
    <script src="<?=base_admin();?>assets/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
    <!-- jvectormap -->
    <script src="<?=base_admin();?>assets/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
    <!-- daterangepicker -->
    <script src="<?=base_admin();?>assets/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
    <!-- datepicker -->
    <script src="<?=base_admin();?>assets/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
    <!-- iCheck -->
    <script src="<?=base_admin();?>assets/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
    <!-- SlimScroll 1.3.0 -->
    <script src="<?=base_admin();?>assets/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <!-- ChartJS 1.0.1 -->
    <script src="<?=base_admin();?>assets/plugins/chartjs/Chart.min.js" type="text/javascript"></script>

    <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
    <script src="<?=base_admin();?>assets/dist/js/pages/dashboard2.js" type="text/javascript"></script>

    <!-- AdminLTE for demo purposes 
    <script src="<?=base_admin();?>assets/dist/js/demo.js" type="text/javascript"></script>-->

   <?php
    } elseif ($path['call_parts'][1]!==''&&array_key_exists(2,$path['call_parts'])==false) {
   ?>
   <!--list table assets -->
     <!-- Bootstrap 3.3.2 JS -->
    <script src="<?=base_admin();?>assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!--delete script-->
    <script src="<?=base_admin();?>assets/dist/js/delete.js"></script>
    <!-- SlimScroll -->
    <script src="<?=base_admin();?>assets/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <!-- FastClick -->
    <script src='<?=base_admin();?>assets/plugins/fastclick/fastclick.min.js'></script>
    <!-- AdminLTE App -->
    <script src="<?=base_admin();?>assets/dist/js/app.min.js" type="text/javascript"></script>
    <!-- AdminLTE for demo purposes 
    <script src="<?=base_admin();?>assets/dist/js/demo.js" type="text/javascript"></script>-->
    <!-- page script -->
    <script type="text/javascript">
      $(function () {
        $("#dtb_manual").dataTable();
        $('#example2').dataTable({
          "bPaginate": true,
          "bLengthChange": false,
          "bFilter": false,
          "bSort": true,
          "bInfo": true,
          "bAutoWidth": false
        });
      });
    </script>
    <?php
     } elseif ($path['call_parts'][1]!==''&&array_key_exists(2,$path['call_parts'])==true) {
    ?>
    <!--form asset -->
 <!-- jQuery 2.1.3 -->
   <script src="<?=base_admin();?>assets/login/js/jqueryform.js"></script>
  <script src="<?=base_admin();?>assets/login/js/validate.js"></script>
      <script src="<?=base_admin();?>assets/plugins/ckeditor/ckeditor.js"></script>

     <script src="<?=base_admin();?>assets/plugins/ckeditor/adapters/jquery.js"></script>
<!-- ckeditor and kcfinder integration config -->
<script type="text/javascript">
  $('textarea.editbox' ).ckeditor({
    filebrowserBrowseUrl: '<?=base_admin();?>assetsplugins/kcfinder/browse.php?type=files',
filebrowserImageBrowseUrl: '<?=base_admin();?>assets/plugins/kcfinder/browse.php?type=images',
filebrowserFlashBrowseUrl: '<?=base_admin();?>assets/plugins/kcfinder/browse.php?type=flash',
filebrowserUploadUrl: '<?=base_admin();?>assets/plugins/kcfinder/upload.php?type=files',
filebrowserImageUploadUrl: '<?=base_admin();?>assets/plugins/kcfinder/upload.php?type=images',
filebrowserFlashUploadUrl: '<?=base_admin();?>assets/plugins/kcfinder/upload.php?type=flash'
  });
</script>
<!--fancy box -->
<script type="text/javascript" src="<?=base_admin();?>assets/plugins/fancybox/jquery.fancybox.js"></script>
 <link rel="stylesheet" type="text/css" href="<?=base_admin();?>assets/plugins/fancybox/jquery.fancybox.css?v=2.1.5" media="screen" />
 <script type="text/javascript">
 $(document).ready(function() {
  $(".fancybox").fancybox({
    openEffect  : 'none',
    closeEffect : 'none',
    loop : false
  });

});
 </script>

      <script src="<?=base_admin();?>assets/dist/js/input.js"></script>
       <script src="<?=base_admin();?>assets/dist/js/update.js"></script>
     <!--delete script-->
    <script src="<?=base_admin();?>assets/dist/js/delete.js"></script>
         <script src="<?=base_admin();?>assets/dist/js/pass_up.js"></script>

    <!-- Bootstrap 3.3.2 JS -->
    <script src="<?=base_admin();?>assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- FastClick -->
     <script src='<?=base_admin();?>assets/plugins/fastclick/fastclick.min.js'></script>
   <!-- AdminLTE App -->
    <script src="<?=base_admin();?>assets/dist/js/app.min.js" type="text/javascript"></script>
    <!-- AdminLTE for demo purposes
    <script src="<?=base_admin();?>assets/dist/js/demo.js" type="text/javascript"></script> -->
  <!--image upload preview -->
     <script src="<?=base_admin();?>assets/plugins/holder/holder.js" type="text/javascript"></script>
     <script src="<?=base_admin();?>assets/plugins/holder/jasny-bootstrap.min.js" type="text/javascript"></script>
  <!-- date-picker -->
        <script src="<?=base_admin();?>assets/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
    <!--switch button -->
     <script src="<?=base_admin();?>assets/plugins/switch/bootstrap-switch.min.js" type="text/javascript"></script>
      <!--switch button -->
     <script src="<?=base_admin();?>assets/plugins/chosen/chosen.jquery.min.js" type="text/javascript"></script>
    <!-- input-mask -->  
    <script src="<?=base_admin();?>assets/plugins/input-mask/jquery.inputmask.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/input-mask/inputmask.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/input-mask/jquery.inputmask.date.extensions.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/input-mask/jquery.inputmask.extensions.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/input-mask/inputmask.extensions.js" type="text/javascript"></script>
    <script src="<?=base_admin();?>assets/plugins/input-mask/jquery.inputmask.numeric.extensions.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){

                $.each($('.make-switch'), function () {
        $(this).bootstrapSwitch({
            onText: $(this).data('onText'),
            offText: $(this).data('offText'),
            onColor: $(this).data('onColor'),
            offColor: $(this).data('offColor'),
            size: $(this).data('size'),
            labelText: $(this).data('labelText')
        });
    });
  //tags input here
    $('#tags').tagsInput();
   //hapus multi foto
    $(".foto_banyak").on('click','.hapus_foto',function() {
        $(this).parent().remove();
        });   
    //chosen select
    $(".chzn-select").chosen();
    $(".chzn-select-deselect").chosen({
        allow_single_deselect: true
    });

    });    
	
    var config = {
      '.chzn-select'           : {},
      '.chzn-select-deselect'  : {allow_single_deselect:true},
      '.chzn-select-no-single' : {disable_search_threshold:10},
      '.chzn-select-no-results': {no_results_text:'No se encontraron resultados!'}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
	



    //multi image append
      function add_multi(val)
{
 
 $("#add_next").append('<div class="fileinput fileinput-new" data-provides="fileinput"> <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;"> <img data-src="holder.js/100%x100%" alt="100%x100%" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTkwIiBoZWlnaHQ9IjE0MCIgdmlld0JveD0iMCAwIDE5MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxkZWZzLz48cmVjdCB3aWR0aD0iMTkwIiBoZWlnaHQ9IjE0MCIgZmlsbD0iI0VFRUVFRSIvPjxnPjx0ZXh0IHg9IjY5LjA1NDY4NzUiIHk9IjcwIiBzdHlsZT0iZmlsbDojQUFBQUFBO2ZvbnQtd2VpZ2h0OmJvbGQ7Zm9udC1mYW1pbHk6QXJpYWwsIEhlbHZldGljYSwgT3BlbiBTYW5zLCBzYW5zLXNlcmlmLCBtb25vc3BhY2U7Zm9udC1zaXplOjEwcHQ7ZG9taW5hbnQtYmFzZWxpbmU6Y2VudHJhbCI+MTkweDE0MDwvdGV4dD48L2c+PC9zdmc+" data-holder-rendered="true" style="height: 100%; width: 100%; display: block;"> </div> <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;"></div> <span class="btn btn-danger hapus_foto"><i class="fa fa-trash"></i></span> <div> <span class="btn btn-default btn-file"><span class="fileinput-new">Seleccione Imagen</span> <span class="fileinput-exists">Cambiar</span> <input type="file" accept="image/*" name="foto_banyak[]"> </span> <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Eliminar</a> </div> </div>');


}
</script>
    <!-- Bootstrap WYSIHTML5 -->
<script src="<?=base_admin();?>assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>

    <?php }
    ?>
<!-- always show up -->
  <script src="<?=base_admin();?>assets/plugins/fakeloader/fakeLoader.min.js"></script>
         <!-- add new calendar event modal -->
 <script>
            $(document).ready(function(){

 
                $(".fakeloader").fakeLoader({

            timeToHide:100, //Time in milliseconds for fakeLoader disappear
            zIndex:999, // Default zIndex
          //  spinner:"spinner1",//Options: 'spinner1', 'spinner2', 'spinner3', 'spinner4', 'spinner5', 'spinner6', 'spinner7' 
          //  bgColor:"#2ecc71", //Hex, RGB or RGBA colors
                    bgColor:"#00a65a",
                    spinner:"spinner2"
                });
            });
        </script>

<script>
      // This example displays an address form, using the autocomplete feature
      // of the Google Places API to help users fill in the information.

      // This example requires the Places library. Include the libraries=places
      // parameter when you first load the API. For example:
      // <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places">

      var placeSearch, autocomplete;
      var componentForm = {
        street_number: 'short_name',
        route: 'long_name',
        locality: 'long_name',
        administrative_area_level_1: 'short_name',
        country: 'long_name',
        postal_code: 'short_name'
      };

      function initAutocomplete() {
        // Create the autocomplete object, restricting the search to geographical
        // location types.
        autocomplete = new google.maps.places.Autocomplete(
            /** @type {!HTMLInputElement} */(document.getElementById('autocomplete')),
            {types: ['geocode']});

        // When the user selects an address from the dropdown, populate the address
        // fields in the form.
        autocomplete.addListener('place_changed', fillInAddress);
      }

      function fillInAddress() {
        // Get the place details from the autocomplete object.
        var place = autocomplete.getPlace();

        for (var component in componentForm) {
          document.getElementById(component).value = '';
          document.getElementById(component).disabled = false;
        }

        // Get each component of the address from the place details
        // and fill the corresponding field on the form.
        for (var i = 0; i < place.address_components.length; i++) {
          var addressType = place.address_components[i].types[0];
          if (componentForm[addressType]) {
            var val = place.address_components[i][componentForm[addressType]];
            document.getElementById(addressType).value = val;
          }
        }
      }

      // Bias the autocomplete object to the user's geographical location,
      // as supplied by the browser's 'navigator.geolocation' object.
      function geolocate() {
        if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(function(position) {
            var geolocation = {
              lat: position.coords.latitude,
              lng: position.coords.longitude
            };
            var circle = new google.maps.Circle({
              center: geolocation,
              radius: position.coords.accuracy
            });
            autocomplete.setBounds(circle.getBounds());
          });
        }
      }

     
    </script>
<script>
$('#enviarac').click(function() {
  var formac = $('#acudiente').serialize();
  //alert(formac);
  $.ajax({
    url: '<?=base_admin();?>inc/guardaacu.php',
    type: 'POST',
    dataType: 'html',
    data: formac,
    before: function(data){
      $('#loadnya').show();
    },
    success: function(data){
       window.location.href = "<?=base_admin();?>index.php/nuevoalumno/tambah"
    },
    error: function(data){
      alert('error');
    }
  }) 
});
</script>
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCt4ePCc9_GVwxyUQbIvwVT_co7w9iPvQU&libraries=places&callback=initAutocomplete"></script>

   <script src="<?=base_admin();?>assets/plugins/autocomplete/jquery.easy-autocomplete.min.js"></script>         

  </body>
</html>
