} ?> margin-left:123px;'><input type='button' name='btn_searchFund' value='go!' class='searchButton' /></div> </td> </tr> <tr> <td class='searchRow'><label for='searchAcquisitionTypeID'><b>Acquisition Type</b></label> <br /> <select name='search[acquisitionTypeID]' id='searchAcquisitionTypeID' style='width:150px'> <option value=''>All</option> <?php $display = array(); $acquisitionType = new AcquisitionType(); foreach ($acquisitionType->allAsArray() as $display) { if ($search['acquisitionTypeID'] == $display['acquisitionTypeID']) { echo "<option value='" . $display['acquisitionTypeID'] . "' selected>" . $display['shortName'] . "</option>"; } else { echo "<option value='" . $display['acquisitionTypeID'] . "'>" . $display['shortName'] . "</option>"; } } ?> </select> </td> </tr> <tr> <td class='searchRow'><label for='searchStatusID'><b>Status</b></label> <br />
<?php $resourceID = $_GET['resourceID']; $resource = new Resource(new NamedArguments(array('primaryKey' => $resourceID))); //used to get default currency $config = new Configuration(); $startDate = normalize_date($resource->currentStartDate); $endDate = normalize_date($resource->currentEndDate); //get all purchase sites for output in checkboxes $purchaseSiteArray = array(); $purchaseSiteObj = new PurchaseSite(); $purchaseSiteArray = $purchaseSiteObj->allAsArray(); //get all acquisition types for output in drop down $acquisitionTypeArray = array(); $acquisitionTypeObj = new AcquisitionType(); $acquisitionTypeArray = $acquisitionTypeObj->allAsArray(); //get purchase sites $sanitizedInstance = array(); $instance = new PurchaseSite(); $resourcePurchaseSiteArray = array(); foreach ($resource->getResourcePurchaseSites() as $instance) { $resourcePurchaseSiteArray[] = $instance->purchaseSiteID; } ?> <div id='div_resourceForm'> <form id='resourceForm'> <input type='hidden' name='editResourceID' id='editResourceID' value='<?php echo $resourceID; ?> '>
<?php $workflowID = $_GET['workflowID']; if ($workflowID) { $workflow = new Workflow(new NamedArguments(array('primaryKey' => $workflowID))); } else { $workflow = new Workflow(); } $stepArray = $workflow->getSteps(); $stepDDArray = $workflow->getSteps(); //get all acquisition types for output in drop down $acquisitionTypeArray = array(); $acquisitionTypeObj = new AcquisitionType(); $acquisitionTypeArray = $acquisitionTypeObj->sortedArray(); //get all resource formats for output in drop down $resourceFormatArray = array(); $resourceFormatObj = new ResourceFormat(); $resourceFormatArray = $resourceFormatObj->sortedArray(); //get all resource types for output in drop down $resourceTypeArray = array(); $resourceTypeObj = new ResourceType(); $resourceTypeArray = $resourceTypeObj->allAsArray(); //get all acquisition types for output in drop down $userGroupArray = array(); $userGroupObj = new UserGroup(); $userGroupArray = $userGroupObj->allAsArray(); //used to determine ordering - default to empty $key = '0'; ?> <div id='div_resourceForm'> <form id='resourceForm'>