Exemplo n.º 1
0
		<?php 
}
?>
 
<!-- This is inner text! -->
<div id="innertext">
	<h1>Data Upload Management</h1>
	<?php 
if ($statusStr) {
    echo "<hr />";
    echo "<div>{$statusStr}</div>";
    echo "<hr />";
}
if ($isEditor) {
    if ($collid) {
        echo '<div style="font-weight:bold;font-size:130%;">' . $duManager->getCollInfo('name') . '</div>';
        if ($duManager->getCollInfo("uploaddate")) {
            echo "<div style='margin:0px 0px 15px 15px;'><b>Last Upload Date:</b> " . $duManager->getCollInfo("uploaddate") . "</div>";
        }
        if (!$action) {
            //Collection has been selected, now display different upload options
            $profileList = $duManager->getUploadList();
            ?>
				<form name="uploadlistform" action="specupload.php" method="post" onsubmit="return checkUploadListForm(this);">
					<fieldset style="width:450px;">
						<legend style="font-weight:bold;font-size:120%;">Upload Options</legend>
						<div style="float:right;">
							<?php 
            echo '<a href="specuploadmanagement.php?collid=' . $collid . '&action=addprofile"><img src="' . $clientRoot . '/images/add.png" style="width:15px;border:0px;" title="Add a New Upload Profile" /></a>';
            ?>
						</div>
Exemplo n.º 2
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/SpecUpload.php';
header("Content-Type: text/html; charset=" . $charset);
$collid = array_key_exists('collid', $_REQUEST) ? $_REQUEST['collid'] : 0;
$recLimit = array_key_exists('reclimit', $_REQUEST) ? $_REQUEST['reclimit'] : 1000;
$pageIndex = array_key_exists('pageindex', $_REQUEST) ? $_REQUEST['pageindex'] : 0;
$uploadManager = new SpecUpload();
$uploadManager->setCollId($collid);
$collMap = $uploadManager->getCollInfo();
$headerMapBase = array('catalognumber' => 'Catalog Number', 'occurrenceid' => 'Occurrence ID', 'othercatalognumbers' => 'Other Catalog #', 'family' => 'Family', 'identificationqualifier' => 'ID Qualifier', 'sciname' => 'Scientific name', 'scientificnameauthorship' => 'Author', 'recordedby' => 'Collector', 'recordnumber' => 'Number', 'associatedcollectors' => 'Associated Collectors', 'eventdate' => 'Event Date', 'verbatimeventdate' => 'Verbatim Date', 'identificationremarks' => 'Identification Remarks', 'taxonremarks' => 'Taxon Remarks', 'identifiedby' => 'Identified By', 'dateidentified' => 'Date Identified', 'identificationreferences' => 'Identification References', 'country' => 'Country', 'stateprovince' => 'State/Province', 'county' => 'county', 'municipality' => 'municipality', 'locality' => 'locality', 'decimallatitude' => 'Latitude', 'decimallongitude' => 'Longitude', 'geodeticdatum' => 'Datum', 'coordinateuncertaintyinmeters' => 'Uncertainty In Meters', 'verbatimcoordinates' => 'Verbatim Coordinates', 'georeferencedby' => 'Georeferenced By', 'georeferenceprotocol' => 'Georeference Protocol', 'georeferencesources' => 'Georeference Sources', 'georeferenceverificationstatus' => 'Georef Verification Status', 'georeferenceremarks' => 'Georef Remarks', 'minimumelevationinmeters' => 'Min. Elev. (m)', 'maximumelevationinmeters' => 'Max. Elev. (m)', 'verbatimelevation' => 'Verbatim Elev.', 'habitat' => 'Habitat', 'substrate' => 'Substrate', 'occurrenceremarks' => 'Notes', 'associatedtaxa' => 'Associated Taxa', 'verbatimattributes' => 'Description', 'lifestage' => 'Life Stage', 'sex' => 'Sex', 'individualcount' => 'Individual Count', 'samplingprotocol' => 'Sampling Protocol', 'preparations' => 'Preparations', 'reproductivecondition' => 'Reproductive Condition', 'typestatus' => 'Type Status', 'cultivationstatus' => 'Cultivation Status', 'establishmentmeans' => 'Establishment Means', 'disposition' => 'disposition', 'duplicatequantity' => 'Duplicate Qty', 'datelastmodified' => 'Date Last Modified', 'processingstatus' => 'Processing Status', 'recordenteredby' => 'Entered By', 'basisofrecord' => 'Basis Of Record');
if ($collMap['managementtype'] == 'Snapshot') {
    $headerMapBase['dbpk'] = 'Source Identifier';
}
$recCnt = $uploadManager->getUploadCount();
$isEditor = 0;
//$navStr = '<div style="float:right;">';
if ($SYMB_UID) {
    //Set variables
    if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collid, $userRights["CollAdmin"])) {
        $isEditor = 1;
    }
    /*
    	if(($pageIndex) >= $recLimit){
    		$navStr .= '<a href="uploadviewer.php?collid='.$collid.'&reclimit='.$reclimit.'&pageindex=0" title="First page">|&lt;&lt;</a> | ';
    		$navStr .= '<a href="uploadviewer.php?collid='.$collid.'&reclimit='.$reclimit.'&pageindex='.($pageIndex-1).'" title="Previous '.$recLimit.' record">&lt;&lt;</a>';
    	}
    	else{
    		$navStr .= '|&lt;&lt;</a> | &lt;&lt;';
    	}