Exemplo n.º 1
0
$vManager = new ChecklistVoucherAdmin();
$vManager->setClid($clid);
$isEditor = false;
if ($isAdmin || array_key_exists("ClAdmin", $userRights) && in_array($clid, $userRights["ClAdmin"])) {
    $isEditor = true;
}
?>
<div id="innertext" style="background-color:white;">
	<h2>Possible Voucher Conflicts</h2>
	<div style="margin-bottom:10px;">
		List of specimen vouchers where the current identifications conflict with the checklist. 
		Voucher conflicts are typically due to recent annotations of specimens located within collection.
		Click on Checklist ID to open the editing pane for that record. 
	</div>
	<?php 
if ($conflictArr = $vManager->getConflictVouchers()) {
    echo '<div style="font-weight:bold;">Conflict Count: ' . count($conflictArr) . '</div>';
    ?>
		<table class="styledtable">
			<tr><th><b>Checklist ID</b></th><th><b>Collector</b></th><th><b>Specimen ID</b></th><th><b>Identified By</b></th></tr>
			<?php 
    foreach ($conflictArr as $id => $vArr) {
        ?>
				<tr>
					<td>
						<a href="#" onclick="return openPopup('clsppeditor.php?tid=<?php 
        echo $vArr['tid'] . "&clid=" . $vArr['clid'];
        ?>
','editorwindow');">
							<?php 
        echo $vArr['listid'];