<html>
	<head>
	<title>Retrieve data from database </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<body>
<?php
require_once("../conn/conn.php");
?>

<form name="frmMain" method="post" action="ch_save_inout.php" OnSubmit="return fncSubmit();">
							<table width="800" align="center"  border="0">
							<?php	
							$sql = "SELECT * FROM qc_inout";
							$result = mysqli_query($con,$sql);
							$i = 1;
							?>
							<tr>
								<td width="50" align="center"><b>ลำดับ</b></td>
								<td width="200"align="center"><b>หัวข้อ</b></td>
								<td width="50"align="center"><b>ผ่าน</b></td>
								<td width="50"align="center"><b>ไม่ผ่าน</b></td>
								<td width="100" align="center"><b>หมายเหตุ</b></td>
								</tr>
							<?php
							while ($rs = mysqli_fetch_array($result))
							{
								
							?>
								<tr>
								<td class="borderI" align="center"><?php echo $i ?></td>
								<td class="borderI"><span class="subBlogText5"><?=$rs['io_code']?></span></td>
								<td align="center" class="borderI">
										<label>
											<input name="radionNo<?=$i;?>" id="radionNo<?=$i;?>_1" type="radio" class="ace" value="T" />
											<span class="lbl"> ผ่าน</span>
										</label>
								</td>
								<td align="center" class="borderI">
										<label>
											<input name="radionNo<?=$i;?>" id="radionNo<?=$i;?>_2" type="radio" class="ace" value="F" />
											<span class="lbl"> ไม่ผ่าน</span>
										</label>
								</td>
                                
								<td align="center" class="borderI">
									<input type="text" name="note<?=$i;?>" id="note<?=$i;?>"  />
								</td>
								</tr>
							<?php 

							$i++;
							}
							?>
                             
                           
							</table>
                            <center><button class="btn btn-info" type="submit">
												<i class="ace-icon fa fa-check bigger-110"></i>
											    บันทึก
											</button>
</center>
                            </form> 


</body>
</html>