Exemple #1
0
			var wWidth = 900;
			if(document.getElementById('maintable').offsetWidth){
				wWidth = document.getElementById('maintable').offsetWidth*1.05;
			}
			else if(document.body.offsetWidth){
				wWidth = document.body.offsetWidth*0.9;
			}
			newWindow = window.open('../individual/index.php?occid='+occId,'indspec' + occId,'scrollbars=1,toolbar=1,resizable=1,width='+(wWidth)+',height=600,left=20,top=20');
			if(newWindow.opener == null) newWindow.opener = self;
			return false;
		}

		<?php 
if ($omenId) {
    //Exsiccati number sectioon can have a large number of ometid select look ups; using javascript makes page more efficient
    $titleArr = $exsManager->getTitleArr();
    $selectValues = '';
    //Added "k" prefix to key so that Chrom would maintain the correct sort order
    foreach ($titleArr as $k => $v) {
        $selectValues .= ',k' . $k . ': "' . $v . '"';
    }
    ?>
			function buildExsSelect(selectObj){
				var selectValues = {<?php 
    echo substr($selectValues, 1);
    ?>
};

				for(key in selectValues) { 
					try{
						selectObj.add(new Option(selectValues[key], key), null); 
?>
	<div class='navpath'>
		<a href="../../index.php">Home</a> &gt;&gt; 
		<a href="index.php">Exsiccati Index</a> &gt;&gt; 
		<a href="batchimport.php">Batch Import Module</a>
	</div>
	<!-- This is inner text! -->
	<div id="innertext">
		<?php 
if ($statusStr) {
    echo '<hr/>';
    echo '<div style="margin:10px;color:' . (strpos($statusStr, 'SUCCESS') === false ? 'red' : 'green') . ';">' . $statusStr . '</div>';
    echo '<hr/>';
}
if (!$ometid) {
    if ($exsArr = $exsManager->getTitleArr('', 1)) {
        ?>
				<form name="firstform" action="batchimport.php" method="post" onsubmit="return verifyFirstForm(this)">
					<fieldset>
						<legend><b>Batch Import Module</b></legend>
						<div style="margin:30px">
							<select name="ometid" style="width:500px;" onchange="this.form.submit()">
								<option value="">Choose Exsiccati Series</option>
								<option value="">------------------------------------</option>
								<?php 
        //Get only titles with linked specimens
        foreach ($exsArr as $exid => $exTitle) {
            echo '<option value="' . $exid . '">' . $exTitle . '</option>';
        }
        ?>
							</select>