<?php $resourceID = $_GET['resourceID']; $resource = new Resource(new NamedArguments(array('primaryKey' => $resourceID))); //get all authentication types for output in drop down $authenticationTypeArray = array(); $authenticationTypeObj = new AuthenticationType(); $authenticationTypeArray = $authenticationTypeObj->allAsArray(); //get all access methods for output in drop down $accessMethodArray = array(); $accessMethodObj = new AccessMethod(); $accessMethodArray = $accessMethodObj->allAsArray(); //get all user limits for output in drop down //overridden for better sort $userLimitArray = array(); $userLimitObj = new UserLimit(); $userLimitArray = $userLimitObj->allAsArray(); //get all storage locations for output in drop down $storageLocationArray = array(); $storageLocationObj = new StorageLocation(); $storageLocationArray = $storageLocationObj->allAsArray(); //get all administering sites for output in checkboxes $administeringSiteArray = array(); $administeringSiteObj = new AdministeringSite(); $administeringSiteArray = $administeringSiteObj->allAsArray(); //get administering sites for this resource $sanitizedInstance = array(); $instance = new AdministeringSite(); $resourceAdministeringSiteArray = array(); foreach ($resource->getResourceAdministeringSites() as $instance) { $resourceAdministeringSiteArray[] = $instance->administeringSiteID;
<tr> <td class='searchRow'><label for='searchAuthenticationTypeID'><b>Authentication Type</b></label> <br /> <select name='search[authenticationTypeID]' id='searchAuthenticationTypeID' style='width:150px'> <option value=''>All</option> <?php if ($search['authenticationTypeID'] == "none") { echo "<option value='none' selected>(none)</option>"; } else { echo "<option value='none'>(none)</option>"; } $display = array(); $authenticationType = new AuthenticationType(); foreach ($authenticationType->allAsArray() as $display) { if ($search['authenticationTypeID'] == $display['authenticationTypeID']) { echo "<option value='" . $display['authenticationTypeID'] . "' selected>" . $display['shortName'] . "</option>"; } else { echo "<option value='" . $display['authenticationTypeID'] . "'>" . $display['shortName'] . "</option>"; } } ?> </select> </td> </tr> <tr> <td class='searchRow'><label for='searchCatalogingStatusID'><b>Cataloging Status</b></label> <br /> <select name='search[catalogingStatusID]' id='searchCatalogingStatusID' style='width:150px'>