	             <?
if(!empty($_GET['id'])){
    
    $id = $_GET['id'];
    $r = $db->findByPK('tbgroup','group_id',$id)->executeRow();
    
}
?>	          
                          
                                <section class="panel">
									<header class="panel-heading">
										<h2 class="panel-title bread-c"><a href="?url=group"></a>แก้ไข กรุ๊ป :</h2>
									</header>
                                   
					<div class="panel-body">
						<form class="form-horizontal form-bordered" id="form_group" name="form_group" method="post" >
								<div class="row">
					
                                   <div class="col-md-6">
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">ชื่อโปรแกรม</label>
												<div class="col-md-6">
													<input type=hidden name=id value='<? echo $id;?>'>
													<input type="text" class="form-control" id="inputDefault" id='group_name' name='group_name' value="<?=$r[group_name]?>">
												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">ผู้ดูแลกรุ๊ป</label>
												<div class="col-md-6">
													<input type="text" class="form-control" id="inputDefault" id='group_admin' name='group_admin' value="<?=$r[group_admin]?>" >
												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">เวลาเดินทาง</label>
												<div class="col-md-6">
													<input type="text" class="form-control" id="inputDefault" id='group_time' name='group_time' value="<?=$r[group_time]?>">
												</div>
											</div>
		                                 <div class="form-group">
												<label class="col-md-3 control-label">สายการบิน </label>
												<div class="col-md-6">
		

											<select data-plugin-selectTwo id='group_airline' name="group_airline" data-rel="chosen" class="form-control populate placeholder">
										<?
											$sql = "select * from tbairline;";
                            				$result = mysql_query($sql);
                            				echo '<option value="0">-- เลือกสายการบิน --</option>';
                            				while ($data = mysql_fetch_array($result) ) {
                            				echo "<option value=$data[airline_id] ";
                            					if($r['group_airline'] == $data[airline_id]){
													echo "selected";
												}
                            				echo ">$data[airline_name]</option>";
                            			}
                            			?>
										</select>


												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">วันเดินทางไป</label>
												<div class="col-md-6">
												<!-- 	<input type="text" class="form-control" id="inputDefault" id='group_go' name='group_go' required> -->
													 <input type="date" class="form-control" id="group_go" name="group_go" autocomplete="off" value="<?=$r[group_go]?>">
												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">วันเดินทางกลับ</label>
												<div class="col-md-6">
													<input type="date" class="form-control" id="group_back" name="group_back" autocomplete="off" value="<?=$r[group_back]?>">
												</div>
											</div>
							
									
                                 <div class="col-md-12 text-center" style="margin-top:20px;">
								<div class="form-actions">
									<button type="submit" id="PackageBT" class="btn btn-danger"><i class="fa fa-save"></i> บันทึก</button>
									<button type="reset" onclick="window.history.back();return false;" class="btn btn-cancel-color">ยกเลิก</button>
								</div>
								</div>
                            </form>
                                </div>
                              
								</section>




