Show
Ignore:
Timestamp:
04/25/08 18:43:32 (9 months ago)
Author:
aarkerio
Message:

Webquest improved

Files:
1 modified

Legend:

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

    r342 r431  
    1818<meta name="robots" content="all,follow" />  
    1919<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: info@url.cz" />  
    20 <meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: vit.dlouhy@nuvio.cz" />  
     20<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: vit.dlouhy@nuvio.cz" /> 
     21<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo '/entries/rss/'.$blog['User']['username']; ?>" /> 
    2122              
    2223<title> <?php echo $title_for_layout?> </title>  
     
    4142<h1 id="logo"> 
    4243<?php  
    43      echo $html->link($blog["User"]["name_blog"], '/blog/'.$blog["User"]["username"], 
    44               array("title"=>$blog["User"]["name_blog"]));  
     44     echo $html->link($blog['User']['name_blog'], '/blog/'.$blog['User']['username'], 
     45              array("title"=>$blog['User']['name_blog']));  
    4546?> 
    4647</h1>  
    47 <div id="quote"><?php echo $blog["User"]["quote"]; ?></div>  
     48<div id="quote"><?php echo $blog['User']['quote']; ?></div>  
    4849<hr class="noscreen" />                   
    4950    <!-- Search -->  
     
    5152         <?php 
    5253              echo $form->create("Entry", array("action"=>"search", "onsubmit"=>"return chkSearch()")); 
    53                          echo $form->hidden('Entry.user_id', array("value"=>$blog["User"]["id"])); 
    54                  echo '<fieldset><legend>Search</legend>';  
    55                          echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 
    56                      echo '<span id="search-input-out">'; 
    57                          echo $form->input('Entry.terms', array("size"=>"30", "id"=>"search-input-out"));  
    58                          echo '</span>'; 
    59                         //echo $html->submit('ok', array("type"=>"image", 'src'=>"/css/rubyx/img/search_submit.gif")); 
    60                         echo '<input type="image" src="/css/rubyx/img/search_submit.gif" id="search-submit" value="OK" />'; 
    61                 ?> 
     54              echo $form->hidden('Entry.user_id', array("value"=>$blog['User']['id'])); 
     55                echo '<fieldset><legend>Search</legend>';  
     56              echo $form->label('Entry.terms', 'Find:', array("class"=>"noscreen")); 
     57               echo '<span id="search-input-out">'; 
     58              echo $form->input('Entry.terms', array("size"=>"30", "id"=>"search-input-out"));  
     59              echo '</span>'; 
     60              //echo $html->submit('ok', array("type"=>"image", 'src'=>"/css/rubyx/img/search_submit.gif")); 
     61              echo '<input type="image" src="/css/rubyx/img/search_submit.gif" id="search-submit" value="OK" />'; 
     62        ?> 
    6263     </fieldset>  
    6364  </form>  
     
    7374                    $url = substr($_SERVER['argv'][0], 4, 10);  
    7475                     echo ($url == 'users/blog') ? '<li id="active">' : '<li>'; ?>   
    75                     <a href="/users/blog/<?php echo $blog["User"]["username"] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     76                    <a href="/users/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    7677                      
    7778                    <?php echo ($url == 'users/port') ? '<li id="active">' : '<li>'; ?>  
    78                     <a href="/users/portfolio/<?php echo $blog["User"]["username"] ?>">Portfolio<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     79                    <a href="/users/portfolio/<?php echo $blog['User']['username'] ?>">Portfolio<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    7980                      
    8081                    <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> 
    81                     <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="/users/about/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    8283                          
    8384                    <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?>  
    84                       <a href="/messages/message/<?php echo $blog["User"]["username"] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li> 
     85                      <a href="/messages/message/<?php echo $blog['User']['username'] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li> 
    8586 
    8687                </ul>  
     
    9798       <p id="rss"><strong>RSS:</strong>  
    9899<?php 
    99 echo $html->link('Blog', '/entries/rss/'.$blog["User"]["username"]) . '/';  
    100 echo $html->link('Podcast', '/podcasts/rss/'.$blog["User"]["username"]); 
     100echo $html->link('Blog', '/entries/rss/'.$blog['User']['username']) . '/';  
     101echo $html->link('Podcast', '/podcasts/rss/'.$blog['User']['username']); 
    101102?> 
    102103</p>  
     
    112113                <div id="col" class="noprint">  
    113114                    <div id="col-in">  
    114         <div class="temas"><?php echo $blog["User"]["username"] ?> profile</div>  
    115         <p><?php echo "<p>".$blog["User"]["cv"] ?> </p>  
    116         <p style="text-align:center">  
    117             <?php echo $html->image('avatars/'.$blog["User"]["avatar"], array("alt"=>$blog["User"]["username"], "title"=>$blog["User"]["username"])) ?>  
    118         </p>  
    119           
    120           
    121 <?php   
     115<?php  
     116    echo $html->div('temas', $blog['User']['username'] . ' profile');  
     117    echo $html->para(null, $blog['User']['cv']); 
     118    echo $html->para(null,$html->image('avatars/'.$blog['User']['avatar'], array("alt"=>$blog['User']['username'], "title"=>$blog['User']['username'])), array('style'=>'text-align:center')); 
     119     
     120    echo $html->div('temas', 'College');  
     121    echo $html->para(null,$html->link( 
     122               $html->image('static/cwclogo.jpg', array('alt'=>'Conrad', 'title'=>'Conrad College')), '/', null,null, false), 
     123        array('style'=>'text-align:center')); 
     124     
     125     
    122126   if ( $blog["Lesson"] != null)  
    123127   {