Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/admin/
Upload File :
Current File : /home2/wtmwscom/public_html/admin/pin_package.php

<?php
$title = "Pin Package";
include 'header.php';
?>

    <section id="comments">
        <h1>Add Pin Package</h1>
        <?php echo getMessage();?>
        <form name="form" id="form" action="pin_package_model.php" method="post" enctype="multipart/form-data">
          
          <p>
            <label for="name">Package Name <span>*</span></label>
            <input type="text" name="package_name" id="name" value="" required="required" maxlength="250">
          </p>
          
          <p>
            <label for="package_amount">Package Amount <span>*</span></label>
            <input type="text" name="package_amount" id="package_amount" required="required">
          </p>
           <p>
            <label for="bv_amount">P.V. Amount <span>*</span></label>
            <input type="text" name="bv_amount" id="bv_amount" required="required">
          </p>
          <p>
            <label for="pin_length">Pin length <span>*</span></label>
            <input type="text" name="pin_length" id="pin_length" value="" maxlength="50" required="required">
          </p>
          
         
          
          <p><br />
              <input style="position: relative; left: 160px;" name="submit" type="submit" id="submit" value="Add Package">
          </p>
        </form>
      </section>

<h1>Pin Package</h1>
 <section>
        <table style="width: 100%;">
          <thead>
            <tr>
              <th>S. No.</th>
              <th>Package Name</th>
              <th>Package Amount</th>
              <th>P.V. Amount</th>
              <th>Pin length</th>
              <th>Date</th>
            </tr>
          </thead>
          <?php
            $query = "SELECT * FROM pin_package";
            $result = mysqli_query($connection, $query);
            if(mysqli_num_rows($result) > 0){
                
          ?>
          <tbody>
            <?php
                if(!isset($_GET['page'])){ $i=1; }else{ $i=(($_GET['page']-1)*50)+1; }
                while ($row = mysqli_fetch_object($result)){
            ?>
            <tr <?php if($i%2){echo "class='light'";}else{echo "class='dark'";}?>>
              <td><?php echo $row->id;?></td>
              <td><?php echo $row->package_name;?></td>
              <td><?php echo $row->package_amount;?></td>
              <td><?php echo $row->bv_amount;?></td>
              <td><?php echo $row->pin_length;?></td>
              <td><?php echo date("d/m/Y h:i A", strtotime($row->datetime));?></td>
            </tr>
            <?php $i++;}?>
          </tbody>
              <?php }?>
        </table>
      </section>


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