
 <?
$id = $_GET['iv'];
$gp = $db->findByPK('tbpayment','payment_iv',$id)->execute();
$re_custom = $db->findByPK('tbpayment','payment_id',$id)->executeRow();
$r = $db->findByPK('tbiv','iv_id',$re_custom['payment_iv'])->executeRow();
 ?>
          <!-- start: page -->
            <div class="row">
              <div class="col-lg-12">
                <section class="panel">
                  <header class="panel-heading">
                    <div class="panel-actions">
                      <a href="#" class="fa fa-caret-down"></a>
                      <a href="#" class="fa fa-times"></a>
                    </div>
                    <h2 class="panel-title">Pay-in ( IM<?=$re_custom['payment_iv'];?> )</h2>
                  </header>
                  <div class="panel-body">
                     <form class="form-horizontal form-bordered" action="" name="form_receipt_data" id="form_receipt_data" method="post" enctype="multipart/form-data" 
                     code="<?=$r[iv_id];?>">
           <div class="box-header" data-original-title>
            <h4 style="color:black;"><i class="icon-group icon-fw"></i><span class="break"></span> <i class="fa fa-user"></i> ข้อมูลใบจอง </h4>
          </div>
                      <div class="row">       
                <div class="col-md-12">
                     <div class="">
                       <div class="row" style="margin-bottom:15px;">
                    <div class="col-md-12">
                     <!--  <label class="control-label text-center header-form" style="float:none;text-align:center;" for="imgfieldlogo2">
                      <i class="fa fa-file-picture-o" style="margin-bottom:15px;"></i>PAYIN</label> -->
                  <!-- <label class="control-label" for="imgfield">รูปภาพ</label> -->
                    <ul class="img-list" id="img-list-logo">
                      <li>
                        <a href="#" class="imgfield-msg img-logo-del2" id="imgfield-logo-msg">
                          <img id="imgfield-logo-img" style="width: 50%;margin-bottom:15px;">
                          <img id="imgfield-img" src="https://www.imaginetourservice-system.com/payin/<? echo $re_custom['payment_pic'];?>" style="width: 50%;margin-bottom:15px;">
                        </a>
                      </li>
                    </ul>
                    <?//<a href="#" class="imgfield-msg img-del" id="imgfield-msg"><img id="imgfield-img"></a>?>
                    <div class="progress progress-warning progress-striped active input-xlarge" id="progress-logo" style="height:30px !important; display: none;">
                      <div class="bar"></div>
                    </div>
                </div>
                        <label class="col-md-3 control-label" for="inputDefault" style="color:red;">TYPE <span class="required">*</span></label>
                        <div class="col-md-6">
                          <input type=hidden name=idpay value='<? echo $id;?>'>
                           <select data-plugin-selectTwo name='receipt_pay_type' id='receipt_pay_type' data-rel="chosen" class="form-control populate placeholder">
                      <option value="">--- เลือก ---</option>
                      <option value="CASH">Cash</option>
                      <option value="TRANSFER">Transfer</option>
                      <option value="CHEQUE">Cheque</option>
                      <option value="CREDIT">Credit Card</option>
                        </select>
                        </div>
                      </div>
                        <div class="row" style="margin-bottom:15px;">
                        <label class="col-md-3 control-label" for="inputDefault" style="color:red;">INVOICE <span class="required">*</span></label>
                        <div class="col-md-6">
                          <input type="text" class="form-control" id="inputDefault" name="receipt_iv" value="<?=$re_custom[payment_iv];?>"/>
                        </div>
                        </div>
                        <div class="row" style="margin-bottom:15px;">
                        <label class="col-md-3 control-label" for="inputDefault" style="color:red;">DATE <span class="required">*</span></label>
                        <div class="col-md-6">
                           <input class="form-control" type="date" id="date" name="receipt_date" value="">
                        </div>
                          </div>
                       <div class="row" style="margin-bottom:15px;">
                        <label class="col-md-3 control-label" for="inputDefault" style="color:red;">BANK <span class="required">*</span></label>
                        <div class="col-md-6">
                          <select data-plugin-selectTwo name='receipt_bank' id='receipt_bank' data-rel="chosen" class="form-control populate placeholder">
                          <option value="0">--เลือกธนาคาร--</option>
                          <option value="KBANK">ธ.กสิกรไทย</option>
                          <option value="BBL">ธ.กรุงเทพ</option>
                          <option value="KTB">ธ.กรุงไทย</option>
                          <option value="TMB">ธ.ทหารไทย</option>
                          <option value="SCB">ธ.ไทยพานิชย์</option>
                          <option value="GSB">ธ.ออมสิน</option>
                          <option value="BAY">ธ.กรุงศรีอยุธยา</option>
                          <option value="CITI">ธ.ซิตี้แบงค์</option>
                          <option value="KKP">ธ.เกียรตินาคิน</option>
                          <option value="CIMB">ธ.ซีไอเอ็มบีไทย</option>
                          <option value="TISCO">ธ.ทิสโก้</option>
                          <option value="TBANK">ธ.ธนชาติ</option>
                          <option value="UOBT">ธ.ยูโอบี</option>
                          <option value="SCBT">ธ.สแตนดาร์ดชาร์เตอร์ดไทย</option>
                        </select>
                        </div>
                      </div>
                        <div class="row" style="margin-bottom:15px;">
                        <label class="col-md-3 control-label" for="inputDefault" style="color:red;">ยอดที่จ่าย <span class="required">*</span></label>
                        <div class="col-md-6">
                           <input class="form-control" type="text" id="receipt_total" name="receipt_total" value="">
                        </div>
                          </div>

                </div>

                      </div>


                </div>
         

                </div>          
        <br><br><br><footer class="panel-footer">
                    <div class="row">

                                 <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>
                    </div>
                  </footer>

                    </form>
                  </div>
                </section>

            </div>
            </div>
