Show
Ignore:
Timestamp:
02/23/08 19:06:11 (9 months ago)
Author:
aarkerio
Message:

New models

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/layouts/rubyx.ctp

    r280 r281  
    77    <?php 
    88    if ( isset($javascript) ): 
    9           echo $html->charsetTag('UTF-8'); 
     9          echo $html->charset('UTF-8'); 
    1010          echo $javascript->link('prototype'); 
    1111          echo $javascript->link('myfunctions'); 
     
    4646        <div id="search" class="noprint">  
    4747         <?php 
    48               echo $html->formTag("/entries/search", "post", array("onsubmit"=>"return chkSearch()")); 
    49                          echo $html->hidden('Entry/user_id', array("value"=>$blog["User"]["id"])); 
     48              echo $form->create("Entry", array("action"=>"search", "onsubmit"=>"return chkSearch()")); 
     49                         echo $form->hidden('Entry.user_id', array("value"=>$blog["User"]["id"])); 
    5050                 echo '<fieldset><legend>Search</legend>';  
    51                          echo $form->labelTag('Entry/terms', 'Find:', array("class"=>"noscreen")); 
     51                         echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 
    5252                     echo '<span id="search-input-out">'; 
    53                          echo $html->input('Entry/terms', array("size"=>"30", "id"=>"search-input-out"));  
     53                         echo $form->input('Entry.terms', array("size"=>"30", "id"=>"search-input-out"));  
    5454                         echo '</span>'; 
    5555                        //echo $html->submit('ok', array("type"=>"image", 'src'=>"/css/rubyx/img/search_submit.gif")); 
     
    116116          
    117117<?php   
    118           
    119     if ( $blog["Lesson"] != null)  
    120     {  
     118   if ( $blog["Lesson"] != null)  
     119   {  
    121120         echo $this->renderElement('lesson', $blog["Lesson"]);   
    122     }  
     121   }  
    123122          
    124123    if ( $blog["Podcast"] != null )  
     
    147146    } 
    148147 
    149     if ( !$othAuth->sessionValid() )  
     148    if ( !isset( $cU['User']['id'] ) )  
    150149    {   
    151150        echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link(