<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Dashboard RS MH Thamrin</title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="shortcut icon" href="<?php echo base_url(); ?>assets/style/dist/img/mht.ico">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/style/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/style/dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/style/css/mystyle.css">
  <link rel="stylesheet" href="<?php echo base_url(); ?>assets/style/dist/css/skins/_all-skins.min.css">
  <script type="text/javascript">
    <?php date_default_timezone_set('Asia/Jakarta'); ?>
    // hari, tanggal
    var months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'];
    var myDays = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum&#39;at', 'Sabtu'];
    var date = new Date();
    var day = date.getDate();
    var month = date.getMonth();
    var thisDay = date.getDay(),
        thisDay = myDays[thisDay];
    var yy = date.getYear();
    var year = (yy < 1000) ? yy + 1900 : yy;

    // waktu
    var serverTime = new Date(<?php print date('Y, m, d, H, i, s, 0'); ?>);
    var clientTime = new Date();
    var Diff = serverTime.getTime() - clientTime.getTime();    

    function displayServerTime(){
        var clientTime = new Date();
        var time = new Date(clientTime.getTime() + Diff);
        var sh = time.getHours().toString();
        var sm = time.getMinutes().toString();
        var ss = time.getSeconds().toString();
        document.getElementById("clock").innerHTML = (thisDay + ', ' + day + ' ' + months[month] + ' ' + year) + " | <span style='color:yellow;'>" +(sh.length==1?"0"+sh:sh) + ":" + (sm.length==1?"0"+sm:sm) + ":" + (ss.length==1?"0"+ss:ss)+"</span>";
    }    
  </script>

  <script src="<?php echo base_url(); ?>assets/amcharts/amcharts.js"></script>
  <script src="<?php echo base_url(); ?>assets/amcharts/serial.js"></script>
  <script src="<?php echo base_url(); ?>assets/amcharts/pie.js"></script>
  <script src="<?php echo base_url(); ?>assets/amcharts/themes/light.js"></script>

</head>

<body class="hold-transition skin-blue-light sidebar-mini" onload="setInterval('displayServerTime()', 1000);">
<a name="header"></a>
<div class="wrapper">
  <header class="main-header">
    <a href="<?php echo base_url(); ?>Welcome" class="logo">
        <span class="logo-mini"><img src="<?php echo base_url(); ?>assets/style/dist/img/mht.ico"></span>
        <span class="logo-lg" style="font-size: 12px;">
          <?php foreach($nama as $view):?>
            <tr>
              <td><?php echo $view->NamaPerusahaan; ?></td>
            </tr>
          <?php endforeach;?>
        </span>
    </a>

    <nav class="navbar" role="navigation">
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
            <li><a id="clock"></a></li>
            <!--<li class="active"><a href="<?php //echo base_url(); ?>"><i class="fa fa-sign-out"></i>&nbsp;&nbsp;Logout</a></li>-->
        </ul>
      </div>
    </nav>
  </header>

  <aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu">
        <?php $this->load->view('menu'); ?>
      </ul>
    </section>
  </aside>

<br><center>
<!-- Histats.com  (div with counter) -->
<!-- Histats.com  START  (aync)-->

<script type="text/javascript">var _Hasync= _Hasync|| [];
//_Hasync.push(['Histats.start', '1,3564796,4,3024,130,80,00011111']);
//_Hasync.push(['Histats.fasi', '1']);
//_Hasync.push(['Histats.track_hits', '']);
//(function() {
//var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
//hs.src = ('//s10.histats.com/js15_as.js');
//(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
//})();</script>
<noscript><a href="/" target="_blank"><img  src="//sstatic1.histats.com/0.gif?3564796&101" alt="counter easy hit" border="0"></a></noscript>

<!-- Histats.com  END  -->      
</center>

    </section>
  </aside>
  
  <div class="content-wrapper">
<!--
  <br>
  <div class="row">
    <div class="col-md-10 col-md-offset-1">
        <img src="<?php //echo base_url(); ?>/assets/style/dist/img/logo.png">
        <img src="<?php //echo base_url(); ?>/assets/style/dist/img/kars.png" class="pull-right">
        <img src="<?php //echo base_url(); ?>/assets/style/dist/img/jci.png" class="pull-right">
    </div>
  </div>
  <section class="content-header">
    <ol class="breadcrumb">
      <li><i class="fa fa-dashboard"></i> <?php //echo $breadcrumb; ?>
        <?php //if (!empty($submenu)) : ?>
          <li><?php //foreach ($submenu as $key => $menu) : ?>
            <a href="<?php //echo site_url($key); ?>">
            <?php //echo ucfirst($menu); ?></a>
          <?php //endforeach; ?>
          </li>
        <?php //endif; ?>
    </ol>
  </section>
  <br />
-->  
  
  <div class="content body">
    <?php $this->load->view($content); ?>
  </div>
</div>
  
<footer class="main-footer">
  <div class="pull-right hidden-xs"><b>Version</b> 1.0</div>
  <strong>Copyright &copy; <?php echo date('Y')?> <a href="#" target="blank">Radjak Group</a>.</strong>
</footer>

<script src="<?php echo base_url(); ?>assets/style/plugins/jQuery/jQuery-2.2.0.min.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/style/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/style/plugins/fastclick/fastclick.js"></script>
<script src="<?php echo base_url(); ?>assets/style/dist/js/app.min.js"></script>
<script src="<?php echo base_url(); ?>assets/style/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!--<script src="<?php //echo base_url(); ?>assets/style/dist/js/pages/dashboard2.js"></script>-->

<div id="back-top">
    <a href="#header"><i class="fa fa-chevron-up"></i></a>
</div>

</body>
</html>