|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | +************************************************************************************************************************** |
| 5 | +** CORAL Licensing Module v. 1.0 |
| 6 | +** |
| 7 | +** Copyright (c) 2010 University of Notre Dame |
| 8 | +** |
| 9 | +** This file is part of CORAL. |
| 10 | +** |
| 11 | +** 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. |
| 12 | +** |
| 13 | +** 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. |
| 14 | +** |
| 15 | +** You should have received a copy of the GNU General Public License along with CORAL. If not, see <http://www.gnu.org/licenses/>. |
| 16 | +** |
| 17 | +************************************************************************************************************************** |
| 18 | +*/ |
| 19 | + |
| 20 | +include_once 'directory.php'; |
| 21 | + |
| 22 | +$pageTitle='Administration'; |
| 23 | +include 'templates/header.php'; |
| 24 | + |
| 25 | +//set referring page |
| 26 | +$_SESSION['ref_script']=$currentPage; |
| 27 | + |
| 28 | +if ($user->isAdmin()){ |
| 29 | + |
| 30 | +?> |
| 31 | + |
| 32 | + |
| 33 | +<table class="headerTable"> |
| 34 | +<tr><td> |
| 35 | +<span class="headerText">Users</span> <span id='span_User_response' class='redText'></span> |
| 36 | +<br /><span id='span_newUser' class='adminAddInput'><a href='ajax_forms.php?action=getAdminUserUpdateForm&height=202&width=288&modal=true' class='thickbox' id='expression'>add new user</a></span> |
| 37 | +<br /><br /> |
| 38 | +<div id='div_User'> |
| 39 | +<img src = "images/circle.gif">Loading... |
| 40 | +</div> |
| 41 | +</td></tr> |
| 42 | +</table> |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +<br /> |
| 48 | +<br /> |
| 49 | + |
| 50 | +<table class="headerTable"> |
| 51 | +<tr><td> |
| 52 | +<span class="headerText">Document Types</span> <span id='span_DocumentType_response'></span> |
| 53 | +<br /><span id='span_newDocumentType' class='adminAddInput'><a href='javascript:showAdd("DocumentType");'>add new document type</a></span> |
| 54 | +<br /><br /> |
| 55 | +<div id='div_DocumentType'> |
| 56 | +<img src = "images/circle.gif">Loading... |
| 57 | +</div> |
| 58 | +</td></tr> |
| 59 | +</table> |
| 60 | + |
| 61 | +<br /> |
| 62 | +<br /> |
| 63 | + |
| 64 | +<table class="headerTable"> |
| 65 | +<tr><td> |
| 66 | +<span class="headerText">Expression Types</span> <span id='span_ExpressionType_response'></span> |
| 67 | +<br /><span id='span_newExpressionType' class='adminAddInput'><a href='ajax_forms.php?action=getExpressionTypeForm&height=148&width=265&modal=true' class='thickbox' id='expressionType'>add new expression type</a></span> |
| 68 | +<br /><br /> |
| 69 | +<div id='div_ExpressionType'> |
| 70 | +<img src = "images/circle.gif">Loading... |
| 71 | +</div> |
| 72 | +</td></tr> |
| 73 | +</table> |
| 74 | + |
| 75 | +<br /> |
| 76 | +<br /> |
| 77 | +<table class="headerTable"> |
| 78 | +<tr><td> |
| 79 | +<span class="headerText">Qualifiers</span> <span id='span_Qualifier_response'></span> |
| 80 | +<br /><span id='span_newQualifier' class='adminAddInput'><a href='ajax_forms.php?action=getQualifierForm&height=148&width=295&modal=true' class='thickbox'>add new qualifier</a></span> |
| 81 | +<br /><br /> |
| 82 | +<div id='div_Qualifier'> |
| 83 | +<img src = "images/circle.gif">Loading... |
| 84 | +</div> |
| 85 | +</td></tr> |
| 86 | +</table> |
| 87 | + |
| 88 | +<br /> |
| 89 | +<br /> |
| 90 | + |
| 91 | +<table class="headerTable"> |
| 92 | +<tr><td> |
| 93 | +<span class="headerText">Signature Types</span> <span id='span_SignatureType_response'></span> |
| 94 | +<br /><span id='span_newSignatureType' class='adminAddInput'><a href='javascript:showAdd("SignatureType");'>add new signature type</a></span> |
| 95 | +<br /><br /> |
| 96 | +<div id='div_SignatureType'> |
| 97 | +<img src = "images/circle.gif">Loading... |
| 98 | +</div> |
| 99 | +</td></tr> |
| 100 | +</table> |
| 101 | + |
| 102 | +<br /> |
| 103 | +<br /> |
| 104 | + |
| 105 | + |
| 106 | +<table class="headerTable"> |
| 107 | +<tr><td> |
| 108 | +<span class="headerText">License Statuses</span> <span id='span_Status_response'></span> |
| 109 | +<br /><span id='span_newStatus' class='adminAddInput'><a href='javascript:showAdd("Status");'>add new license status</a></span> |
| 110 | +<br /><br /> |
| 111 | +<div id='div_Status'> |
| 112 | +<img src = "images/circle.gif">Loading... |
| 113 | +</div> |
| 114 | +</td></tr> |
| 115 | +</table> |
| 116 | + |
| 117 | +<br /> |
| 118 | +<br /> |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | +<?php |
| 123 | + |
| 124 | +$config = new Configuration; |
| 125 | + |
| 126 | +//if the org module is not installed, display provider list for updates |
| 127 | +if ($config->settings->organizationsModule != 'Y'){ ?> |
| 128 | + |
| 129 | + |
| 130 | + <br /> |
| 131 | + <br /> |
| 132 | + |
| 133 | + <table class="headerTable"> |
| 134 | + <tr><td> |
| 135 | + <span class="headerText">Consortia</span> <span id='span_Consortium_response'></span> |
| 136 | + <br /><span id='span_newConsortium' class='adminAddInput'><a href='javascript:showAdd("Consortium");'>add new consortium</a></span> |
| 137 | + <br /><br /> |
| 138 | + <div id='div_Consortium'> |
| 139 | + <img src = "images/circle.gif">Loading... |
| 140 | + </div> |
| 141 | + </td></tr> |
| 142 | + </table> |
| 143 | + |
| 144 | + <br /> |
| 145 | + <br /> |
| 146 | + |
| 147 | + <table class="headerTable"> |
| 148 | + <tr><td> |
| 149 | + <span class="headerText">Providers</span> <span id='span_Organization_response'></span> |
| 150 | + <br /><span id='span_newOrganization' class='adminAddInput'><a href='javascript:showAdd("Organization");'>add new provider</a></span> |
| 151 | + <br /><br /> |
| 152 | + <div id='div_Organization'> |
| 153 | + <img src = "images/circle.gif">Loading... |
| 154 | + </div> |
| 155 | + </td></tr> |
| 156 | + </table> |
| 157 | + |
| 158 | +<?php } ?> |
| 159 | + |
| 160 | +<br /> |
| 161 | + |
| 162 | +<script type="text/javascript" src="js/admin.js"></script> |
| 163 | + |
| 164 | +<?php |
| 165 | +}else{ |
| 166 | + echo "You don't have permission to access this page"; |
| 167 | +} |
| 168 | + |
| 169 | +include 'templates/footer.php'; |
| 170 | +?> |
| 171 | + |
0 commit comments