-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.php
82 lines (72 loc) · 3.54 KB
/
index.php
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
<?php
//determine CORAL main path so we can check each module below to know which to display
$pagePath = $_SERVER["DOCUMENT_ROOT"];
$currentFile = $_SERVER["SCRIPT_NAME"];
$parts = Explode('/', $currentFile);
for($i=0; $i<count($parts) - 1; $i++){
$pagePath .= $parts[$i] . '/';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CORAL - Centralized Online Resources Acquisitions and Licensing</title>
<link rel="stylesheet" href="indexstyle.css" type="text/css" media="screen" />
<link rel="SHORTCUT ICON" href="images/favicon.ico" />
<script type="text/javascript" src="js/plugins/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body>
<center>
<table class="background">
<tr>
<td>
<center>
<table style='margin-top:123px;width:560px;height:420px;'>
<tr valign='top' style='height:356px;'>
<td>
<center>
<div style='margin-top:12px;'>
<table class='logos'>
<tr>
<?php if (file_exists($pagePath . "resources/index.php")) {?>
<td style='width:52px;'><img src='images/butterflyfishlogo.gif' hover="images/butterflyfishlogo_over.gif" id="logo_butterflyfish" /></td><td style='width:194px;'><a href='resources/'><img src='images/resources.gif' hover="images/resources_over.gif" class="rollover" id="butterflyfish" /></a></td>
<?php } else { ?>
<td style='width:52px;'><img src='images/butterflyfishlogo.gif' /></td><td style='width:194px;'><img src='images/resources_off.gif' id="butterflyfish" /></td>
<?php } ?>
</tr>
<tr>
<?php if (file_exists($pagePath . "licensing/index.php")) {?>
<td style='width:52px;'><img src='images/angelfishlogo.gif' hover="images/angelfishlogo_over.gif" id="logo_angelfish" /></td><td style='width:194px;'><a href='licensing/'><img src='images/licensing.gif' hover="images/licensing_over.gif" class="rollover" id="angelfish" /></a></td>
<?php } else { ?>
<td style='width:52px;'><img src='images/angelfishlogo.gif' /></td><td style='width:194px;'><img src='images/licensing_off.gif' id="angelfish" /></td>
<?php } ?>
</tr>
<tr>
<?php if (file_exists($pagePath . "organizations/index.php")) {?>
<td style='width:52px;'><img src='images/turtlelogo.gif' hover="images/turtlelogo_over.gif" id="logo_turtle" /></td><td style='width:194px;'><a href='organizations/'><img src='images/organizations.gif' hover="images/organizations_over.gif" class="rollover" id="turtle" /></a></td>
<?php } else { ?>
<td style='width:52px;'><img src='images/turtlelogo.gif' /></td><td style='width:194px;'><img src='images/organizations_off.gif' id="angelfish" /></td>
<?php } ?>
</tr>
<tr>
<?php if (file_exists($pagePath . "usage/index.php")) {?>
<td style='width:52px;'><img src='images/seahorselogo.gif' hover="images/seahorselogo_over.gif" id="logo_seahorse" /></td><td style='width:194px;'><a href='usage/'><img src='images/usagestatistics.gif' hover="images/usagestatistics_over.gif" class="rollover" id="seahorse" /></a></td>
<?php } else { ?>
<td style='width:52px;'><img src='images/seahorselogo.gif' /></td><td style='width:194px;'><img src='images/usagestatistics_off.gif' id="angelfish" /></td>
<?php } ?>
</tr>
</table>
</div>
</center>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
</center>
</body>
</html>