Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2014
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. <h3>Registration</h3>
  2. <p>Welcome to the registration form for <?php echo SITE_NAME; ?>. After you register, you will be notified by a staff member about your membership.</p>
  3. <form method="post" action="<?php echo url('/registration');?>">
  4. <dl>
  5. <dt>First Name: *</dt>
  6. <dd><input type="text" name="firstname" value="<?php echo Vars::POST('firstname');?>" />
  7. <?php
  8. if($firstname_error == true)
  9. echo '<p class="error">Please enter your first name</p>';
  10. ?>
  11. </dd>
  12.  
  13. <dt>Last Name: *</dt>
  14. <dd><input type="text" name="lastname" value="<?php echo Vars::POST('lastname');?>" />
  15. <?php
  16. if($lastname_error == true)
  17. echo '<p class="error">Please enter your last name</p>';
  18. ?>
  19. </dd>
  20.  
  21. <dt>Email Address: *</dt>
  22. <dd><input type="text" name="email" value="<?php echo Vars::POST('email');?>" />
  23. <?php
  24. if($email_error == true)
  25. echo '<p class="error">Please enter your email address</p>';
  26. ?>
  27. </dd>
  28.  
  29. <dt>Select Airline: *</dt>
  30. <dd>
  31. <select name="code" id="code">
  32. <?php
  33. foreach($allairlines as $airline)
  34. {
  35. echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';
  36. }
  37. ?>
  38. </select>
  39. </dd>
  40.  
  41. <dt>Hub: *</dt>
  42. <dd>
  43. <select name="hub" id="hub">
  44. <?php
  45. foreach($allhubs as $hub)
  46. {
  47. echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';
  48. }
  49. ?>
  50. </select>
  51. </dd>
  52.  
  53. <dt>Location: *</dt>
  54. <dd><select name="location">
  55. <?php
  56. foreach($countries as $countryCode=>$countryName)
  57. {
  58. if(Vars::POST('location') == $countryCode)
  59. $sel = 'selected="selected"';
  60. else
  61. $sel = '';
  62.  
  63. echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
  64. }
  65. ?>
  66. </select>
  67. <?php
  68. if($location_error == true)
  69. echo '<p class="error">Please enter your location</p>';
  70. ?>
  71. </dd>
  72.  
  73. <dt>Password: *</dt>
  74. <dd><input id="password" type="password" name="password1" value="" /></dd>
  75.  
  76. <dt>Enter your password again: *</dt>
  77. <dd><input type="password" name="password2" value="" />
  78. <?php
  79. if($password_error != '')
  80. echo '<p class="error">'.$password_error.'</p>';
  81. ?>
  82. </dd>
  83.  
  84. <?php
  85.  
  86. //Put this in a seperate template. Shows the Custom Fields for registration
  87. Template::Show('registration_customfields.tpl');
  88.  
  89. ?>
  90.  
  91. <dt>reCaptcha</dt>
  92. <dd>
  93. <?php
  94. echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
  95. ?>
  96. </dd>
  97.  
  98. <dt></dt>
  99. <dd><p>By clicking register, you're agreeing to the terms and conditions</p></dd>
  100. <dt></dt>
  101. <dd><input type="submit" name="submit" value="Register!" /></dd>
  102. </dl>
  103. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement