<div id="modal-tambah" class="modal fade" role="dialog">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<form role="form" id="form-tambah" method="post" action="input.php" autocomplete="off">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">&times;</button>
					<h4 class="modal-title">Tambah Data Purchase Order</h4>
				</div>
					<div class="modal-body">
						<div class="form-group">
							<label>Data PO</label>
							<select class="form-control" id="po_id" name="po_id">
								<option selected></option>
								<?php 
								include"koneksi.php";
								$data = mysqli_query ($koneksi, " select 
																		po_tbl.PO_ID,
																		po_tbl.No_PO,
																		customer.CustomerName,
																		po_tbl.TanggalPO
																from 
																po_tbl 
																INNER JOIN customer
																ON po_tbl.CustomerID=customer.CustomerID
																order by PO_ID DESC");
								while ($row = mysqli_fetch_array ($data))
								{
									?>
								<option value="<?php echo  $row['PO_ID']; ?>"><?php echo $row['No_PO']; ?> | <?php echo $row['CustomerName']; ?> | <?php echo $row['TanggalPO']; ?> </option>
								<?php } ?>
							</select>
							<p style="color:red" id="error_po_id"></p>
						</div>							
						<div class="form-group">
							<label>Product</label>
							<select class="form-control" id="product_id" name="product_id">
								<option selected></option>
								<?php 
								include"koneksi.php";
								$data = mysqli_query ($koneksi, " select 
																		ProductID,
																		Material,
																		ItemDescription,
																		SLoc,
																		QtyUnit,
																		Folder
																from 
																product 
																order by ProductID DESC");
								while ($row = mysqli_fetch_array ($data))
								{
									?>
								<option value="<?php echo  $row['ProductID']; ?>"><?php echo $row['Material']; ?> | <?php echo $row['ItemDescription']; ?> | <?php echo $row['SLoc']; ?>@<?php echo $row['QtyUnit']; ?>pcs</option>
								<?php } ?>
							</select>
							<p style="color:red" id="error_product_id"></p>
						</div>							
						<div class="form-group">
							<label>Quantity PO</label>
							<input class="form-control" id="qty_po" name="qty_po">
							<p style="color:red" id="error_qty_po"></p>
						</div>
						
					</div>
					
					<div class="modal-footer">
						<button type="button" class="btn btn-info" data-dismiss="modal">Batal</button>
						<button type="submit" class="btn btn-primary" >Simpan</button>
					</div>
				</form>		
			</div>
		</div>
	</div>
	
	
	<div id="modal-edit" class="modal fade" role="dialog">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<form role="form" id="form-edit" method="post" action="input.php" autocomplete="off">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">&times;</button>
					<h4 class="modal-title">Edit Data Purchase Order</h4>
				</div>
					<div class="modal-body">
						<div id="data-edit">
						
						</div>				
					</div>
					
					<div class="modal-footer">
						<button type="button" class="btn btn-info" data-dismiss="modal">Batal</button>
						<button type="submit" class="btn btn-primary" >Simpan</button>
					</div>
				</form>		
			</div>
		</div>
	</div> 



