-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint_functions.php
More file actions
58 lines (55 loc) · 1.31 KB
/
print_functions.php
File metadata and controls
58 lines (55 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
function print_header($title , $text)
{
echo '
<div class="hero-unit">
<h1>'.$title .'</h1>
<p>'.$text.'</p>
<p><br/> <br /></p>
</div>
';
}
function print_one_box($text , $link ,$type ,$link2 ,$type2)
{
echo' <div class="span4"> <ul class="thumbnails">
<li class="span3 tile tile-double '.$type.'"> ';
echo'<a href="'.$link2.'" class="link" ><div class = "link '.$type2.'" > </div></a>
<a href="'.$link.' " target="_blank" >
<h4 class="tile-text">
'.$text.' </h4>
</a></li></ul> </div>';
}
function print_row($t1 , $t2 , $t3)
{
echo '<br /> <div class="rows">
' ;
print_one_box($t1);
print_one_box($t2);
print_one_box($t3);
echo '
</div>';
}
function print_warning($warning)
{
echo '<div class="alert">
<button class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> '.$warning. '
</div> ';
}
$colour = array(
'0' => "tile-blue" ,
'1' => "tile-green",
'2' => "tile-red",
'3' => "tile-yellow",
'4' => "tile-orange",
'5' => "tile-pink",
'6' => "tile-purple",
'7' => "tile-lime",
'8' => "tile-magenta",
'9' => "tile-teal"
);
function print_well($text){
echo '<div class="well">
'.$text.'
</div>';
}