example05.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <style type="text/css">
  2. <!--
  3. table
  4. {
  5. width: 100%;
  6. border: solid 1px #5544DD;
  7. }
  8. th
  9. {
  10. text-align: center;
  11. border: solid 1px #113300;
  12. background: #EEFFEE;
  13. }
  14. td
  15. {
  16. text-align: left;
  17. border: solid 1px #55DD44;
  18. }
  19. td.col1
  20. {
  21. border: solid 1px red;
  22. text-align: right;
  23. }
  24. end_last_page div
  25. {
  26. border: solid 1mm red;
  27. height: 27mm;
  28. margin: 0;
  29. padding: 0;
  30. text-align: center;
  31. font-weight: bold;
  32. }
  33. -->
  34. </style>
  35. <span style="font-size: 20px; font-weight: bold">Démonstration des retour à la ligne automatique, ainsi que des sauts de page automatique<br></span>
  36. <br>
  37. <br>
  38. <table>
  39. <colgroup>
  40. <col style="width: 5%" class="col1">
  41. <col style="width: 25%">
  42. <col style="width: 30%">
  43. <col style="width: 40%">
  44. </colgroup>
  45. <thead>
  46. <tr>
  47. <th rowspan="2">n°</th>
  48. <th colspan="3" style="font-size: 16px;">
  49. Titre du tableau
  50. </th>
  51. </tr>
  52. <tr>
  53. <th>Colonne 1</th>
  54. <th>Colonne 2</th>
  55. <th>Colonne 3</th>
  56. </tr>
  57. </thead>
  58. <?php
  59. for ($k=0; $k<50; $k++) {
  60. ?>
  61. <tr>
  62. <td><?php echo $k; ?></td>
  63. <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
  64. <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
  65. <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
  66. </tr>
  67. <?php
  68. }
  69. ?>
  70. <tfoot>
  71. <tr>
  72. <th colspan="4" style="font-size: 16px;">
  73. bas du tableau
  74. </th>
  75. </tr>
  76. </tfoot>
  77. </table>
  78. Cool non ?<br>
  79. <end_last_page end_height="30mm">
  80. <div>
  81. Ceci est un test de fin de page
  82. </div>
  83. </end_last_page>