<HTML>
<HEAD>
<TITLE>SurgeMenu Sample Menu: Deeply-Nested, Complex</TITLE>

<?php //CUSTOMIZATION CODE FOR SURGEMENU - STYLE DEFINITIONS

$menuitem_height = 17;								//height of each menu item, in pixels
$menuitem_style = array('font' => '11px arial',
	'color' => 'black',
	'background' => 'white',
	'indent' => '7px');							//CSS style definitions
$menuitem_hover = array('font' => '11px arial',
	'color' => 'white',
	'background' => '#316ac5',
	'indent' => '7px');
$submenu_flag = 'right-arrow.gif';							//image added to background to point to submenu
$menu_opacity = 100;								//percent opacity: number from 0 to 100 (default)
$menu_offset = array('x' => '5', 'y' => '22');					//default offset of menu from calling object


echo '<script type="text/JavaScript">';

//SURGEMENU CUSTOM FUNCTION menuAction() - DEFINES JAVASCRIPT CODE TO EXECUTE WHEN A MENU ITEM HAS BEEN SELECTED
//
//available parameters:
//
//	divID		- supplied by showMenu; references the element that originally launched the menu
//	selection 	- references the selection clicked on. One of the its most useful properties is innerHTML (the selection text)
?>

function menuAction (selection) {
	selElement = document.getElementById(selection)				//reference the selection clicked on
	if (divID == "EducSubj") {							//if a selection from the EducSubj menu,
		document.searchForm.subj.value = selElement.innerHTML			//change INPUT field to the selection text
	}
	else document.searchForm.elements[divID].value = selElement.innerHTML		//else change the calling INPUT field to the
}										//selection text
	
</script>

<?php include 'SurgeMenu.php';

//END OF SURGEMENU CUSTOMIZATION CODE ?>

<style>
.menu_input {vertical-align:middle;font-size:11px;font-family:arial;padding-left:5px;padding-right:5px;margin:2px 0 2px}
.message {font:11px arial;background-color:white;padding:20px;border-left:8px solid #ECECEC;border-top:6px solid #ECECEC;border-right:8px solid #6A6A6A;border-bottom:6px solid #6A6A6A }
.width40 {width:40px;vertical-align:middle;font-size:11px;font-family:arial;padding-left:5px;padding-right:5px}
</style>
</HEAD>

<BODY>

<h3>SurgeMenu Sample Menus: Multiple Menus, including Deeply-Nested and Complex</h3>

<b>Search for Medical Presentation:</b>

<p><div style="width:600px"><div class="message" ID="advSearch">
<b>Advanced Search:</b>
<p><form name="searchForm" method="post" action="educ_materials.php">
<input type="hidden" name="sortPage" value="" class="menu_input">

<div style="padding-left:5px">
<div style="padding-bottom:2px">
Search terms: &nbsp; <input type="text" name="searchTerms" value="" style="width:340px" class="menu_input"> &nbsp; 
<input name="bool0" class=width40 value="AND" <?php callMenu('bool') ?>>
</div>

<div style="padding-bottom:2px">
Subject(s): &nbsp; <input type="text" name="subj" value="" style="width:340px;vertical-align:top" class="menu_input"> &nbsp; 
<input type="button" value="add" style="width:40px" class="menu_input" <?php callMenu('EducSubj') ?>> 
<input type="button" value="remove" style="width:58px" onClick="alert('This function disabled in this demo')" class="menu_input">
</div>

<div style="padding-bottom:2px">
<input name="bool1" ID="inpBool1" class=width40 value="AND" onMouseOver="collapseSubs(1);showMenu(event,'bool',0)" onMouseout="menuFocus=false;setTimeout('hideMenu()',250)"> &nbsp; 
Presentation type: &nbsp; <input type="text" name="type" value="" style="width:130px" class="menu_input" <?php callMenu('present') ?>>
</div>

<div style="padding-bottom:2px">
<input name="bool3" ID="inpBool3" class=width40 value="AND" onMouseOver="collapseSubs(1);showMenu(event,'bool',0)" onMouseout="menuFocus=false;setTimeout('hideMenu()',250)"> &nbsp; 
Last modified: &nbsp; <input type="text" name="date" value="" style="width:150px" class="menu_input" <?php callMenu('date') ?>>
</div>

<div style="padding-bottom:2px">
<input name="bool4" ID="inpBool4" class=width40 value="AND" onMouseOver="collapseSubs(1);showMenu(event,'bool',0)" onMouseout="menuFocus=false;setTimeout('hideMenu()',250)"> &nbsp; 
File format: &nbsp; <input type="text" name="format" value="" style="width:160px" class="menu_input" <?php callMenu('fileFormat') ?>>
</div>

<div style="padding-bottom:2px">
Associated clinical cases: <input type="checkbox" name="cases" value="y" class="menu_input"> &nbsp; 
Associated Reference Manager searches: <input type="checkbox" name="refs" value="y" class="menu_input">
</div>
</div>
</div>
</div>

<p>The <a href="http://www.ars-informatica.ca/article.php?article=1">SurgeMenu Dynamic Cascading Menu System</a> is free, modifiable software released under the GNU General Public License (GPL).

<p>Specifics on and source code for this SurgeMenu Sample Menu are provided on the <a href="http://www.ars-informatica.ca">Ars Informatica</a> web site, as is the SurgeMenu source code itself.


<?php
createMenu (0,45,"bool","AND","OR","NOT");

createMenu (0,120,"present","resident lecture","department rounds","CME presentation","teleconference","conference","journal article");

$year = date("Y");
createMenu (0,110,"date","Jan. 1, $year - on","since ".--$year,"since ".--$year,"since ".--$year,"since ".--$year,"since ".--$year,"since ".($year-5));

createMenu (0,160,"fileFormat","Microsoft PowerPoint","Microsoft Word","Adobe Acrobat PDF");


createMenu (0,115,"EducSubj","+cardiovascular","+EENT","+gastrointestinal","+genitourinary","+neurologic","+OB-GYN","+orthopedic","+pediatric","+respiratory","+trauma","+miscellaneous_0");
	createMenu (1,190,"cardiovascular","acute coronary syndromes","Advanced Cardiac Life Support","+arrhythmias","cardiac arrest","chest pain","congestive heart failure","myocardial infarction","syncope","+vascular","+miscellaneous");
		createMenu (2,165,"arrhythmias","asystole","atrial fibrillation","bradyarrhytmias","prolonged QT","pulseless electrical activity","pulseless VT/VF","supraventricular tachycardia","tachyarrhythmias","torsades de pointes","ventricular tachycardia");
		createMenu (2,160,"vascular","aortic aneurysm, abdominal","aortic aneurysm, thoracic","deep venous thrombosis","ischemic extremity","mesenteric ischemia","peripheral vascular disease","pulmonary embolus","spinal cord infarct");
		createMenu (2,150,"miscellaneous","anaphylactic shock","cardiac transplant patient","cardiogenic shock","endocarditis","hypertension","hypertensive crisis","myocardial disease","pacemaker malfunction","pericarditis","valvular problems");

	createMenu (1,150,"EENT","+eyes","+ears","epiglottitis","epistaxis","+face","foreign body, eye","glaucoma, angle-closure","+nose","+oropharynx","red eye");
		createMenu (2,135,"eyes","chemical injury eye","herpes zoster, eye","ocular pain","ocular trauma","retinal artery occlusion","retinal detachment","retinal vein occlusion");
		createMenu (2,105,"ears","ear trauma","foreign body ear","hearing loss","otitis externa","otitis media");
		createMenu (2,115,"nose","foreign body nose","nasal trauma");
		createMenu (2,150,"oropharynx","dental pain","dental fracture","peritonsillar abscess","retropharyngeal abscess","sore throat","swallowing problems");
		createMenu (2,120,"face","cellulitis face","facial trauma","herpes zoster, face","sinusitis");

	createMenu (1,135,"gastrointestinal","abdominal pain","acute abdomen","anorectal problems","appendicitis","+biliary","Crohn\'s disease","+esophagus","+intestine","nausea and vomiting","+stomach");
		createMenu (2,130,"biliary","ascending cholangitis","cholecystitis","hepatitis","jaundice","pancreatitis");
		createMenu (2,145,"esophagus","esophageal obstruction","esophageal varices","foreign body, esophagus","upper GI bleed");
		createMenu (2,140,"intestine","diverticular disease","intussusception","large bowel obstruction","lower GI bleed","ulcerative colitis","small bowel obstruction","volvulus");
		createMenu (2,142,"stomach","diarrhea","gastric outlet obstruction","peptic ulcer disease","pyloric stenosis","upper GI bleed");

	createMenu (1,130,"genitourinary","dialysis complications","hematuria","nephrolithiasis","pyelonephritis","renal failure","STDs","testicular torsion","urinary tract infection");
	createMenu (1,165,"neurologic","altered LOC","CNS infections","coma","dizziness, vertigo","headache","intracranial hemorrhage","migraine","space-occupying lesion brain","stroke","seizure");
	createMenu (1,160,"OB-GYN","eclampsia","ectopic pregnancy","miscarriage","pelvic inflammatory disease","pelvic pain","sexual assualt","vaginal bleeding","STDs");
	createMenu (1,160,"orthopedic","amputations","back pain","cauda equina","compartment syndrome","+dislocations","+fractures");
		createMenu (2,165,"dislocations","+upper extremity dislocations","+lower extremity dislocations");
			createMenu (3,130,"upper extremity dislocations","shoulder dislocations","elbow dislocations","wrist dislocations","finger dislocations");
			createMenu (3,120,"lower extremity dislocations","hip dislocations","knee dislocations","ankle dislocations","foot dislocations");
			
		createMenu (2,165,"fractures","skull fractures","facial fractures","+spine fractures","rib fractures","+upper extremity fractures","+lower extremity fractures");
			createMenu (3,145,"spine fractures","C-spine fractures","thoracic spine fractures","lumbar spine fractures");
			createMenu (3,120,"upper extremity fractures","shoulder fractures","humerus fractures","elbow fractures","forearm fractures","wrist fractures","hand fractures");
			createMenu (3,120,"lower extremity fractures","hip fractures","femur fractures","knee fractures","lower leg fractures","ankle fractures","foot fractures");

	createMenu (1,185,"pediatric","bronchiolitis","croup","epiglottitis","febrile child","pediatric abdominal emergencies","pediatric asthma","pediatric diabetic ketoacidosis","pediatric meningitis","pediatric seizure");
	createMenu (1,145,"respiratory","anaphylaxis","asthma","congestive heart failure","COPD","pneumonia","pneumothorax","+respiratory infections","pulmonary embolism","shortness of breath","+miscellaneous_1");
		createMenu (2,180,"respiratory infections","croup","epiglottitis","HIV, AIDS","pneumonia","tuberculosis","upper respiratory tract infection");
		createMenu (2,120,"miscellaneous_1","airway compromise","tuberculosis");
		
	createMenu (1,130,"trauma","abdominal trauma","airway trauma","chest trauma","head injury","extremity trauma","facial trauma","genitourinary trauma","gunshot wounds","multisystem trauma","+miscellaneous_2");
		createMenu (2,125,"miscellaneous_2","blunt trauma","penetrating trauma","SCIWORA","trauma in pregnancy");
		
	createMenu (1,140,"miscellaneous_0","+dermatology","+endocrine/metabolic","+environmental","+respiratory infections","+other infections","+overdoses","+poisonings","+psychiatry","+other_0");
		createMenu (2,180,"dermatology","animal bites","dermatology of chronic disease","hemorrhagic rashes","infectious exanthems","rashes","skin cancers","skin parasites","skin and soft tissue infections");
		createMenu (2,135,"endocrine/metabolic","acid-base disorders","Addison\'s disease","diabetic emergencies","diabetic ketoacidosis","electrolyte disorders","myxedema coma","thyrotoxicosis");
		createMenu (2,150,"environmental","altitude sickness","burns","chemical injuries","decompression sickness","electrical injury","frostbite","heat-related illness","hypothermia","near-drowning");
		createMenu (2,170,"other infections","CNS infections","endocarditis","HIV, AIDS","osteomyelitis","post-op infection","sepsis","skin and soft tissue infections","STDs","urinary tract infections");
		createMenu (2,160,"overdoses","acetominophen overdose","ASA/salicylate overdose","barbiturate overdose","benzodiazepine overdose","iron overdose","opiate overdose","sedative-hypnotics","TCA overdose");
		createMenu (2,160,"poisonings","amphetamines","alcohols","carbon monoxide poisoning","cocaine abuse","heavy metal toxicity","lithium toxicity","poisonous plant ingestion");
		createMenu (2,120,"psychiatry","depression","mania","Munchhausen\'s","personality disorder","psychosis");
		createMenu (2,135,"other_0","alcoholic patient","child abuse","elder abuse","febrile neutropenia","immunocompromise","i.v. drug abuse","sexual abuse, assault","substance withdrawal","transplant patients");
?>

</BODY>

This source code displayed in HTML format using the freeware source.php by Paul Postuma and Ars Informatica