Changeset 278 for trunk/app/views/newsletters/subscribe.ctp
- Timestamp:
- 02/23/08 18:14:56 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/newsletters/subscribe.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/newsletters/subscribe.ctp
r277 r278 7 7 <?php 8 8 9 if ( ! $othAuth->sessionValid() )9 if ( !isset( $cU['User']['id'] ) ) 10 10 { 11 echo '<p>'. $html->link('You must be logged to subscribe to newsletter', '/users/login') . '</p>';11 echo $html->para(null, $html->link('You must be logged to subscribe to newsletter', '/users/login')); 12 12 } 13 13 … … 18 18 <fieldset> 19 19 <legend>Subscribe:</legend> 20 <?php echo $form->labelTag('Subscribers/email', 'Email:'); ?><br />21 <?php20 <?php echo $ajax->form(); 21 22 22 $options = array("size"=>25, "maxlength"=>50); 23 23 24 if ( ! $othAuth->sessionValid() )24 if ( !isset( $cU['User']['id'] ) ) 25 25 { 26 26 $options["readonly"]="readonly"; //if user no logged, no subscription available 27 27 } 28 28 29 echo $ html->input('Subscribers/email', $options); ?>29 echo $form->input('Subscribers.email', $options); ?> 30 30 <br /><br /> 31 31 <?php … … 44 44 <?php 45 45 echo $ajax->divEnd('updater'); 46 echo $html->link('View pass newsletters', '/newsletters/ all');46 echo $html->link('View pass newsletters', '/newsletters/display'); 47 47 ?> 48 48 <script type="text/javascript">
