<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 Incoming</h4>
				</div>
					<div class="modal-body">
						<div class="form-group">
							<label>Date Incoming</label>
							<input type="text" class="input-tanggal form-control" id="date_inc" name="date_inc" data-date-format="dd-mm-yy" placeholder="Masukkan Tanggal Planning..">
							<p style="color:red" id="error_date_inc"></p>
						</div>
						<div class="form-group">
							<label>Material</label>
							<select class="form-control" id="material" name="material">
								<option selected></option>
								<?php 
								include"koneksi.php";
								$data = mysqli_query ($koneksi, " select 
														MaterialID,
														RawMat
												  from 
												  material 
												  order by MaterialID DESC");
								while ($row = mysqli_fetch_array ($data))
								{
								?>
								<option value="<?php echo  $row['MaterialID']; ?>"><?php echo $row['RawMat']; ?></option>
								<?php } ?>
							</select>
							<p style="color:red" id="error_material"></p>
						</div>
						<div class="form-group">
							<label>Supplier</label>
							<select class="form-control" name="supplier" id="supplier">
								<option selected></option><?php 
								include"koneksi.php";
								$data1 = mysqli_query ($koneksi, " select 
														Supplier
												  from 
												  incoming 
												  group by Supplier");
								while ($row1 = mysqli_fetch_array ($data1))
								{
								?>
								<option value="<?php echo  $row1['Supplier']; ?>" ><?php echo $row1['Supplier']; ?></option>
								<?php } ?>
								<option value="supplain">SUPPLIER LAIN</option>
							</select>

							<input class="form-control" type="text" id="supplier2" name="supplier2" placeholder="Masukkan Supplier Baru..">
						</div>
						<div class="form-group">
							<label>No. SJ</label>
							<input class="form-control" id="no_sj" name="no_sj">
							<p style="color:red" id="error_no_sj"></p>
						</div>
						<div class="form-group">
							<label>Quantity</label>
							<input class="form-control" id="qty" name="qty">
							<p style="color:red" id="error_qty"></p>
						</div>					
						<div class="form-group">
							<label>Description</label>
							<input class="form-control" id="desc" name="desc">
							<p style="color:red" id="error_desc"></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 Incoming</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> 