Пример #1
0
	}
	
	function submitAddGeneticResource(f){
		if(f.resourcename.value == ""){
			alert("Genetic resource name must not be blank");
		}
		else{
			f.submit();
		}
	}
</script>

<div id="voucherdiv" style="width:795px;">
	<?php 
$userChecklists = $occManager->getUserChecklists();
$checklistArr = $occManager->getVoucherChecklists();
?>
	<fieldset style="padding:20px">
		<legend><b>Checklist Voucher Linkages</b></legend>
		<?php 
if ($userChecklists) {
    ?>
			<div style="float:right;margin-right:15px;">
				<a href="#" onclick="toggle('voucheradddiv');return false;" title="Link Specimen to Checklist as Voucher" ><img src="../../images/add.png" /></a>
			</div>
			<div id="voucheradddiv" style="display:<?php 
    echo $checklistArr ? 'none' : 'block';
    ?>
;">
				<form name="voucherAddForm" method="post" target="occurrenceeditor.php" onsubmit="return validateVoucherAddForm(this)">
					<select name="clidvoucher">