index.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php session_start();
  2. /*
  3. * Registration form for Coliberator
  4. * Copyright (C) 2014, 2015 Fundația Ceata - http://ceata.org
  5. *
  6. * Author: Victor Nițu (vnitu@ceata.org)
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. $filename = dirname(__FILE__) . '/coliberator2015.db';
  22. $db = new SQLite3($filename);
  23. function count_all() {
  24. global $db;
  25. $counter = $db->querySingle("SELECT count(*) AS c FROM PARTICIPANTS;");
  26. echo $counter;
  27. }
  28. ?>
  29. <!doctype html>
  30. <html class="no-js" lang="en">
  31. <head>
  32. <meta charset="utf-8" />
  33. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  34. <title>Coliberator 2015 :: Înscriere | Registration</title>
  35. <link rel="stylesheet" href="./css/foundation.css" />
  36. <link rel="stylesheet" href="./css/coliberator.css" />
  37. <script src="./js/3dparty/modernizr.js"></script>
  38. </head>
  39. <body>
  40. <div class="row">
  41. <div class="large-12 columns">
  42. <h1><a href="http://coliberator.ro">Coliberator 2015</a></h1>
  43. </div>
  44. </div>
  45. <div class="row">
  46. <div class="row">
  47. <div class="small-7 medium-8 large-8 columns">
  48. <h3>Formular de înregistrare | Registration form</h3>
  49. <p>Vă rugăm să utilizați acest formular pentru înscrierea la conferința Coliberator.
  50. <br>
  51. Please use this registration form in order to attend the Coliberator conference.</p>
  52. </div>
  53. <div class="small-5 medium-4 large-4 columns panel">
  54. <h1 id="counter"><?php count_all(); ?></h1>
  55. <span class="counter-text">people registered so far / </span>
  56. <span class="counter-text">persoane inregistrate până acum</span>
  57. </div>
  58. </div>
  59. <hr>
  60. <ul class="large-block-grid-2">
  61. <li>
  62. <form action="./register.php" method="post" data-abide>
  63. <div class="row">
  64. <div class="large-11 columns">
  65. <label for="fullname"> Numele complet sau pseudonimul (full name or nickname)
  66. <input id="fullname" type="text" name="fullname" placeholder="Numele complet / full name">
  67. <input id="anoncheck" type="checkbox"><label for="anoncheck">Anonim / Anonymous</label>
  68. </label>
  69. </div>
  70. </div>
  71. <div class="row">
  72. <div class="large-11 columns">
  73. <label for="email"> Email*
  74. <input type="email" required name="email" placeholder="Email">
  75. <small class="error">Introduceți o adresă validă / Please input a valid address</small>
  76. </label>
  77. </div>
  78. </div>
  79. <div class="row">
  80. <div class="large-11 columns">
  81. <label for="skill"> Ocupația / Occupation
  82. <input type="text" name="skill" placeholder="Optional">
  83. </label>
  84. </div>
  85. </div>
  86. <hr>
  87. <div class="row">
  88. <div class="large-12 columns">
  89. <div class="row">
  90. <div class="large-4 columns">
  91. <img id="captcha" src="./securimage/securimage_show.php" alt="CAPTCHA Image" />
  92. </div>
  93. <div class="large-4 columns">
  94. <span class="radius secondary label" href="#" onclick="document.getElementById('captcha').src = './securimage/securimage_show.php?' + Math.random(); return false">[ Different Image ]</span>
  95. <input type="text" name="captcha_code" maxlength="6" />
  96. </div>
  97. <div class="large-3 columns">
  98. <input type="submit" class="button small radius right" value="Trimite / Submit">
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </form>
  104. </li>
  105. <li>
  106. <p>Adresele de email vor fi folosite doar în scopul validării
  107. participanților și informării lor ulterioare asupra potențialelor modificări
  108. ale programului. Adresele colectate astfel NU vor fi folosite în scopul
  109. transmiterii de materiale promoționale sau alte mesaje nesolicitate.
  110. Adresele participanților NU vor fi afișate pe sit și nu vor fi făcute publice.</p>
  111. <p>The email addresses will be used for the sole purpose of validation
  112. of participants and to further inform them about eventual changes
  113. in the event's schedule. The addresses collected this way will NOT be used for
  114. sending promotional materials and other unsolicited materials.
  115. Participants' addresses will NOT be displayed on the website and will not be made public.</p>
  116. </li>
  117. </ul>
  118. <script src="js/3rdparty/jquery.js"></script>
  119. <script src="js/foundation.min.js"></script>
  120. <script>
  121. // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
  122. $(document).foundation();
  123. $('#anoncheck').click(function () {
  124. var fn = $('#fullname');
  125. if ($('#anoncheck').is(':checked')) {
  126. fn.attr('disabled', 'disabled');
  127. fn.attr('style', 'background-color: #666 !important;');
  128. } else {
  129. fn.removeAttr('disabled');
  130. fn.removeAttr('style');
  131. }
  132. });
  133. // @license-end
  134. </script>
  135. </div>
  136. <div class="row">
  137. <span class="copyright">
  138. &copy; 2014, 2015 <a href="http://ceata.org/">Fundația Ceata</a>. Aplicația este pusă <a href="http://notabug.org/Ceata/coliberator" target="__blank">la dispoziție</a> sub licența liberă <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="__blank">GNU AGPLv3+</a>. Textul și imaginile sunt publicate sub licența liberă <a href="https://creativecommons.org/licenses/by-sa/3.0/" target="_blank">CC BY-SA 3.0</a>.
  139. </span>
  140. </div>
  141. </body>
  142. </html>