diff --git a/LangCodes.php b/LangCodes.php
new file mode 100644
index 0000000..b583e00
--- /dev/null
+++ b/LangCodes.php
@@ -0,0 +1,29 @@
+'fr_FR',
+ 'en_US'=>'en_US'//,
+ //'zh_CN'=>'zh_CN',
+ //'zh_TW'=>'zh_TW',
+ //'de_DE'=>'de_DE'
+ );
+ return $all_lang[$code];
+ }
+ public function getNameLang($code_lang){
+ $name_lang=array(
+ 'fr_FR'=>'Français',
+ 'en_US'=>'English'//,
+ //'zh_CN'=>'中文 (中国)',
+ //'zh_TW'=>'中文 (台灣)',
+ //'de_DE'=>'Deutsch'
+ );
+ return $name_lang[$code_lang];
+ }
+}
+?>
\ No newline at end of file
diff --git a/admin.php b/admin.php
index b0451c0..9755cc3 100644
--- a/admin.php
+++ b/admin.php
@@ -1,190 +1,190 @@
-.
-**
-**************************************************************************************************************************
-*/
-
-include_once 'directory.php';
-
-$pageTitle='Administration';
-include 'templates/header.php';
-
-//set referring page
-$_SESSION['ref_script']=$currentPage;
-
-if ($user->isAdmin()){
-
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-settings->organizationsModule != 'Y'){ ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+.
+**
+**************************************************************************************************************************
+*/
+
+include_once 'directory.php';
+
+$pageTitle=_('Administration');
+include 'templates/header.php';
+
+//set referring page
+$_SESSION['ref_script']=$currentPage;
+
+if ($user->isAdmin()){
+
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+settings->organizationsModule != 'Y'){ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/classes/common/Configuration.php b/admin/classes/common/Configuration.php
index a3ad799..a77e097 100644
--- a/admin/classes/common/Configuration.php
+++ b/admin/classes/common/Configuration.php
@@ -1,7 +1,7 @@
-
+
- Name:
+
- Description:
+
- '>
- '>
+ '>
+ '>
-
+?>
- Type:
+
@@ -111,28 +111,28 @@
- add type
+
- Last Document Revision:
+
" />
-
-
+?>
- Categories:
+
There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created. ";
+ echo " " . _("There was an error processing this request - please verify configuration.ini is set up for organizations correctly and the database and tables have been created.") . " ";
}
?>
@@ -171,13 +171,13 @@
if (($config->settings->organizationsModule == 'N') || (!$config->settings->organizationsModule)){
?>
- add category
-
+
-
+
- File:
+
";
- }
+ }
?>
- Archived:
+
- Add Optional Note
+
@@ -217,12 +217,12 @@
- Note:
+
- Note Type:
+
';
@@ -234,7 +234,7 @@
?>
- add note type
+
@@ -248,8 +248,8 @@
@@ -259,7 +259,7 @@
+ ?>
@@ -431,7 +431,7 @@
@@ -465,13 +465,13 @@
-
+
- For Document:
+
- Terms Tool Resource:
+
-
-
+
+
@@ -531,13 +531,13 @@
- Close
+
@@ -649,11 +649,11 @@
-
+
- Document:
+
- Expression Type:
+
- add expression type
+
>
- Qualifier:
+
@@ -799,11 +799,11 @@
'>
'>
@@ -912,12 +912,12 @@
'>
@@ -994,13 +994,13 @@
'>
@@ -1076,7 +1076,7 @@
@@ -1116,9 +1118,9 @@
if(e.keyCode == 13) {
updateData("", "");
}
- });
+ });
-
+
$loginID)));
}else{
- $update='Add New';
+ $update=_('Add New');
}
$util = new Utility();
?>
-
canEdit() && 1 == 2){ // supress ?>
- License Status:
+
";
echo "" . $document->shortName . " ";
echo "" . $sfxProvider->shortName . " ";
- echo "edit ";
- echo "remove ";
+ echo "" . _("edit") . " ";
+ echo "" . _("remove") . " ";
echo " ";
}
@@ -167,12 +167,12 @@
canEdit()){
- echo "add new terms tool resource link ";
+ echo "" . _("add new terms tool resource link") . " ";
}
break;
@@ -186,7 +186,7 @@
Notes
canEdit()){
- echo "add new note ";
+ echo "" . _("add new note") . " ";
}
if (is_array($notes) && count($notes) > 0){
$documentNoteTypes = new DocumentNoteType(new NamedArguments(array('primaryKeyName'=>'documentNoteTypeID')));
@@ -195,10 +195,10 @@
?>
" . substr($attachmentText, 0,200);
if (strlen($attachmentText) > 200){
- echo "...
more... ";
+ echo "...
" . _("more") . "... ";
}
echo "
";
echo "";
echo "";
@@ -305,7 +305,7 @@
if (count($attachmentFileArray) == 0){
- echo "(none uploaded) ";
+ echo _("(none uploaded)") . " ";
}
$i=1;
@@ -316,7 +316,7 @@
echo "";
if ($user->canEdit()){
- echo "edit remove ";
+ echo "" . _("edit") . " " . _("remove") . " ";
}
echo "";
@@ -327,11 +327,11 @@
canEdit()){
- echo "add new attachment ";
+ echo "" . _("add new attachment") . " ";
}
break;
@@ -415,21 +415,21 @@
$licenseArray = $licenseObj->search($whereAdd, $orderBy, $limit);
$pagination = '';
if ($totalRecords == 0){
- echo "Sorry, no documents fit your query ";
+ echo "" . _("Sorry, no documents fit your query") . " ";
$i=0;
}else{
//maximum number of pages to display on screen at one time
$maxDisplay = 25;
$thisPageNum = count($licenseArray) + $pageStart - 1;
- echo "Displaying " . $pageStart . " to " . $thisPageNum . " of " . $totalRecords . " Records ";
+ echo "" . _("Displaying ") . $pageStart . _(" to ") . $thisPageNum . _(" of ") . $totalRecords . _(" Records") . " ";
//print out page selectors
if ($totalRecords > $numberOfRecords){
if ($pageStart == "1"){
- $pagination .= "<< ";
+ $pagination .= " ";
}else{
- $pagination .= "<< ";
+ $pagination .= " ";
}
$page = floor($pageStart/$numberOfRecords) + 1;
//now determine the starting page - we will display 3 prior to the currently selected page
@@ -456,14 +456,14 @@
if ($pageStart == $nextPageStarts){
$pagination .= "" . $i . " ";
}else{
- $pagination .= "" . $i . " ";
+ $pagination .= "" . $i . " ";
}
}
if ($pageStart == $nextPageStarts){
- $pagination .= ">> ";
+ $pagination .= " ";
}else{
- $pagination .= ">> ";
+ $pagination .= " ";
}
echo $pagination;
} else {
@@ -473,12 +473,12 @@
echo "Category : {$licenseObj->getConsortiumName($consortiumID)}
";
}
?>
- ";
}else{
- echo "\nview license view document ";
+ echo "\n" . _("view license") . " " . _("view document") . " ";
}
echo "";
@@ -639,7 +639,7 @@
}
- $expr_notes = "" . ucfirst($expressionTypeArray['noteType']) . " Notes: ";
+ $expr_notes = "" . ucfirst($expressionTypeArray['noteType']) . _(" Notes: ") . " ";
$expression = new Expression(new NamedArguments(array('primaryKey' => $expressionTypeArray['expressionID'])));
$expressionNotes = $expression->getExpressionNotes();
@@ -665,7 +665,7 @@
if ($expressionTypeArray['qualifiers']){
- echo "Qualifiers: " . $expressionTypeArray['qualifiers'];
+ echo "" . _("Qualifiers:") . " " . $expressionTypeArray['qualifiers'];
}
echo "
";
@@ -722,21 +722,21 @@
?>
- License
- noteType); ?> Notes
- Document Text
+
+ noteType) . _(" Notes");?>
+
" . $expressionTypeArray['document'] . " view license ";
+ echo "\n" . $expressionTypeArray['document'] . " " . _("view license") . " ";
if ($expressionTypeArray['documentText']){
$documentText = $expressionTypeArray['documentText'];
}else{
- $documentText = "(document text not entered)";
+ $documentText = _("(document text not entered)");
}
echo "\n";
@@ -744,7 +744,7 @@
echo "";
- $expr_notes = ucfirst($expressionTypeArray['noteType']) . " Notes: ";
+ $expr_notes = ucfirst($expressionTypeArray['noteType']) . _(" Notes:") . " ";
$expression = new Expression(new NamedArguments(array('primaryKey' => $expressionTypeArray['expressionID'])));
$expressionNotes = $expression->getExpressionNotes();
@@ -767,12 +767,12 @@
echo "" . substr($documentText, 0,200);
if (strlen($documentText) > 200){
- echo "...
more... ";
+ echo "...
" . _("more") . "... ";
}
echo "
";
echo "" . $documentText;
- echo "
less... ";
+ echo "
" . _("less") . "... ";
echo "
";
@@ -784,7 +784,7 @@
#end numrows if
}else{
- echo "(none for " . $expressionTypeArray['shortName'] . ") ";
+ echo "(" . _("none for ") . $expressionTypeArray['shortName'] . ") ";
}
echo "";
@@ -834,7 +834,7 @@
}else if ($displayArchiveInd == '1'){
$documentArray = $license->getArchivedDocumentsWithoutParents($parentArchivedOrderBy);
if (count($documentArray) > 0){
- echo "Archived Documents hide archives ";
+ echo "" . _("Archived Documents") . " " . _("hide archives") . " ";
}
$chJSFunction = "setChildArchivedOrder";
@@ -862,14 +862,14 @@
-
-
-
+
+
+
-
-
-
+
+
+
@@ -911,7 +911,7 @@
}
if (($document->expirationDate != "0000-00-00") && ($document->expirationDate != "")){
- $displayExpirationDate = 'archived on: ' . format_date($document->expirationDate);
+ $displayExpirationDate = _('archived on: ') . format_date($document->expirationDate);
}else{
$displayExpirationDate = '';
}
@@ -961,20 +961,20 @@
echo "";
if (!$user->isRestricted()) {
if ($document->documentURL != ""){
- echo "view document ";
+ echo "" . _("view document") . " ";
}else{
- echo "(none uploaded) ";
+ echo _("(none uploaded)") . " ";
}
}
if (count($document->getExpressions) > 0){
- echo "view expressions ";
+ echo "" . _("view expressions") . " ";
}
echo " ";
if ($user->canEdit()){
- echo "edit document remove document ";
+ echo "" . _("edit document") . " " . _("remove document") . " ";
echo " " . $displayExpirationDate . " ";
}
echo " ";
@@ -984,29 +984,29 @@
//if display for this child is turned off
if ((($showChildrenDocumentID) && ($showChildrenDocumentID != $document->documentID)) || !($showChildrenDocumentID)) {
if ($displayArchiveInd == '1') {
- echo "This document has " . $numberOfChildren . " children document(s) not displayed. show all documents for this parent ";
+ echo "" . _("This document has ") . $numberOfChildren . _(" children document(s) not displayed. ") . "" . _("show all documents for this parent") . " ";
}else{
- echo "This document has " . $numberOfChildren . " children document(s) not displayed. show all documents for this parent ";
+ echo "" . _("This document has ") . $numberOfChildren . _(" children document(s) not displayed. ") . "" . _("show all documents for this parent") . " ";
}
}else{
if ($displayArchiveInd == '1') {
- echo "The following " . $numberOfChildren . " document(s) belong to " . $document->shortName . ". hide children documents for this parent ";
+ echo "" . _("The following ") . $numberOfChildren . _(" document(s) belong to ") . $document->shortName . ". " . _("hide children documents for this parent") . " ";
}else{
- echo "The following " . $numberOfChildren . " document(s) belong to " . $document->shortName . ". hide children documents for this parent ";
+ echo "" . _("The following ") . $numberOfChildren . _(" document(s) belong to ") . $document->shortName . ". " . _("hide children documents for this parent") . " ";
}
?>
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
canEdit()){ ?>
@@ -1029,9 +1029,9 @@
}
if ((($childDocument->expirationDate == "0000-00-00") || ($childDocument->expirationDate == "")) && ($user->canEdit())){
- $displayExpirationDate = "archive document ";
+ $displayExpirationDate = "" . _("archive document") . " ";
}else{
- $displayExpirationDate = 'archived on: ' . format_date($childDocument->expirationDate);
+ $displayExpirationDate = _('archived on: ') . format_date($childDocument->expirationDate);
}
@@ -1052,7 +1052,7 @@
if (($signature['signatureDate'] != '') && ($signature['signatureDate'] != "0000-00-00")) {
$signatureDate = format_date($signature['signatureDate']);
}else{
- $signatureDate='(no date)';
+ $signatureDate=_('(no date)');
}
echo " ";
@@ -1063,14 +1063,14 @@
}
echo "";
if ($user->canEdit()){
- echo "add/view details ";
+ echo "" . _("add/view details") . " ";
}
}else{
- echo "(none found) ";
+ echo _("(none found)") . " ";
if ($user->canEdit()){
- echo "add signatures ";
+ echo "" . _("add signatures") . " ";
}
}
@@ -1079,19 +1079,19 @@
echo "";
if (!$user->isRestricted) {
if ($childDocument->documentURL != ""){
- echo "view document ";
+ echo "" . _("view document") . " ";
}else{
- echo "(none uploaded) ";
+ echo _("(none uploaded)") . " ";
} }
if (count($childDocument->getExpressions) > 0){
- echo "view expressions ";
+ echo "" . _("view expressions") . " ";
}
echo " ";
if ($user->canEdit()){
- echo "edit document remove document ";
+ echo "" . _("edit document") . " " . _("remove document") . " ";
//echo " " . $displayExpirationDate . " ";
}
echo " ";
@@ -1100,9 +1100,9 @@
if ($numberOfChildren > 0){
if ($displayArchiveInd == '1') {
- echo "The following " . $numberOfChildren . " document(s) belong to " . $childDocument->shortName . ". ";
+ echo "" . _("The following ") . $numberOfChildren . _(" document(s) belong to ") . $childDocument->shortName . ". ";
}else{
- echo "The following " . $numberOfChildren . " document(s) belong to " . $childDocument->shortName . ". ";
+ echo "" . _("The following ") . $numberOfChildren . _(" document(s) belong to ") . $childDocument->shortName . ". ";
}
}
@@ -1125,11 +1125,11 @@
" . $numRows . " archive(s) available. show archives ";
+ echo "" . $numRows . _(" archive(s) available.") . " " . _("show archives") . " ";
}
}
@@ -1138,9 +1138,9 @@
$dugArray = $duglicense->getDocuments();
$numDug = count($dugArray);
if ( $numDug == 0 ) {
- echo "upload new document ";
+ echo "" . _("upload new document") . " ";
} else {
- echo "Only one active document is allowed. upload archived document ";
+ echo _("Only one active document is allowed.") . " " . _("upload archived document") . " ";
}
echo ' ';
}
@@ -1191,7 +1191,7 @@
Type
Document Text
canEdit()){ ?>
- Qualifier
+
@@ -1230,7 +1230,7 @@
}
}else{
if ($expressionIns['productionUseInd'] == "1"){
- echo "used in terms tool ";
+ echo "" . _("used in terms tool") . " ";
}
}
@@ -1255,7 +1255,7 @@
echo "";
- echo "edit remove ";
+ echo "" . _("edit") . " " . _("remove") . " ";
}
echo "";
@@ -1275,13 +1275,13 @@
$rowcount++;
}
- if ($rowcount == "0"){ echo "(none)"; }
+ if ($rowcount == "0"){ echo _("(none)"); }
echo "";
//link to view/edit display notes
if ($user->canEdit()){
- echo "add/view " . lcfirst($expressionIns['noteType']) . " notes ";
+ echo "" . _("add/view ") . lcfirst($expressionIns['noteType']) . _(" notes") . " ";
}
echo "";
echo "";
@@ -1301,11 +1301,11 @@
}
}else{
- echo "(none found)";
+ echo _("(none found)");
}
if ($user->canEdit()){
- echo "add new expression ";
+ echo "" . _("add new expression") . " ";
}
@@ -1332,8 +1332,8 @@
foreach($resultArray as $result){
echo "";
echo "" . $result['shortName'] . " ";
- echo "edit ";
- echo "remove ";
+ echo "" . _("edit") . " ";
+ echo "" . _("remove") . " ";
echo " ";
}
@@ -1342,7 +1342,7 @@
- Login ID
- First Name
- Last Name
- Privilege
-
-
+
+
+
+
useTermsTool()){
- echo "Terms Tool Update Email ";
+ echo "" . _("Terms Tool Update Email") . " ";
}
?>
@@ -1388,8 +1386,8 @@
if ($util->useTermsTool()){
echo "" . $instance['emailAddressForTermsTool'] . " ";
}
- echo "update ";
- echo "remove ";
+ echo "" . _("update") . " ";
+ echo "" . _("remove") . " ";
echo " ";
}
@@ -1398,7 +1396,7 @@
- Expression Type
- Note Type
+
+
";
echo "" . $instance['shortName'] . " ";
echo "" . $instance['noteType'] . " ";
- echo "update ";
- echo "remove ";
+ echo "" . _("update") . " ";
+ echo "" . _("remove") . " ";
echo " ";
}
@@ -1446,7 +1444,7 @@
- For Expression Type
- Qualifier
+
+
";
echo "" . $displayET . " ";
echo "" . $qualifier->shortName . " ";
- echo "update ";
- echo "remove ";
+ echo "" . _("update") . " ";
+ echo "" . _("remove") . " ";
echo " ";
$i++;
}
@@ -1516,7 +1514,7 @@
$qualifierArray = $expressionType->getQualifiers();
if (count($qualifierArray) > 0 ) {
- if (!isset($_GET['page'])) echo "Limit by Qualifier: ";
+ if (!isset($_GET['page'])) echo "" . _("Limit by Qualifier:") . " ";
?>
onchange='javsacript:updateSearch();'>
>
@@ -1591,7 +1589,7 @@
default:
- echo "Action " . $action . " not set up!";
+ echo _("Action ") . $action . _(" not set up!");
break;
diff --git a/ajax_processing.php b/ajax_processing.php
index 1759b91..8d643f6 100644
--- a/ajax_processing.php
+++ b/ajax_processing.php
@@ -1,1338 +1,1338 @@
-.
-**
-**************************************************************************************************************************
-**************************************************************************************************************************
-** ajax_processing.php contains processing (adds/updates/deletes) on data sent using ajax from forms and other pages
-**
-** when ajax_processing.php is called through ajax, 'action' parm is required to dictate which form will be returned
-**
-**************************************************************************************************************************
-*/
-include_once 'directory.php';
-include_once 'user.php';
-
-switch ($_GET['action']) {
-
- //for document adds or updates - note that actual file is done on form (processing done in uploadDocument)
- //this just saves the URL in db
-
- case 'submitDocument':
- //if documentID is sent then this is an update
- if ((isset($_POST['documentID'])) && ($_POST['documentID'] != '')){
- $document = new Document(new NamedArguments(array('primaryKey' => $_POST['documentID'])));
-
- if ((($document->expirationDate == "") || ($document->expirationDate == '0000-00-00')) && ($_POST['archiveInd'] == "1")){
- $document->expirationDate = date( 'Y-m-d H:i:s' );
- }else if ($_POST['archiveInd'] == "0"){
- $document->expirationDate = '';
- }
-
-
- }else{
- $document = new Document();
- $document->documentID = '';
-
- if ($_POST['archiveInd'] == "1"){
- $document->expirationDate = date( 'Y-m-d H:i:s' );
- }else{
- $document->expirationDate = '';
- }
-
- }
-
- //first set effective Date for proper saving
- if ((isset($_POST['effectiveDate'])) && ($_POST['effectiveDate'] != '')){
- $document->effectiveDate = date("Y-m-d", strtotime($_POST['effectiveDate']));
- }else{
- $document->effectiveDate= 'null';
- }
-
- if ((isset($_POST['revisionDate'])) && ($_POST['revisionDate'] != '')) {
- $document->revisionDate = date("Y-m-d", strtotime($_POST['revisionDate']));
- }
-
-
- $document->shortName=$_POST['shortName'];
- $document->documentTypeID=$_POST['documentTypeID'];
- $document->parentDocumentID=$_POST['parentDocumentID'];
- $document->licenseID=$_POST['licenseID'];
- $document->documentURL=$_POST['uploadDocument'];
-
- $license = new License(new NamedArguments(array('primaryKey' => $_POST['licenseID'])));
- $license->typeID = $_POST['documentTypeID'];
- $license->statusDate = date( 'Y-m-d H:i:s' );
-
- try {
- $document->save();
- $license->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
-
- break;
-
-
-
- case 'deleteLicense':
-
- //note: does not delete physical documents
-
- $licenseID = $_GET['licenseID'];
-
- $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
-
- //remove licenses removes all children data as well
- try {
- $license->removeLicense();
- echo "License successfully deleted.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- //archives (expires) document - defaults to current date/time
- case 'archiveDocument':
- $document = new Document(new NamedArguments(array('primaryKey' => $_GET['documentID'])));
- $document->expirationDate = date( 'Y-m-d H:i:s' );
-
- try {
- $document->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- //verify that the new document name doesn't have bad characters and the name isn't already being used
- case 'checkUploadDocument':
- $uploadDocument = $_POST['uploadDocument'];
- $document = new Document();
-
- $exists = 0;
-
- if (!is_writable("documents")) {
- echo 3;
- break;
- }
-
- //first check that it doesn't have any offending characters
- if ((strpos($uploadDocument,"'") > 0) || (strpos($uploadDocument,'"') > 0) || (strpos($uploadDocument,"&") > 0) || (strpos($uploadDocument,"<") > 0) || (strpos($uploadDocument,">") > 0)){
- echo 2;
- }else{
- //loop through each existing document to verify this name isn't already being used
- foreach ($document->allAsArray() as $documentTestArray) {
- if (strtoupper($documentTestArray['documentURL']) == strtoupper($uploadDocument)) {
- $exists++;
- }
- }
-
- echo $exists;
- }
-
- break;
-
-
- //performs document upload
- case 'uploadDocument':
- $documentName = basename($_FILES['myfile']['name']);
-
- $document = new Document();
-
- $exists = 0;
-
- //verify the name isn't already being used
- foreach ($document->allAsArray() as $documentTestArray) {
- if (strtoupper($documentTestArray['documentURL']) == strtoupper($documentName)) {
- $exists++;
- }
- }
-
- //if match was found
- if ($exists == 0){
-
- $target_path = "documents/" . basename($_FILES['myfile']['name']);
-
- //note, echos are meant for debugging only - only file name gets sent back
- if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
- //set to web rwx, everyone else rw
- //this way we can edit the document directly on the server
- chmod ($target_path, 0766);
- echo "success uploading!";
- }else{
- header('HTTP/1.1 500 Internal Server Error');
- echo "There was a problem saving your file to $target_path.
";
- }
-
- }
-
- break;
-
-
- case 'deleteDocument':
-
- //note - does not delete physical document
-
- $document = new Document(new NamedArguments(array('primaryKey' => $_GET['documentID'])));
-
-
- //delete children sfx providers
- $sfxProvider = new SFXProvider();
- foreach ($document->getSFXProviders() as $sfxProvider) {
- $sfxProvider->delete();
- }
-
- //delete children signatures
- $signature = new Signature();
- foreach ($document->getSignatures() as $signature) {
- $signature->delete();
- }
-
- try {
- $document->delete();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
-
- case 'submitSignature':
- //set date for proper saving
- if ((isset($_POST['signatureDate'])) && ($_POST['signatureDate'] != '')){
- $signatureDate = date("Y-m-d", strtotime($_POST['signatureDate']));
- }else{
- $signatureDate = "";
- }
-
- //if signatureID is sent then this is an update
- if ((isset($_POST['signatureID'])) && ($_POST['signatureID'] != '')){
- $signature = new Signature(new NamedArguments(array('primaryKey' => $_POST['signatureID'])));
- }else{
- $signature = new Signature();
- $signature->signatureID = '';
- }
-
-
- $signature->signerName = $_POST['signerName'];
- $signature->signatureTypeID = $_POST['signatureTypeID'];
- $signature->documentID = $_POST['documentID'];
- $signature->signatureDate = $signatureDate;
-
- try {
- $signature->save();
- echo "Document Saved Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'deleteSignature':
-
- $signature = new Signature(new NamedArguments(array('primaryKey' => $_GET['signatureID'])));
-
- try {
- $signature->delete();
- echo "Signature Deleted Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- //add/update expression
- case 'submitExpression':
-
- //if expressionID is sent then this is an update
- if ((isset($_POST['expressionID'])) && ($_POST['expressionID'] != '')){
- $expressionID = $_POST['expressionID'];
- $expression = new Expression(new NamedArguments(array('primaryKey' => $expressionID)));
- }else{
- $expression = new Expression();
- //default production use (terms tool indicator) to off if this is an add, otherwise we leave it alone
- $expression->productionUseInd = 0;
- $expression->expressionID = '';
- }
-
- $expression->documentText = $_POST['documentText'];
- $expression->documentID = $_POST['documentID'];
- $expression->expressionTypeID = $_POST['expressionTypeID'];
- $expression->productionUseInd = '0';
- $expression->simplifiedText = '';
-
- try {
- $expression->save();
-
- if (!$expressionID){
- $expressionID=$expression->primaryKey;
- }
-
- //first remove all qualifiers, then we'll add them back
- $expression->removeQualifiers();
-
- foreach (explode(',', $_POST['qualifiers']) as $id){
- if ($id){
- $expressionQualifierProfile = new ExpressionQualifierProfile();
- $expressionQualifierProfile->expressionID = $expressionID;
- $expressionQualifierProfile->qualifierID = $id;
- $expressionQualifierProfile->save();
- }
- }
-
-
-
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'deleteExpression':
-
- $expression = new Expression(new NamedArguments(array('primaryKey' => $_GET['expressionID'])));
-
- try {
- $expression->delete();
- echo "Expression Removed Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'setProdUse':
-
- $expressionID = $_GET['expressionID'];
- $licenseID = $_GET['licenseID'];
- $productionUseInd = $_GET['productionUseInd'];
-
- //send email if prod use is being set
- if ($productionUseInd == "1"){
- $user = new User();
- $toList = array();
- $toList = $user->getSFXUpdateList();
-
- $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
- $util = new Utility();
-
- $emailMessage = "An expression in the licensing module has been approved for terms tool use.\n";
- $emailMessage.= "License: " . $license->shortName . "\n\n";
- $emailMessage.= "View License Record: " . $util->getPageURL() . "license.php?licenseID=" . $licenseID;
-
- $email = new Email();
- $email->to = implode(", ", $toList);
- $email->subject = "Licensing - expression set to production use";
- $email->message = $emailMessage;
-
- $email->send();
-
- $response = "Approved for terms tool display.";
- }else{
- $response = "Removed from terms tool display.";
- }
-
- //save it in the expression record
- $expression = new Expression(new NamedArguments(array('primaryKey' => $_GET['expressionID'])));
- $expression->productionUseInd = $productionUseInd;
-
- try {
- $expression->save();
- echo $response;
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'submitExpressionNote':
-
- //if note id is sent in, this is an update
- if ((isset($_POST['expressionNoteID'])) && ($_POST['expressionNoteID'] != '')){
- $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_POST['expressionNoteID'])));
- $expressionNote->note = $_POST['expressionNote'];
- $expressionNote->displayOrderSeqNumber = $_POST['displayOrderSeqNumber'];
-
- try {
- $expressionNote->save();
- echo "Expression Note Updated Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }else{
- //adding new
- $expression = new Expression(new NamedArguments(array('primaryKey' => $_POST['expressionID'])));
-
- $expressionNote = new ExpressionNote();
- $expressionNote->expressionNoteID = '';
- $expressionNote->note = $_POST['expressionNote'];
- $expressionNote->expressionID = $_POST['expressionID'];
- $expressionNote->displayOrderSeqNumber = $expression->getNextExpressionNoteSequence;
-
- try {
- $expressionNote->save();
- echo "Expression Note Added Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- break;
-
-
- //when the arrows for reordering are clicked
- case 'reorderExpressionNote':
- $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_GET['expressionNoteID'])));
-
- echo $expressionNote->reorder($_GET['direction'], $_GET['oldSeq']);
-
- break;
-
-
- case 'deleteExpressionNote':
-
- $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_GET['expressionNoteID'])));
-
- try {
- $expressionNote->delete();
- echo "Note Removed Successfully.";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'submitSFXProvider':
-
- //if expressionID is sent then this is an update
- if ((isset($_POST['providerID'])) && ($_POST['providerID'] != '')){
- $sfxProvider = new SFXProvider(new NamedArguments(array('primaryKey' => $_POST['providerID'])));
- $sfxProvider->shortName = $_POST['shortName'];
- $sfxProvider->documentID = $_POST['documentID'];
- }else{
- $sfxProvider = new SFXProvider();
- $sfxProvider->sfxProviderID = '';
- $sfxProvider->shortName = $_POST['shortName'];
- $sfxProvider->documentID = $_POST['documentID'];
- }
-
- try {
- $sfxProvider->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'deleteSFXProvider':
-
- $sfxProvider = new SFXProvider(new NamedArguments(array('primaryKey' => $_GET['sfxProviderID'])));
-
- try {
- $sfxProvider->delete();
- echo "Terms Tool Resource Link successfully deleted";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- break;
-
-
- case 'submitLicense':
-
- //may have been sent through despite missing license name or provider- do check here to make sure that isn't the case before insert into DB
- if (isset($_POST['shortName']) && ($_POST['shortName'] != '')) {
- //if licenseID is sent then this is an update
- if ($_POST['licenseID'] <> ""){
- //update data
- $license = new License(new NamedArguments(array('primaryKey' => $_POST['licenseID'])));
- $response = "Document Updated Successfully.";
-
- }else{
- //add data
- $license = new License();
- $license->licenseID = '';
- $license->createDate = date( 'Y-m-d H:i:s' );
- $license->createLoginID = $user->primaryKey;
- $license->statusID='';
- $license->statusDate = date( 'Y-m-d H:i:s' );
- $response = "Document Added Successfully.";
-
- }
-
- $license->shortName = $_POST['shortName'];
- $license->description = $_POST['description'];
- $license->typeID = $_POST['documentTypeID'];
- $license->statusDate = date( 'Y-m-d H:i:s' );
- $license->statusLoginID = $user->primaryKey;
- //this method will save to either organization or provider depending on the settings
- //also, if this organization or provider doesn't exist it will create a new org/provider
- $license->setOrganization($_POST['organizationID'], $_POST['organizationName']);
-
-
- //this is the html that will be displayed in the form after submitting.
- //this is the only form in which this is done.
- try {
- $license->save();
-
- $license->setConsortiums($_POST['consortiumID']);
-
- if ((isset($_POST['licenseID'])) && $_POST['licenseID'] != ''){
- $licenseID = $_POST['licenseID'];
- }else{
-
- // I am adding a new license so go ahead and create the document
- $licenseID = $license->primaryKey;
-
- // Save the document
-
- $document = new Document();
- $document->documentID = '';
- $document->effectiveDate = date( 'Y-m-d H:i:s' );
- if ((isset($_POST['revisionDate'])) && ($_POST['revisionDate'] != '')) {
- $document->revisionDate = date("Y-m-d", strtotime($_POST['revisionDate']));
- }
-
-
- $document->shortName=$_POST['shortName'];
- $document->documentTypeID=$_POST['documentTypeID'];
- $document->parentDocumentID=$_POST['parentDocumentID'];
- $document->licenseID=$licenseID;
- $document->documentURL=$_POST['uploadDocument'];
-
- if ((($document->expirationDate == "") || ($document->expirationDate == '0000-00-00')) && ($_POST['archiveInd'] == "1")){
- $document->expirationDate = date( 'Y-m-d H:i:s' );
- }else if ($_POST['archiveInd'] == "0"){
- $document->expirationDate = '';
- }
-
- try {
- $document->save();
- } catch (Exception $e) {
- //echo $e->POSTMessage();
- echo $e;
- }
-
- if ($_POST['note']['body']) {
- $note = new DocumentNote(new NamedArguments(array('primaryKeyName'=>'documentNoteID')));
- $note->documentNoteID = '';
- $note->createDate = date( 'Y-m-d H:i:s' );
- $note->licenseID = $licenseID;
- //avoid null values for notetypeid
- $note->documentNoteTypeID = ($_POST['note']['documentNoteTypeID']) ? $_POST['note']['documentNoteTypeID']:0;
- $note->documentID = $document->primaryKey;
- $note->body = $_POST['note']['body'];
- try {
- $note->save();
- } catch (Exception $e) {
- echo $e;
- }
- }
- }
- ?>
-
-
-
-
-
- consortiumID='';
- $consortium->shortName = $_GET['shortName'];
-
- try {
- $consortium->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- echo "";
- echo " ";
- if ($_GET['editLicenseID']) {
- $license = new License(new NamedArguments(array('primaryKey' => $_GET['editLicenseID'])));
- $licenseconsortiumids = $license->getConsortiumsByLicense();
- } else {
- $license = new License();
- }
- $display = array();
- foreach($license->getConsortiumList() as $display) {
- if ((is_array($licenseconsortiumids) && in_array($display['consortiumID'],$licenseconsortiumids)) || $_GET['shortName'] == $display['name']) {
-// if ($_GET['shortName'] == $display['name']){
- echo "" . $display['name'] . " ";
- }else{
- echo "" . $display['name'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
- case 'addType':
-
- if ((isset($_GET['shortName'])) && ($_GET['shortName'] != '')){
- $type = new Type();
- $type->typeID='';
- $type->shortName = $_GET['shortName'];
-
- try {
- $type->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- echo "";
- echo " ";
-
- $license = new License();
- $display = array();
-
- foreach($license->getTypeList() as $display) {
- if ($_GET['shortName'] == $display['name']){
- echo "" . $display['name'] . " ";
- }else{
- echo "" . $display['name'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
- case 'addProvider':
- if ((isset($_GET['shortName'])) && ($_GET['shortName'] != '')){
- $provider = new Provider();
- $provider->providerID='';
- $provider->shortName = $_GET['shortName'];
-
- try {
- $provider->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- echo "";
- echo " ";
-
- $displayArray = array();
- $display = array();
- $provider = new Provider();
- $displayArray = $provider->allAsArray();
-
- foreach($displayArray as $display) {
- if ($_GET['shortName'] == $display['shortName']){
- echo "" . $display['shortName'] . " ";
- }else{
- echo "" . $display['shortName'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
- //AJAX helper for checking New Doc Type,Category,and Note Type submissions for uniqueness
- // echo 1 if the value of $_REQUEST['shortName'] is not in use OR we're unable to check due to input errors
- // echo 0 if the value of $_REQUEST['shortName'] is already in use
- case 'checkForDuplicates':
- $validTypes = array('DocumentType','DocumentNoteType','Consortium');
- if ($_REQUEST['shortName'] && ($_REQUEST['newType'] && in_array($_REQUEST['newType'],$validTypes))) {
- $tempObject = new $_REQUEST['newType']();
- $currentItems = $tempObject->allAsArray();
- $inUse = false;
- foreach ($currentItems as $item) {
- if (strtoupper($item['shortName']) == strtoupper($_REQUEST['shortName'])) {
- $inUse = true;
- break;
- }
- }
- }
- $result = 0;
- if (!$inUse) {
- $result = 1;
- }
- echo $result;
- break;
-
- //new doc type being added directly on document form - returns updated drop down list
- case 'addDocumentType':
-
- if ((isset($_REQUEST['shortName'])) && ($_REQUEST['shortName'] != '')){
- $documentType = new DocumentType();
- $documentType->documentTypeID='';
- $documentType->shortName = $_REQUEST['shortName'];
-
- try {
- $documentType->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
-
- echo "";
-
- $displayArray = array();
- $display = array();
- $documentType = new DocumentType();
- $displayArray = $documentType->allAsArray();
-
- foreach($displayArray as $display) {
- if ($_POST['shortName'] == $display['shortName']){
- echo "" . $display['shortName'] . " ";
- }else{
- echo "" . $display['shortName'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
- case 'addNoteType':
- $noteType = new DocumentNoteType();
- if ((isset($_REQUEST['shortName'])) && ($_REQUEST['shortName'] != '')){
- $noteType->documentNoteTypeID='';
- $noteType->shortName = $_REQUEST['shortName'];
-
- try {
- $noteType->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-/*
-
- Test Type 1
- Test Type 2 Test Type 3 Test Type 4
-*/
- echo ' ';
- foreach($noteType->allAsArray() as $display) {
- echo " " . $display['shortName'] . " ";
- }
- echo ' ';
- break;
-
-
- //new signature type being added directly on signature form - returns updated drop down list
- //no longer used.... must add signature types from admin form
- case 'addSignatureType':
-
- if ((isset($_POST['shortName'])) && ($_POST['shortName'] != '')){
- $signatureType = new SignatureType();
- $signatureType->signatureTypeID='';
- $signatureType->shortName = $_POST['shortName'];
-
- try {
- $signatureType->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- echo "";
- echo " ";
-
- $displayArray = array();
- $display = array();
- $signatureType = new SignatureType();
- $displayArray = $signatureType->allAsArray();
-
- foreach($displayArray as $display) {
- if ($_POST['shortName'] == $display['shortName']){
- echo "" . $display['shortName'] . " ";
- }else{
- echo "" . $display['shortName'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
-
- //new expression type being added directly on expression form - returns updated drop down list
- //note default type is 'internal'. this will need to be updated by user in admin if it's decided to be used for display
- case 'addExpressionType':
-
-
- if ((isset($_POST['shortName'])) && ($_POST['shortName'] != '')){
- $expressionType = new ExpressionType();
- $expressionType->expressionTypeID='';
-
- $expressionType->shortName = $_POST['shortName'];
- $expressionType->noteType = 'Internal';
-
- try {
- $expressionType->save();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- }
-
- echo "";
-
- $displayArray = array();
- $display = array();
- $expressionType = new ExpressionType();
- $displayArray = $expressionType->allAsArray();
-
- foreach($displayArray as $display) {
- if ($_POST['shortName'] == $display['shortName']){
- echo "" . $display['shortName'] . " ";
- }else{
- echo "" . $display['shortName'] . " ";
- }
- }
-
- echo " ";
-
- break;
-
-
- //generically adds data for admin screen
- //error is echoed back
- case 'addData':
-
- $className = $_POST['tableName'];
- $shortName = $_POST['shortName'];
-
- $instance = new $className();
- $instance->shortName = $shortName;
-
- echo "";
- try {
- $instance->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
- echo " ";
-
- break;
-
- //generically updates data for admin screen
- //error is echoed back
- case 'updateData':
- $className = $_POST['tableName'];
- $updateID = $_POST['updateID'];
- $shortName = $_POST['shortName'];
-
- $instance = new $className(new NamedArguments(array('primaryKey' => $updateID)));
- $instance->shortName = $shortName;
-
- try {
- $instance->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
-
- break;
-
-
- //generically deletes data for admin screen
- //error is echoed back
- case 'deleteData':
-
- $className = $_GET['tableName'];
- $deleteID = $_GET['deleteID'];
-
- //since we're using MyISAM which doesn't support FKs, must verify that there are no records of children or they could disappear
- $instance = new $className(new NamedArguments(array('primaryKey' => $deleteID)));
- $numberOfChildren = $instance->getNumberOfChildren();
- echo "";
-
- if ($numberOfChildren > 0){
- $type = ($className == 'Consortium') ? 'category':strtolower(preg_replace("/[A-Z]/", " \\0" , lcfirst($className)));
- //print out a friendly message...
- echo "Unable to delete - this " . $type . " is in use. Please make sure no documents are set up with this information.";
- }else{
- try {
- $instance->delete();
- } catch (Exception $e) {
- //print out a friendly message...
- echo "Unable to delete. Please make sure no documents are set up with this information.";
- }
- }
- echo " ";
-
- break;
-
-
-
- case 'submitExpressionType':
- if ((isset($_POST['expressionTypeID'])) && ($_POST['expressionTypeID'] != '')){
- $expressionType = new ExpressionType(new NamedArguments(array('primaryKey' => $_POST['expressionTypeID'])));
- }else{
- $expressionType = new ExpressionType();
- $expressionType->expressionTypeID = '';
- }
-
- $expressionType->shortName = $_POST['shortName'];
- $expressionType->noteType = $_POST['noteType'];
-
- try {
- $expressionType->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
-
- break;
-
-
-
- case 'submitQualifier':
- if ((isset($_POST['qualifierID'])) && ($_POST['qualifierID'] != '')){
- $qualifier = new Qualifier(new NamedArguments(array('primaryKey' => $_POST['qualifierID'])));
- }else{
- $qualifier = new Qualifier();
- $qualifier->qualifierID = '';
- }
-
- $qualifier->expressionTypeID = $_POST['expressionTypeID'];
- $qualifier->shortName = $_POST['shortName'];
-
- try {
- $qualifier->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
-
- break;
-
- case 'submitUserData':
- if ($_POST['orgLoginID']){
- $user = new User(new NamedArguments(array('primaryKey' => $_POST['orgLoginID'])));
- }else{
- $user = new User();
- }
-
- $user->loginID = $_POST['loginID'];
- $user->firstName = $_POST['firstName'];
- $user->lastName = $_POST['lastName'];
- $user->privilegeID = $_POST['privilegeID'];
- $user->emailAddressForTermsTool = $_POST['emailAddressForTermsTool'];
-
- try {
- $user->save();
- } catch (Exception $e) {
- echo $e->POSTMessage();
- }
-
-
- break;
-
-
-
- case 'deleteUser':
-
- $loginID = $_GET['loginID'];
-
- $user = new User(new NamedArguments(array('primaryKey' => $loginID)));
-
- echo "";
- try {
- $user->delete();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- echo " ";
-
- break;
-
-
-
-
- case 'deleteExpressionType':
-
- $expressionTypeID = $_GET['expressionTypeID'];
-
- $expressionType = new ExpressionType(new NamedArguments(array('primaryKey' => $expressionTypeID)));
-
- echo "";
- try {
- $expressionType->removeExpressionType();
- } catch (Exception $e) {
- echo $e->getMessage();
- }
- echo " ";
-
- break;
-
-
-
- //verify file name for uploaded attachments (4th tab) aren't already being used
- case 'checkUploadAttachment':
-
- $uploadAttachment = $_POST['uploadAttachment'];
- $attachmentFile = new AttachmentFile();
-
- $exists = 0;
-
- if (!is_writable("attachments")) {
- echo 3;
- break;
- }
-
- foreach ($attachmentFile->allAsArray() as $attachmentTestArray) {
- if (strtoupper($attachmentTestArray['attachmentURL']) == strtoupper($uploadAttachment)) {
- $exists++;
- }
- }
-
- echo $exists;
-
- break;
-
- //perform actual upload for attachments (4th tab)
- case 'uploadAttachment':
-
- $documentName = basename($_FILES['myfile']['name']);
-
- $target_path = "attachments/" . basename($_FILES['myfile']['name']);
-
- $attachmentFile = new AttachmentFile();
-
- $exists = 0;
-
- //loop through existing log attachments to verify that this name isn't already taken
- foreach ($attachmentFile->allAsArray() as $attachmentTestArray) {
- if (strtoupper($attachmentTestArray['attachmentURL']) == strtoupper($documentName)) {
- $exists++;
- }
- }
-
- //if match was not found
- //note, echoes are not being sent anywhere
- if ($exists == 0){
- if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
- //set to web rwx, everyone else rw
- //this way we can edit the document directly on the server
- chmod ($target_path, 0766);
- echo "success uploading!";
- }else{
- header('HTTP/1.1 500 Internal Server Error');
- echo "There was a problem saving your file to $target_path.
";
- }
- }
-
-
- break;
-
- //add/update for attachment - 4th tab
- case 'submitAttachment':
-
- //if attachmentID is sent then this is an update
- if ((isset($_POST['attachmentID'])) && ($_POST['attachmentID'] <> "")){
- $attachment = new Attachment(new NamedArguments(array('primaryKey' => $_POST['attachmentID'])));
- }else{
- $attachment = new Attachment();
- $attachment->attachmentID = '';
- }
-
- if ((isset($_POST['sentDate'])) && ($_POST['sentDate'] <> "")){
- $attachment->sentDate = date("Y-m-d", strtotime($_POST['sentDate']));
- }else{
- $attachment->sentDate = "";
- }
-
- $attachment->attachmentText = $_POST['attachmentText'];
- $attachment->licenseID = $_POST['licenseID'];
-
-
- try {
- $attachment->save();
- echo $attachment->primaryKey;
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
-
- break;
-
-
- //adding the attachment file to the db - saves the URL to it only
- case 'addAttachmentFile':
-
- $attachmentFile = new AttachmentFile();
- $attachmentFile->attachmentID = $_GET['attachmentID'];
- $attachmentFile->attachmentURL = $_GET['attachmentURL'];
-
- try {
- $attachmentFile->save();
- echo $attachmentFile->primaryKey;
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'deleteAttachment':
-
- $attachment = new Attachment(new NamedArguments(array('primaryKey' => $_GET['attachmentID'])));
-
- //first delete attachments
- foreach ($attachment->getAttachmentFiles() as $attachmentFile) {
- $attachmentFile->delete();
- }
-
- try {
- $attachment->delete();
- echo "Attachment successfully deleted";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- case 'deleteAttachmentFile':
-
- $attachmentFile = new AttachmentFile(new NamedArguments(array('primaryKey' => $_GET['attachmentFileID'])));
-
- try {
- $attachmentFile->delete();
- echo "Attachment file successfully deleted";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
- case 'deleteNote':
-
- $note = new DocumentNote(new NamedArguments(array('primaryKey' => $_GET['documentNoteID'])));
-
- try {
- $note->delete();
- echo "Note successfully deleted";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- //add/update for note
- case 'submitNote':
- //if noteID is sent then this is an update
-
- if ((isset($_POST['documentNoteID'])) && ($_POST['documentNoteID'] <> "")){
- $note = new DocumentNote(new NamedArguments(array('primaryKey' => $_POST['documentNoteID'])));
- } else {
- $note = new DocumentNote(new NamedArguments(array('primaryKeyName'=>'documentNoteID')));
- $note->documentNoteID = '';
- $note->createDate = date( 'Y-m-d H:i:s' );
- }
-
- $note->body = $_POST['body'];
- $note->licenseID = $_POST['licenseID'];
- $note->documentNoteTypeID = $_POST['documentNoteTypeID'];
- $note->documentID = $_POST['documentID'];
-
-
- try {
- $note->save();
- echo $note->primaryKey;
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
- //updates license status when a new one is selected in dropdown box
- case 'updateStatus':
- $licenseID = $_GET['licenseID'];
- $statusID = $_GET['statusID'];
- $statusDate = date( 'Y-m-d H:i:s' );
-
- //update license
- $license = new License(new NamedArguments(array('primaryKey' => $_GET['licenseID'])));
- $license->statusID = $statusID;
- $license->statusDate = $statusDate;
-
- try {
- $license->save();
- echo "Status has been updated";
- } catch (Exception $e) {
- echo $e->getMessage();
- }
-
- break;
-
-
- //used for autocomplete of signer name
- case 'getSigners':
-
- if (isset($_GET['searchMode'])) $searchMode = $_GET['searchMode']; else $searchMode='';
- if (isset($_GET['limit'])) $limit = $_GET['limit']; else $limit = '';
-
- $q = $_GET['q'];
- $q = str_replace(" ", "+",$q);
- $q = str_replace("&", "%",$q);
-
- $signature = new Signature();
- $signerArray = $signature->search($q);
-
- echo implode("\n", $signerArray);
-
- break;
-
-
-
-
- //used for autocomplete of provider names (from organizations module)
- case 'getOrganizations':
-
- if (isset($_GET['searchMode'])) $searchMode = $_GET['searchMode']; else $searchMode='';
- if (isset($_GET['limit'])) $limit = $_GET['limit']; else $limit = '';
-
- $q = $_GET['q'];
- $q = str_replace(" ", "+",$q);
- $q = str_replace("&", "%",$q);
-
- $license = new License();
- $orgArray = $license->searchOrganizations($q);
-
- echo implode("\n", $orgArray);
-
- break;
-
-
- //used to verify document name isn't already being used as it's added
- case 'getExistingDocumentName':
- $shortName = $_GET['shortName'];
-
- if (isset($_GET['documentID'])) $documentID = $_GET['documentID']; else $documentID='';
-
-
- $document = new Document();
- $documentArray = array();
-
- $exists = 0;
-
- foreach ($document->allAsArray() as $documentArray) {
- if ((strtoupper($documentArray['shortName']) == strtoupper($shortName)) && ($documentArray['documentID'] != $documentID)) {
- $exists++;
- }
- }
-
- echo $exists;
-
- break;
-
- //used to verify license name isn't already being used as it's added
- case 'getExistingLicenseName':
- $shortName = $_GET['shortName'];
-
-
- $license = new License();
- $licenseArray = array();
-
- $exists = 0;
-
- foreach ($license->allAsArray() as $licenseArray) {
- if (strtoupper($licenseArray['shortName']) == strtoupper($shortName)) {
- $exists = $licenseArray['licenseID'];
- }
- }
-
- echo $exists;
-
- break;
-
-
- //used to verify organization name isn't already being used as it's added
- case 'getExistingOrganizationName':
- $shortName = $_GET['shortName'];
-
-
- $license = new License();
- $licenseArray = array();
-
- $exists = 0;
-
- foreach ($license->getOrganizationList() as $orgArray) {
- if (strtoupper($orgArray['name']) == strtoupper($shortName)) {
- $exists = $orgArray['organizationID'];
- }
- }
-
- echo $exists;
-
- break;
-
- default:
- echo "Action " . $action . " not set up!";
- break;
-
-
-}
-
-
-
+.
+**
+**************************************************************************************************************************
+**************************************************************************************************************************
+** ajax_processing.php contains processing (adds/updates/deletes) on data sent using ajax from forms and other pages
+**
+** when ajax_processing.php is called through ajax, 'action' parm is required to dictate which form will be returned
+**
+**************************************************************************************************************************
+*/
+include_once 'directory.php';
+include_once 'user.php';
+
+switch ($_GET['action']) {
+
+ //for document adds or updates - note that actual file is done on form (processing done in uploadDocument)
+ //this just saves the URL in db
+
+ case 'submitDocument':
+ //if documentID is sent then this is an update
+ if ((isset($_POST['documentID'])) && ($_POST['documentID'] != '')){
+ $document = new Document(new NamedArguments(array('primaryKey' => $_POST['documentID'])));
+
+ if ((($document->expirationDate == "") || ($document->expirationDate == '0000-00-00')) && ($_POST['archiveInd'] == "1")){
+ $document->expirationDate = date( 'Y-m-d H:i:s' );
+ }else if ($_POST['archiveInd'] == "0"){
+ $document->expirationDate = '';
+ }
+
+
+ }else{
+ $document = new Document();
+ $document->documentID = '';
+
+ if ($_POST['archiveInd'] == "1"){
+ $document->expirationDate = date( 'Y-m-d H:i:s' );
+ }else{
+ $document->expirationDate = '';
+ }
+
+ }
+
+ //first set effective Date for proper saving
+ if ((isset($_POST['effectiveDate'])) && ($_POST['effectiveDate'] != '')){
+ $document->effectiveDate = date("Y-m-d", strtotime($_POST['effectiveDate']));
+ }else{
+ $document->effectiveDate= 'null';
+ }
+
+ if ((isset($_POST['revisionDate'])) && ($_POST['revisionDate'] != '')) {
+ $document->revisionDate = date("Y-m-d", strtotime($_POST['revisionDate']));
+ }
+
+
+ $document->shortName=$_POST['shortName'];
+ $document->documentTypeID=$_POST['documentTypeID'];
+ $document->parentDocumentID=$_POST['parentDocumentID'];
+ $document->licenseID=$_POST['licenseID'];
+ $document->documentURL=$_POST['uploadDocument'];
+
+ $license = new License(new NamedArguments(array('primaryKey' => $_POST['licenseID'])));
+ $license->typeID = $_POST['documentTypeID'];
+ $license->statusDate = date( 'Y-m-d H:i:s' );
+
+ try {
+ $document->save();
+ $license->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+
+ break;
+
+
+
+ case 'deleteLicense':
+
+ //note: does not delete physical documents
+
+ $licenseID = $_GET['licenseID'];
+
+ $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
+
+ //remove licenses removes all children data as well
+ try {
+ $license->removeLicense();
+ echo "License successfully deleted.";
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ //archives (expires) document - defaults to current date/time
+ case 'archiveDocument':
+ $document = new Document(new NamedArguments(array('primaryKey' => $_GET['documentID'])));
+ $document->expirationDate = date( 'Y-m-d H:i:s' );
+
+ try {
+ $document->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ //verify that the new document name doesn't have bad characters and the name isn't already being used
+ case 'checkUploadDocument':
+ $uploadDocument = $_POST['uploadDocument'];
+ $document = new Document();
+
+ $exists = 0;
+
+ if (!is_writable("documents")) {
+ echo 3;
+ break;
+ }
+
+ //first check that it doesn't have any offending characters
+ if ((strpos($uploadDocument,"'") > 0) || (strpos($uploadDocument,'"') > 0) || (strpos($uploadDocument,"&") > 0) || (strpos($uploadDocument,"<") > 0) || (strpos($uploadDocument,">") > 0)){
+ echo 2;
+ }else{
+ //loop through each existing document to verify this name isn't already being used
+ foreach ($document->allAsArray() as $documentTestArray) {
+ if (strtoupper($documentTestArray['documentURL']) == strtoupper($uploadDocument)) {
+ $exists++;
+ }
+ }
+
+ echo $exists;
+ }
+
+ break;
+
+
+ //performs document upload
+ case 'uploadDocument':
+ $documentName = basename($_FILES['myfile']['name']);
+
+ $document = new Document();
+
+ $exists = 0;
+
+ //verify the name isn't already being used
+ foreach ($document->allAsArray() as $documentTestArray) {
+ if (strtoupper($documentTestArray['documentURL']) == strtoupper($documentName)) {
+ $exists++;
+ }
+ }
+
+ //if match was found
+ if ($exists == 0){
+
+ $target_path = "documents/" . basename($_FILES['myfile']['name']);
+
+ //note, echos are meant for debugging only - only file name gets sent back
+ if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
+ //set to web rwx, everyone else rw
+ //this way we can edit the document directly on the server
+ chmod ($target_path, 0766);
+ echo _("success uploading!");
+ }else{
+ header('HTTP/1.1 500 Internal Server Error');
+ echo "" . _("There was a problem saving your file to ") . "$target_path.
";
+ }
+
+ }
+
+ break;
+
+
+ case 'deleteDocument':
+
+ //note - does not delete physical document
+
+ $document = new Document(new NamedArguments(array('primaryKey' => $_GET['documentID'])));
+
+
+ //delete children sfx providers
+ $sfxProvider = new SFXProvider();
+ foreach ($document->getSFXProviders() as $sfxProvider) {
+ $sfxProvider->delete();
+ }
+
+ //delete children signatures
+ $signature = new Signature();
+ foreach ($document->getSignatures() as $signature) {
+ $signature->delete();
+ }
+
+ try {
+ $document->delete();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+
+ case 'submitSignature':
+ //set date for proper saving
+ if ((isset($_POST['signatureDate'])) && ($_POST['signatureDate'] != '')){
+ $signatureDate = date("Y-m-d", strtotime($_POST['signatureDate']));
+ }else{
+ $signatureDate = "";
+ }
+
+ //if signatureID is sent then this is an update
+ if ((isset($_POST['signatureID'])) && ($_POST['signatureID'] != '')){
+ $signature = new Signature(new NamedArguments(array('primaryKey' => $_POST['signatureID'])));
+ }else{
+ $signature = new Signature();
+ $signature->signatureID = '';
+ }
+
+
+ $signature->signerName = $_POST['signerName'];
+ $signature->signatureTypeID = $_POST['signatureTypeID'];
+ $signature->documentID = $_POST['documentID'];
+ $signature->signatureDate = $signatureDate;
+
+ try {
+ $signature->save();
+ echo _("Document Saved Successfully.");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'deleteSignature':
+
+ $signature = new Signature(new NamedArguments(array('primaryKey' => $_GET['signatureID'])));
+
+ try {
+ $signature->delete();
+ echo _("Signature Deleted Successfully.");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ //add/update expression
+ case 'submitExpression':
+
+ //if expressionID is sent then this is an update
+ if ((isset($_POST['expressionID'])) && ($_POST['expressionID'] != '')){
+ $expressionID = $_POST['expressionID'];
+ $expression = new Expression(new NamedArguments(array('primaryKey' => $expressionID)));
+ }else{
+ $expression = new Expression();
+ //default production use (terms tool indicator) to off if this is an add, otherwise we leave it alone
+ $expression->productionUseInd = 0;
+ $expression->expressionID = '';
+ }
+
+ $expression->documentText = $_POST['documentText'];
+ $expression->documentID = $_POST['documentID'];
+ $expression->expressionTypeID = $_POST['expressionTypeID'];
+ $expression->productionUseInd = '0';
+ $expression->simplifiedText = '';
+
+ try {
+ $expression->save();
+
+ if (!$expressionID){
+ $expressionID=$expression->primaryKey;
+ }
+
+ //first remove all qualifiers, then we'll add them back
+ $expression->removeQualifiers();
+
+ foreach (explode(',', $_POST['qualifiers']) as $id){
+ if ($id){
+ $expressionQualifierProfile = new ExpressionQualifierProfile();
+ $expressionQualifierProfile->expressionID = $expressionID;
+ $expressionQualifierProfile->qualifierID = $id;
+ $expressionQualifierProfile->save();
+ }
+ }
+
+
+
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'deleteExpression':
+
+ $expression = new Expression(new NamedArguments(array('primaryKey' => $_GET['expressionID'])));
+
+ try {
+ $expression->delete();
+ echo "Expression Removed Successfully.";
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'setProdUse':
+
+ $expressionID = $_GET['expressionID'];
+ $licenseID = $_GET['licenseID'];
+ $productionUseInd = $_GET['productionUseInd'];
+
+ //send email if prod use is being set
+ if ($productionUseInd == "1"){
+ $user = new User();
+ $toList = array();
+ $toList = $user->getSFXUpdateList();
+
+ $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
+ $util = new Utility();
+
+ $emailMessage = _("An expression in the licensing module has been approved for terms tool use.") . "\n";
+ $emailMessage.= _("License: ") . $license->shortName . "\n\n";
+ $emailMessage.= _("View License Record: ") . $util->getPageURL() . "license.php?licenseID=" . $licenseID;
+
+ $email = new Email();
+ $email->to = implode(", ", $toList);
+ $email->subject = _("Licensing - expression set to production use");
+ $email->message = $emailMessage;
+
+ $email->send();
+
+ $response = _("Approved for terms tool display.");
+ }else{
+ $response = _("Removed from terms tool display.");
+ }
+
+ //save it in the expression record
+ $expression = new Expression(new NamedArguments(array('primaryKey' => $_GET['expressionID'])));
+ $expression->productionUseInd = $productionUseInd;
+
+ try {
+ $expression->save();
+ echo $response;
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'submitExpressionNote':
+
+ //if note id is sent in, this is an update
+ if ((isset($_POST['expressionNoteID'])) && ($_POST['expressionNoteID'] != '')){
+ $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_POST['expressionNoteID'])));
+ $expressionNote->note = $_POST['expressionNote'];
+ $expressionNote->displayOrderSeqNumber = $_POST['displayOrderSeqNumber'];
+
+ try {
+ $expressionNote->save();
+ echo _("Expression Note Updated Successfully.");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }else{
+ //adding new
+ $expression = new Expression(new NamedArguments(array('primaryKey' => $_POST['expressionID'])));
+
+ $expressionNote = new ExpressionNote();
+ $expressionNote->expressionNoteID = '';
+ $expressionNote->note = $_POST['expressionNote'];
+ $expressionNote->expressionID = $_POST['expressionID'];
+ $expressionNote->displayOrderSeqNumber = $expression->getNextExpressionNoteSequence;
+
+ try {
+ $expressionNote->save();
+ echo _("Expression Note Added Successfully.");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ break;
+
+
+ //when the arrows for reordering are clicked
+ case 'reorderExpressionNote':
+ $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_GET['expressionNoteID'])));
+
+ echo $expressionNote->reorder($_GET['direction'], $_GET['oldSeq']);
+
+ break;
+
+
+ case 'deleteExpressionNote':
+
+ $expressionNote = new ExpressionNote(new NamedArguments(array('primaryKey' => $_GET['expressionNoteID'])));
+
+ try {
+ $expressionNote->delete();
+ echo _("Note Removed Successfully.");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'submitSFXProvider':
+
+ //if expressionID is sent then this is an update
+ if ((isset($_POST['providerID'])) && ($_POST['providerID'] != '')){
+ $sfxProvider = new SFXProvider(new NamedArguments(array('primaryKey' => $_POST['providerID'])));
+ $sfxProvider->shortName = $_POST['shortName'];
+ $sfxProvider->documentID = $_POST['documentID'];
+ }else{
+ $sfxProvider = new SFXProvider();
+ $sfxProvider->sfxProviderID = '';
+ $sfxProvider->shortName = $_POST['shortName'];
+ $sfxProvider->documentID = $_POST['documentID'];
+ }
+
+ try {
+ $sfxProvider->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'deleteSFXProvider':
+
+ $sfxProvider = new SFXProvider(new NamedArguments(array('primaryKey' => $_GET['sfxProviderID'])));
+
+ try {
+ $sfxProvider->delete();
+ echo _("Terms Tool Resource Link successfully deleted");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ break;
+
+
+ case 'submitLicense':
+
+ //may have been sent through despite missing license name or provider- do check here to make sure that isn't the case before insert into DB
+ if (isset($_POST['shortName']) && ($_POST['shortName'] != '')) {
+ //if licenseID is sent then this is an update
+ if ($_POST['licenseID'] <> ""){
+ //update data
+ $license = new License(new NamedArguments(array('primaryKey' => $_POST['licenseID'])));
+ $response = _("Document Updated Successfully.");
+
+ }else{
+ //add data
+ $license = new License();
+ $license->licenseID = '';
+ $license->createDate = date( 'Y-m-d H:i:s' );
+ $license->createLoginID = $user->primaryKey;
+ $license->statusID='';
+ $license->statusDate = date( 'Y-m-d H:i:s' );
+ $response = _("Document Added Successfully.");
+
+ }
+
+ $license->shortName = $_POST['shortName'];
+ $license->description = $_POST['description'];
+ $license->typeID = $_POST['documentTypeID'];
+ $license->statusDate = date( 'Y-m-d H:i:s' );
+ $license->statusLoginID = $user->primaryKey;
+ //this method will save to either organization or provider depending on the settings
+ //also, if this organization or provider doesn't exist it will create a new org/provider
+ $license->setOrganization($_POST['organizationID'], $_POST['organizationName']);
+
+
+ //this is the html that will be displayed in the form after submitting.
+ //this is the only form in which this is done.
+ try {
+ $license->save();
+
+ $license->setConsortiums($_POST['consortiumID']);
+
+ if ((isset($_POST['licenseID'])) && $_POST['licenseID'] != ''){
+ $licenseID = $_POST['licenseID'];
+ }else{
+
+ // I am adding a new license so go ahead and create the document
+ $licenseID = $license->primaryKey;
+
+ // Save the document
+
+ $document = new Document();
+ $document->documentID = '';
+ $document->effectiveDate = date( 'Y-m-d H:i:s' );
+ if ((isset($_POST['revisionDate'])) && ($_POST['revisionDate'] != '')) {
+ $document->revisionDate = date("Y-m-d", strtotime($_POST['revisionDate']));
+ }
+
+
+ $document->shortName=$_POST['shortName'];
+ $document->documentTypeID=$_POST['documentTypeID'];
+ $document->parentDocumentID=$_POST['parentDocumentID'];
+ $document->licenseID=$licenseID;
+ $document->documentURL=$_POST['uploadDocument'];
+
+ if ((($document->expirationDate == "") || ($document->expirationDate == '0000-00-00')) && ($_POST['archiveInd'] == "1")){
+ $document->expirationDate = date( 'Y-m-d H:i:s' );
+ }else if ($_POST['archiveInd'] == "0"){
+ $document->expirationDate = '';
+ }
+
+ try {
+ $document->save();
+ } catch (Exception $e) {
+ //echo $e->POSTMessage();
+ echo $e;
+ }
+
+ if ($_POST['note']['body']) {
+ $note = new DocumentNote(new NamedArguments(array('primaryKeyName'=>'documentNoteID')));
+ $note->documentNoteID = '';
+ $note->createDate = date( 'Y-m-d H:i:s' );
+ $note->licenseID = $licenseID;
+ //avoid null values for notetypeid
+ $note->documentNoteTypeID = ($_POST['note']['documentNoteTypeID']) ? $_POST['note']['documentNoteTypeID']:0;
+ $note->documentID = $document->primaryKey;
+ $note->body = $_POST['note']['body'];
+ try {
+ $note->save();
+ } catch (Exception $e) {
+ echo $e;
+ }
+ }
+ }
+ ?>
+
+
+
+
+
+ consortiumID='';
+ $consortium->shortName = $_GET['shortName'];
+
+ try {
+ $consortium->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ echo "";
+ echo " ";
+ if ($_GET['editLicenseID']) {
+ $license = new License(new NamedArguments(array('primaryKey' => $_GET['editLicenseID'])));
+ $licenseconsortiumids = $license->getConsortiumsByLicense();
+ } else {
+ $license = new License();
+ }
+ $display = array();
+ foreach($license->getConsortiumList() as $display) {
+ if ((is_array($licenseconsortiumids) && in_array($display['consortiumID'],$licenseconsortiumids)) || $_GET['shortName'] == $display['name']) {
+// if ($_GET['shortName'] == $display['name']){
+ echo "" . $display['name'] . " ";
+ }else{
+ echo "" . $display['name'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+ case 'addType':
+
+ if ((isset($_GET['shortName'])) && ($_GET['shortName'] != '')){
+ $type = new Type();
+ $type->typeID='';
+ $type->shortName = $_GET['shortName'];
+
+ try {
+ $type->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ echo "";
+ echo " ";
+
+ $license = new License();
+ $display = array();
+
+ foreach($license->getTypeList() as $display) {
+ if ($_GET['shortName'] == $display['name']){
+ echo "" . $display['name'] . " ";
+ }else{
+ echo "" . $display['name'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+ case 'addProvider':
+ if ((isset($_GET['shortName'])) && ($_GET['shortName'] != '')){
+ $provider = new Provider();
+ $provider->providerID='';
+ $provider->shortName = $_GET['shortName'];
+
+ try {
+ $provider->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ echo "";
+ echo " ";
+
+ $displayArray = array();
+ $display = array();
+ $provider = new Provider();
+ $displayArray = $provider->allAsArray();
+
+ foreach($displayArray as $display) {
+ if ($_GET['shortName'] == $display['shortName']){
+ echo "" . $display['shortName'] . " ";
+ }else{
+ echo "" . $display['shortName'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+ //AJAX helper for checking New Doc Type,Category,and Note Type submissions for uniqueness
+ // echo 1 if the value of $_REQUEST['shortName'] is not in use OR we're unable to check due to input errors
+ // echo 0 if the value of $_REQUEST['shortName'] is already in use
+ case 'checkForDuplicates':
+ $validTypes = array('DocumentType','DocumentNoteType','Consortium');
+ if ($_REQUEST['shortName'] && ($_REQUEST['newType'] && in_array($_REQUEST['newType'],$validTypes))) {
+ $tempObject = new $_REQUEST['newType']();
+ $currentItems = $tempObject->allAsArray();
+ $inUse = false;
+ foreach ($currentItems as $item) {
+ if (strtoupper($item['shortName']) == strtoupper($_REQUEST['shortName'])) {
+ $inUse = true;
+ break;
+ }
+ }
+ }
+ $result = 0;
+ if (!$inUse) {
+ $result = 1;
+ }
+ echo $result;
+ break;
+
+ //new doc type being added directly on document form - returns updated drop down list
+ case 'addDocumentType':
+
+ if ((isset($_REQUEST['shortName'])) && ($_REQUEST['shortName'] != '')){
+ $documentType = new DocumentType();
+ $documentType->documentTypeID='';
+ $documentType->shortName = $_REQUEST['shortName'];
+
+ try {
+ $documentType->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+
+ echo "";
+
+ $displayArray = array();
+ $display = array();
+ $documentType = new DocumentType();
+ $displayArray = $documentType->allAsArray();
+
+ foreach($displayArray as $display) {
+ if ($_POST['shortName'] == $display['shortName']){
+ echo "" . $display['shortName'] . " ";
+ }else{
+ echo "" . $display['shortName'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+ case 'addNoteType':
+ $noteType = new DocumentNoteType();
+ if ((isset($_REQUEST['shortName'])) && ($_REQUEST['shortName'] != '')){
+ $noteType->documentNoteTypeID='';
+ $noteType->shortName = $_REQUEST['shortName'];
+
+ try {
+ $noteType->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+/*
+
+ Test Type 1
+ Test Type 2 Test Type 3 Test Type 4
+*/
+ echo ' ';
+ foreach($noteType->allAsArray() as $display) {
+ echo " " . $display['shortName'] . " ";
+ }
+ echo ' ';
+ break;
+
+
+ //new signature type being added directly on signature form - returns updated drop down list
+ //no longer used.... must add signature types from admin form
+ case 'addSignatureType':
+
+ if ((isset($_POST['shortName'])) && ($_POST['shortName'] != '')){
+ $signatureType = new SignatureType();
+ $signatureType->signatureTypeID='';
+ $signatureType->shortName = $_POST['shortName'];
+
+ try {
+ $signatureType->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ echo "";
+ echo " ";
+
+ $displayArray = array();
+ $display = array();
+ $signatureType = new SignatureType();
+ $displayArray = $signatureType->allAsArray();
+
+ foreach($displayArray as $display) {
+ if ($_POST['shortName'] == $display['shortName']){
+ echo "" . $display['shortName'] . " ";
+ }else{
+ echo "" . $display['shortName'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+
+ //new expression type being added directly on expression form - returns updated drop down list
+ //note default type is 'internal'. this will need to be updated by user in admin if it's decided to be used for display
+ case 'addExpressionType':
+
+
+ if ((isset($_POST['shortName'])) && ($_POST['shortName'] != '')){
+ $expressionType = new ExpressionType();
+ $expressionType->expressionTypeID='';
+
+ $expressionType->shortName = $_POST['shortName'];
+ $expressionType->noteType = 'Internal';
+
+ try {
+ $expressionType->save();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ }
+
+ echo "";
+
+ $displayArray = array();
+ $display = array();
+ $expressionType = new ExpressionType();
+ $displayArray = $expressionType->allAsArray();
+
+ foreach($displayArray as $display) {
+ if ($_POST['shortName'] == $display['shortName']){
+ echo "" . $display['shortName'] . " ";
+ }else{
+ echo "" . $display['shortName'] . " ";
+ }
+ }
+
+ echo " ";
+
+ break;
+
+
+ //generically adds data for admin screen
+ //error is echoed back
+ case 'addData':
+
+ $className = $_POST['tableName'];
+ $shortName = $_POST['shortName'];
+
+ $instance = new $className();
+ $instance->shortName = $shortName;
+
+ echo "";
+ try {
+ $instance->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+ echo " ";
+
+ break;
+
+ //generically updates data for admin screen
+ //error is echoed back
+ case 'updateData':
+ $className = $_POST['tableName'];
+ $updateID = $_POST['updateID'];
+ $shortName = $_POST['shortName'];
+
+ $instance = new $className(new NamedArguments(array('primaryKey' => $updateID)));
+ $instance->shortName = $shortName;
+
+ try {
+ $instance->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+
+ break;
+
+
+ //generically deletes data for admin screen
+ //error is echoed back
+ case 'deleteData':
+
+ $className = $_GET['tableName'];
+ $deleteID = $_GET['deleteID'];
+
+ //since we're using MyISAM which doesn't support FKs, must verify that there are no records of children or they could disappear
+ $instance = new $className(new NamedArguments(array('primaryKey' => $deleteID)));
+ $numberOfChildren = $instance->getNumberOfChildren();
+ echo "";
+
+ if ($numberOfChildren > 0){
+ $type = ($className == 'Consortium') ? 'category':strtolower(preg_replace("/[A-Z]/", " \\0" , lcfirst($className)));
+ //print out a friendly message...
+ echo _("Unable to delete - this ") . $type . _(" is in use. Please make sure no documents are set up with this information.");
+ }else{
+ try {
+ $instance->delete();
+ } catch (Exception $e) {
+ //print out a friendly message...
+ echo _("Unable to delete. Please make sure no documents are set up with this information.");
+ }
+ }
+ echo " ";
+
+ break;
+
+
+
+ case 'submitExpressionType':
+ if ((isset($_POST['expressionTypeID'])) && ($_POST['expressionTypeID'] != '')){
+ $expressionType = new ExpressionType(new NamedArguments(array('primaryKey' => $_POST['expressionTypeID'])));
+ }else{
+ $expressionType = new ExpressionType();
+ $expressionType->expressionTypeID = '';
+ }
+
+ $expressionType->shortName = $_POST['shortName'];
+ $expressionType->noteType = $_POST['noteType'];
+
+ try {
+ $expressionType->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+
+ break;
+
+
+
+ case 'submitQualifier':
+ if ((isset($_POST['qualifierID'])) && ($_POST['qualifierID'] != '')){
+ $qualifier = new Qualifier(new NamedArguments(array('primaryKey' => $_POST['qualifierID'])));
+ }else{
+ $qualifier = new Qualifier();
+ $qualifier->qualifierID = '';
+ }
+
+ $qualifier->expressionTypeID = $_POST['expressionTypeID'];
+ $qualifier->shortName = $_POST['shortName'];
+
+ try {
+ $qualifier->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+
+ break;
+
+ case 'submitUserData':
+ if ($_POST['orgLoginID']){
+ $user = new User(new NamedArguments(array('primaryKey' => $_POST['orgLoginID'])));
+ }else{
+ $user = new User();
+ }
+
+ $user->loginID = $_POST['loginID'];
+ $user->firstName = $_POST['firstName'];
+ $user->lastName = $_POST['lastName'];
+ $user->privilegeID = $_POST['privilegeID'];
+ $user->emailAddressForTermsTool = $_POST['emailAddressForTermsTool'];
+
+ try {
+ $user->save();
+ } catch (Exception $e) {
+ echo $e->POSTMessage();
+ }
+
+
+ break;
+
+
+
+ case 'deleteUser':
+
+ $loginID = $_GET['loginID'];
+
+ $user = new User(new NamedArguments(array('primaryKey' => $loginID)));
+
+ echo "";
+ try {
+ $user->delete();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ echo " ";
+
+ break;
+
+
+
+
+ case 'deleteExpressionType':
+
+ $expressionTypeID = $_GET['expressionTypeID'];
+
+ $expressionType = new ExpressionType(new NamedArguments(array('primaryKey' => $expressionTypeID)));
+
+ echo "";
+ try {
+ $expressionType->removeExpressionType();
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+ echo " ";
+
+ break;
+
+
+
+ //verify file name for uploaded attachments (4th tab) aren't already being used
+ case 'checkUploadAttachment':
+
+ $uploadAttachment = $_POST['uploadAttachment'];
+ $attachmentFile = new AttachmentFile();
+
+ $exists = 0;
+
+ if (!is_writable("attachments")) {
+ echo 3;
+ break;
+ }
+
+ foreach ($attachmentFile->allAsArray() as $attachmentTestArray) {
+ if (strtoupper($attachmentTestArray['attachmentURL']) == strtoupper($uploadAttachment)) {
+ $exists++;
+ }
+ }
+
+ echo $exists;
+
+ break;
+
+ //perform actual upload for attachments (4th tab)
+ case 'uploadAttachment':
+
+ $documentName = basename($_FILES['myfile']['name']);
+
+ $target_path = "attachments/" . basename($_FILES['myfile']['name']);
+
+ $attachmentFile = new AttachmentFile();
+
+ $exists = 0;
+
+ //loop through existing log attachments to verify that this name isn't already taken
+ foreach ($attachmentFile->allAsArray() as $attachmentTestArray) {
+ if (strtoupper($attachmentTestArray['attachmentURL']) == strtoupper($documentName)) {
+ $exists++;
+ }
+ }
+
+ //if match was not found
+ //note, echoes are not being sent anywhere
+ if ($exists == 0){
+ if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
+ //set to web rwx, everyone else rw
+ //this way we can edit the document directly on the server
+ chmod ($target_path, 0766);
+ echo "success uploading!";
+ }else{
+ header('HTTP/1.1 500 Internal Server Error');
+ echo "" . _("There was a problem saving your file to ") . "$target_path.
";
+ }
+ }
+
+
+ break;
+
+ //add/update for attachment - 4th tab
+ case 'submitAttachment':
+
+ //if attachmentID is sent then this is an update
+ if ((isset($_POST['attachmentID'])) && ($_POST['attachmentID'] <> "")){
+ $attachment = new Attachment(new NamedArguments(array('primaryKey' => $_POST['attachmentID'])));
+ }else{
+ $attachment = new Attachment();
+ $attachment->attachmentID = '';
+ }
+
+ if ((isset($_POST['sentDate'])) && ($_POST['sentDate'] <> "")){
+ $attachment->sentDate = date("Y-m-d", strtotime($_POST['sentDate']));
+ }else{
+ $attachment->sentDate = "";
+ }
+
+ $attachment->attachmentText = $_POST['attachmentText'];
+ $attachment->licenseID = $_POST['licenseID'];
+
+
+ try {
+ $attachment->save();
+ echo $attachment->primaryKey;
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+
+ break;
+
+
+ //adding the attachment file to the db - saves the URL to it only
+ case 'addAttachmentFile':
+
+ $attachmentFile = new AttachmentFile();
+ $attachmentFile->attachmentID = $_GET['attachmentID'];
+ $attachmentFile->attachmentURL = $_GET['attachmentURL'];
+
+ try {
+ $attachmentFile->save();
+ echo $attachmentFile->primaryKey;
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'deleteAttachment':
+
+ $attachment = new Attachment(new NamedArguments(array('primaryKey' => $_GET['attachmentID'])));
+
+ //first delete attachments
+ foreach ($attachment->getAttachmentFiles() as $attachmentFile) {
+ $attachmentFile->delete();
+ }
+
+ try {
+ $attachment->delete();
+ echo _("Attachment successfully deleted");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ case 'deleteAttachmentFile':
+
+ $attachmentFile = new AttachmentFile(new NamedArguments(array('primaryKey' => $_GET['attachmentFileID'])));
+
+ try {
+ $attachmentFile->delete();
+ echo _("Attachment file successfully deleted");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+ case 'deleteNote':
+
+ $note = new DocumentNote(new NamedArguments(array('primaryKey' => $_GET['documentNoteID'])));
+
+ try {
+ $note->delete();
+ echo _("Note successfully deleted");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ //add/update for note
+ case 'submitNote':
+ //if noteID is sent then this is an update
+
+ if ((isset($_POST['documentNoteID'])) && ($_POST['documentNoteID'] <> "")){
+ $note = new DocumentNote(new NamedArguments(array('primaryKey' => $_POST['documentNoteID'])));
+ } else {
+ $note = new DocumentNote(new NamedArguments(array('primaryKeyName'=>'documentNoteID')));
+ $note->documentNoteID = '';
+ $note->createDate = date( 'Y-m-d H:i:s' );
+ }
+
+ $note->body = $_POST['body'];
+ $note->licenseID = $_POST['licenseID'];
+ $note->documentNoteTypeID = $_POST['documentNoteTypeID'];
+ $note->documentID = $_POST['documentID'];
+
+
+ try {
+ $note->save();
+ echo $note->primaryKey;
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+ //updates license status when a new one is selected in dropdown box
+ case 'updateStatus':
+ $licenseID = $_GET['licenseID'];
+ $statusID = $_GET['statusID'];
+ $statusDate = date( 'Y-m-d H:i:s' );
+
+ //update license
+ $license = new License(new NamedArguments(array('primaryKey' => $_GET['licenseID'])));
+ $license->statusID = $statusID;
+ $license->statusDate = $statusDate;
+
+ try {
+ $license->save();
+ echo _("Status has been updated");
+ } catch (Exception $e) {
+ echo $e->getMessage();
+ }
+
+ break;
+
+
+ //used for autocomplete of signer name
+ case 'getSigners':
+
+ if (isset($_GET['searchMode'])) $searchMode = $_GET['searchMode']; else $searchMode='';
+ if (isset($_GET['limit'])) $limit = $_GET['limit']; else $limit = '';
+
+ $q = $_GET['q'];
+ $q = str_replace(" ", "+",$q);
+ $q = str_replace("&", "%",$q);
+
+ $signature = new Signature();
+ $signerArray = $signature->search($q);
+
+ echo implode("\n", $signerArray);
+
+ break;
+
+
+
+
+ //used for autocomplete of provider names (from organizations module)
+ case 'getOrganizations':
+
+ if (isset($_GET['searchMode'])) $searchMode = $_GET['searchMode']; else $searchMode='';
+ if (isset($_GET['limit'])) $limit = $_GET['limit']; else $limit = '';
+
+ $q = $_GET['q'];
+ $q = str_replace(" ", "+",$q);
+ $q = str_replace("&", "%",$q);
+
+ $license = new License();
+ $orgArray = $license->searchOrganizations($q);
+
+ echo implode("\n", $orgArray);
+
+ break;
+
+
+ //used to verify document name isn't already being used as it's added
+ case 'getExistingDocumentName':
+ $shortName = $_GET['shortName'];
+
+ if (isset($_GET['documentID'])) $documentID = $_GET['documentID']; else $documentID='';
+
+
+ $document = new Document();
+ $documentArray = array();
+
+ $exists = 0;
+
+ foreach ($document->allAsArray() as $documentArray) {
+ if ((strtoupper($documentArray['shortName']) == strtoupper($shortName)) && ($documentArray['documentID'] != $documentID)) {
+ $exists++;
+ }
+ }
+
+ echo $exists;
+
+ break;
+
+ //used to verify license name isn't already being used as it's added
+ case 'getExistingLicenseName':
+ $shortName = $_GET['shortName'];
+
+
+ $license = new License();
+ $licenseArray = array();
+
+ $exists = 0;
+
+ foreach ($license->allAsArray() as $licenseArray) {
+ if (strtoupper($licenseArray['shortName']) == strtoupper($shortName)) {
+ $exists = $licenseArray['licenseID'];
+ }
+ }
+
+ echo $exists;
+
+ break;
+
+
+ //used to verify organization name isn't already being used as it's added
+ case 'getExistingOrganizationName':
+ $shortName = $_GET['shortName'];
+
+
+ $license = new License();
+ $licenseArray = array();
+
+ $exists = 0;
+
+ foreach ($license->getOrganizationList() as $orgArray) {
+ if (strtoupper($orgArray['name']) == strtoupper($shortName)) {
+ $exists = $orgArray['organizationID'];
+ }
+ }
+
+ echo $exists;
+
+ break;
+
+ default:
+ echo _("Action ") . $action . _(" not set up!");
+ break;
+
+
+}
+
+
+
?>
\ No newline at end of file
diff --git a/compare.php b/compare.php
index ffd77a6..e8dbb7c 100644
--- a/compare.php
+++ b/compare.php
@@ -1,114 +1,114 @@
-.
-**
-**************************************************************************************************************************
-*/
-
-include_once 'directory.php';
-
-$pageTitle='Expression Comparison';
-include 'templates/header.php';
-
-//set referring page
-$_SESSION['ref_script']=$currentPage;
-
-?>
-
-
-
-
-
-
-
-
+.
+**
+**************************************************************************************************************************
+*/
+
+include_once 'directory.php';
+
+$pageTitle='Expression Comparison';
+include 'templates/header.php';
+
+//set referring page
+$_SESSION['ref_script']=$currentPage;
+
+?>
+
+
+
+
+
+
+
+
diff --git a/css/style.css b/css/style.css
index 1558919..5fb20f4 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,50 +1,65 @@
html {
- height: 100%;
- margin: 0;
- padding: 0
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ -webkit-font-smoothing: antialiased;
}
body {
- height: 100%;
- text-decoration: none;
- color: #2c3c42;
- font-family: "arial";
- font-size: 10pt;
- font-weight: heavy;
- background: #FFFFFF;
- margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
- padding: 0;
- text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
-
+ height: 100%;
+ text-decoration: none;
+ color: #666;
+ font-family: "arial";
+ font-size: 14px;
+ font-weight: 30;
+ background: #e7e8e8;
+ margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
+ padding: 0;
+ text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
+ background: #E7E8E8 url(../images/bg-gray-texture.jpg) repeat top left;
+ -webkit-font-smoothing: antialiased;
+
}
.wrapper {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- margin: 0 auto -2em;
+ /*---
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ ---*/
+ margin: 0 auto -2em;
+ height; 120px;
+ background-image: url("../images/back-header.jpg");
+ background-repeat: repeat-x;
}
.push {
- height: 2em;
+ height: 2em;
}
.footer {
-height: 3em;
-font-size:80%;
-color:red;
-text-align:center;
-width:900px;
-font-style: italic;
-}
+ height: 3em;
+ font-size: 80%;
+ text-align: center;
+ /*-*/width: 100%;
+ font-style: italic;
+ text-align: center;
+}
+a {
+ color: #4d4d4d;
+ font-size:9pt;
+}
-a {color:#3D545D;font-size:9pt;}
a:active {color:#94a9be;}
a:focus {color:#94a9be;outline: none;}
-a.smallLink {font-size:95%; }
+a.smallLink {
+ font-size: 12px;
+ text-decoration: none;
+ color: #1B76A9;
+}
span.smallText{font-size:90%;}
span.redText{color:red;}
@@ -53,7 +68,7 @@ span.span_AttachmentNumber,span.span_NoteNumber{font-size:small;font-weight:norm
.space {
line-height: 1 em;
font-size:2;
-}
+}
img {border:0;}
fieldset {border:0;}
@@ -64,8 +79,15 @@ select option { color: #3D545D; font-family: "arial"; font-size: 8pt; font-weigh
input, select, multiple, textarea{color: #3D545D; font-family: "arial"; font-size: 8pt; font-weight: medium;}
-table.titleTable {width:900px;background-image:url('../images/licensingtitle.gif');background-repeat:no-repeat;height:87px;}
-table.headerTable {width:900px;min-height:40px;background-image:url('../images/header.gif');background-repeat:no-repeat;text-align:left}
+table.headerTable {
+ padding: 1px;
+ width: 1024px;
+ min-height:40px;
+ background: none !important;
+ border-collapse: collapse;
+ text-align:left
+}
+
#div_licenseHead table.headerTable td {
padding: 12px;
}
@@ -73,8 +95,27 @@ table.headerTable {width:900px;min-height:40px;background-image:url('../images/h
.headerText {font-size:125%;font-weight:bold; }
.titleText {font-size:130%;font-weight:bold; }
-span.searchLetter{margin:0px;padding-left:1.5px;padding-right:1.5px;background-color:white;}
-span.searchLetterSelected{margin:0px;padding-left:1.5px;padding-right:1.5px;background-color: #e0dfe3;}
+span.searchLetter {
+ margin: 0px;
+ padding-left: 1px;
+ padding-right: 1px;
+ color: #fff;
+ font-family: Courier, monospace;
+}
+
+
+span.searchLetter a {
+ color: #fff;
+}
+
+span.searchLetterSelected {
+ margin: 0px;
+ padding-left: 1px;
+ padding-right: 1px;
+ background-color: #e0dfe3;
+ color: #fff;
+}
+
span.searchLetterSelected a:focus{color:#3D545D;}
span.searchLetterSelected a:active{color:#3D545D;}
@@ -89,10 +130,10 @@ ul {
*************************/
.container {position: relative; width:800px; height: 30px; }
.left-element { position: absolute; left: 0; width: 400px; margin-top:10px; }
-.right-element {position: absolute; width: 400px; margin-left:400px; margin-top:10px; text-align: left; }
-
-
-
+.right-element {position: absolute; width: 400px; margin-left:400px; margin-top:10px; text-align: left; }
+
+
+
/* Coral Change Module Menu - tabs
*************************/
@@ -112,8 +153,8 @@ ul.tabs li{
display: table-cell;
float: left;
position: relative;
- width:130px;
- height: 19px;
+ width: 166px;
+ height: 40px;
}
ul.tabs a{
@@ -132,12 +173,9 @@ ul.coraldropdown{
position: absolute;
z-index: 999;
top: 100%;
- width: 130px;
+ width: 154px;
display: none;
left: 0;
- border: 1px solid #b8cee4;
- -moz-border-radius: 1px;
- -webkit-border-radius: 1px;
}
ul.coraldropdown ul.coraldropdown{
@@ -152,20 +190,27 @@ ul.coraldropdown li{
position: relative;
list-style: none;
display: block;
- height: 23px;
- border-top: 1px solid #e2ebf4;
+ height: 40px;
+ width: 154px;
+ border-top: 1px solid #5a5a5a;
+}
+
+ul.coraldropdown li:first-child {
+ border-top: solid 1px #6195B2;
}
-ul.coraldropdown li a{
+ul.coraldropdown li a {
display: block;
line-height:23px;
- background-color:#f6f9fb;
+ background-color: #4d4d4d;
background-repeat:no-repeat;
+ padding-left: 0;
}
ul.coraldropdown li a:hover{
-background-color:white;
+ background-color: #1b76a9;
+ cursor: pointer;
}
@@ -173,45 +218,54 @@ background-color:white;
/* More Custom classes...
*************************/
-table.dataTable {
+table.dataTable {
border-width: 0 0 1px 1px;
border-style: solid;
border-color: #e0dfe3;
border-collapse: collapse;
border-spacing: 0;
- max-width:895px;
- width:895px;
+ max-width: 840px;
+ width: 840px;
font-size:90%;
+ margin-top: 11px;
+ margin-bottom: 10px;
}
table.dataTable td {
margin: 0;
- padding: 2px 3px 2px 2px;
+ padding: 6px;
border-width: 1px 1px 0 0;
border-style: solid;
border-color: #e0dfe3;
- background-color: white;
+ background-color: #f3f3f3;
-moz-border-radius: 0px;
+ vertical-align: middle;
}
table.dataTable td.alt {
margin: 0;
- padding: 2px 3px 2px 2px;
+ padding: 6px;
border-width: 1px 1px 0 0;
border-style: solid;
border-color: #e0dfe3;
- background-color: #f5f8fa;
+ background-color: #fff;
-moz-border-radius: 0px;
+ vertical-align: middle;
}
table.dataTable th {
margin: 0;
- padding: 2px 3px 2px 2px;
+ padding: 6px;
border-width: 1px 1px 0 0;
border-style: solid;
- border-color: #e0dfe3;
- background-color: white;
+ border-color: #C9C9C9;
+ background-color: #CAD7E1;
-moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ border-bottom: 1px solid #C9C9C9 !important;
}
table.dataTable td.agreement { background-color:#fdf2e7; }
@@ -221,49 +275,87 @@ table.dataTable td.archiveold { background-color:#f2f1f1; }
table.dataTable tr {vertical-align: top;}
+.sidemenu {
+ background-color: #1b77aa;
+ /*---
+ border-right: 1px solid #d2d2d5;
+ border-top: 1px solid #d2d2d5;
+ ---*/
+ width: 120px;
+ vertical-align: top;
+ text-align: left;
+ font-size: 12px;
+ color: #fff;
+}
+.sidemenu a:link {
+ text-decoration: none;
+ color: #fff;
+}
+.sidemenu a:hover {
+ text-decoration: none;
+ color: #ccc;
+}
-.sidemenu{
- background-color: white;
- border-right: 1px solid #dad5c9;
- border-top: 1px solid #dad5c9;
- width: 99px;
- vertical-align: top;
- text-align: left;
+/*---
+ .sidemenu div {
+ padding: 8px 0px 8px 8px;
+ border-bottom: 1px solid #dad5c9;
+ font-weight: bold;
+ }
+---*/
+
+.sidemenuselected {
+ padding: 10px;
+ border-bottom: 1px solid #1b77aa;
+ /*---
+ border-left: 1px solid #d2d2d5;
+ ---*/
+ background-color: #DAE6EA;
+ width: 150px !important;
}
-.sidemenu div{
- padding: 8px 0px 8px 8px;
- border-bottom: 1px solid #dad5c9;
- font-weight:bold;
+
+.sidemenuselected a {
+ color: #1b77aa !important;
}
-.sidemenuselected{
- padding: 8px 0px 8px 8px;
- border-bottom: 1px solid #dad5c9;
- border-left: 1px solid #dad5c9;
- background-color: white;
+
+.sidemenuunselected {
+ padding: 10px;
+ border-bottom: 1px solid #5295ba;
+ /*---
+ border-left: 1px solid #d2d2d5;
+ background-color: #f2f5f7;
+ background-image:url('../images/tab.gif');
+ background-repeat:no-repeat;
+ min-height: 15px;
+ ---*/
+ width: 150px !important;
}
-.sidemenuunselected{
- padding: 8px 0px 8px 8px;
- border-bottom: 1px solid #dad5c9;
- border-left: 1px solid #dad5c9;
- background-color: #f2f5f7;
+
+.sidemenuselected:last-child {
+ border-bottom: 1px solid #DAE6EA ;
}
+
.mainContent{
- padding: 8px;
- background-color: white;
- text-align:left;
- border-top: 1px solid #dad5c9;
- border-right: 1px solid #dad5c9;
- border-bottom: 1px solid #dad5c9;
- background-color: white;
- vertical-align: top;
-
+ /*---
+ padding: 8px 14px 14px 14px;
+ ---*/
+ background-color: #f9fafb;
+ text-align:left;
+ /*---
+ border-top: 1px solid #d2d2d5;
+ border-right: 1px solid #d2d2d5;
+ border-bottom: 1px solid #d2d2d5;
+ ---*/
+ vertical-align: top;
+ border: solid 1px #e0dfe3;
+ padding: 10px;
}
-table.verticalFormTable {
+table.verticalFormTable {
border-width: 0 0 1px 1px;
border-style: solid;
border-color: #e0dfe3;
@@ -305,16 +397,16 @@ table.verticalFormTable th {
}
-table.verticalFormTable tr {
+table.verticalFormTable tr {
vertical-align:top;
}
-table.verticalFormTable td.agreement {
+table.verticalFormTable td.agreement {
background-color:#fdf2e7;
}
-table.verticalFormTable td.archive {
+table.verticalFormTable td.archive {
background-color:#ebecec;
}
@@ -330,26 +422,33 @@ table.noBorder td { border:0; }
div.thickboxDiv{display:none;}
table.thickboxTable{
- background-image:url('../images/title.gif');
- background-repeat:no-repeat;
- padding:6px;
- text-decoration: none;
- color: #2c3c42;
- font-family: "arial";
- font-size: 8pt;
- font-weight: heavy;
+ /*---
+ background-image:url('../images/title.gif');
+ ---*/
+ background-repeat:no-repeat;
+ padding:6px;
+ text-decoration: none;
+ color: #2c3c42;
+ font-family: "arial";
+ /*---
+ font-size: 8pt;
+ ---*/
+ font-weight: heavy;
+ width: 100% !important;
+ padding-right: 14px !important;
+ background-image: none !important;
}
table.thickboxTable td{
- padding:1px;
- vertical-align:top;
+ padding:1px;
+ vertical-align:top;
}
table.thickboxTable tr{
- vertical-align:top;
-}
-
+ vertical-align:top;
+}
+
.smallText{font-size:small;}
.arrowContainer{text-align:right;}
@@ -375,15 +474,15 @@ a.dp-choose-date {
display: block;
text-indent: -2000px;
overflow: hidden;
- background: url('../images/calendar.gif') no-repeat;
+ background: url('../images/calendar.gif') no-repeat;
}
a.dp-choose-date.dp-disabled {
background-position: 0 -20px;
cursor: default;
}
/* makes the input field shorter once the date picker code
- * has run (to allow space for the calendar icon
- */
+ * has run (to allow space for the calendar icon
+ */
input.dp-applied {
width: 140px;
float: left;
@@ -394,13 +493,14 @@ input.dp-applied {
-table.borderedFormTable {
+table.borderedFormTable {
border-width: 0 0 1px 1px;
border-style: solid;
border-color: #e0dfe3;
border-collapse: collapse;
border-spacing: 0;
font-size:90%;
+ /*-*/margin-top: 20px;
}
table.borderedFormTable td {
@@ -408,8 +508,8 @@ table.borderedFormTable td {
padding:3px;
border-width: 1px 1px 0 0;
border-style: solid;
- border-color: #e0dfe3;
- background-color: white;
+ border-color: #6195B2;
+ background-color: #1B77AA;
-moz-border-radius: 0px;
}
@@ -426,16 +526,24 @@ table.borderedFormTable td.alt {
table.borderedFormTable td.searchRow {
margin:3px;
- padding:3px;
+ padding: 10px;
+ /*---
border-width: 1px 1px 0 0;
border-style: solid;
border-color: #e0dfe3;
background-image:url('../images/searchbar.gif');
background-repeat:no-repeat;
- background-color: white;
+ ---*/
+ background-color: #1B77AA;
-moz-border-radius: 0px;
}
+table.borderedFormTable td.searchRow label b {
+ color: #fff;
+ font-weight: 100;
+ font-size: 11px;
+}
+
table.borderedFormTable th {
margin:3px;
@@ -497,3 +605,1417 @@ table.borderedFormTable tr {vertical-align: top;}
border-top: 1px solid #E5EBEF;
padding-top: 5px;
}
+
+a.newSearch:before {
+ font-family: FontAwesome;
+ content: "\f00e";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+a.newSearch {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.newSearch:hover {
+ color: #ccc;
+}
+
+a#logout:before {
+ font-family: FontAwesome;
+ content: "\f007";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+a#logout {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+ position: relative;
+ top: 4px;
+ left: -4px;
+}
+
+a#logout:hover {
+ color: #ccc;
+}
+
+.titleTable {
+ height: 120px;
+ margin-bottom: 25px;
+}
+
+.titleTable td {
+ height: 40px !important;
+ padding-top: 13px;
+}
+
+.titleTable td a {
+ padding-left: 0px;
+}
+
+.titleTable ul.tabs {
+ padding-right: 15px;
+}
+
+.titleTable tr:first-child td div {
+ padding-right: 20px;
+}
+
+.titleTable tr:first-child td div a:hover {
+ color: #ccc;
+}
+
+#menu-end {
+ display: none;
+}
+
+.noBorder > tbody > tr > td:nth-child(1) {
+ width: 100px !important;
+}
+
+a.newSearch:hover {
+ color: #ccc;
+}
+
+a#showMoreOptions:hover {
+ color: #ccc;
+}
+
+#hideShowOptions {
+ padding: 10px;
+}
+
+#div_searchName {
+ margin-left: 0 !important;
+ margin-top: 6px;
+}
+
+#div_searchISBNOrISSN {
+ margin-left: 0 !important;
+ margin-top: 6px;
+}
+
+#div_searchFund {
+ margin-left: 0 !important;
+ margin-top: 6px;
+}
+
+#div_searchID {
+ margin-left: 0 !important;
+ margin-top: 6px;
+}
+
+#div_searchResourceNote {
+ margin-left: 0 !important;
+ margin-top: 6px;
+}
+
+.searchButton {
+ text-transform: uppercase;
+}
+
+#searchResourceIDButton {
+ text-transform: uppercase;
+}
+
+#searchCreateDateEnd {
+ margin-left: 7px;
+ margin-bottom: 10px;
+}
+
+img[src*="menu-bar.gif"] {
+ display: none;
+}
+
+img[src*="arrowup.png"] {
+ padding-left: 6px;
+}
+
+.noBorderTable td {
+ vertical-align: middle !important;
+}
+
+/*--- Table Column Widths ---*/
+
+table.dataTable th:nth-of-type(1) {
+ min-width: 240px;
+}
+
+table.dataTable th:nth-of-type(2) {
+ min-width: 100px;
+}
+
+table.dataTable th:nth-of-type(3) {
+ min-width: 150px;
+}
+
+table.dataTable th:nth-of-type(4) {
+ min-width: 100px;
+}
+
+#div_searchResults > span:nth-child(2) {
+ padding-right: 20px;
+}
+
+a.setPage:hover {
+ text-decoration: none;
+ color: #ccc;
+}
+
+.noBorderTable tr td {
+ background: none;
+}
+
+/*--- Links with Icons ---*/
+
+a.newSearch:before {
+ font-family: FontAwesome;
+ content: "\f00e";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+a.newSearch {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.newSearch:hover {
+ color: #ccc;
+}
+
+a#logout:before {
+ font-family: FontAwesome;
+ content: "\f007";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+a#logout {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+ position: relative;
+ top: 4px;
+ left: -4px;
+}
+
+a#logout:hover {
+ color: #ccc;
+}
+
+a#showMoreOptions:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+a#showMoreOptions {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a#showMoreOptions:hover {
+ color: #ccc;
+}
+
+#print-view a.helpfulLink:before {
+ font-family: FontAwesome;
+ content: "\f02f";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+#print-view a {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+#print-view a:hover {
+ color: #ccc;
+}
+
+td.searchRow > b {
+ color: #fff;
+ font-weight: normal;
+ position: relative;
+ top: 6px;
+}
+
+td.searchRow input,
+td.searchRow select,
+td.searchRow multiple,
+td.searchRow textarea {
+ margin-top: 5px;
+}
+
+#div_additionalSearch > table > tbody > tr:nth-child(3) > td a.dp-choose-date {
+ margin-top: 5px;
+}
+
+#span_resourceName {
+ padding: 25px 20px;
+ padding-top: 0;
+}
+
+.span_AttachmentNumber {
+ color: #FFF654;
+ margin-left: 0px !important;
+}
+
+.sidemenuselected .span_AttachmentNumber {
+ color: #666672;
+}
+
+.sidemenuunselected .span_AttachmentNumber {
+ color: #FFF654;
+ margin-left: 3px !important;
+}
+
+.resource_tab_content {
+ width: 630px !important;
+}
+
+.sidemenu {
+ width: 170px;
+ float: left;
+ margin-right: 8px;
+}
+
+.linedFormTable {
+ width: 430px !important;
+}
+
+.rightPanel {
+ text-align: left;
+}
+
+div.rightPanelLink {
+ margin: 0;
+ font-size: 12px;
+}
+
+div.rightPanelHeader {
+ color: #1B76A9;
+ margin-bottom: 5px;
+}
+
+#title-search {
+ padding: 20px;
+ padding-top: 0;
+ padding-bottom: 10px;
+ margin-bottom: 10px;
+}
+
+input[type="button"]:hover {
+ cursor: pointer;
+}
+
+table.surroundBox table.noBorder {
+ margin: 15px !important;
+}
+
+#resourcePromptForm table.noBorderTable input {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+}
+
+#pagination-div {
+ vertical-align: bottom;
+ text-align: left;
+ clear:both;
+ margin-top: 12px;
+}
+
+td#org-title {
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+}
+
+#organizationForm table.thickboxTable table.noBorderTable input {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+}
+
+/*--- Organizations Side Menu Icons ---*/
+
+a.showOrganization:before {
+ font-family: FontAwesome;
+ content: "\f1ad";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showOrganization {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showOrganization:hover {
+ color: #ccc;
+}
+
+#div_organization .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f1ad";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showAliases:before {
+ font-family: FontAwesome;
+ content: "\f061";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showAliases {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showAliases:hover {
+ color: #ccc;
+}
+
+#div_aliases .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f061";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showContacts:before {
+ font-family: FontAwesome;
+ content: "\f234";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showContacts {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showContacts:hover {
+ color: #ccc;
+}
+
+#div_contacts .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f0c6";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showAccount:before {
+ font-family: FontAwesome;
+ content: "\f0c0";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showAccount {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showAccount:hover {
+ color: #ccc;
+}
+
+#div_account .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f0c0";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showIssues:before {
+ font-family: FontAwesome;
+ content: "\f071";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showIssues {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showIssues:hover {
+ color: #ccc;
+}
+
+#div_issues .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f071";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showLicenses:before {
+ font-family: FontAwesome;
+ content: "\f044";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showLicenses {
+ text-decoration: none;
+ text-transform: capitalize;
+ font-size: 12px;
+}
+
+a.showLicenses:hover {
+ color: #ccc;
+}
+
+#div_licenses .sidemenuselected .link:before {
+ font-family: FontAwesome;
+ content: "\f044";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+div#div_organizationDetails i {
+ padding-left: 10px;
+}
+
+#print-view {
+ width: 220px;
+ float: right;
+ padding: 20px;
+ background: #fff;
+}
+
+#search_box .fa-search:before {
+ position: relative;
+ top: -18px;
+ left: -198px;
+ font-size: 11px;
+}
+
+#span_orgName {
+ padding: 25px 20px;
+ padding-top: 0;
+}
+
+#print-view h4 {
+ margin-top: 20px !important;
+ margin-bottom: 5px;
+ color: #1B76A9;
+}
+
+#org-name a {
+ text-decoration: underline;
+}
+
+#print-view a.helpfulLink {
+ text-decoration: underline !important;
+}
+
+a.helpfulLink {
+ text-decoration: underline !important;
+}
+
+/*---
+ #org-name a:before {
+ font-family: FontAwesome;
+ content: "\f0a9";
+ font-size: 11px;
+ margin-right: 5px;
+ }
+---*/
+
+.titleTable img {
+ float: left;
+}
+
+.titleTable ul.tabs ul.coraldropdown img {
+ float: none;
+}
+
+/*--- Add Font Awesome Icon to Elements on Admin Page ---*/
+
+/*---
+ #span_newUser:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+ }
+
+ #span_newDocumentNoteType:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+ }
+
+ #span_newDocumentType:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+ }
+
+ #span_newConsortium:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+ }
+---*/
+
+/*--- Capitalize Add New Links ---*/
+
+#span_newUser {
+ text-transform: capitalize;
+}
+
+#span_newDocumentNoteType {
+ text-transform: capitalize;
+}
+
+#span_newDocumentType {
+ text-transform: capitalize;
+}
+
+#span_newConsortium {
+ text-transform: capitalize;
+}
+
+/*--- Design Table on Admin Page ---*/
+
+#div_User .dataTable th {
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: #C9C9C9;
+ background-color: #CAD7E1;
+ -moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ border-bottom: 1px solid #C9C9C9 !important;
+}
+
+#div_User .dataTable td {
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: #C9C9C9;
+ -moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ border-bottom: 1px solid #C9C9C9 !important;
+}
+
+#div_DocumentType .dataTable td {
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: #C9C9C9;
+ -moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ border-bottom: 1px solid #C9C9C9 !important;
+}
+
+#div_DocumentNoteType .dataTable td {
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: #C9C9C9;
+ -moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ border-bottom: 1px solid #C9C9C9 !important;
+}
+
+#div_Consortium .dataTable td {
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 1px 0 0;
+ border-style: solid;
+ border-color: #C9C9C9;
+ -moz-border-radius: 0px;
+ vertical-align: middle;
+ font-weight: 300;
+ color: #000;
+ border-bottom: 1px solid #C9C9C9 !important;
+}
+
+/*--- Align Text When No Documents Fit the Query ---*/
+
+div#searchResults > i {
+ font-size: 18px;
+ position: relative;
+ top: 20px;
+ left: 20px;
+}
+
+/*--- New Document Modal Window ---*/
+
+#div_licenseForm .thickboxTable #headerText {
+ display: block;
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+}
+
+#div_licenseForm .headerText {
+ font-size: 125%;
+ font-weight: bold;
+ padding-left: 10px;
+}
+
+div#TB_window {
+ width: 400px !important;
+}
+
+#TB_ajaxContent.TB_modal {
+ height: auto !important;
+ width: 100% !important;
+ padding-bottom: 10px !important;
+}
+
+#div_licenseForm .thickboxTable input, .thickboxTable textarea, .thickboxTable select {
+ margin-bottom: 10px;
+}
+
+#div_licenseForm span#span_newDocumentType {
+ padding-bottom: 10px;
+ display: block;
+}
+
+#div_licenseForm span#span_newConsortium {
+ padding-bottom: 10px;
+ display: block;
+}
+
+#div_licenseForm .thickboxTable tr:nth-child(n+2) td {
+ padding-left: 10px;
+}
+
+/*--- Modal Window Buttons ---*/
+
+/*#div_licenseForm input#submitLicense {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ margin-left: 15px;
+}
+
+#div_licenseForm input#submitLicense:hover {
+ cursor: pointer;
+}
+
+#div_licenseForm input[value=cancel] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ margin-left: 5px;
+ float: left;
+}
+
+#div_licenseForm input[value=cancel]:hover {
+ cursor: pointer;
+}*/
+
+#div_licenseForm #span_newNoteType:before {
+ font-family: FontAwesome;
+ content: "\f055";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+#div_licenseForm input#archiveInd {
+ position: relative;
+ left: -215px;
+ top: 1px;
+}
+
+/*--- Add New User Modal Window ---*/
+
+#div_updateForm .thickboxTable .headerText {
+ display: block;
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ position: relative;
+ top: -15px;
+}
+
+#div_updateForm .headerText {
+ font-size: 125%;
+ font-weight: bold;
+}
+
+#div_updateForm .thickboxTable input, .thickboxTable textarea, .thickboxTable select {
+ margin-bottom: 10px;
+}
+
+#div_updateForm .thickboxTable tr:nth-child(n+2) td {
+ padding-left: 10px;
+}
+
+/*#div_updateForm input[value=Add\ New] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ float: left;
+}
+
+#div_updateForm input[value=Add\ New]:hover {
+ cursor: pointer;
+}
+
+
+#div_updateForm input[value=cancel] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ float: left;
+ position: relative;
+ left: 8px;
+}
+
+#div_updateForm input[value=cancel]:hover {
+ cursor: pointer;
+}*/
+
+.display-title {
+ display: block;
+ margin-bottom: -4px;
+}
+
+/*--- Side Menu Icons, Etc. ---*/
+
+.span_AttachmentNumber {
+ color: #FFF654;
+ margin-left: 0px !important;
+ font-size: 85% !important;
+}
+
+a.showAttachments:before {
+ font-family: FontAwesome;
+ content: "\f0c6";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+a.showDocuments:before {
+ font-family: FontAwesome;
+ content: "\f15b";
+ font-size: 11px;
+ margin-right: 5px;
+}
+
+/*-----*/
+
+#note, #uploadDocument {
+ text-transform: capitalize;
+}
+
+/*--- New Note Modal ---*/
+
+#noteForm #span_newNoteType {
+ display: block;
+ text-transform: capitalize;
+}
+
+#noteForm .thickboxTable .headerText {
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ display: block;
+ margin-bottom: -18px;
+}
+
+/*#noteForm input#submitNote {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+}
+
+#noteForm input#submitNote:hover {
+ cursor: pointer;
+}
+
+#noteForm input[value=cancel] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ margin-left: 5px;
+ float: left;
+}
+
+#noteForm input[value=cancel]:hover {
+ cursor: pointer;
+}*/
+
+/*--- Document Upload Modal ---*/
+
+#uploadDoc .thickboxTable .headerText {
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ display: block;
+ margin-bottom: -18px;
+}
+
+#uploadDoc #span_newDocumentType {
+ text-transform: capitalize;
+ margin-bottom: -10px;
+ display: block;
+}
+
+#uploadDoc table.thickboxTable td {
+ padding-bottom: 5px;
+}
+
+#uploadDoc table.thickboxTable input[type=checkbox] {
+ position: relative;
+ top: 2px;
+}
+
+/*#uploadDoc input[value=cancel] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ float: left;
+ position: relative;
+ left: -8px;
+}
+
+#uploadDoc input[value=cancel]:hover {
+ cursor: pointer;
+}
+
+#uploadDoc input#submitDocument {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ position: relative;
+ left: -15px;
+ float: left;
+}
+
+#uploadDoc input#submitDocument:hover {
+ cursor: pointer;
+}*/
+
+#uploadDoc #div_uploadFile a {
+ text-transform: capitalize;
+}
+
+/*--- Add New Document Modal ---*/
+
+#attachmentForm .thickboxTable .headerText {
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px 0 0 0;
+ border-style: solid;
+ border-color: #e6e5e9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ display: block;
+ margin-bottom: -18px;
+}
+
+#attachmentForm #span_newDocumentType {
+ text-transform: capitalize;
+ margin-bottom: -10px;
+ display: block;
+}
+
+#attachmentForm table.thickboxTable td {
+ padding-bottom: 5px;
+}
+
+/*#attachmentForm input[value=cancel] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ float: left;
+ margin-left: 5px;
+}
+
+#attachmentForm input[value=cancel]:hover {
+ cursor: pointer;
+}
+
+#attachmentForm input#submitAttachment {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+}
+
+#attachmentForm input#submitAttachment:hover {
+ cursor: pointer;
+}*/
+
+/*--- Control Documents Table ---*/
+
+#div_documents .verticalFormTable th {
+ width: auto !important;
+ margin: 0;
+ padding: 6px;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #c9c9c9;
+ background-color: #cad7e1;
+ -moz-border-radius: 0px;
+ background: rgba(200, 200, 200, 0.5) url(../images/bg-diagonal-stripes.png) repeat top left !important;
+ margin-bottom: -18px;
+}
+
+#div_documents .verticalFormTable td {
+ background-color: initial !important;
+}
+
+/*--- Update User Modal Window ---*/
+
+/*#div_updateForm input[value=Update] {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ float: left;
+}
+
+#div_updateForm input[value=Update]:hover {
+ cursor: pointer;
+}*/
+
+/*--- Update User Modal Window (Edit Link) ---*/
+
+/*#div_updateForm a#updateButton {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ text-decoration: none;
+}
+
+#div_updateForm a#updateButton:hover {
+ cursor: pointer;
+}
+
+#div_updateForm a#closeButton {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ text-decoration: none;
+ position: relative;
+ top: -5px;
+ left: -14px;
+}
+
+#div_updateForm a#closeButton:hover {
+ cursor: pointer;
+}*/
+
+/*--- Capitalize Links ---*/
+
+div#div_licenseHead a {
+ text-transform: capitalize;
+}
+
+div#div_displayDocuments a {
+ text-transform: capitalize;
+}
+
+div#div_displayAttachments a {
+ text-transform: capitalize;
+}
+
+#div_User a {
+ text-transform: capitalize;
+}
+
+#div_DocumentType a {
+ text-transform: capitalize;
+}
+
+#div_DocumentNoteType a {
+ text-transform: capitalize;
+}
+
+#div_Consortium a {
+ text-transform: capitalize;
+}
+
+#sidebar-link-bottom {
+ padding: 10px;
+ float: left;
+}
+
+/*--- Left Align Table Header Text ---*/
+
+table.dataTable th {
+ text-align: left;
+}
+
+/*--- Help Menu Link ---*//
+
+span#divider {
+ font-size: 12px;
+ position: relative;
+ top: 4px;
+}
+
+a#help {
+ text-decoration: none;
+ font-size: 12px;
+ position: relative;
+ top: 4px;
+ margin-left: 5px;
+}
+
+a#help:hover {
+ color: #ccc;
+}
+
+a#help:before {
+ font-family: FontAwesome;
+ content: "\f059";
+ font-size: 11px;
+ margin-right: 3px;
+}
+
+td#setLanguage {
+ vertical-align:middle;
+}
+
+/*--- Adjustments for Language Dropdown ---*/
+
+select#lang {
+ border: none;
+ margin-left: 6px;
+ background-color: #fff;
+ position: relative;
+ top: 3px;
+ font-size: 12px;
+}
+
+/*--- Consistentcy for Form Buttons ---*/
+
+.submit-button,
+.cancel-button,
+.save-button
+ {
+ color: #FFFFFF;
+ font-family: "Arial", sans-serif;
+ font-size: 11px;
+ font-weight: normal;
+ background: #1b76a9;
+ border: none;
+ padding: 5px 10px;
+ text-transform: capitalize;
+ margin-left: 8px;
+ min-width: 60px;
+ margin-top: 10px;
+}
+
+.submit-button:hover,
+.cancel-button:hover,
+.save-button {
+ cursor: pointer;
+}
+
+.submit-button {
+ margin-left: 0;
+}
+
+a.submit-button,
+a.cancel-button,
+a.save-button
+ {
+ color: #FFFFFF !important;
+ text-decoration: none !important;
+}
+
+/*--- Adjust Attachments Table ---*/
+
+#div_displayAttachments td.mainContent {
+ width: 100%;
+}
+
+span#divider {
+ position: relative;
+ top: 3px;
+}
+
+/*--- Newly Designed Main Menu ---*/
+
+.main-menu-link {
+ float: left;
+ padding: 13px 10px 12px;
+ border-left: solid 1px #5295BA;
+}
+
+#main-menu-titles a:first-child .main-menu-link {
+ border: none;
+}
+
+.main-menu-link:hover {
+ background: #4d4d4d;
+}
+
+.main-menu-link.active {
+ background: #3999c2;
+}
+
+.main-menu-link span {
+ color: #fff;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: 600;
+}
+
+.main-menu-link img {
+ margin-right: 6px;
+}
+
+/*--- Change Module Menu ---*/
+
+#change-mod-menu {
+ padding: 13px 0 12px;
+ color: #fff;
+ height: initial;
+ text-align: center;
+}
+
+#change-mod-menu img {
+ position: absolute;
+ left: 10px;
+ top: 10px;
+}
+
+#change-mod-menu .fa-chevron-down {
+ font-size: 10px;
+ position: relative;
+ top: -2px;
+ margin-left: 8px;
+}
+
+li.change-mod-item {
+ background: #4d4d4d;
+ height: initial !important;
+ text-align: left;
+}
+
+li.change-mod-item a {
+ display: block;
+ color: #fff;
+ font-size: 14px;
+ padding: 10px !important;
+ margin: 0;
+ line-height: 18px !important;
+ position: relative !important;
+ padding-left: 35px !important;
+}
+
+.change-mod-item a span {
+ position: relative;
+ top: 1px;
+}
+
+#change-mod-menu span {
+ font-size: 13px;
+ font-weight: 600;
+}
+
+li.change-mod-item:hover {
+ background-color: none !important;
+}
+
+/*--- New Top Bar Titles ---*/
+
+#main-title {
+ font-size: 36px;
+ color: #6098A7;
+ font-family: "Open Sans";
+ font-weight: 100;
+ float: left;
+}
+
+#main-title span {
+ float: left;
+}
+
+#menu-login {
+ float: right;
+ text-align: right;
+}
+
+#main-title-text {
+ margin-left: 15px;
+}
+
+#powered-by-text img {
+ vertical-align: text-bottom;
+ margin-left: 7px;
+ float: none;
+}
+
+#powered-by-text {
+ color: #687FA1;
+ margin-top: 20px;
+ font-size: 14px;
+ margin-left: 10px;
+}
+
+#main-title > img {
+ margin-left: 15px;
+}
+
+table.titleTable {
+ border-collapse: collapse;
+}
+
+/*--- Main Table ---*/
+
+#main-table {
+ margin: 0 30px;
+}
+
+/*--- Allow Browser to Scroll When Modal Appears ---*/
+
+#TB_window {
+ position: absolute !important;
+ margin-top: 100px !important;
+ top: 0 !important;
+}
\ No newline at end of file
diff --git a/css/thickbox.css b/css/thickbox.css
index a491b9e..5c8f84a 100644
--- a/css/thickbox.css
+++ b/css/thickbox.css
@@ -1,7 +1,11 @@
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
-*{padding: 0; margin: 0;}
+* {
+ padding: 0;
+ margin: 0;
+ border-spacing: 0;
+}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
@@ -57,6 +61,7 @@
text-align:left;
top:50%;
left:50%;
+ width: auto !important;
}
* html #TB_window { /* ie6 hack */
@@ -109,10 +114,12 @@ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = d
overflow:auto;
text-align:left;
line-height:1.4em;
+ height: auto !important;
+ width: auto !important;
}
#TB_ajaxContent.TB_modal{
- padding:15px;
+ padding: 4px;
}
#TB_ajaxContent p{
diff --git a/directory.php b/directory.php
index abc2e0b..250f5e6 100644
--- a/directory.php
+++ b/directory.php
@@ -1,79 +1,95 @@
-.
-**
-**************************************************************************************************************************
-*/
-
-// Useful directory constants, ending with |/|.
-define('ADMIN_DIR', dirname(__FILE__) . '/admin/');
-define('BASE_DIR', dirname(__FILE__) . '/');
-define('CLASSES_DIR', ADMIN_DIR . 'classes/');
-
-// Automatically load undefined classes from subdirectories of |CLASSES_DIR|.
-function __autoload( $className ) {
- if (file_exists(CLASSES_DIR) && is_readable(CLASSES_DIR) && is_dir(CLASSES_DIR)) {
- $directory = dir(CLASSES_DIR);
-
- // Iterate over the files and directories in |CLASSES_DIR|.
- while (false !== ($entry = $directory->read())) {
- $path = CLASSES_DIR . $entry;
-
- // Look only at subdirectories
- if (is_dir($path)) {
- $filename = $path . '/' . $className . '.php';
- if (file_exists($filename) && is_readable($filename) && is_file($filename)) {
- // Could probably safely use |require()| here, since |__autoload()| is only called when a class isn't loaded.
- require_once($filename);
- }
- }
- }
- $directory->close();
- }
-}
-
-// Add lcfirst() for PHP < 5.3.0
-if (false === function_exists('lcfirst')) {
- function lcfirst($string) {
- return strtolower(substr($string, 0, 1)) . substr($string, 1);
- }
-}
-
-
-//fix default timezone for PHP > 5.3
-if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get")){
- @date_default_timezone_set(@date_default_timezone_get());
-}
-
-
-function format_date($mysqlDate) {
-
- //see http://php.net/manual/en/function.date.php for options
-
- //there is a dependence on strtotime recognizing date format for date inputs
- //thus, european format (d-m-Y) must use dashes rather than slashes
-
- //upper case Y = four digit year
- //lower case y = two digit year
- //make sure digit years matches for both directory.php and common.js
-
- //SUGGESTED: "m/d/Y" or "d-m-Y"
-
- return date("m/d/Y", strtotime($mysqlDate));
-
-}
-
-
-
+.
+**
+**************************************************************************************************************************
+*/
+
+// Useful directory constants, ending with |/|.
+define('ADMIN_DIR', dirname(__FILE__) . '/admin/');
+define('BASE_DIR', dirname(__FILE__) . '/');
+define('CLASSES_DIR', ADMIN_DIR . 'classes/');
+
+// Automatically load undefined classes from subdirectories of |CLASSES_DIR|.
+function __autoload( $className ) {
+ if (file_exists(CLASSES_DIR) && is_readable(CLASSES_DIR) && is_dir(CLASSES_DIR)) {
+ $directory = dir(CLASSES_DIR);
+
+ // Iterate over the files and directories in |CLASSES_DIR|.
+ while (false !== ($entry = $directory->read())) {
+ $path = CLASSES_DIR . $entry;
+
+ // Look only at subdirectories
+ if (is_dir($path)) {
+ $filename = $path . '/' . $className . '.php';
+ if (file_exists($filename) && is_readable($filename) && is_file($filename)) {
+ // Could probably safely use |require()| here, since |__autoload()| is only called when a class isn't loaded.
+ require_once($filename);
+ }
+ }
+ }
+ $directory->close();
+ }
+}
+
+// Add lcfirst() for PHP < 5.3.0
+if (false === function_exists('lcfirst')) {
+ function lcfirst($string) {
+ return strtolower(substr($string, 0, 1)) . substr($string, 1);
+ }
+}
+
+
+//fix default timezone for PHP > 5.3
+if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get")){
+ @date_default_timezone_set(@date_default_timezone_get());
+}
+
+
+function format_date($mysqlDate) {
+
+ //see http://php.net/manual/en/function.date.php for options
+
+ //there is a dependence on strtotime recognizing date format for date inputs
+ //thus, european format (d-m-Y) must use dashes rather than slashes
+
+ //upper case Y = four digit year
+ //lower case y = two digit year
+ //make sure digit years matches for both directory.php and common.js
+
+ //SUGGESTED: "m/d/Y" or "d-m-Y"
+
+ return date("m/d/Y", strtotime($mysqlDate));
+
+}
+
+// Include file of language codes
+include_once 'LangCodes.php';
+$lang_name = new LangCodes();
+
+// Verify the language of the browser
+global $http_lang;
+if(isset($_COOKIE["lang"])){
+ $http_lang = $_COOKIE["lang"];
+}else{
+ $codeL = str_replace("-","_",substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,5));
+ $http_lang = $lang_name->getLanguage($codeL);
+ if($http_lang == "")
+ $http_lang = "en_US";
+}
+putenv("LC_ALL=$http_lang");
+setlocale(LC_ALL, $http_lang.".utf8");
+bindtextdomain("messages", dirname(__FILE__) . "/locale");
+textdomain("messages");
?>
\ No newline at end of file
diff --git a/images/angelfishfavicon.ico b/images/angelfishfavicon.ico
deleted file mode 100644
index 74779e7..0000000
Binary files a/images/angelfishfavicon.ico and /dev/null differ
diff --git a/images/arrowdown.png b/images/arrowdown.png
new file mode 100644
index 0000000..6b3a006
Binary files /dev/null and b/images/arrowdown.png differ
diff --git a/images/arrowup.png b/images/arrowup.png
new file mode 100644
index 0000000..2106ace
Binary files /dev/null and b/images/arrowup.png differ
diff --git a/images/back-header.jpg b/images/back-header.jpg
new file mode 100644
index 0000000..4ca4142
Binary files /dev/null and b/images/back-header.jpg differ
diff --git a/images/bg-diagonal-stripes.png b/images/bg-diagonal-stripes.png
new file mode 100644
index 0000000..e94c385
Binary files /dev/null and b/images/bg-diagonal-stripes.png differ
diff --git a/images/bg-gray-texture.jpg b/images/bg-gray-texture.jpg
new file mode 100644
index 0000000..ef0afea
Binary files /dev/null and b/images/bg-gray-texture.jpg differ
diff --git a/images/change/coral-cancellation.png b/images/change/coral-cancellation.png
new file mode 100644
index 0000000..4ac5e63
Binary files /dev/null and b/images/change/coral-cancellation.png differ
diff --git a/images/change/coral-change.gif b/images/change/coral-change.gif
index 07d94a1..67ba1b9 100644
Binary files a/images/change/coral-change.gif and b/images/change/coral-change.gif differ
diff --git a/images/change/coral-licensing.png b/images/change/coral-licensing.png
new file mode 100644
index 0000000..378f529
Binary files /dev/null and b/images/change/coral-licensing.png differ
diff --git a/images/change/coral-main.png b/images/change/coral-main.png
new file mode 100644
index 0000000..5b4548e
Binary files /dev/null and b/images/change/coral-main.png differ
diff --git a/images/change/coral-organizations.png b/images/change/coral-organizations.png
new file mode 100644
index 0000000..2e3c830
Binary files /dev/null and b/images/change/coral-organizations.png differ
diff --git a/images/change/coral-resources.png b/images/change/coral-resources.png
new file mode 100644
index 0000000..efa3421
Binary files /dev/null and b/images/change/coral-resources.png differ
diff --git a/images/change/coral-usage.png b/images/change/coral-usage.png
new file mode 100644
index 0000000..a17c093
Binary files /dev/null and b/images/change/coral-usage.png differ
diff --git a/images/change/icon-mod-cancellation.png b/images/change/icon-mod-cancellation.png
new file mode 100644
index 0000000..bcab23a
Binary files /dev/null and b/images/change/icon-mod-cancellation.png differ
diff --git a/images/change/icon-mod-licensing.png b/images/change/icon-mod-licensing.png
new file mode 100644
index 0000000..00792ca
Binary files /dev/null and b/images/change/icon-mod-licensing.png differ
diff --git a/images/change/icon-mod-main.png b/images/change/icon-mod-main.png
new file mode 100644
index 0000000..3f8eae1
Binary files /dev/null and b/images/change/icon-mod-main.png differ
diff --git a/images/change/icon-mod-organizations.png b/images/change/icon-mod-organizations.png
new file mode 100644
index 0000000..6dc54bc
Binary files /dev/null and b/images/change/icon-mod-organizations.png differ
diff --git a/images/change/icon-mod-resources.png b/images/change/icon-mod-resources.png
new file mode 100644
index 0000000..a01eb84
Binary files /dev/null and b/images/change/icon-mod-resources.png differ
diff --git a/images/change/icon-mod-usage.png b/images/change/icon-mod-usage.png
new file mode 100644
index 0000000..dbb3eae
Binary files /dev/null and b/images/change/icon-mod-usage.png differ
diff --git a/images/favicon.ico b/images/favicon.ico
new file mode 100644
index 0000000..609cd4a
Binary files /dev/null and b/images/favicon.ico differ
diff --git a/images/favicon.png b/images/favicon.png
deleted file mode 100644
index 4a0b793..0000000
Binary files a/images/favicon.png and /dev/null differ
diff --git a/images/logo-coral.jpg b/images/logo-coral.jpg
new file mode 100644
index 0000000..26dc1dd
Binary files /dev/null and b/images/logo-coral.jpg differ
diff --git a/images/management-title.jpg b/images/management-title.jpg
new file mode 100644
index 0000000..754a775
Binary files /dev/null and b/images/management-title.jpg differ
diff --git a/images/menu/icon-admin.png b/images/menu/icon-admin.png
new file mode 100644
index 0000000..4c64de7
Binary files /dev/null and b/images/menu/icon-admin.png differ
diff --git a/images/menu/icon-home.png b/images/menu/icon-home.png
new file mode 100644
index 0000000..813cb0c
Binary files /dev/null and b/images/menu/icon-home.png differ
diff --git a/images/menu/icon-new-doc.png b/images/menu/icon-new-doc.png
new file mode 100644
index 0000000..1063320
Binary files /dev/null and b/images/menu/icon-new-doc.png differ
diff --git a/images/menu/menu-admin-on.gif b/images/menu/menu-admin-on.gif
deleted file mode 100644
index 96bceca..0000000
Binary files a/images/menu/menu-admin-on.gif and /dev/null differ
diff --git a/images/menu/menu-admin-over.gif b/images/menu/menu-admin-over.gif
deleted file mode 100644
index b423145..0000000
Binary files a/images/menu/menu-admin-over.gif and /dev/null differ
diff --git a/images/menu/menu-admin.gif b/images/menu/menu-admin.gif
deleted file mode 100644
index b5e71a2..0000000
Binary files a/images/menu/menu-admin.gif and /dev/null differ
diff --git a/images/menu/menu-home-on.gif b/images/menu/menu-home-on.gif
deleted file mode 100644
index fbfafdc..0000000
Binary files a/images/menu/menu-home-on.gif and /dev/null differ
diff --git a/images/menu/menu-home-over.gif b/images/menu/menu-home-over.gif
deleted file mode 100644
index 8b1f133..0000000
Binary files a/images/menu/menu-home-over.gif and /dev/null differ
diff --git a/images/menu/menu-home.gif b/images/menu/menu-home.gif
deleted file mode 100644
index 2478b84..0000000
Binary files a/images/menu/menu-home.gif and /dev/null differ
diff --git a/images/menu/menu-newlicense-over.gif b/images/menu/menu-newlicense-over.gif
deleted file mode 100644
index e7d96d5..0000000
Binary files a/images/menu/menu-newlicense-over.gif and /dev/null differ
diff --git a/images/menu/menu-newlicense.gif b/images/menu/menu-newlicense.gif
deleted file mode 100644
index e1c13fe..0000000
Binary files a/images/menu/menu-newlicense.gif and /dev/null differ
diff --git a/images/starfishfavicon.ico b/images/starfishfavicon.ico
deleted file mode 100644
index 8b4599c..0000000
Binary files a/images/starfishfavicon.ico and /dev/null differ
diff --git a/images/title-icon-management.png b/images/title-icon-management.png
new file mode 100644
index 0000000..97bab0b
Binary files /dev/null and b/images/title-icon-management.png differ
diff --git a/in_progress.php b/in_progress.php
index 6a932a2..9e67bc8 100644
--- a/in_progress.php
+++ b/in_progress.php
@@ -1,48 +1,48 @@
-.
-**
-**************************************************************************************************************************
-*/
-
-
-include_once 'directory.php';
-
-$pageTitle='Home';
-include 'templates/header.php';
-
-//set referring page
-$_SESSION['ref_script']=$currentPage;
-
-?>
-
-
-
-
-
-
+.
+**
+**************************************************************************************************************************
+*/
+
+
+include_once 'directory.php';
+
+$pageTitle='Home';
+include 'templates/header.php';
+
+//set referring page
+$_SESSION['ref_script']=$currentPage;
+
+?>
+
+
+
+
+
+
diff --git a/index.php b/index.php
index d3e4792..7f7e584 100644
--- a/index.php
+++ b/index.php
@@ -1,292 +1,292 @@
-.
-**
-**************************************************************************************************************************
-*/
-
-
-include_once 'directory.php';
-
-$pageTitle='Home';
-include 'templates/header.php';
-
-//used for creating a "sticky form" for back buttons
-//except we don't want it to retain if they press the 'index' button
-//check what referring script is
-
-if (isset($_SESSION['ref_script']) && ($_SESSION['ref_script'] != "license.php")){
- $reset='Y';
-}else{
- $reset='N';
-}
-
-$_SESSION['ref_script']=$currentPage;
-
-
-//below includes search options in left pane only - the results are refreshed through ajax and placed in div searchResults
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+.
+**
+**************************************************************************************************************************
+*/
+
+
+include_once 'directory.php';
+
+$pageTitle=_('Home');
+include 'templates/header.php';
+
+//used for creating a "sticky form" for back buttons
+//except we don't want it to retain if they press the 'index' button
+//check what referring script is
+
+if (isset($_SESSION['ref_script']) && ($_SESSION['ref_script'] != "license.php")){
+ $reset='Y';
+}else{
+ $reset='N';
+}
+
+$_SESSION['ref_script']=$currentPage;
+
+
+//below includes search options in left pane only - the results are refreshed through ajax and placed in div searchResults
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/js/common.js b/js/common.js
index 68bab8c..802a3e3 100644
--- a/js/common.js
+++ b/js/common.js
@@ -18,16 +18,16 @@
//image preloader
(function($) {
- var cache = [];
- // Arguments are image paths relative to the current page.
- $.preLoadImages = function() {
- var args_len = arguments.length;
- for (var i = args_len; i--;) {
- var cacheImage = document.createElement('img');
- cacheImage.src = arguments[i];
- cache.push(cacheImage);
- }
- }
+ var cache = [];
+ // Arguments are image paths relative to the current page.
+ $.preLoadImages = function() {
+ var args_len = arguments.length;
+ for (var i = args_len; i--;) {
+ var cacheImage = document.createElement('img');
+ cacheImage.src = arguments[i];
+ cache.push(cacheImage);
+ }
+ }
})(jQuery)
@@ -77,7 +77,7 @@ $(function(){
}, function () {
$('.coraldropdown:eq(0)', this).slideUp(100);
});
- });
+ });
});
function loadDatePicker() {
@@ -125,11 +125,11 @@ function validateRequired(field,alerttxt){
function validateDate(field,alerttxt) {
- $("#span_error_" + field).html('');
- sDate =$("#" + field).val();
-
- if (sDate){
-
+ $("#span_error_" + field).html('');
+ sDate =$("#" + field).val();
+
+ if (sDate){
+
var re = /^\d{1,2}\/\d{1,2}\/\d{4}$/
if (re.test(sDate)) {
var dArr = sDate.split("/");
@@ -137,7 +137,7 @@ function validateDate(field,alerttxt) {
if (!(d.getMonth() + 1 == dArr[0] && d.getDate() == dArr[1] && d.getFullYear() == dArr[2])) {
$("#span_error_" + field).html(alerttxt);
- $("#" + field).focus();
+ $("#" + field).focus();
return false;
}else{
return true;
@@ -145,70 +145,70 @@ function validateDate(field,alerttxt) {
} else {
$("#span_error_" + field).html(alerttxt);
- $("#" + field).focus();
+ $("#" + field).focus();
return false;
}
- }
-
- return true;
+ }
+
+ return true;
}
-function thickboxResize() {
-
- var boundHeight = 530; // minimum height
- var boundWidth = 400; // minimum width
-
- var viewportWidth = (self.innerWidth || (document.documentElement.clientWidth || (document.body.clientWidth || 0)))
- var viewportHeight =(self.innerHeight || (document.documentElement.clientHeight || (document.body.clientHeight || 0)))
-
- //only do this for extremely high resolutions
- if (viewportWidth > 1300){
-
- $('a.thickbox').each(function(){
- var text = $(this).attr("href");
-
- if ( viewportHeight < boundHeight || viewportHeight < boundWidth)
- {
- // adjust the height
- text = text.replace(/height=[0-9]*/,'height=' + Math.round(viewportHeight * .8));
- // adjust the width
- text = text.replace(/width=[0-9]*/,'width=' + Math.round(viewportWidth * .8));
- }
- else
- {
- // constrain the height by defined bounds
- text = text.replace(/height=[0-9]*/,'height=' + boundHeight);
- // constrain the width by defined bounds
- text = text.replace(/width=[0-9]*/,'width=' + boundWidth);
- }
-
- $(this).attr("href", text);
+function thickboxResize() {
+
+ var boundHeight = 530; // minimum height
+ var boundWidth = 400; // minimum width
+
+ var viewportWidth = (self.innerWidth || (document.documentElement.clientWidth || (document.body.clientWidth || 0)))
+ var viewportHeight =(self.innerHeight || (document.documentElement.clientHeight || (document.body.clientHeight || 0)))
+
+ //only do this for extremely high resolutions
+ if (viewportWidth > 1300){
+
+ $('a.thickbox').each(function(){
+ var text = $(this).attr("href");
+
+ if ( viewportHeight < boundHeight || viewportHeight < boundWidth)
+ {
+ // adjust the height
+ text = text.replace(/height=[0-9]*/,'height=' + Math.round(viewportHeight * .8));
+ // adjust the width
+ text = text.replace(/width=[0-9]*/,'width=' + Math.round(viewportWidth * .8));
+ }
+ else
+ {
+ // constrain the height by defined bounds
+ text = text.replace(/height=[0-9]*/,'height=' + boundHeight);
+ // constrain the width by defined bounds
+ text = text.replace(/width=[0-9]*/,'width=' + boundWidth);
+ }
+
+ $(this).attr("href", text);
});
- }
-}
-
+ }
+}
+
-$(window).bind('load', thickboxResize );
-$(window).bind('resize', thickboxResize );
+$(window).bind('load', thickboxResize );
+$(window).bind('resize', thickboxResize );
function postwith (to,p) {
- var myForm = document.createElement("form");
- myForm.method="post" ;
- myForm.action = to ;
- for (var k in p) {
- var myInput = document.createElement("input") ;
- myInput.setAttribute("name", k) ;
- myInput.setAttribute("value", p[k]);
- myForm.appendChild(myInput) ;
- }
- document.body.appendChild(myForm) ;
- myForm.submit() ;
- document.body.removeChild(myForm) ;
+ var myForm = document.createElement("form");
+ myForm.method="post" ;
+ myForm.action = to ;
+ for (var k in p) {
+ var myInput = document.createElement("input") ;
+ myInput.setAttribute("name", k) ;
+ myInput.setAttribute("value", p[k]);
+ myForm.appendChild(myInput) ;
+ }
+ document.body.appendChild(myForm) ;
+ myForm.submit() ;
+ document.body.removeChild(myForm) ;
}
@@ -219,23 +219,23 @@ function postwith (to,p) {
if (!Array.prototype.indexOf)
{
- Array.prototype.indexOf = function(elt /*, from*/)
- {
- var len = this.length;
-
- var from = Number(arguments[1]) || 0;
- from = (from < 0)
- ? Math.ceil(from)
- : Math.floor(from);
- if (from < 0)
- from += len;
-
- for (; from < len; from++)
- {
- if (from in this &&
- this[from] === elt)
- return from;
- }
- return -1;
- };
-}
\ No newline at end of file
+ Array.prototype.indexOf = function(elt /*, from*/)
+ {
+ var len = this.length;
+
+ var from = Number(arguments[1]) || 0;
+ from = (from < 0)
+ ? Math.ceil(from)
+ : Math.floor(from);
+ if (from < 0)
+ from += len;
+
+ for (; from < len; from++)
+ {
+ if (from in this &&
+ this[from] === elt)
+ return from;
+ }
+ return -1;
+ };
+}
diff --git a/js/plugins/Gettext.js b/js/plugins/Gettext.js
new file mode 100644
index 0000000..8a905e6
--- /dev/null
+++ b/js/plugins/Gettext.js
@@ -0,0 +1,1265 @@
+/*
+Pure Javascript implementation of Uniforum message translation.
+Copyright (C) 2008 Joshua I. Miller , all rights reserved
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU Library General Public License as published
+by the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program 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
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+=head1 NAME
+
+Javascript Gettext - Javascript implemenation of GNU Gettext API.
+
+=head1 SYNOPSIS
+
+ // //////////////////////////////////////////////////////////
+ // Optimum caching way
+
+
+
+
+ // in domain.json
+ json_locale_data = {
+ "mydomain" : {
+ // po header fields
+ "" : {
+ "plural-forms" : "...",
+ "lang" : "en",
+ },
+ // all the msgid strings and translations
+ "msgid" : [ "msgid_plural", "translation", "plural_translation" ],
+ },
+ };
+ // please see the included bin/po2json script for the details on this format
+
+This method also allows you to use unsupported file formats, so long as you can parse them into the above format.
+
+=item 2. Use AJAX to load language file.
+
+Use XMLHttpRequest (actually, SJAX - syncronous) to load an external resource.
+
+Supported external formats are:
+
+=over
+
+=item * Javascript Object Notation (.json)
+
+(see bin/po2json)
+
+ type=application/json
+
+=item * Uniforum Portable Object (.po)
+
+(see GNU Gettext's xgettext)
+
+ type=application/x-po
+
+=item * Machine Object (compiled .po) (.mo)
+
+NOTE: .mo format isn't actually supported just yet, but support is planned.
+
+(see GNU Gettext's msgfmt)
+
+ type=application/x-mo
+
+=back
+
+=back
+
+=head1 METHODS
+
+The following methods are implemented:
+
+ new Gettext(args)
+ textdomain (domain)
+ gettext (msgid)
+ dgettext (domainname, msgid)
+ dcgettext (domainname, msgid, LC_MESSAGES)
+ ngettext (msgid, msgid_plural, count)
+ dngettext (domainname, msgid, msgid_plural, count)
+ dcngettext (domainname, msgid, msgid_plural, count, LC_MESSAGES)
+ pgettext (msgctxt, msgid)
+ dpgettext (domainname, msgctxt, msgid)
+ dcpgettext (domainname, msgctxt, msgid, LC_MESSAGES)
+ npgettext (msgctxt, msgid, msgid_plural, count)
+ dnpgettext (domainname, msgctxt, msgid, msgid_plural, count)
+ dcnpgettext (domainname, msgctxt, msgid, msgid_plural, count, LC_MESSAGES)
+ strargs (string, args_array)
+
+
+=head2 new Gettext (args)
+
+Several methods of loading locale data are included. You may specify a plugin or alternative method of loading data by passing the data in as the "locale_data" option. For example:
+
+ var get_locale_data = function () {
+ // plugin does whatever to populate locale_data
+ return locale_data;
+ };
+ var gt = new Gettext( 'domain' : 'messages',
+ 'locale_data' : get_locale_data() );
+
+The above can also be used if locale data is specified in a statically included
+
+getLanguage($str);
+ if($default_l==null || empty($default_l)){$default_l=$str;}
+ if(isset($_COOKIE["lang"])){
+ if($_COOKIE["lang"]==$http_lang && $_COOKIE["lang"] != "en_US"){
+ echo " ";
+ }
+ }else if($default_l==$http_lang && $default_l != "en_US"){
+ echo " ";
+ }
+?>
+
@@ -67,38 +85,94 @@
-
+
+
+
-
-
-
-
-
-
-
-
-lastName){
- echo $user->firstName . " " . $user->lastName;
- }else{
- echo $user->loginID;
- }
-?>
-
-
settings->authModule == 'Y'){ echo "
logout "; } ?>
-
-
-
+
+
+
\ No newline at end of file
diff --git a/user.php b/user.php
index eb895d0..0f67382 100644
--- a/user.php
+++ b/user.php
@@ -55,6 +55,7 @@
$authURL = $util->getCORALURL() . "auth/" . $addURL . htmlentities($_SERVER['REQUEST_URI']);
header('Location: ' . $authURL, true);
+ exit; //PREVENT SECURITY HOLE
}
@@ -105,6 +106,7 @@
//if the user doesn't exist in database we need to redirect them to a page to give instructions on how to be added
if ($user->privilegeID == ""){
header('Location: not_available.php');
+ exit; //PREVENT SECURITY HOLE
}
}