Changeset 281 for trunk/app/views/layouts/rubyx.ctp
- Timestamp:
- 02/23/08 19:06:11 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/layouts/rubyx.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/layouts/rubyx.ctp
r280 r281 7 7 <?php 8 8 if ( isset($javascript) ): 9 echo $html->charset Tag('UTF-8');9 echo $html->charset('UTF-8'); 10 10 echo $javascript->link('prototype'); 11 11 echo $javascript->link('myfunctions'); … … 46 46 <div id="search" class="noprint"> 47 47 <?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"])); 50 50 echo '<fieldset><legend>Search</legend>'; 51 echo $form->label Tag('Entry/terms', 'Find:', array("class"=>"noscreen"));51 echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 52 52 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")); 54 54 echo '</span>'; 55 55 //echo $html->submit('ok', array("type"=>"image", 'src'=>"/css/rubyx/img/search_submit.gif")); … … 116 116 117 117 <?php 118 119 if ( $blog["Lesson"] != null) 120 { 118 if ( $blog["Lesson"] != null) 119 { 121 120 echo $this->renderElement('lesson', $blog["Lesson"]); 122 }121 } 123 122 124 123 if ( $blog["Podcast"] != null ) … … 147 146 } 148 147 149 if ( ! $othAuth->sessionValid() )148 if ( !isset( $cU['User']['id'] ) ) 150 149 { 151 150 echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link(
