documents.php 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. session_name("Rentree");
  3. @session_start();
  4. require_once("config.php");
  5. if( !isset($_SESSION['auth']) || ($_SESSION['auth'] != "TRUE" ) ) {
  6. // redirection
  7. header("location: index.php");
  8. }
  9. if ($_SESSION['existe'] == "TRUE") {
  10. include_once("includes/getData.php");
  11. }
  12. include_once("includes/header.php");
  13. ?>
  14. <script type="text/javascript">
  15. $(document).ready(function(){
  16. <?php
  17. include_once("js/spinner.js");
  18. include_once("js/formData.js");
  19. include_once("js/selectPromo.js");
  20. include_once("js/fancybox.js");
  21. ?>
  22. });
  23. </script>
  24. <table width="100%" border="0" cellspacing="0" align="center">
  25. <tr>
  26. <td>
  27. <table width="100%" border="0" cellspacing="0" align="center">
  28. <tr>
  29. <td colspan="3" height="30">&nbsp;</td>
  30. </tr>
  31. <tr>
  32. <td width="30%" align="left" valign="middle"><div align="left"><img src="images/logo_ISEN.png" width="270"></div></td>
  33. <td width="50%" valign="middle">
  34. <div class="titre" align="center">
  35. <?php echo $titre; ?>
  36. </div>
  37. </td>
  38. <td width="30%" align="right" valign="middle"><div class="titreBis" align="right">Brest - Rennes</div></td>
  39. </tr>
  40. </table>
  41. <table width="100%" border="0" cellspacing="0">
  42. <tr>
  43. <td colspan="2" height="30">&nbsp;<hr></td>
  44. </tr>
  45. <tr>
  46. <td valign="top" width="40%">
  47. <?php include_once("includes/formData.php"); ?>
  48. </td>
  49. <td valign="top">
  50. <div id="intro" style="display:none;">
  51. <table width="100%" border="0" cellspacing="0" align="center">
  52. <tr><td style="height:70px">&nbsp;</td></tr>
  53. <tr><td style="height:100%"><img class="intro" src="images/isen.gif"></td></tr>
  54. <tr><td style="height:70px;vertical-align:bottom">&nbsp;</td></tr>
  55. </table>
  56. </div>
  57. <div id="docs" style="display:none;">
  58. <?php include_once("includes/listPromo.php"); ?>
  59. <div id="container" style="display:none;"></div>
  60. </div>
  61. <?php
  62. if ($_SESSION['existe'] == "TRUE") {
  63. echo "<script type=\"text/javascript\">$(\"#docs\").show();</script>";
  64. }
  65. else {
  66. echo "<script type=\"text/javascript\">$(\"#intro\").show();</script>";
  67. }
  68. ?>
  69. </td>
  70. </tr>
  71. </table>
  72. </td>
  73. </tr>
  74. </table>
  75. </body>
  76. </html>