Changeset 799 for trunk/app/views/layouts
- Timestamp:
- 10/07/08 23:59:01 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/app/views/layouts/school.ctp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/layouts/school.ctp
r798 r799 3 3 echo $html->docType(); 4 4 ?> 5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">6 5 <head> 7 8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">9 <html xmlns="http://www.w3.org/1999/xhtml">10 <head>11 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />12 <title>Faux Column CSS Layouts - 2 Column - faux-6-2-col</title>13 <link rel="stylesheet" type="text/css" href="main.css" />14 </head>15 16 <body>17 18 <!-- Begin Wrapper -->19 <div id="wrapper">20 21 <!-- Begin Header -->22 23 <div id="header">24 25 This is the Header26 27 </div>28 <!-- End Header -->29 30 <!-- Begin Navigation -->31 <div id="navigation">32 33 This is the Navigation34 35 </div>36 <!-- End Navigation -->37 38 <!-- Begin Faux Columns -->39 40 <div id="faux">41 42 <!-- Begin Left Column -->43 <div id="leftcolumn">44 45 <a href="faux-6-2-col.zip">Download this CSS Layout46 47 <br />48 <br />49 50 </a>51 <h1>Faux Column CSS Layouts</h1>52 53 <p>54 55 56 These 2 Column Faux CSS Layouts use a background image to make it look like the57 left and right columns are equal in height and independent of each other.58 59 <br />60 <br />61 62 Things couldn't be further from the truth. I created a parent column called faux63 and vertically tiled the image, that contained both the left and right child columns.64 I then vertically tiled the faux background image and voila.65 66 <br />67 <br />68 69 I first found about this method from the <a href="http://www.alistapart.com">70 alistapart site</a> by a guy called <a href="http://simplebits.com/">Dan Cederholm</a>71 </p>72 73 74 <div class="clear"></div>75 76 </div>77 <!-- End Left Column -->78 79 <!-- Begin Right Column -->80 <div id="rightcolumn">81 82 83 84 <div class="clear"></div>85 86 87 </div>88 <!-- End Right Column -->89 90 </div>91 <!-- End Faux Columns -->92 93 <!-- Begin Footer -->94 <div id="footer">95 96 This is the Footer97 98 </div>99 <!-- End Footer -->100 101 </div>102 103 <!-- End Wrapper -->104 </body>105 </html>106 107 108 6 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 109 7 <meta http-equiv="content-language" content="en" /> … … 114 12 <title> <?php echo $title_for_layout?> </title> 115 13 <meta name="description" content="Edublog" /> 116 <meta name="keywords" content="edublog, elearning, karamelo" /> 117 14 <meta name="keywords" content="edublog, elearning, karamelo" /> 118 15 <link rel="index" href="./" title="Home" /> 119 16 <?php echo $html->css('school/styles'); ?> 120 17 </head> 121 <body> 18 <body> 122 19 <script type="text/javascript"> 123 20 window.onload = timedMsg; 124 21 </script> 125 <?php $session->flash(); ?> 126 127 <table id="maintable"> 128 <tr><td colspan="2" id="header"> 22 <?php $session->flash(); ?> 23 <!-- Begin Wrapper --> 24 <div id="wrapper"> 25 <!-- Begin Header --> 26 <div id="header"> 129 27 <h1> 130 28 <?php 131 e($html->link($blog['User']['name_blog'], '/blog/'.$blog['User']['username'], array("title"=>$blog['User']['name_blog'])));29 e($html->link($blog['User']['name_blog'], '/blog/'.$blog['User']['username'], array('title'=>$blog['User']['name_blog']))); 132 30 ?> 133 31 </h1> 134 135 <?php echo $html->div('quote', ''.$blog['User']['quote']); ?> 136 137 <div id="toplinks"> 32 <?php echo $html->div('quote', ''.$blog['User']['quote']); ?> 33 </div> 34 <!-- End Header --> 35 <!-- Begin Navigation --> 36 <div id="navigation"> 138 37 <?php 139 38 echo $html->link('eduBlog', '/blog/'.$blog['User']['username']); … … 143 42 ?> 144 43 </div> 145 </td></tr> 146 <tr><td colspan="2" id="separator"> </td></tr> 147 <tr> 148 <td id="tdrss"> 149 <!-- RSS feeds --> 44 <!-- End Navigation --> 45 <!-- Begin Faux Columns --> 46 <div id="faux"> 47 <!-- Begin Left Column --> 48 <div id="leftcolumn"> 49 <?php 50 if ( isset($blog['Quote'][0]['quote']) ): 51 e('<i>'.$blog['Quote'][0]['quote'] . '</i><br /><b>'. $blog['Quote'][0]['author'].'</b>'); 52 endif; 53 ?> 54 <?php e($content_for_layout); ?> 55 56 <div class="clear"></div> 57 </div> 58 <!-- End Left Column --> 59 60 <!-- Begin Right Column --> 61 <div id="rightcolumn"> 62 <!-- RSS feeds --> 150 63 <strong>RSS:</strong> 151 64 <?php 152 65 e($html->link('Blog', '/entries/rss/'.$blog['User']['username'] . '.rss', array('class'=>'smallinks')). ' / '); 153 66 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'].'.rss', array('class'=>'smallinks'))); 154 ?>155 </td>156 <td id="tdquote">157 <?php158 if ( isset($blog['Quote'][0]['quote']) ):159 e('<i>'.$blog['Quote'][0]['quote'] . '</i><br /><b>'. $blog['Quote'][0]['author'].'</b>');160 endif;161 ?>162 </td>163 </tr>164 67 165 <tr><td id="tdsidebar">166 <?php167 68 if ( $blog['Vclassroom'] != null): 168 69 echo $this->element('vclassrooms', $blog['Vclassroom']); … … 177 78 echo $html->div('temas', 'College'); 178 79 echo $html->para(null,$html->link( 179 $html->image('static/cwclogo.jpg', array('alt'=>' Conrad', 'title'=>'Conrad College')), '/', null,null, false),80 $html->image('static/cwclogo.jpg', array('alt'=>'Your school', 'title'=>'Your school')), '/', null,null, false), 180 81 array('style'=>'text-align:center')); 181 182 82 183 83 if ( $blog['Lesson'] != null ): 184 84 echo $this->element('lesson', $blog['Lesson']); … … 207 107 e($html->div(null, $html->link($html->image('banners/banner_karamelo.jpg', array('style'=>'border:1px solid black','alt'=>'Karamelo', 'title'=>'Karamelo')), 208 108 'http://www.chipotle-software.com', null, null,false), aa('style', 'text-align:center;padding-top:15px'))); 209 ?> 210 </td> 211 <td id="tdcontent"> 212 <?php e($content_for_layout); ?> 213 </td> 214 </tr> 215 </table> 216 217 <!-- Footer --> 218 <div id="footer"> 219 Back on top <a href="#header" title="Back on top ^">^</a> <b>Chipotle Software © 2002-2008</b>. Creative Commons. Some rights reserved. 220 </div> 221 </body> 109 ?> 110 <div class="clear"></div> 111 </div> 112 <!-- End Right Column --> 113 </div> 114 <!-- End Faux Columns --> 115 <!-- Begin Footer --> 116 <div id="footer"> 117 Back on top <a href="#header" title="Back on top ^">^</a> <b>Chipotle Software © 2002-2008</b>. Creative Commons. Some rights reserved. 118 </div> 119 <!-- End Footer --> 120 </div> 121 <!-- End Wrapper --> 122 </body> 222 123 </html>
