-
Notifications
You must be signed in to change notification settings - Fork 3
/
license.php
149 lines (118 loc) · 5.92 KB
/
license.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/*
**************************************************************************************************************************
** CORAL Management Module v. 1.0
**
** Copyright (c) 2010 University of Notre Dame
**
** This file is part of CORAL.
**
** CORAL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
**
** CORAL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License along with CORAL. If not, see <http://www.gnu.org/licenses/>.
**
**************************************************************************************************************************
*/
include_once 'directory.php';
$licenseID=$_GET['licenseID'];
$license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
//set this to turn off displaying the title header in header.php
$pageTitle=$license->shortName;
$noHead=1;
include 'templates/header.php';
//set referring page
$_SESSION['ref_script']=$currentPage;
//determine if we should display the SFX tab - if user is admin and if configured in settings to use SFX
$util = new Utility();
$displaySFX = 0;
if (($user->isAdmin()) && ($util->useTermsTool())){
$displaySFX=1;
}
//as long as license id is valid...
if ($license->shortName){
?>
<input type='hidden' name='licenseID' id='licenseID' value='<?php echo $licenseID; ?>'>
<div id='div_licenseHead'>
</div>
</center>
<input type='hidden' name='licenseID' id='licenseID' value='<?php echo $license->licenseID; ?>'>
<div style="width: 899px;" id ='div_displayDocuments'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuselected" style='position: relative; width: 91px'><a href='javascript:void(0)' class='showDocuments'><?php echo _("Documents");?></a></div>
<!-- <div class='sidemenuunselected'><a href='javascript:void(0)' class='showExpressions'>Expressions</a></div> -->
<?php if ($displaySFX == "1"){ ?><div class='sidemenuunselected'><a href='javascript:void(0)' class='showSFXProviders'><?php echo _("Terms Tool");?></a></div><?php } ?>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showAttachments'><?php echo _("Attachments");?></a><br /> <span class='span_AttachmentNumber'></span></div>
</td>
<td class='mainContent'>
<div id='div_documents'>
<img src = "images/circle.gif"><?php echo _("Loading...");?>
</div>
<br />
<div id='div_archives'>
</div>
<div id='div_notes'>
</div>
</td>
</tr>
</table>
</div>
<div id ='div_displayExpressions' style='display:none;width:899px;'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showDocuments'><?php echo _("Documents");?></a></div>
<div class='sidemenuselected' style='position: relative; width: 91px'><a href='javascript:void(0)' class='showExpressions'><?php echo _("Expressions");?></a></div>
<?php if ($displaySFX == "1"){ ?><div class='sidemenuunselected'><a href='javascript:void(0)' class='showSFXProviders'><?php echo _("Terms Tool");?></a></div><?php } ?>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showAttachments'><?php echo _("Attachments");?></a><br /> <span class='span_AttachmentNumber'></span></div>
</td>
<td class='mainContent'>
<div id='div_expressions'>
<img src = "images/circle.gif"><?php echo _("Loading...");?>
</div>
</td>
</tr>
</table>
</div>
<div id ='div_displaySFXProviders' style='display:none;width:899px;'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showDocuments'><?php echo _("Documents");?></a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showExpressions'><?php echo _("Expressions");?></a></div>
<div class='sidemenuselected' style='position: relative; width: 91px'><a href='javascript:void(0)' class='showSFXProviders'><?php echo _("Terms Tool");?></a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showAttachments'><?php echo _("Attachments");?></a><br /> <span class='span_AttachmentNumber'></span></div>
</td>
<td class='mainContent'>
<div id='div_sfxProviders'>
<img src = "images/circle.gif"><?php echo _("Loading...");?>
</div>
</td>
</tr>
</table>
</div>
<div id ='div_displayAttachments' style='display:none;width:899px;'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showDocuments'><?php echo _("Documents");?></a></div>
<!-- <div class='sidemenuunselected'><a href='javascript:void(0)' class='showExpressions'>Expressions</a></div> -->
<?php if ($displaySFX == "1"){ ?><div class='sidemenuunselected'><a href='javascript:void(0)' class='showSFXProviders'><?php echo _("Terms Tool");?></a></div><?php } ?>
<div class='sidemenuselected' style='position: relative; width: 91px'><a href='javascript:void(0)' class='showAttachments'><?php echo _("Attachments");?></a><br /> <span class='span_AttachmentNumber'></span></div>
</td>
<td class='mainContent'>
<div id='div_attachments'>
<img src = "images/circle.gif"><?php echo _("Loading...");?>
</div>
</td>
</tr>
</table>
</div>
<script type="text/javascript" src="js/license.js"></script>
<?php
} //end license validity check
include 'templates/footer.php';
?>