SHARE
TWEET

Untitled

a guest Sep 18th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  2.  
  3. <script data-cfasync="false" src="app_new.js"></script>
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <style>
  9. #customers {
  10.   font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  11.   border-collapse: collapse;
  12.   width: 100%;
  13. }
  14.  
  15. #customers td, #customers th {
  16.   border: 1px solid #ddd;
  17.   padding: 8px;
  18. }
  19.  
  20. #customers tr:nth-child(even){background-color: #f2f2f2;}
  21.  
  22. #customers tr:hover {background-color: #ddd;}
  23.  
  24. #customers th {
  25.   padding-top: 12px;
  26.   padding-bottom: 12px;
  27.   text-align: left;
  28.   background-color: #4CAF50;
  29.   color: white;
  30. }
  31. </style>
  32. </head>
  33. <?php
  34. if (!mssql_num_rows($query)) {
  35.     echo 'No records found';
  36. } else {
  37.     ?>
  38. <body>
  39.  
  40. <table id="customers">
  41.             <tr>
  42.                 <th>Order Number</th>
  43.                 <th>Name</th>
  44.                 <th>Delivery Instructions</th>
  45.                 <th>Ship Date</th>
  46.                 <th>Taker</th>
  47.                 <th>Customer Part Number</th>
  48.             </tr>
  49.         <?php
  50.             while ($row = mssql_fetch_array($query)) {
  51.                 echo'<tr>';
  52.                 echo'<td>'. $row['order_no'].'</td>';
  53.                 echo'<td>'. $row['name'].'</td>';
  54.                 echo'<td>'. $row['delivery_instructions'].'</td>';
  55.                 echo'<td>'. $row['shipdate'].'</td>';
  56.                 echo'<td>'. $row['taker'].'</td>';
  57.                 echo'<td>'. $row['customer_part_number'].'</td>';
  58.                 echo'<tr>';
  59.             }
  60.         ?>
  61.             </table>
  62.         </body>
  63.         </html>
  64.         <script>
  65. $(window).on('beforeunload', function(){
  66.   $(window).scrollTop(0);
  67. });
  68. </script>
  69.     <?php
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top