/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/views/layout_view.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-28 13:47:11 UTC
  • mfrom: (116.1.1 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130528134711-3lx8qwgx3nu380lg
Merged franssons changes:
Fixed a error in controllers/codeviewer.php

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html>
 
2
<?php /*
 
3
Copyright (C) Högskolan i Skövde <his.se> 2013.
 
4
Copyright (C) Oscar Jonsson <c11oscjo@student.his.se> 2013.
 
5
Copyright (C) Simon Bergöö <a11simbe@student.his.se> 2013.
 
6
This file is part of LenaSYS
 
7
 
 
8
This program is free software: you can redistribute it and/or modify
 
9
it under the terms of the GNU Lesser General Public License as published by
 
10
the Free Software Foundation, either version 3 of the License.
 
11
 
 
12
This program is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
GNU Lesser General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU Lesser General Public License
 
18
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
*/?>
 
20
<!--
 
21
template_layout.css
 
22
template_layout.js
 
23
-->
 
24
<div class="cmsContent">
 
25
        <div id="boxcolumn" >
 
26
        <?php
 
27
                
 
28
                echo "<div id=\"mostUsed\">";
 
29
                $i;
 
30
                for($i = 1; $i <= 16; $i++){ //Add more numbers in the forloop to add more boxes, add more images with equal names to add more boxes with pictures
 
31
                        echo "<a href=\"".base_url()."layout/test/".$i."\" class=\"box\" style=\"background-image:url('".
 
32
                        base_url()."img/template_layout_img/".$i.".png') \"></a>";
 
33
                        
 
34
                        if ($i == 5){
 
35
                                echo "</div>
 
36
                                        <div id=\"lessUsed\" hidden=\"hidden\">"; 
 
37
                        }
 
38
                }
 
39
                /*
 
40
                * This for-loop ads the last empty boxes to fill out the row (just for the look, according to the mockup)
 
41
                */
 
42
                $i-=1;
 
43
                if($i % 10 != 0){
 
44
                        for($m = 5 - $i % 5; $m >= 1; $m--){
 
45
                                echo "<div class=\"box2\" style=\"background-image:url('".
 
46
                                base_url()."img/template_layout_img/0.png' ) \"></div>";
 
47
                        }
 
48
                }
 
49
                                
 
50
        ?>      
 
51
        </div>
 
52
                <div id="buttonContainer">
 
53
                        <a href="#" id="showButton" class="showhide"  onclick="show()">Show</a>
 
54
                </div>
 
55
        </div>
 
56
</div>
 
 
b'\\ No newline at end of file'