bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
52.1.1
by b11johgu
Added controllers for examplepage, templatelayout. |
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 |
<html>
|
|
21 |
<head>
|
|
22 |
<link href="<?php echo base_url()?>css/template_layout.css" rel="stylesheet" type="text/css"> |
|
23 |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
24 |
<script src="<?php echo base_url()?>js/template_layout.js"></script> |
|
25 |
</head>
|
|
26 |
<body>
|
|
27 |
<div id="menucolumn">
|
|
28 |
</div>
|
|
29 |
<div id="boxcolumn">
|
|
30 |
<?php |
|
31 |
||
32 |
echo "<div id=\"mostUsed\">"; |
|
33 |
$i; |
|
34 |
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 |
|
35 |
echo "<a href=\"".base_url()."layout/test/".$i."\" class=\"box\" style=\"background-image:url('". |
|
36 |
base_url()."img/template_layout_img/".$i.".png') \"></a>"; |
|
37 |
||
38 |
if ($i == 5){ |
|
39 |
echo "</div> |
|
40 |
<div id=\"lessUsed\" hidden=\"hidden\">"; |
|
41 |
}
|
|
42 |
}
|
|
43 |
/*
|
|
44 |
* This for-loop ads the last empty boxes to fill out the row (just for the look, according to the mockup)
|
|
45 |
*/
|
|
46 |
$i-=1; |
|
47 |
if($i % 10 != 0){ |
|
48 |
for($m = 5 - $i % 5; $m >= 1; $m--){ |
|
49 |
echo "<div class=\"box2\"></div>"; |
|
50 |
||
51 |
}
|
|
52 |
}
|
|
53 |
||
54 |
?> |
|
55 |
</div>
|
|
56 |
<div id="buttonContainer">
|
|
57 |
<a href="#" id="hideButton" class="showhide" hidden="hidden" onclick="hide()">Hide</a>
|
|
58 |
<a href="#" id="showButton" class="showhide" onclick="show()">Show</a>
|
|
59 |
</div>
|
|
60 |
</div>
|
|
61 |
</body>
|
|
62 |
</html>
|