user_template.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div align='center'>
  2. <table width='90%' border='0' cellpadding='0' cellspacing='2'>
  3. <?php if (strlen($msgerror) > 0) { ?>
  4. <tr><td>
  5. <?php echo $msgerror; ?>
  6. </td></tr>
  7. <?php } ?>
  8. <tr>
  9. <td align="left">
  10. <br>
  11. <form method='post' action=''>
  12. <?php foreach($forms as $form) { ?>
  13. <b><?php echo $form['header']; ?></b><br>
  14. <div class='borderlight' style='padding:10px;'>
  15. <table width="100%" cellpadding='6' cellspacing='0'>
  16. <?php
  17. foreach($form['fields'] as $field) {
  18. if ($field[3]) {
  19. $cssclass = 'vncellreq';
  20. } else {
  21. $cssclass = 'vncell';
  22. }
  23. if (in_array($field[0], $error_fields)) {
  24. $cssclass = 'vncellreqerr';
  25. }
  26. ?> <tr><td class="<?php echo $cssclass; ?>" width="40%"><?php echo $field[1]; ?></td>
  27. <td class="vtable" width="60%"><input type="<?php echo $field[2]; ?>" class="formfld" autocomplete="off"
  28. name="<?php echo $field[0]; ?>" value="<?php echo $request[$field[0]]; ?>"></td></tr>
  29. <?php
  30. }
  31. print("</table></div><br>");
  32. }
  33. ?>
  34. <div class='' style='padding:10px;'>
  35. <table width="100%">
  36. <tr>
  37. <!-- <td valign='top'>
  38. <input type="checkbox" name="newsletter" value="newsletter" /> Yes, sign me up for news letter<br />
  39. <input type="checkbox" name="tos_agree" value="tos_agree" /> I have read and agree to the terms of service
  40. </td> -->
  41. <td colspan='2' align='center'><?php echo recaptcha_get_html($publickey, $error); ?></td>
  42. </tr>
  43. <tr>
  44. <td colspan='2' align='center'>
  45. <input type='submit' name='submit' class='btn' value='Create Account'>
  46. </td>
  47. </tr>
  48. </table>
  49. </form>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>