/Collaboratia/help.php

https://github.com/javidgon/Collaboratia · PHP · 99 lines · 86 code · 13 blank · 0 comment · 8 complexity · 52fc427d8f62b91e776c03fd40298b8a MD5 · raw file

  1. <?
  2. session_start();
  3. @include('Functions/authentification/user_auth.php');
  4. $flag_end = false;
  5. if ($_SESSION['email']) {
  6. $flag_session = true;
  7. }
  8. ?>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13. <style type="text/css">
  14. @import "CSS/index.css";
  15. @import "CSS/texts.css";
  16. @import "CSS/menus.css";
  17. @import "CSS/buttons.css";
  18. @import "CSS/alerts.css";
  19. </style>
  20. <title>Contact form</title>
  21. </head>
  22. <body>
  23. <div class="header">
  24. <img style="float:right;margin-right:11em; "src="Img/logo.png" width="150" alt="Imagen" />
  25. <? if (isset($_SESSION['email']) && $flag_end != true) {
  26. ?><p>Welcome
  27. <?
  28. echo '<b>' . $_SESSION['email'] . '</b> </p>';
  29. }
  30. ?>
  31. </div><?
  32. if ($flag_session == true and $flag_end == false) {
  33. ?>
  34. <ul id="menu-horizontal">
  35. <li><a href="User/index.php" title="Menu">My Page</a></li>
  36. <li><a href="listProjects.php" title="Projects">Search Projects</a></li>
  37. <li><a href="help.php" title="Help">Help</a></li>
  38. </ul>
  39. <div class="exit">
  40. <form action="index.php" method="post">
  41. <input type="hidden" name= "end" value="end"/>
  42. <div class="buttons">
  43. <button type="submit" class="positive">
  44. <img src="Img/icons/application_side_contract.png" alt=""/>
  45. Exit
  46. </button>
  47. </div>
  48. </form>
  49. </div>
  50. <? } else {
  51. ?>
  52. <ul id="menu-horizontal">
  53. <li><a href="index.php" title="Main Page">Enter</a>
  54. <ul>
  55. <li><a href="Login/index.php" title="Log in">Log in</a></li>
  56. <li><a href="Register/index.php" title="Sign in">Sign in</a></li>
  57. </ul>
  58. </li>
  59. <li><a href="listProjects.php" title="Projects">Search Projects</a></li>
  60. <li><a href="help.php" title="Help">Help</a></li>
  61. </ul>
  62. <? } ?>
  63. <div class="title">
  64. <h1>Contact us:</h1>
  65. <form name="mail_form" action="mailto:collaboratia@hotmail.com" method="POST" enctype="text/plain">
  66. <table>
  67. <tr>
  68. <td>
  69. Name:  </td><td>
  70. <input type = "text" name = "Name"></td></tr>
  71. <tr>
  72. <td>
  73. Subject:  </td><td>
  74. <input type = "text" name = "Subject"></td></tr>
  75. <tr>
  76. <td>
  77. Comments:</td><td>
  78. <textarea name = "Comments" cols = 50 rows = 6></textarea></td></tr>
  79. <tr>
  80. <td> <input type="submit" name="Send" value="Send"/></td><td><input type="reset" name="Reset" value="Reset" /></td>
  81. </tr>
  82. </table>
  83. </form>
  84. </div>
  85. </body>
  86. </html>