Show
Ignore:
Timestamp:
05/07/08 18:55:47 (7 months ago)
Author:
aarkerio
Message:

I improved layouts and users display

Location:
trunk/app/views/layouts
Files:
2 modified

Legend:

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

    r396 r459  
    2929 
    3030<div id="header"> 
    31  
    32 <h1><?php echo $html->link('Karamelo: Control Panel', '/admin/entries/start'); ?></h1> 
     31<h1><?php echo $html->link('Karamelo: Control Panel', '/admin/entries/start'); ?></h1> e-Learning platform 
    3332<?php  
    34   echo $html->para(null, 'e-Learning platform');  
    3533  echo $html->link($cU['User']['username'] . '\'s blog',  '/blog/'. $cU['User']['username'],  array("style"=>"color:white;text-decoration:none;font-weight:bold;"));  
    3634?> 
     35Logged in as <strong><?php echo $cU['User']['username']; ?></strong> | 
     36    <?php echo $html->link($_SERVER['SERVER_NAME'], '/').' '. $html->link('My Account', '/admin/users/edit') .' | '. $html->link('Logout', '/users/logout'); ?> 
    3737</div><!-- header ends--> 
    38   <p> 
    39      Logged in as <strong><?php echo $cU['User']['username']; ?></strong> | 
    40      <strong><a href="/"><?php  echo $_SERVER['SERVER_NAME']; ?></a></strong>     
    41        <?php echo $html->link('My Account', '/admin/users/edit'); ?> | 
    42        <?php echo $html->link('Logout', '/users/logout'); ?> 
    43  </p> 
    4438<div style="clear:both;"></div> 
    4539<?php echo $this->renderElement('admin_menu'); ?> 
    4640 
    47 <div style="float:left;border:1px solid white;width:600px;margin:10px 300px;text-align:left;"> 
     41<div style="float:left;border:1px solid white;width:900px;margin:15px 10px 10px 100px;text-align:left;"> 
    4842                      <?php echo $content_for_layout ?> 
    4943</div> 
    5044<div style="clear:both;"></div> 
    5145 
    52    <div id="footer"> 
    53           <p>Powered by the <a href="http://www.chipotle-software.com/" rel="external">Karamelo Project &copy; 2002-2008 GPLv3</a> </p> 
    54    </div> 
     46<?php echo $html->div('footer', 'Powered by the '. $html->link('Karamelo Project &copy; 2002-2008 GPLv3', 'http://www.chipotle-software.com/', null, false, false)); ?> 
    5547 
    5648<div style="position:absolute;top:15px;left:800px"><!-- help button--> 
  • trunk/app/views/layouts/rubyx.ctp

    r431 r459  
    5353              echo $form->create("Entry", array("action"=>"search", "onsubmit"=>"return chkSearch()")); 
    5454              echo $form->hidden('Entry.user_id', array("value"=>$blog['User']['id'])); 
    55                 echo '<fieldset><legend>Search</legend>';  
     55              echo '<fieldset><legend>Search</legend>';  
    5656              echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 
    57                echo '<span id="search-input-out">'; 
     57          echo '<span id="search-input-out">'; 
    5858              echo $form->input('Entry.terms', array("size"=>"30", "id"=>"search-input-out"));  
    5959              echo '</span>'; 
     
    8080                      
    8181                    <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> 
    82                     <a href="/users/about/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     82                    <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    8383                          
    8484                    <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?>