<!DOCTYPE html>
<html lang="en">
    
    <div id="basic-demo" class="example_content">
        <div id="content_alert">Tidak Ada Alert Saat ini</div>
        
    </div> 
    <style>
        body{
            overflow-anchor: none!important;
        }
    </style>
<?php $this->load->view('layout/header')?>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo base_url()?>assets/eladmin/images/favicon.png">
    <title>KKM Application</title>


<?php //$this->load->view('layout/header')?>
    <link rel="stylesheet" href="<?php echo base_url()?>assets/eladmin/css/lib/html5-editor/bootstrap-wysihtml5.css" />
    <!-- Bootstrap Core CSS -->
    <!--link href="<?php echo base_url()?>assets/eladmin/css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="<?php echo base_url()?>assets/eladmin/css/helper.css" rel="stylesheet">
    <link href="<?php echo base_url()?>assets/eladmin/css/style.css" rel="stylesheet">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:** -->
    <!--[if lt IE 9]>
    <script src="https:**oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https:**oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>

<body class="fix-header fix-sidebar">
    
    <style>
    #annoying-box {
   position: fixed;
    /*top: 10px; /* space between top of browser and annoying box */
   /*left: 10px; /* space between top of browser and annoying box */
   width: 100px;
   height: 100px;
   z-index:99999999999;
   bottom: 0px;
   right:0px;
}    
.example_content {
  display : none;
}
    </style>
    <script>
        
                        function goey(){      
                       $("#basic-demo").PopupWindow({

  // popup title
  title               : "Alert (0)",

  // modal mode 
  modal               : false,

  // auto open on page load
  autoOpen            : true,

  // anmation speed
  animationTime       : 300,

  // custom css classes
  customClass         : "",
  
  // custom action buttons
  buttons             : {
      close               : false,
      maximize            : true,
      collapse            : true,
      minimize            : true
  },

  // button's position
  buttonsPosition     : "right",

  // custom button text
  buttonsTexts        : {
    close               : "Close",
    maximize            : "Maximize",
    unmaximize          : "Restore",
    minimize            : "Minimize",
    unminimize          : "Show",
    collapse            : "Collapse",
    uncollapse          : "Expand"
  }, 
  
  // draggable options
  draggable           : true,
  dragOpacity         : 0.6,
  
  // resizable options
  resizable           : true,
  resizeOpacity       : 0.6,
  
  // enable status bar
  statusBar           : true,
  
  // top position
  top                 : "auto",

  // left position
  left                : "auto",
  

  // height / width
  height              : 200,
  width               : 600,
  maxHeight           : undefined,
  maxWidth            : undefined,
  minHeight           : 100,
  minWidth            : 200,
  collapsedWidth      : undefined,
  
  // always keep in viewport
  keepInViewport      : true,

  // enable mouseh move events
  mouseMoveEvents     : true
  
});}
function goey_open(){
    $('#basic-demo').PopupWindow("open");
}
function goey_min(){
    $('#basic-demo').PopupWindow("minimize");
}
        </script>
    <!-- Preloader - style you can find in spinners.css -->
    <div class="preloader">
        <svg class="circular" viewBox="25 25 50 50">
			<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" /> </svg>
    </div>
    <!-- Main wrapper  -->
    <div id="main-wrapper">
        <div class="header">
            <nav class="navbar top-navbar navbar-expand-md navbar-light">
                <!-- Logo -->
                <div class="navbar-header">
                    <a class="navbar-brand" href="index.html">
                        <!-- Logo icon -->
                        <center><b><img src="<?php echo base_url()?>assets/img/logo-new.png" style="max-width: 200px!important;height:55px!important" alt="homepage" class="dark-logo" /></b></center>
                        <!--End Logo icon -->
                        <!-- Logo text >
                        <span><img src="<?php echo base_url()?>assets/eladmin/images/logo-text.png" alt="homepage" class="dark-logo" /></span-->
                    </a> 
                </div> 
                <!-- End Logo -->
                <div class="navbar-collapse">
                    <!-- toggle and nav items -->
                    <ul class="navbar-nav mr-auto mt-md-0">
                        <!-- This is  -->
                        <li class="nav-item"> <a class="nav-link nav-toggler hidden-md-up text-muted  " href="javascript:void(0)"><i class="mdi mdi-menu"></i></a> </li>
                        <li class="nav-item m-l-10"> <a class="nav-link sidebartoggler hidden-sm-down text-muted  " href="javascript:void(0)"><i class="ti-menu"></i></a> </li>
                        <!-- Search -->
                        <!--li class="nav-item hidden-sm-down search-box"> <a class="nav-link hidden-sm-down text-muted  " href="javascript:void(0)"><i class="ti-search"></i></a>
                            <form class="app-search">
                                <input type="text" class="form-control" placeholder="Search here"> <a class="srh-btn"><i class="ti-close"></i></a> </form>
                        </li-->
                        <!-- Language -->
                        <!--li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle text-muted  " href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="flag-icon flag-icon-us"></i></a>
                            <div class="dropdown-menu animated zoomIn">
                                <a class="dropdown-item" href="#"><i class="flag-icon flag-icon-ca"></i> Canada</a>
                                <a class="dropdown-item" href="#"><i class="flag-icon flag-icon-fr"></i> French</a>
                                <a class="dropdown-item" href="#"><i class="flag-icon flag-icon-cn"></i> China</a>
                                <a class="dropdown-item" href="#"><i class="flag-icon flag-icon-de"></i> Dutch</a>
                            </div>
                        </li-->
                        <!-- Messages -->
                        <!--li class="nav-item dropdown mega-dropdown"> <a class="nav-link dropdown-toggle text-muted  " href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-th-large"></i></a>
                            <div class="dropdown-menu animated zoomIn">
                                <!--ul class="mega-dropdown-menu row">


                                    <li class="col-lg-3  m-b-30">
                                        <h4 class="m-b-20">CONTACT US</h4>
                                        <!-- Contact >
                                        <form>
                                            <div class="form-group">
                                                <input type="text" class="form-control" id="exampleInputname1" placeholder="Enter Name"> </div>
                                            <div class="form-group">
                                                <input type="email" class="form-control" placeholder="Enter email"> </div>
                                            <div class="form-group">
                                                <textarea class="form-control" id="exampleTextarea" rows="3" placeholder="Message"></textarea>
                                            </div>
                                            <button type="submit" class="btn btn-info">Submit</button>
                                        </form>
                                    </li>
                                    <!--li class="col-lg-3 col-xlg-3 m-b-30">
                                        <h4 class="m-b-20">List style</h4>
                                        <!-- List style >
                                        <ul class="list-style-none">
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                        </ul>
                                    </li>
                                    <li class="col-lg-3 col-xlg-3 m-b-30">
                                        <h4 class="m-b-20">List style</h4>
                                        <!-- List style >
                                        <ul class="list-style-none">
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                        </ul>
                                    </li>
                                    <li class="col-lg-3 col-xlg-3 m-b-30">
                                        <h4 class="m-b-20">List style</h4>
                                        <!-- List style >
                                        <ul class="list-style-none">
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                            <li><a href="javascript:void(0)"><i class="fa fa-check text-success"></i> This Is Another Link</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </li-->
                        <!-- End Messages -->
                    </ul>
                    <!-- User profile and search -->
                    <ul class="navbar-nav my-lg-0">
                        <!-- Comment ->
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle text-muted text-muted  " href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-bell"></i>
        								<div class="notify"> <span class="heartbit"></span> <span class="point"></span> </div>
        							</a>
                            <div class="dropdown-menu dropdown-menu-right mailbox animated zoomIn">
                                <ul>
                                    <li>
                                        <div class="drop-title">Notifications</div>
                                    </li>
                                    <li>
                                        <div class="message-center">
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="btn btn-danger btn-circle m-r-10"><i class="fa fa-link"></i></div>
                                                <div class="mail-contnet">
                                                    <h5>This is title</h5> <span class="mail-desc">Just see the my new admin!</span> <span class="time">9:30 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="btn btn-success btn-circle m-r-10"><i class="ti-calendar"></i></div>
                                                <div class="mail-contnet">
                                                    <h5>This is another title</h5> <span class="mail-desc">Just a reminder that you have event</span> <span class="time">9:10 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="btn btn-info btn-circle m-r-10"><i class="ti-settings"></i></div>
                                                <div class="mail-contnet">
                                                    <h5>This is title</h5> <span class="mail-desc">You can customize this template as you want</span> <span class="time">9:08 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="btn btn-primary btn-circle m-r-10"><i class="ti-user"></i></div>
                                                <div class="mail-contnet">
                                                    <h5>This is another title</h5> <span class="mail-desc">Just see the my admin!</span> <span class="time">9:02 AM</span>
                                                </div>
                                            </a>
                                        </div>
                                    </li>
                                    <li>
                                        <a class="nav-link text-center" href="javascript:void(0);"> <strong>Check all notifications</strong> <i class="fa fa-angle-right"></i> </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <!-- End Comment -->
                        <!-- Messages ->
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle text-muted  " href="#" id="2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-envelope"></i>
        								<div class="notify"> <span class="heartbit"></span> <span class="point"></span> </div>
        							</a>
                            <div class="dropdown-menu dropdown-menu-right mailbox animated zoomIn" aria-labelledby="2">
                                <ul>
                                    <li>
                                        <div class="drop-title">You have 4 new messages</div>
                                    </li>
                                    <li>
                                        <div class="message-center">
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="user-img"> <img src="<?php echo base_url()?>assets/eladmin/images/users/5.jpg" alt="user" class="img-circle"> <span class="profile-status online pull-right"></span> </div>
                                                <div class="mail-contnet">
                                                    <h5>Michael Qin</h5> <span class="mail-desc">Just see the my admin!</span> <span class="time">9:30 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="user-img"> <img src="<?php echo base_url()?>assets/eladmin/images/users/2.jpg" alt="user" class="img-circle"> <span class="profile-status busy pull-right"></span> </div>
                                                <div class="mail-contnet">
                                                    <h5>John Doe</h5> <span class="mail-desc">I've sung a song! See you at</span> <span class="time">9:10 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="user-img"> <img src="<?php echo base_url()?>assets/eladmin/images/users/3.jpg" alt="user" class="img-circle"> <span class="profile-status away pull-right"></span> </div>
                                                <div class="mail-contnet">
                                                    <h5>Mr. John</h5> <span class="mail-desc">I am a singer!</span> <span class="time">9:08 AM</span>
                                                </div>
                                            </a>
                                            <!-- Message ->
                                            <a href="#">
                                                <div class="user-img"> <img src="<?php echo base_url()?>assets/eladmin/images/users/4.jpg" alt="user" class="img-circle"> <span class="profile-status offline pull-right"></span> </div>
                                                <div class="mail-contnet">
                                                    <h5>Michael Qin</h5> <span class="mail-desc">Just see the my admin!</span> <span class="time">9:02 AM</span>
                                                </div>
                                            </a>
                                        </div>
                                    </li>
                                    <li>
                                        <a class="nav-link text-center" href="javascript:void(0);"> <strong>See all e-Mails</strong> <i class="fa fa-angle-right"></i> </a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <!-- End Messages -->
                        <!-- Profile -->
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle text-muted  " href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="<?php echo base_url()?>assets/eladmin/images/users/5.jpg" alt="user" class="profile-pic" /></a>
                            <div class="dropdown-menu dropdown-menu-right animated zoomIn">
                                <ul class="dropdown-user">
                                    <li><a href="#" onclick="goey_open()"><i class="ti-user"></i> Alert</a></li>
                                    <li><a href="#"><i class="ti-user"></i> Profile</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="<?php echo base_url() ?>login/logout"><i class="fa fa-power-off"></i> Logout</a></li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <!-- End header header -->
        <!-- Left Sidebar  -->
        <div class="left-sidebar">
            <!-- Sidebar scroll-->
            <div class="scroll-sidebar">
                <!-- Sidebar navigation-->
                <nav class="sidebar-nav">
                    <?php $this->load->view('layout/menu')?>
                </nav>
                <!-- End Sidebar navigation -->
            </div>
            <!-- End Sidebar scroll-->
        </div>
        <!-- End Left Sidebar  -->
        <!-- Page wrapper  -->
        <div class="page-wrapper">
            <!-- Bread crumb -->
            <div class="row page-titles">
                <div class="col-md-4 align-self-center">
                    <h3 class="text-primary"><?php echo $this->title ?></h3> </div>
                <div class="col-md-7 align-self-center">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
                        <li class="breadcrumb-item"><a href="<?php echo base_url($this->utama)?>"><?php echo ucfirst($this->title)?></a></li>
                        <li class="breadcrumb-item active">
                         <a href="#"><?php echo $type?></a>
                        </li>
                    </ol>
                </div>
            </div>
            <!-- End Bread crumb -->
            <!-- Container fluid  -->
            <div class="container-fluid">
               
		<?php $this->load->view($content);?>
                <!-- Start Page Content -->
                <!--div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
                                <h4 class="card-title">Bootstrap wysihtml5</h4>
                                <h6 class="card-subtitle">Bootstrap html5 editor</h6>
                                <form method="post">
                                    <div class="form-group">
                                        <textarea class="textarea_editor form-control" rows="15" placeholder="Enter text ..." style="height:450px"></textarea>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div-->
                <!-- End PAge Content -->
            </div>
            <!-- End Container fluid  -->
            <!-- footer -->
            <footer class="footer"> © 2018 All rights reserved.</footer>
            <!-- End footer -->
        </div>
        <!-- End Page wrapper  -->
    </div>
    <!-- End Wrapper -->
    <!-- All Jquery -->
    <!--script src="<?php echo base_url()?>assets/eladmin/js/lib/jquery/jquery.min.js"></script>
    <!-- Bootstrap tether Core JavaScript -->
    <!--script src="<?php echo base_url()?>assets/eladmin/js/lib/bootstrap/js/popper.min.js"></script>
    <script src="<?php echo base_url()?>assets/eladmin/js/lib/bootstrap/js/bootstrap.min.js"></script>
    <!-- slimscrollbar scrollbar JavaScript -->
    <script src="<?php echo base_url()?>assets/eladmin/js/jquery.slimscroll.js"></script>
    <!--Menu sidebar -->
    <script src="<?php echo base_url()?>assets/eladmin/js/sidebarmenu.js"></script>
    <!--stickey kit -->
    <script src="<?php echo base_url()?>assets/eladmin/js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
    <script src="<?php echo base_url()?>assets/eladmin/js/lib/html5-editor/wysihtml5-0.3.0.js"></script>
    <script src="<?php echo base_url()?>assets/eladmin/js/lib/html5-editor/bootstrap-wysihtml5.js"></script>
    <script src="<?php echo base_url()?>assets/eladmin/js/lib/html5-editor/wysihtml5-init.js"></script>
    <!--Custom JavaScript -->
    
    <script src="<?php echo base_url()?>assets/eladmin/js/custom.min.js"></script><!-- the following scripts are used in demo only for onpage help and you don't need them -->
    <!-- ace scripts -->
<script src="<?php echo base_url('assets')?>/ace/js/jquery.table2excel.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/chosen.jquery.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/typeahead.jquery.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/jquery.maskMoney.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/bootstrap.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.typeahead.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/jquery.dataTables.js"></script>
<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.ajax-content.js"></script>
<script src="<?php echo base_url('assets')?>/highcharts/js/highcharts.js"></script>
<script src="<?php echo base_url('assets')?>/highcharts/js/modules/data.js"></script>
<script src="<?php echo base_url('assets')?>/highcharts/js/modules/drilldown.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.scroller.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.colorpicker.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.fileinput.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.wysiwyg.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.spinner.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.treeview.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.wizard.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.aside.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.touch-drag.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.sidebar.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.sidebar-scroll-1.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.submenu-hover.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.widget-box.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.settings.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.settings-rtl.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.settings-skin.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.widget-on-reload.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.searchbox-autocomplete.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/date-time/bootstrap-datepicker.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/date-time/bootstrap-timepicker.js"></script>
		<!--script src="<?php echo base_url('assets')?>/ace/js/select2.js"></script-->
		<script src="<?php echo base_url('assets')?>/select2/js/select2.js"></script>
                <script src="<?php echo base_url('assets')?>/popup/popupwindow.js"></script>
		
		<!-- inline scripts related to this page -->
		<link rel="stylesheet" href="<?php echo base_url('assets')?>/ace/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="<?php echo base_url('assets')?>/ace/docs/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/elements.onpage-help.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/js/ace/ace.onpage-help.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/docs/js/rainbow.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/docs/js/language/generic.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/docs/js/language/html.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/docs/js/language/css.js"></script>
		<script src="<?php echo base_url('assets')?>/ace/docs/js/language/javascript.js"></script>
		<script type="text/javascript" src="<?php echo base_url();?>assets/flexigrid/js/flexigrid.pack.js"></script>
		<script type="text/javascript" src="<?php echo base_url();?>assets/validate_new/validate.js"></script>
                <link rel="stylesheet" href="<?php echo base_url();?>assets/validate_new/validate.css"/>
                <script>
                    $(document).ready(function(e){
                        goey();
                        goey_min();
                        loadalert();
                        
                        setInterval(function(){
                            loadalert();
                            }, 60000);
                        
                    });
                    function loadalert(){
                        //$('.popupwindow_titlebar_text').text('ok');
                            $('#content_alert').load('<?php echo base_url() ?>load/load_alert');
                        
                    }
                    function matchStart(params, data) {
                     params.term = params.term || '';
                        if(data.text.toUpperCase().indexOf(params.term.toUpperCase()) == 0) {
                        return data;
                        }
                    return false;
                    }
                    //.css('width','200px')
                $('.select2').css('max-width','100%').select2({matcher: function(params,data){
                                    return matchStart(params, data);
                                },
                                width: 'element',
                                minimumResultsForSearch: Infinity
                });
                            
                $('#select2-multiple-style .btn').on('click', function(e){
                    var target = $(this).find('input[type=radio]');
                    var which = parseInt(target.val());
                    if(which == 2) $('.select2').addClass('tag-input-style');
                    else $('.select2').removeClass('tag-input-style');
                });    
                $('.date-picker').datepicker({
				autoclose: true,
                                format:'yyyy-mm-dd',
				todayHighlight: true
			}).next().on(ace.click_event, function(){
				$(this).prev().focus();
			});
			
			$('.date-picker').datepicker({
				autoclose: true,
				todayHighlight: true,
				<?php if($this->session->userdata('webmaster_grup')!='2706'){
					?>
				startDate: '<?php echo date("Y-m").'-01'?>', 
				<?php } ?>
				endDate: '<?php echo tanggalpenuh(date("Y-m"))?>', 
			}).next().on(ace.click_event, function(){
				$(this).prev().focus();
			});
			
			
				$('.timepicker').timepicker({
					minuteStep: 1,
					showSeconds: true,
					showMeridian: false
				}).next().on(ace.click_event, function(){
					$(this).prev().focus();
				});
                </script>
</body>

</html>