register-dialog.phtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <div id="register_popup" class="dialogPopup register-dialog" title="<?php echo _("Register Airtime") ?>" style="display: none;">
  2. <form id="register-form" method="<?php echo $this->element->getMethod() ?>" action="<?php echo $this->element->getAction() ?>" enctype="multipart/form-data">
  3. <fieldset>
  4. <dl class="zend_form">
  5. <dt class="block-display info-text">
  6. <?php echo sprintf(_("Help improve %s by letting us know how you're using it. This information"
  7. ." will be collected regularly in order to enhance your user experience.<br />"
  8. ."Click the box below and we'll make sure the features you use are constantly improving."),
  9. PRODUCT_NAME)?>
  10. </dt>
  11. <dd id="SupportFeedback-element" class="block-display">
  12. <label class="optional" for="SupportFeedback">
  13. <?php echo $this->element->getElement('SupportFeedback') ?>
  14. <strong><?php echo $this->element->getElement('SupportFeedback')->getLabel() ?></strong>
  15. </label>
  16. <?php if($this->element->getElement('SupportFeedback')->hasErrors()) : ?>
  17. <ul class='errors'>
  18. <?php foreach($this->element->getElement('SupportFeedback')->getMessages() as $error): ?>
  19. <li><?php echo $error; ?></li>
  20. <?php endforeach; ?>
  21. </ul>
  22. <?php endif; ?>
  23. </dd>
  24. <dt class="block-display info-text">
  25. <?php
  26. $whosUsingAnchor = "<a id='link_to_whos_using' href='" . WHOS_USING_URL . "' onclick='window.open(this.href); return false'>"
  27. . COMPANY_SITE
  28. . "</a>";
  29. echo sprintf(_("Click the box below to promote your station on %s."), $whosUsingAnchor)
  30. ?>
  31. </dt>
  32. <dd id="publicize-element" class="block-display">
  33. <label class="optional" for="Publicise">
  34. <?php echo $this->element->getElement('Publicise') ?>
  35. <strong><?php echo $this->element->getElement('Publicise')->getLabel() ?></strong>
  36. </label>
  37. <?php if($this->element->getElement('Publicise')->hasErrors()) : ?>
  38. <ul class='errors'>
  39. <?php foreach($this->element->getElement('Publicise')->getMessages() as $error): ?>
  40. <li><?php echo $error; ?></li>
  41. <?php endforeach; ?>
  42. </ul>
  43. <?php endif; ?>
  44. </dd>
  45. </dl>
  46. <dl id="public-info" style="display:none;">
  47. <dt id="stnName-label">
  48. <label class="optional" for="stnName"><?php echo $this->element->getElement('stnName')->getLabel() ?>
  49. <span class="info-text-small"><?php echo _("(Required)")?></span> :
  50. </label>
  51. </dt>
  52. <dd id="stnName-element">
  53. <?php echo $this->element->getElement('stnName') ?>
  54. <?php if($this->element->getElement('stnName')->hasErrors()) : ?>
  55. <ul class='errors'>
  56. <?php foreach($this->element->getElement('stnName')->getMessages() as $error): ?>
  57. <li><?php echo $error; ?></li>
  58. <?php endforeach; ?>
  59. </ul>
  60. <?php endif; ?>
  61. </dd>
  62. <dt id="Phone-label">
  63. <label class="optional" for="Phone"><?php echo $this->element->getElement('Phone')->getLabel() ?></label>
  64. </dt>
  65. <dd id="Phone-element">
  66. <?php echo $this->element->getElement('Phone') ?>
  67. <span class="info-text-small"><?php echo _("(for verification purposes only, will not be published)")?></span>
  68. <?php if($this->element->getElement('Phone')->hasErrors()) : ?>
  69. <ul class='errors'>
  70. <?php foreach($this->element->getElement('Phone')->getMessages() as $error): ?>
  71. <li><?php echo $error; ?></li>
  72. <?php endforeach; ?>
  73. </ul>
  74. <?php endif; ?>
  75. </dd>
  76. <dt id="Email-label">
  77. <label class="optional" for="Email"><?php echo $this->element->getElement('Email')->getLabel() ?></label>
  78. </dt>
  79. <dd id="Email-element">
  80. <?php echo $this->element->getElement('Email') ?>
  81. <span class="info-text-small"><?php echo _("(for verification purposes only, will not be published)")?></span>
  82. <?php if($this->element->getElement('Email')->hasErrors()) : ?>
  83. <ul class='errors'>
  84. <?php foreach($this->element->getElement('Email')->getMessages() as $error): ?>
  85. <li><?php echo $error; ?></li>
  86. <?php endforeach; ?>
  87. </ul>
  88. <?php endif; ?>
  89. </dd>
  90. <dt id="StationWebSite-label">
  91. <label class="optional" for="StationWebSite"><?php echo $this->element->getElement('StationWebSite')->getLabel() ?></label>
  92. </dt>
  93. <dd id="StationWebSite-element">
  94. <?php echo $this->element->getElement('StationWebSite') ?>
  95. <?php if($this->element->getElement('StationWebSite')->hasErrors()) : ?>
  96. <ul class='errors'>
  97. <?php foreach($this->element->getElement('StationWebSite')->getMessages() as $error): ?>
  98. <li><?php echo $error; ?></li>
  99. <?php endforeach; ?>
  100. </ul>
  101. <?php endif; ?>
  102. </dd>
  103. <dt id="Country-label">
  104. <label class="optional" for="Country"><?php echo $this->element->getElement('Country')->getLabel() ?></label>
  105. </dt>
  106. <dd id="Country-element">
  107. <?php echo $this->element->getElement('Country') ?>
  108. <?php if($this->element->getElement('Country')->hasErrors()) : ?>
  109. <ul class='errors'>
  110. <?php foreach($this->element->getElement('Country')->getMessages() as $error): ?>
  111. <li><?php echo $error; ?></li>
  112. <?php endforeach; ?>
  113. </ul>
  114. <?php endif; ?>
  115. </dd>
  116. <dt id="City-label">
  117. <label class="optional" for="City"><?php echo $this->element->getElement('City')->getLabel() ?></label>
  118. </dt>
  119. <dd id="City-element">
  120. <?php echo $this->element->getElement('City') ?>
  121. <?php if($this->element->getElement('City')->hasErrors()) : ?>
  122. <ul class='errors'>
  123. <?php foreach($this->element->getElement('City')->getMessages() as $error): ?>
  124. <li><?php echo $error; ?></li>
  125. <?php endforeach; ?>
  126. </ul>
  127. <?php endif; ?>
  128. </dd>
  129. <dt id="Description-label">
  130. <label class="optional" for="Description"><?php echo $this->element->getElement('Description')->getLabel() ?></label>
  131. </dt>
  132. <dd id="Description-element">
  133. <?php echo $this->element->getElement('Description') ?>
  134. <?php if($this->element->getElement('Description')->hasErrors()) : ?>
  135. <ul class='errors'>
  136. <?php foreach($this->element->getElement('Description')->getMessages() as $error): ?>
  137. <li><?php echo $error; ?></li>
  138. <?php endforeach; ?>
  139. </ul>
  140. <?php endif; ?>
  141. </dd>
  142. <dt id="Logo-label" class="block-display">
  143. <label class="optional" for="Description"><?php echo $this->element->getElement('Logo')->getLabel() ?></label>
  144. </dt>
  145. <dd id="Logo-element">
  146. <?php if($this->element->getView()->logoImg){?>
  147. <div id="Logo-img-container"><img id="logo-img" onload='resizeImg(this, 450, 450);' src="data:image/png;base64,<?php echo $this->element->getView()->logoImg ?>" /></div>
  148. <?php }?>
  149. <?php echo $this->element->getElement('Logo') ?>
  150. <p class="info-text"><?php echo _("Note: Anything larger than 600x600 will be resized.")?></p>
  151. <?php if($this->element->getElement('Logo')->hasErrors()) : ?>
  152. <ul class='errors'>
  153. <?php foreach($this->element->getElement('Logo')->getMessages() as $error): ?>
  154. <li><?php echo $error; ?></li>
  155. <?php endforeach; ?>
  156. </ul>
  157. <?php endif; ?>
  158. </dd>
  159. </dl>
  160. </fieldset>
  161. <div id="show_what_sending" style="display: block;">
  162. <fieldset class="display_field toggle closed">
  163. <legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span><?php echo _("Show me what I am sending ") ?></legend>
  164. <dl>
  165. <?php echo $this->element->getElement('SendInfo') ?>
  166. </dl>
  167. </fieldset>
  168. </div>
  169. <div>
  170. <br>
  171. <?php if(!$this->privacyChecked){?>
  172. <label class="optional" for="Privacy">
  173. <?php echo $this->element->getElement('Privacy') ?>
  174. <?php echo $this->element->getElement('Privacy')->getLabel() ?>
  175. </label>
  176. <?php }else{?>
  177. <a id="link_to_terms_and_condition" href="<?php echo TERMS_AND_CONDITIONS_URL ?>" onclick="window.open(this.href); return false;"><?php echo _("Terms and Conditions") ?></a>
  178. <?php }?>
  179. </div>
  180. </form>
  181. </div>