Show
Ignore:
Timestamp:
02/23/08 18:14:56 (11 months ago)
Author:
aarkerio
Message:

Upgrade to 1.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/newsletters/subscribe.ctp

    r277 r278  
    77<?php  
    88 
    9 if ( !$othAuth->sessionValid() ) 
     9if ( !isset( $cU['User']['id'] ) ) 
    1010{ 
    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')); 
    1212} 
    1313 
     
    1818<fieldset> 
    1919  <legend>Subscribe:</legend> 
    20      <?php echo $form->labelTag('Subscribers/email', 'Email:'); ?><br /> 
    21      <?php  
     20   <?php echo $ajax->form(); 
     21     
    2222     $options =  array("size"=>25, "maxlength"=>50); 
    2323 
    24      if ( !$othAuth->sessionValid() ) 
     24     if ( !isset( $cU['User']['id'] ) ) 
    2525     { 
    2626        $options["readonly"]="readonly";  //if user no logged, no subscription available 
    2727     } 
    2828      
    29      echo $html->input('Subscribers/email', $options); ?> 
     29     echo $form->input('Subscribers.email', $options); ?> 
    3030     <br /><br /> 
    3131     <?php  
     
    4444<?php 
    4545   echo $ajax->divEnd('updater'); 
    46    echo $html->link('View pass newsletters', '/newsletters/all'); 
     46   echo $html->link('View pass newsletters', '/newsletters/display'); 
    4747?> 
    4848<script type="text/javascript">