<?php $this->load->view('admin/message'); ?>
<?php $this->load->view('admin/error'); ?>
<?php function buatrp($angka) { $jadi = "" . number_format($angka,0,',','.'); return $jadi; } ?>

<div class="row">

        
	
	<div class="col-md-4">
		<div class="box box-widget widget-user-2">
			<div class="widget-user-header bg-green">
				<table>
					<tr>
						<td><i class="fa fa-child fa-5x" style="width: 20px;"></i></td>
						<td>
							<h3 class="widget-user-username">Kunjungan</h3>
	              			<h5 class="widget-user-desc">Rawat Jalan Berdasarkan Poliklinik</h5>
	              			<h4 class="widget-user-desc">
	              				<form action="<?php echo site_url('welcome/search_tanggal');?>" method = "post" class="form-horizontal">
								  <div class="form-group">
								  	<label style="font-weight: 100;" class="col-sm-4 control-label">Tgl Awal</label>
								  	<div class="col-sm-8">
								  		<input type="date" class="form-control" autofocuss id="date_from" value="" name="tanggal" placeholder="<?php echo date('d, F Y')?>">
								  	</div>
								  </div>
								  <div class="form-group">
								  	<label style="font-weight: 100;" class="col-sm-4 control-label">Tgl Akhir</label>
								  	<div class="col-sm-8">
								  		<input type="date" class="form-control" autofocuss id="date_to" placeholder="<?php echo date('d, F Y')?>" value="" name="tanggal_to">	
								  	</div>
								  </div>
								  <button type="submit" class="btn btn-primary"><i class="fa fa-filter"></i> Tampilkan</button>
								</form>
	              			</h4>
	              		</td>
					</tr>
				</table>
            </div>
            <div class="box-footer no-padding">

            </div>
        </div>
	</div>
	
	<div class="col-md-4">
		<div class="box box-widget widget-user-2">
			<div class="widget-user-header bg-blue">
				<table>
					<tr>
						<td><i class="fa fa-hospital-o fa-5x" style="width: 20px;"></i></td>
						<td>
						<h3 class="widget-user-username">Dokter</h3>	
 	              		<h5 class="widget-user-desc">Rawat Jalan Berdasarkan Poliklinik</h5>
 	              		<h4 class="widget-user-desc">
              				<form action="<?php echo site_url('welcome/search_tanggal_dokter');?>" method = "post" class="form-horizontal">
							  <div class="form-group">
								  	<label style="font-weight: 100;" class="col-sm-4 control-label">Tgl Awal</label>
								  	<div class="col-sm-8">
								  		<input type="date" class="form-control" autofocuss id="date_from" placeholder="<?php echo date('d, F Y')?>" value="" name="tanggal">	
								  	</div>
								  </div>
								  <div class="form-group">
								  	<label style="font-weight: 100;" class="col-sm-4 control-label">Tgl Akhir</label>
								  	<div class="col-sm-8">
								  		<input type="date" class="form-control" autofocuss id="date_to" placeholder="<?php echo date('d, F Y')?>" value="" name="tanggal_to">	
								  	</div>
								  </div>
							  <button type="submit" class="btn btn-success"><i class="fa fa-filter"></i> Tampilkan</button>
							</form>
	              		</h4>
	              		</td>
					</tr>
				</table>
            </div>
            <div class="box-footer">
            	<div class="table-responsive">
                  <table id="table_rincian" class="table table-bordered">  
                        <thead>  
                            <tr>  
                                 <th width="33.4%" style="text-align: center;">Unit</th>  
                                 <th width="33.4%" style="text-align: center;">Nama Dokter</th>  
                                 <th width="33.4%" style="text-align: center;">Jumlah</th>
                            </tr>
                            <tbody>
                              <?php foreach($results as $row){ ?>
                                  <tr>
                                      <td><?php echo $row->Unit ?></td>
                                      <td><?php echo $row->DOKTER ?></td>
                                      <td style="text-align: center;"><?php echo $row->JUMLAH ?></td>
                                  </tr>
                              <?php } ?>
                            </tbody>
                        </thead>     
                  </table>
                </div>
            </div>
        </div>
	</div>

	<div class="col-md-4">
    <div class="box box-widget widget-user-2">
      <div class="widget-user-header bg-blue">
        <table>
          <tr>
            <td><i class="fa fa-building fa-5x" style="width: 20px;"></i></td>
            <td>
            <h3 class="widget-user-username">Ruangan</h3> 
            <h5 class="widget-user-desc">Rawat Inap Berdasarkan Penjamin</h5>
            </td>
          </tr>
        </table>
            </div>
            <div class="box-footer">
            	<div class="table-responsive">
            		<table id="table_rincian" class="table table-bordered">  
	                      <thead>  
	                          <tr>  
	                               <th width="33.4%">Class</th>  
	                               <th width="33.4%">Ruangan</th>  
	                               <th width="33.4%" style="text-align: center;">Jumlah</th>
	                          </tr>
	                          <tbody>
	                            <?php foreach($resultstb as $row){ ?>
	                                <tr>
	                                    <td><?php echo $row->Class ?></td>
	                                    <td><?php echo $row->OfficeDescription ?></td>
	                                    <td style="text-align: center;"><?php echo $row->Jumlah ?></td>
	                                </tr>
	                            <?php } ?>
	                          </tbody>
	                      </thead>     
	                </table>
            	</div>
            </div>
        </div>
  </div>

</div>

<div class="row">
	


</div>