<?php include 'header.php'; ?>

<div class="content-wrapper">

  <section class="content-header">
    <h1>
      Transaksi
      <small>Input resi</small>
    </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li class="active">Dashboard</li>
    </ol>
  </section>

  <section class="content">
    <div class="row">
      <section class="col-lg-12">       
        <div class="box box-info">
            <?php 
            $id = $_GET['id'];
            $data = mysqli_query($koneksi,"select * from invoice where invoice_id='$id'");
            while($d = mysqli_fetch_array($data)){
              ?>

          <div class="box-header">
            <h3 class="box-title">Input resi INVOICE-00<?= $d['invoice_id'] ?></h3>
            <a href="transaksi.php" class="btn btn-info btn-sm pull-right"><i class="fa fa-reply"></i> &nbsp Kembali</a> 
          </div>
          <div class="box-body">

              <form action="resi_act.php" method="post" enctype="multipart/form-data">

                <div class="form-group">
                  <label>Nomor resi</label>
                  <input type="hidden" name="id" value="<?php echo $d['invoice_id']; ?>">
                  <input type="text" class="form-control" name="resi" required="required" placeholder="Masukkan resi .." value="<?php echo $d['invoice_resi']?>">
                </div>


                <div class="form-group">
                  <input type="submit" class="btn btn-sm btn-primary" value="Simpan">
                </div>

              </form>

              <?php 
            }
            ?>

          </div>

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

</div>
<?php include 'footer.php'; ?>