subscribeSuccess.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. define('RENDER_MODE', 'catalyz');
  3. $node = $page->getNode();
  4. use_helper('Form');
  5. $properties = array();
  6. $properties['page'] = $page;
  7. $properties['node'] = $node;
  8. $properties['ContentTree'] = $ContentTree;
  9. ob_start();
  10. use_helper('I18N');
  11. $allLanguages = sfConfig::get('app_translations_available_languages');
  12. $default = sfConfig::get('app_translations_default_language');
  13. // $existing_languages = $node->getAvailableTranslations();
  14. $allLanguages = Catalyz::getAllTranslations();
  15. unset($allLanguages[$default]);
  16. // $perms = array();
  17. // $available_languages = array();
  18. // foreach($allLanguages as $iso => $name) {
  19. // if (!isset($existing_languages[$iso])) {
  20. // $available_languages[$iso] = ucfirst($name);
  21. // }
  22. // $perms[$iso]['edit'] = true;
  23. // $perms[$iso]['delete'] = ($iso != $default);
  24. // }
  25. // include_partial('catalyz/header');
  26. ?>
  27. <div class="content-add01">
  28. <div class="heading01"><h1>S'inscrire</h1></div>
  29. </div>
  30. <?php echo form_tag('@katao_subscribe') ?>
  31. <div style="display:none"><?php echo input_tag('no_spam', '') ?></div>
  32. <table>
  33. <tfoot>
  34. <tr>
  35. <td colspan="2">
  36. <br /><input type="submit" value="Sauver" /> ou <?php echo link_to('annuler', $sf_request->getReferer()?$sf_request->getReferer():'#') ?>
  37. </td>
  38. </tr>
  39. </tfoot>
  40. <tbody>
  41. <?php echo $form->renderGlobalErrors() ?>
  42. <tr valign="top">
  43. <td colspan="2" align="left"><u>Informations personnelles</u></td>
  44. </tr>
  45. <tr valign="top">
  46. <th align="left"><?php echo $form['first_name']->renderLabel() ?></th>
  47. <td>
  48. <?php echo $form['first_name'] ?>
  49. <?php echo $form['first_name']->renderError() ?>
  50. </td>
  51. </tr>
  52. <tr valign="top">
  53. <th align="left"><?php echo $form['last_name']->renderLabel() ?></th>
  54. <td>
  55. <?php echo $form['last_name'] ?>
  56. <?php echo $form['last_name']->renderError() ?>
  57. </td>
  58. </tr>
  59. <tr valign="top">
  60. <th align="left"><?php echo $form['user_email']->renderLabel() ?></th>
  61. <td>
  62. <?php echo $form['user_email'] ?>
  63. <?php echo $form['user_email']->renderError() ?>
  64. </td>
  65. </tr>
  66. <tr valign="top">
  67. <th align="left"><?php echo $form['user_phone']->renderLabel() ?></th>
  68. <td>
  69. <?php echo $form['user_phone'] ?>
  70. <?php echo $form['user_phone']->renderError() ?>
  71. </td>
  72. </tr>
  73. <tr valign="top">
  74. <th align="left"><?php echo $form['user_fax']->renderLabel() ?></th>
  75. <td>
  76. <?php echo $form['user_fax'] ?>
  77. <?php echo $form['user_fax']->renderError() ?>
  78. </td>
  79. </tr>
  80. <tr valign="top">
  81. <td colspan="2" align="left"><br /><u>Adresse</u></td>
  82. </tr>
  83. <tr valign="top">
  84. <th align="left"><?php echo $form['user_address1']->renderLabel() ?></th>
  85. <td>
  86. <?php echo $form['user_address1'] ?>
  87. <?php echo $form['user_address1']->renderError() ?>
  88. </td>
  89. </tr>
  90. <tr valign="top">
  91. <th align="left"><?php echo $form['user_address2']->renderLabel() ?></th>
  92. <td>
  93. <?php echo $form['user_address2'] ?>
  94. <?php echo $form['user_address2']->renderError() ?>
  95. </td>
  96. </tr>
  97. <tr valign="top">
  98. <th align="left"><?php echo $form['user_zip']->renderLabel() ?></th>
  99. <td>
  100. <?php echo $form['user_zip'] ?>
  101. <?php echo $form['user_zip']->renderError() ?>
  102. </td>
  103. </tr>
  104. <tr valign="top">
  105. <th align="left"><?php echo $form['user_city']->renderLabel() ?></th>
  106. <td>
  107. <?php echo $form['user_city'] ?>
  108. <?php echo $form['user_city']->renderError() ?>
  109. </td>
  110. </tr>
  111. <tr valign="top">
  112. <td colspan="2" align="left"><br /><u>Accès application</u></td>
  113. </tr>
  114. <tr valign="top">
  115. <th align="left"><?php echo $form['user_login']->renderLabel() ?></th>
  116. <td>
  117. <?php echo $form['user_login'] ?>
  118. <?php echo $form['user_login']->renderError() ?>
  119. </td>
  120. </tr>
  121. <tr valign="top">
  122. <th align="left"><?php echo $form['user_password']->renderLabel() ?></th>
  123. <td>
  124. <?php echo $form['user_password'] ?>
  125. <?php echo $form['user_password']->renderError() ?>
  126. </td>
  127. </tr>
  128. <tr valign="top">
  129. <th align="left"><?php echo $form['user_password_confirmation']->renderLabel() ?></th>
  130. <td>
  131. <?php echo $form['user_password_confirmation'] ?>
  132. <?php echo $form['user_password_confirmation']->renderError() ?>
  133. </td>
  134. </tr>
  135. </tbody>
  136. </table>
  137. </form>
  138. <?php
  139. $content = ob_get_contents();
  140. ob_end_clean();
  141. // $layout = LayoutManager::instance()->getCatalyzTemplate($ContentTreeNode->getCurrentLayoutNameForAction());
  142. $properties['layout_family'] = 'katao';
  143. $properties['layout_name'] = 'default';
  144. $properties['content'] = $content;
  145. include_component($properties['layout_family'], $properties['layout_name'], $properties);
  146. ?>