donnykurnia

refactoring

Nov 15th, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>pehapecode</title>
  5.     <link rel="stylesheet" type="text/css" href="fix_head.css">
  6.   </head>
  7.   <body>
  8.     <table class="fixed-th">
  9.       <thead>
  10.         <tr>
  11.           <th>No</th>
  12.           <th>Nama Perusahaan</th>
  13.           <th>Judul Tender</th>
  14.           <th>Jenis Dokumen</th>
  15.           <th>No. Tender</th>
  16.           <th>No. Kontrak</th>
  17.           <th>Tahun</th>
  18.           <th>Buyer</th>
  19.           <th>No. Lemari</th>
  20.           <th>No. Box</th>
  21.           <th>Status</th>
  22.           <th>Tanggal</th>
  23.         </tr>
  24.       </thead>
  25.       <tbody>
  26.         <?php include "koneksi.php"; ?>
  27.         <?php $result=mysql_query("select * from fill where status='User'"); ?>
  28.         <?php while ($row=mysql_fetch_array($result)): ?>
  29.           <tr>
  30.             <td><?php echo $row['no'] ?></td>
  31.             <td><?php echo $row['vendor'] ?></td>
  32.             <td><?php echo $row['judul_tender'] ?></td>
  33.             <td>
  34.               <?php $exp = explode(",",$row['jenis_dokumen']); ?>
  35.               <?php foreach ($exp as $enter): ?>
  36.                 <?php echo $enter ?></br>
  37.               <?php endforeach; ?>
  38.             </td>
  39.             <td><?php echo $row['no_tender'] ?></td>
  40.             <td><?php echo $row['no_kontrak'] ?></td>
  41.             <td><?php echo $row['tahun'] ?></td>
  42.             <td><?php echo $row['pemilik'] ?></td>
  43.             <td><?php echo $row['lemari'] ?></td>
  44.             <td><?php echo $row['no_box'] ?></td>
  45.             <td><?php echo $row['status'] ?></td>
  46.             <td><?php echo $row['tgl_status'] ?></td>
  47.           </tr>
  48.         <?php endwhile; ?>
  49.       </tbody>
  50.     </table>
  51.   </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment