Changeset 541 for trunk/app/views/layouts
- Timestamp:
- 05/21/08 15:27:00 (6 months ago)
- Location:
- trunk/app/views/layouts
- Files:
-
- 6 modified
-
admin.ctp (modified) (1 diff)
-
berlin.ctp (modified) (1 diff)
-
paris.ctp (modified) (3 diffs)
-
portal.ctp (modified) (3 diffs)
-
rubyx.ctp (modified) (4 diffs)
-
school.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/layouts/admin.ctp
r539 r541 34 34 </div> 35 35 <div style="width:700px;float:left;"> 36 Logged in as <strong><?php echo $ cU['User']['username']; ?></strong> |36 Logged in as <strong><?php echo $session->read('Auth.User.username'); ?></strong> | 37 37 <?php 38 echo $html->link($ cU['User']['username'] . '\'s blog', '/blog/'. $cU['User']['username']) . ' | ';38 echo $html->link($session->read('Auth.User.username') . '\'s blog', '/blog/'. $session->read('Auth.User.username')) . ' | '; 39 39 echo $html->link($_SERVER['HTTP_HOST'], '/').' | '; 40 40 echo $html->link('My Account', '/admin/users/edit') .' | '. $html->link('Logout', '/users/logout'); ?> -
trunk/app/views/layouts/berlin.ctp
r315 r541 342 342 <?php 343 343 //var_dump($pages); 344 echo "<p>".$blog[0]["User"]["cv"] . "<br />"; 344 345 345 echo $html->image('avatars/'.$blog[0]["User"]["photo"], array("alt"=>$blog[0]["User"]["username"], "title"=>$blog[0]["User"]["username"])) . "</p>"; 346 ?> 347 348 <?php 349 350 if ( $blog[0]["Page"] != null) 346 347 if ( $blog["Lesson"] != null ): 348 echo $this->element('lesson', $blog["Lesson"]); 349 endif; 350 351 if ( $blog["Podcast"] != null ): 352 echo $this->element('podcast', $blog["Podcast"]); 353 endif; 354 355 if ( $blog["Catfaq"] != null ): 356 echo $this->element('catfaqs', $blog["Catfaq"]); 357 endif; 358 359 if ( $blog["Acquaintance"] != null ): 360 echo $this->element('acquaintances', $blog["Acquaintance"]); 361 endif; 362 363 /* maybe remove this later 364 if ( $blog["Catforum"] != null) 351 365 { 352 echo $this->renderElement('static', $blog[0]["Page"]); 353 } 354 355 if ( $blog[0]["Podcast"] != null ) 356 { 357 echo $this->renderElement('podcast', $blog[0]["Podcast"]); 358 } 359 360 if ( $blog[0]["Catfaq"] != null ) 361 { 362 echo $this->renderElement('catfaqs', $blog[0]["Catfaq"]); 363 } 364 365 if ( $blog[0]["Vinculum"] != null) 366 { 367 echo $this->renderElement('vinculums', $blog[0]["Vinculum"]); 368 } 369 370 ?> 371 366 echo $this->element('catforums', $blog["Catforum"]); 367 } 368 */ 369 370 if ( $session->check('Auth.User') ): 371 e($html->para($html->link( 372 $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 373 '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0'))); 374 endif; 375 ?> 372 376 <div class="temas">Powered by:</div> 373 377 <div style="text-align:center;padding-top:15px"><a href="http://karamelo.chipotle-software.com/"> -
trunk/app/views/layouts/paris.ctp
r342 r541 4 4 ?> 5 5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 6 7 6 <head> 8 7 <?php … … 20 19 21 20 <body> 22 <?php echo $this-> renderElement('search_blog'); ?>21 <?php echo $this->element('search_blog'); ?> 23 22 24 23 <div id="box"> … … 61 60 <div id="sidebar"> 62 61 <?php 63 if ( $blog["Lesson"] != null) 64 { 65 echo $this->renderElement('lesson', $blog["Lesson"]); 66 } 67 if ( $blog["Podcast"] != null ) 68 { 69 echo $this->renderElement('podcast', $blog["Podcast"]); 70 } 62 if ( $blog["Lesson"] != null): 63 echo $this->element('lesson', $blog["Lesson"]); 64 endif; 65 66 if ( $blog["Podcast"] != null ): 67 echo $this->element('podcast', $blog["Podcast"]); 68 endif; 71 69 72 if ( $blog["Catfaq"] != null ) 73 { 74 echo $this->renderElement('catfaqs', $blog["Catfaq"]); 75 } 70 if ( $blog["Catfaq"] != null ): 71 echo $this->element('catfaqs', $blog["Catfaq"]); 72 endif; 76 73 77 if ( $blog["Acquaintance"] != null) 78 { 79 echo $this->renderElement('acquaintances', $blog["Acquaintance"]); 80 } 74 if ( $blog["Acquaintance"] != null); 75 echo $this->element('acquaintances', $blog["Acquaintance"]); 76 endif; 81 77 82 if ( $blog["Vclassroom"] != null) 83 { 84 echo $this->renderElement('vclassrooms', $blog["Vclassroom"]); 85 } 78 if ( $blog["Vclassroom"] != null): 79 echo $this->element('vclassrooms', $blog["Vclassroom"]); 80 endif; 86 81 87 if ( $blog["Catforum"] != null) 88 { 89 echo $this->renderElement('catforums', $blog["Catforum"]); 90 } 82 /* if ( $blog["Catforum"] != null): 83 echo $this->element('catforums', $blog["Catforum"]); 84 endif; */ 91 85 92 if ( !$cU['User'] ) 93 { 86 if ( !$session->check('Auth.User') ): 94 87 echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 95 88 $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 96 89 '/users/login', false, false, null) . "</p>"; 97 }90 endif; 98 91 ?> 99 92 -
trunk/app/views/layouts/portal.ctp
r539 r541 26 26 <div id="toplinks"> 27 27 <?php 28 if ( isset( $cU['User']['id']) ):28 if ( $session->check('Auth.User') ): 29 29 echo '<span style="font-size:7pt;color:#8bb126;padding-right:15px">You are logged in as <b>'; 30 30 31 echo $ cU['User']['username'].'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';31 echo $session->read('Auth.User.username') .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | '; 32 32 33 if ( $cU['User']['group_id']< 3 ): // the logged user is teacher or admin?33 if ( $session->read('Auth.User.group_id') < 3 ): // the logged user is teacher or admin? 34 34 echo $html->link('Admin', '/admin/entries/start') . ' | '; 35 35 endif; 36 36 37 if ( $ cU['User']['group_id']== 3 ): // the logged user is student37 if ( $session->read('Auth.User.group_id') == 3 ): // the logged user is student 38 38 echo $html->link('My profile', '/users/edit'). ' | '.$html->link( 39 39 $html->image('static/mailgray.png', … … 67 67 68 68 // if student logged in, show groups 69 if ( isset($cU['User']) && $cU['User']['group_id']== 3 && $Element['Vclassrooms'] != false):69 if ( $session->check('Auth.User') && $session->read('Auth.User.group_id') == 3 && $Element['Vclassrooms'] != false): 70 70 echo $this->element('studentclass', $Element['Vclassrooms']); 71 71 endif; 72 72 73 73 74 if ( isset( $cU['User']['id']) ) 75 { 76 echo $html->div('outbutton', $html->link($html->image('static/logout.gif', array('alt'=>'Logout', 'title'=>'Logout')), 74 if ( $session->check('Auth.User') ): 75 echo $html->div('outbutton', $html->link($html->image('static/logout.gif', array('alt'=>'Logout', 'title'=>'Logout')), 77 76 '/users/logout', null, null, false)); 78 } 79 else 80 { 77 78 else: 81 79 echo $this->element('login'); 82 }80 endif; 83 81 84 echo $this->element('lastentries', $Element[ "Lentry"]);82 echo $this->element('lastentries', $Element['Lentry']); 85 83 echo '<br />'; 86 84 87 85 echo $html->div(null, $html->link($html->image('teacher_podcast.jpg', array('alt'=>'Podcast', 'style'=>'border:1px solid black')), '/podcasts/recent', null, null, false)); 88 86 89 echo $this->element('poll', $Element["Poll"]);87 echo $this->element('poll', $Element['Poll']); 90 88 91 89 echo $this->element('subjects'); 92 90 ?> 93 <ul>94 <li id="archives">95 <h2 class="bg3">Search</h2>96 <?php echo $this->element('search'); ?>97 </li>98 </ul>91 <ul> 92 <li id="archives"> 93 <h2 class="bg3">Search</h2> 94 <?php echo $this->element('search'); ?> 95 </li> 96 </ul> 99 97 <?php 100 98 $tmp = $html->para(null,$html->link($html->image('static/valid_xhtml10_80x15_22.png'), 'http://www.w3.org/TR/xhtml1/', null, null, false)); … … 120 118 <!-- end footer --> 121 119 <?php 122 if ( !isset( $cU['User']) ) 123 { 124 echo $this->element('login_hide'); //login javascript popup 125 } 120 if ( $session->check('Auth.User') ): 121 echo $this->element('login_hide'); //login javascript popup 122 endif; 126 123 127 echo $html->link('Karamelo Demo', 'http://www.chipotle-software.com/index.php?id=9', array("id"=>"Demo")); 128 124 echo $html->link('Karamelo Demo', 'http://www.chipotle-software.com/index.php?id=9', array("id"=>"Demo")); 129 125 ?> 130 126 </body> -
trunk/app/views/layouts/rubyx.ctp
r464 r541 114 114 if ( $blog["Vclassroom"] != null) 115 115 { 116 echo $this-> renderElement('vclassrooms', $blog["Vclassroom"]);116 echo $this->element('vclassrooms', $blog["Vclassroom"]); 117 117 } 118 118 … … 127 127 128 128 129 if ( $blog["Lesson"] != null) 130 { 131 echo $this->renderElement('lesson', $blog["Lesson"]); 132 } 129 if ( $blog["Lesson"] != null ): 130 echo $this->element('lesson', $blog["Lesson"]); 131 endif; 133 132 134 if ( $blog["Podcast"] != null ) 135 { 136 echo $this->renderElement('podcast', $blog["Podcast"]); 137 } 133 if ( $blog["Podcast"] != null ): 134 echo $this->element('podcast', $blog["Podcast"]); 135 endif; 138 136 139 if ( $blog["Catfaq"] != null ) 140 { 141 echo $this->renderElement('catfaqs', $blog["Catfaq"]); 142 } 137 if ( $blog["Catfaq"] != null ): 138 echo $this->element('catfaqs', $blog["Catfaq"]); 139 endif; 143 140 144 if ( $blog["Acquaintance"] != null) 145 { 146 echo $this->renderElement('acquaintances', $blog["Acquaintance"]); 147 } 141 if ( $blog["Acquaintance"] != null ): 142 echo $this->element('acquaintances', $blog["Acquaintance"]); 143 endif; 148 144 149 145 /* maybe remove this later 150 146 if ( $blog["Catforum"] != null) 151 147 { 152 echo $this-> renderElement('catforums', $blog["Catforum"]);148 echo $this->element('catforums', $blog["Catforum"]); 153 149 } 154 150 */ 155 151 156 if ( !isset( $cU['User']['id'] ) ) 157 { 158 e($html->para($html->link( 152 if ( $session->check('Auth.User') ): 153 e($html->para($html->link( 159 154 $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 160 155 '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0'))); 161 }156 endif; 162 157 163 158 e($html->div('temas', 'Powered by')); … … 175 170 <div id="footer"> 176 171 <div id="top" class="noprint"><p><span class="noscreen">Back on top</span> <a href="#header" title="Back on top ^">^<span></span></a></p></div> 177 <hr class="noscreen" />172 <hr class="noscreen" /> 178 173 179 174 <p id="createdby">created by <a href="http://www.nuvio.cz">Nuvio | Webdesign</a> <!-- DON?T REMOVE, PLEASE! --></p> … … 185 180 </div> <!-- /footer --> 186 181 </div> <!-- /main --> 187 188 182 </body> 189 183 </html> -
trunk/app/views/layouts/school.ctp
r343 r541 49 49 </div> <!-- /search --> 50 50 <?php 51 if ( $blog["Lesson"] != null) 52 { 53 echo $this->renderElement('lesson', $blog["Lesson"]); 54 } 55 if ( $blog["Podcast"] != null ) 56 { 57 echo $this->renderElement('podcast', $blog["Podcast"]); 58 } 51 if ( $blog["Lesson"] != null): 52 echo $this->element('lesson', $blog["Lesson"]); 53 endif; 54 55 if ( $blog["Podcast"] != null ): 56 echo $this->element('podcast', $blog["Podcast"]); 57 endif; 59 58 60 if ( $blog["Catfaq"] != null ) 61 { 62 echo $this->renderElement('catfaqs', $blog["Catfaq"]); 63 } 59 if ( $blog["Catfaq"] != null ): 60 echo $this->element('catfaqs', $blog["Catfaq"]); 61 endif; 64 62 65 if ( $blog["Acquaintance"] != null) 66 { 67 echo $this->renderElement('acquaintances', $blog["Acquaintance"]); 68 } 63 if ( $blog["Acquaintance"] != null); 64 echo $this->element('acquaintances', $blog["Acquaintance"]); 65 endif; 69 66 70 if ( $blog["Vclassroom"] != null) 71 { 72 echo $this->renderElement('vclassrooms', $blog["Vclassroom"]); 73 } 67 if ( $blog["Vclassroom"] != null): 68 echo $this->element('vclassrooms', $blog["Vclassroom"]); 69 endif; 74 70 75 if ( $blog["Catforum"] != null) 76 { 77 echo $this->renderElement('catforums', $blog["Catforum"]); 78 } 71 if ( $blog["Catforum"] != null): 72 echo $this->element('catforums', $blog["Catforum"]); 73 endif; 79 74 80 if ( !$cU['User'] ) 81 { 75 if ( !$session->check('Auth.User') ): 82 76 echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 83 77 $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 84 78 '/users/login', false, false, null) . "</p>"; 85 }79 endif; 86 80 ?> 87 81 </td>
