html_table.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
  3. header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
  4. header( 'Cache-Control: no-store, no-cache, must-revalidate' );
  5. header( 'Cache-Control: post-check=0, pre-check=0', false );
  6. header( 'Pragma: no-cache' );
  7. ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  8. <html>
  9. <head>
  10. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  11. <link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico" />
  12. <title>DataTables unit testing</title>
  13. <style type="text/css" title="currentStyle">
  14. @import "../../css/demo_page.css";
  15. @import "../../css/demo_table.css";
  16. </style>
  17. <script type="text/javascript" src="../../js/jquery.js"></script>
  18. <script type="text/javascript" src="../../js/jquery.dataTables.js"></script>
  19. <script type="text/javascript" src="../unit_test.js"></script>
  20. <?php
  21. $aScripts = explode( ":", $_GET['scripts'] );
  22. for ( $i=0 ; $i<count($aScripts) ; $i++ )
  23. {
  24. echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
  25. }
  26. ?>
  27. </head>
  28. <body id="dt_example">
  29. <div id="container">
  30. <div class="full_width big">
  31. <i>DataTables</i> table with HTML elements template
  32. </div>
  33. <h1>Live example</h1>
  34. <div id="demo">
  35. <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
  36. <thead>
  37. <tr>
  38. <th>Reflection</th>
  39. <th>Link</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <tr>
  44. <td>1</td>
  45. <td><a href="http://www.sprymedia.co.uk/article/DataTables">DataTables</a></td>
  46. </tr>
  47. <tr>
  48. <td>2</td>
  49. <td><a href="http://www.sprymedia.co.uk/article/Integrity">A link to Integrity</a></td>
  50. </tr>
  51. <tr>
  52. <td>3</td>
  53. <td><a href="http://www.sprymedia.co.uk/article/Integrity">Integrity</a></td>
  54. </tr>
  55. <tr>
  56. <td>4</td>
  57. <td>EIntegrity</td>
  58. </tr>
  59. </table>
  60. </div>
  61. <div class="spacer"></div>
  62. </div>
  63. </body>
  64. </html>