mqnoy

formout

Feb 12th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.86 KB | None | 0 0
  1. <?php
  2. //var_dump($rows_table['data_all']['data_1']);
  3.  
  4. $datestring = '%Y-%m-%d %h:%i:%s';
  5. $time = time();
  6. // /echo mdate($datestring, $time);
  7. ?>
  8. <div class="panel panel-info">
  9.     <div class="panel-heading">
  10.         Form out stocks parts
  11.     </div>
  12.     <div class="panel-body">
  13.         <div class="row">
  14.             <div class="col-lg-7">
  15.                
  16.                     <div class="form-group">
  17.                         <form role="form" action="<?php echo base_url('/dashboard/input/outstocks')?>" method="get">
  18.                             <label>Hardware search : </label>
  19.                             <div class="input-group custom-search-form">
  20.  
  21.                                 <input type="text" placeholder="device serial or name" class="form-control"  name="s">
  22.                                 <span class="input-group-btn">
  23.                                     <button class="btn btn-default" type="submit" >
  24.                                         <i class="fa fa-search"></i>
  25.                                     </button>
  26.                                 </span>
  27.  
  28.                             </div>
  29.                         </form>
  30.                     </div>
  31.                     <form role="form" name="form-search" action="<?php echo base_url('/dashboard/input/outstocks')?>" method="post" >
  32.                     <div class="form-group">
  33.                         <?php
  34.                         if (isset($_GET['s'])) {
  35.                             # code...
  36.                             //var_dump($rows_table);
  37.                             ?>
  38.                             <div class="col-lg-12">
  39.                                 <div class="panel panel-default">
  40.                                     <div class="panel-heading">
  41.                                         Striped Rows
  42.                                     </div>
  43.                                     <!-- /.panel-heading -->
  44.                                     <div class="panel-body">
  45.                                         <div class="table-responsive">
  46.                                             <table class="table table-striped">
  47.                                                 <thead>
  48.                                                     <tr>
  49.                                                         <th>#</th>
  50.                                                         <th>Serial number</th>
  51.                                                         <th>Inventory code</th>
  52.                                                         <th>Product brand model</th>
  53.                                                         <th>Action</th>
  54.                                                     </tr>
  55.                                                 </thead>
  56.                                                 <tbody>
  57.                                                     <?php
  58.                                                     $i=1;
  59.                                                     foreach ($rows_table['data_all']['data_0'] as $getRow) {
  60.                                                         # code...
  61.                                                         echo "
  62.                                                         <tr>
  63.                                                         <td>$i</td>
  64.                                                         <td>".$getRow['serial_number']."</td>
  65.                                                         <td>".$getRow['inventory_code']."</td>
  66.                                                         <td>".$getRow['hw_product_id']."</td>
  67.                                                         <td>
  68.                                                         <select class=\"form-control\"  name=\"fr-outstocks-action\">
  69.                                                         <option selected value=\"0\">-</option>
  70.                                                         <option value=\"1\">use</option>
  71.                                                         <option value=\"2\">stock</option>
  72.                                                         </select>
  73.                                                         </td>
  74.                                                         </tr>";
  75.                                                         $i++;
  76.                                                     }
  77.                                                     ?>
  78.  
  79.                                                 </tbody>
  80.                                             </table>
  81.                                         </div>
  82.                                         <!-- /.table-responsive -->
  83.                                     </div>
  84.                                     <!-- /.panel-body -->
  85.                                 </div>
  86.                                 <!-- /.panel -->
  87.                             </div>
  88.                             <?php
  89.                         }else {
  90.                             # code...
  91.                             echo "0 rows";
  92.                         }
  93.                         ?>
  94.  
  95.                     </div>
  96.                 </div>
  97.  
  98.  
  99.                 <div class="col-lg-4">
  100.                     <div class="form-group">
  101.                         <label >Out Date :</label>
  102.  
  103.                         <div class="row col-lg-12" >
  104.                             <div class="col-lg-8 input-group date" data-provide="datepicker" style="cursor:pointer;">
  105.                                 <input class="form-control" type="text" name="fr-outstocks-yearandmonth" value="<?php echo date('m/d/Y'); ?>" id="example-month-input">
  106.                                 <div class="input-group-addon">
  107.                                     <span class="fa fa-calendar"></span>
  108.                                 </div>
  109.                             </div>
  110.                         </div>
  111.                         <div class="row col-lg-12" >
  112.                             <small id="passwordHelpBlock" class="form-text text-muted">
  113.                                 *this required for inventory code : 001/RAM/DWI/<b>09</b>/<b>16</b>
  114.                             </small>
  115.                         </div>
  116.                     </div>
  117.                 </div>
  118.  
  119.                 <div class="col-lg-12">
  120.                     <div class="form-group" style="float: right !important;">
  121.                         <button type="reset" class="btn btn-default">Reset Button</button>
  122.                         <input type="submit" value="submit" class="btn btn-default" name="fr-input-parts-submit">
  123.                     </div>
  124.                 </form>
  125.             </div>
  126.         </div>
  127.         <!-- /.col-lg-6 (nested) -->
  128.     </div>
  129.     <!-- /.row (nested) -->
  130. </div>
  131. <!-- /.panel-body -->
  132. </div>
Advertisement
Add Comment
Please, Sign In to add comment