-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
105 lines (89 loc) · 3.63 KB
/
Copy pathindex.php
File metadata and controls
105 lines (89 loc) · 3.63 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
////////////////////////////Header////////////////////////////
$pagetitle = '<img src="images/wrlc-logo-8-white.png" height="30px" style="position:absolute; margin:-2px 0 0 -38px;" /> WRLC Mobile';
include 'include/header.php';
////////////////////////////Page Content////////////////////////////
if (isset($_SESSION["id"]))
{
if (isset($finesfees) and ($finesfees !=0)) { echo '<a href="fines.php" class="fixedbutton top red">$'.$finesfees.'</a>';
}
$lib2 = ($_SESSION["loc"]);
$lib = strtolower($lib2);
//define variables based on Library for database queries
$libhours = mysql_real_escape_string($lib.'_libhours');
$libhoursLoc = mysql_real_escape_string($lib.'_libhoursLoc');
$libhoursSpecial = mysql_real_escape_string($lib.'_libhours_special');
$holidays = mysql_real_escape_string($lib.'_holidays');
$session = mysql_real_escape_string($lib.'_session_date');
$date = date('Ymd');
echo '<div class="card white">
<h2 class="account-title '.$lib.'"></h2>
<center>';
$icon = array(
'fa-user',
'fa-angellist',
'fa-child',
'fa-bicycle',
'fa-smile-o',
'fa-soccer-ball-o',
'fa-anchor',
'fa-bell',
'fa-graduation-cap',
'fa-meh-o',
'fa-star',
'fa-umbrella',
'fa-paw',
'fa-user-md',
'fa-rocket');
$a=array("green","light-green","lime","orange","deep-orange","yellow","amber","brown","red","gray","blue-gray","blue","light-blue","wrlc","purple","deep-purple","pink","indigo","cyan","teal");
$random_keys=array_rand($a,3);
$randomcolor = $a[$random_keys[0]];
echo '<div class="account-circle '.$randomcolor.'"><a href="account.php" style="text-decoration:none;"><i class="fa '.$icon[rand(0, count($icon) - 1)].'" style="font-size:2em; color:#fff; margin-top:-3px;"></i></a></div>
<h2>'. $displayname.'</h2>'
.$Institution.'<br />';
include('include/hours-today.php');
echo '<br />
<hr /><br /> <table width="100%" align="center"><tr align="center">
<td valign="absmiddle"><div id="slide-checked-out" class="info-circle teal"><a href="checked-out.php">'.$itemcount.'</a></div></td>
<td valign="absmiddle"><div id="slide-cls" class="info-circle green"><a href="cls.php">'.$CLSCount.'</a></div></td>
<td valign="absmiddle"><div id="slide-ill" class="info-circle cyan"><a href="ill.php">'.$ILLCount.'</a></div></td>
<td valign="absmiddle"><div id="slide-wdd" class="info-circle red"><a href="wdd.php">'.$WDDCount.'</a></div></td>
</tr>
<tr align="center">
<td id="fadein" class="summary" valign="absmiddle">Checked Out</td>
<td id="fadein" class="summary" valign="absmiddle">CLS Items</td>
<td id="fadein" class="summary" valign="absmiddle">ILL Items</td>
<td id="fadein" class="summary" valign="absmiddle">Web Docs</td>
</tr>
</table>
</center>';
}
else {
echo '<div class="card white">
<center>
<h2 class=" wrlc-bg2">
</h2>';
$messages = array(
'Welcome to WRLC Mobile.',
'Sup, Yo!',
'Oh hey. How are you?',
'Looking for something? Search below.',
'Thanks... It was dark in your pocket.');
echo '
<br />
<form action="'.$searchsite.'" method="get">
<input class="form-text" size="24" placeholder="Search Catalog" type="text" value="" name="s.q" id="search" />
</center>
<br />
<button type="submit" class="form-submit-round submit-float" id="slide"><i class="fa fa-search"></i></button>
</form>
<h2 class="card-bottom teal-700">'.$messages[rand(0, count($messages) - 1)].'</h2>
</div>
<div class="home-nav-button"><center>
<a href="account.php">My Account</a> <a href="libraries.php">Locations and Hours</a></center></div>
';
}
////////////////////////End Page Content////////////////////////////
////////////////////////////Footer////////////////////////////
include 'include/footer.php';
?>