<style type="text/css">
*{overflow-y: hidden;}
</style>
<head>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/style.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/table.css">
</head>
<style type="text/css">
.cssTable tr:first-child td, .cssTable tr:first-child th{
	 font-size:18px;
}

.cssTable tr:last-child td:first-child{
	font-size:18px;
	color:#111;
}
.cssTable td, .cssTable th {
	font-size:18px;
	color:#111;
}
</style>
<div style="width:100%;align:center">
	<div class="cssTable" style="padding:5px">
		<table id="tablePerkaraAll">	
			<tr>
		       <table border="0">
					<col  width="3%" />
			        <col  width="20%" />
			        <col  width="40%" />
			        <col  width="26%" />
					<tbody>
			         <tr style="color:white;background-color:grey">
			            <th>No</th>
			            <th>Nomor Perkara</th>
			            <th>Para Pihak</th>
			            <th>Status</th>
			         </tr>
			         </tbody>
		       </table>
			</tr>
			<tr>
				<div style="height:350px; overflow:auto;">
					<table id="tablePerkaraAll" class="tabel_antrian">
							<col  width="3%" />
					        <col  width="20%" />
					        <col  width="40%" />
					        <col  width="25%" />
							<tbody>
								<tr></tr>
							<?php
							if ($list_sidang_today->num_rows()>0){
								$i=1;
								foreach ($list_sidang_today->result() as $row) {
									echo "<tr ondblclick='parent.PassParam(\"".$row->nomor_perkara."\");'>";
									echo "	<td>".$i."</td>";
									echo "	<td>";
									echo $row->nomor_perkara;
									echo "	</td>";
									echo "	<td>";
									echo $row->para_pihak;
									echo "	</td>";
									echo "	<td>";
									if ($row->status==0){
										echo $row->nomor_antrian!='x'?"Menunggu dengan Nomor Antrian: <strong>".$row->kode."-".$row->nomor_antrian."</strong>":"Belum mengambil Antrian";
									}elseif ($row->status==1){
										echo $row->nomor_antrian!='x'?"Tertunda.<br/> Menunggu dengan Nomor Antrian: <strong>".$row->kode."-".$row->nomor_antrian."</strong>":"Belum mengambil Antrian";
									}else{
										echo "Selesai";
									}
									echo "	</td>";
									echo "</tr>";
									$i++;
								}
							}else{
								echo "<tr><td colspan='5' ondblclick='parent.PassParam(\"\");'>Tidak Ada Jadwal Sidang Untuk Hari Ini</td></tr>";
							}
							?>
							</tbody>
					</table>
				</div>
			</tr>
		</table>
	</div>
</div>