	             <?
if(!empty($_GET['id'])){
    
    $id = $_GET['id'];
    $r = $db->findByPK('tbtrip','trip_id',$id)->executeRow();
    
}
?>	            
<style>
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

th, td {
  text-align: center;
  padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2}
</style>

            <section class="panel">
              <header class="panel-heading"  style="margin-bottom:20px;">
                <h2 class="panel-title">ช่วงเวลา &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
              </header>

  <div class="row">   
        <div class="col-xl-12">
        <form class="form-horizontal" name="form_period" id="form_period" method="post" code="<?=$r[trip_programe_code];?>">
  <table>
    <tr style="    background: #e0331e;">
      <th align="center">วันเดินทาง</th>
      <th align="center">ราคาเริ่มต้น</th>
      <th align="center">ผู้เดินทาง</th>
    </tr>
    <tr>
      <td>
        <div class="input-daterange input-group"  style="    margin: auto;">
       <span class="input-group-addon">
         <i class="fa fa-calendar"></i>
         </span>
      <!--  <input type="text" class="form-control" id="datego<?=$x?>" name="datego<?=$x?>" autocomplete="off"> -->
      <input type=hidden name="idedit" value='<? echo $id;?>'>
        <input type="text" name="datego" id="datego" class="form-control"  autocomplete="off" value="<?=$r[trip_date_go];?>">
       <span class="input-group-addon">TO</span>
      <input type="text" name="dateback" id="dateback" class="form-control" readonly="" value="<?=$r[trip_date_back];?>">
       </div>
     </td>
       <td> <input class="form-control" type="text" id="price-ad" name="price-ad" value="<?=$r[price_start];?>"></td>
      <td><input class="form-control" type="text" id="price-c" name="price-c" value="<?=$r[price_size];?>"></td>
    </tr>
  </table>
               <div class="col-md-12 text-center p-5 mb-5" style="margin-top:20px;margin-bottom: 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><!--/span-->
      
      </div>
</section>







