"; $output .= ""; $output .= ""; $output .= "
"; $output .= "
\n"; $output .= "

New Search

"; $output .= "
"; $output .= "\n"; trj(); text2j("Family"); edit2j("Family", "reload()"); submit2j("Family_selectlimited", "select"); ntrj(); text2j("Genus"); edit2j("Genus", "reload()"); submit2j("Genus_selectlimited", "select"); ntrj(); text2j("Species"); edit2j("Species", "reload()"); submit2j("Species_selectlimited", "select"); etrj(); if($admin){ trj(); text2j("Slide"); edit2j("SlideC", "reload()"); etrj(); trj(); text2j("index"); edit2j("RIndex", "reload()"); etrj(); } etrj(); trj(); $output .= "
"; hrj(); etdj(); etrj(); ntrj(); text2j("Aperture"); dropdown2j("Aperture", $ApertureList, "unselected", "reload()", "yes"); ntrj(); text2j("Class"); dropdown2j("Class", $ClassList, "unselected", "reload()", "yes"); ntrj(); text2j("Shape"); dropdown2j("Shape", $ShapeList, "unselected", "reload()", "yes"); ntrj(); text2j("Pattern"); dropdown2j("Pattern", $PatternList, "unselected", "reload()", "yes"); etrj(); ntrj(); text2j("Lagus", "reload()"); edit2j("Lagus", "reload()"); text2j("LagusRange +/-"); dropdown2j("LagusDelta", $LagusDeltaList, $LagusDeltaDefault, "reload()"); etrj(); ntrj(); text2j("Latus"); edit2j("Latus"); text2j("LatusRange +/-"); dropdown2j("LatusDelta", $LagusDeltaList, $LagusDeltaDefault, "reload()"); etrj(); trj(); $output .= ""; hrj(); etdj(); etrj(); ntrj(); text2j("Distribution"); edit2j("Distribution", "reload()"); ntrj(); text2j("Habitat"); edit2j("Habitat", "reload()"); ntrj(); text2j("Descriptions"); edit2j("Description", "reload()"); ntrj(); text2j("Special Features"); edit2j("SpecialFeatures", "reload()"); etrj(); trj(); $output .= ""; hrj(); etdj(); etrj(); //---------------------------------------------- //show options trj(); text2j("Entries to Show"); dropdown2j("ShowLength", $ShowLengthList, $ShowLengthDefault); text2j("Show Mode"); dropdown2j("ShowOptions", $ShowOptionsList, $ShowOptionsDefault); etrj(); if($admin){ trj(); $output .= ""; hrj(); etdj(); etrj(); } endtablej(); if($admin){ table0j(); trj(); text2j("Has multiple name"); checkbox2j("MultiName"); text2j("non unique name"); checkbox2j("NameRepeat"); text2j("non unique slide"); checkbox2j("SlideRepeat"); ntrj(); text2j("contains ambiguous pictures"); checkbox2j("PictClash"); etrj(); endtablej(); } $output .= ""; $output .= ""; $output .= "
"; $output .= "
\n"; $output .= "

New Search

"; $output .= "
"; createhidelisttostring($output); $output .= ""; //========================================================================= //look to see if any of the form members failed to set to the value that //was passed. This will be because their value was no longer compatible. //we will set their values to "unselected" and then reload this page $pagefailed = 0; if(isset($FormSelectFails)){ reset($FormSelectFails); while(list($key, $val) = each($FormSelectFails)){ //echo "$key of ${$key} incompatible. resetting to unselected
\n"; $pagefailed = 1; ${$key} = "unselected"; } } if($pagefailed){ //need to create the list of all ourvars, as these are not in the form //yet. $varlist = "reload=1"; reset($OurVars); while(list($key, $val) = each($OurVars)){ $escaped = strtr(${$key}, " ", "+"); $varlist .= "&$key=$escaped"; } //$resend = creategetlist(); //$varlist .= $resend; //don't need the post list yet. echo "\n"; } //============================================================== //calculate the number of pollen entries remaining //(don't waste time if we know we have to reload) if(!$pagefailed){ $query = "select distinct SpeciesItemsA.RIndex from SpeciesItemsA, KeyItemsA, DescriptionsA"; $query .= " where SpeciesItemsA.RIndex = KeyItemsA.RIndex"; $query .= " and SpeciesItemsA.RIndex = DescriptionsA.RIndex"; $requirements = build_requirements_list(); $pollen_entries_left = -1; if($requirements){ $query .= " and $requirements"; $result = mysql_db_query($pollendb, $query, $link); DBT($result); $pollen_entries_left = mysql_num_rows($result); } } ?> Pollen Search > = 0){ echo "$pollen_entries_left"; }else{ echo "all"; } echo "
\n"; endfont(); echo "
\n"; //================================================================ //write the java script function that reloads this page with locally entered //contents passed as get variables. echo "\n\n\n"; //========================================================================= //write out the form that we constructed further up. echo $output; endfont(); endfont(); if($admin){ echo "
\n"; echo ""; echo "make global changes to drop downs etc"; echo "
\n"; } } //if(!$pagefailed) ?>