Esempio n. 1
0
							</td>
							<td colspan='3'>
								<?php 
            if ($isEditor || $symbUid && $symbUid == $fieldArr['observeruid']) {
                ?>
									<div style="float:right;" title="Edit Occurrence Record">
										<a href="editor/occurrenceeditor.php?occid=<?php 
                echo $occId;
                ?>
" target="_blank">
											<img src="../images/edit.png" style="border:solid 1px gray;height:13px;" />
										</a>
									</div>
									<?php 
            }
            if ($collManager->getClName() && array_key_exists('targettid', $_REQUEST)) {
                ?>
									<div style="float:right;cursor:pointer;" onclick="addVoucherToCl(<?php 
                echo $occId . "," . $collManager->getSearchTerm("targetclid") . "," . $_REQUEST["targettid"];
                ?>
)" title="Add as <?php 
                echo $collManager->getClName();
                ?>
 Voucher">
										<img src="../images/voucheradd.png" style="border:solid 1px gray;height:13px;margin-right:5px;" />
									</div>
									<?php 
            }
            ?>
								<div style="float:left;">
									<a target='_blank' href='../taxa/index.php?taxon=<?php 
Esempio n. 2
0
			$.ajax({
				type: "POST",
				url: "rpc/addvoucher.php",
				data: { occid: occidIn, clid: clidIn, tid: tidIn }
			}).done(function( msg ) {
				if(msg == "1"){
					alert("Success! Voucher added to checklist.");
				}
				else{
					alert(msg);
				}
			});
		}
		
		<?php 
if ($collManager->getClName() && array_key_exists('targettid', $_REQUEST)) {
    ?>
			function addAllVouchersToCl(clidIn){
				$.ajax({
					type: "POST",
					url: "rpc/addallvouchers.php",
					data: { clid: clidIn, jsonOccArr: <?php 
    echo isset($specOccJson) && $specOccJson ? $specOccJson : '0';
    ?>
, tid: <?php 
    echo isset($_REQUEST["targettid"]) ? $_REQUEST["targettid"] : '0';
    ?>
 }
				}).done(function( msg ) {
					if(msg == "1"){
						alert("Success! All vouchers added to checklist.");