<?php } ?> <br /> </td></tr> </table> <?php break; //sfx display for the sfx tab on license.php //sfx display for the sfx tab on license.php case 'getAllSFXProviders': $licenseID = $_GET['licenseID']; $license = new License(new NamedArguments(array('primaryKey' => $licenseID))); $document = new Document(); $documentArray = $license->getDocuments(); $rowCount = 0; //loop through each document separately //note - this tab is only displayed for admin users so no validation is required foreach ($documentArray as $document) { $sfxProvider = new SFXProvider(); foreach ($document->getSFXProviders as $sfxProvider) { $rowCount++; if ($rowCount == "1") { ?> <table class='verticalFormTable'> <tr> <th>For Document</th> <th>Resource</th> <th> </th> <th> </th>
echo $expressionID; ?> '> <table class="thickboxTable" style="width:340px;"> <tr> <td colspan='2'><span class='headerText'>Expressions</span><br /><span id='span_errors'></span><br /></td> </tr> <tr> <td colspan='2'><label for="documentID" class="formText">Document:</label><br /> <select name='documentID' id='documentID' style='width:280px;'> <?php $display = array(); foreach ($license->getDocuments() as $display) { if ($expression->documentID == $display->documentID) { echo "<option value='" . $display->documentID . "' selected>" . $display->shortName . "</option>"; } else { echo "<option value='" . $display->documentID . "'>" . $display->shortName . "</option>"; } } ?> </select><br /> </td> </tr> <tr> <td colspan='2'><label for="expressionTypeID" class="formText">Expression Type:</label><br /> <span id='span_expressionType'>
<?php } else { if ($displayArchiveInd == "") { echo _("(none found)"); } else { if ($displayArchiveInd == "1" || $numRows == "0") { //echo "(no archived documents found)"; } else { echo "<i>" . $numRows . _(" archive(s) available.") . " <a href='javascript:updateArchivedDocuments(1)'>" . _("show archives") . "</a></i><br /><br />"; } } } if ($user->canEdit() && $displayArchiveInd != "") { $duglicense = new License(new NamedArguments(array('primaryKey' => $licenseID))); $dugArray = $duglicense->getDocuments(); $numDug = count($dugArray); if ($numDug == 0) { echo "<a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload new document") . "</a>"; } else { echo _("Only one active document is allowed.") . " <a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&isArchived=1&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload archived document") . "</a>"; } echo '<br /><br />'; } break; //display for expressions tab on license.php //display for expressions tab on license.php case 'getAllExpressions': $licenseID = $_GET['licenseID']; $documentID = $_GET['documentID']; //if 'view expressions' link is clicked on a specific document, we're just displaying expressions for that document