<table width="100%" cellpadding="5" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=menus&theme=<?php echo $data["theme"] ?>">Menus</a>&nbsp;&gt;&nbsp;<a href="index.php?section=menus&action=edit_menu&theme=<?php echo $data["theme"] ?>&menu=<?php echo $data["menu"]; ?>"><?php echo $data["menu_name"]; ?></a></td></tr>
	<tr><td>
	<table cellpadding="5" cellspacing="2" border="0" align="center" width="500">
	<tr><td class="lined blue_bcg white_body padded" align="center">Logic Item Builder</td></tr>
	<tr><td class="form_cell"><table cellpadding="0" cellspacing="3" border="0" align="center">
	<form action="" name="logic" onSubmit="return false;HS_InsertLogic(this.form);">
		<tr><td class="body" align="right">Supported Patterns</td><td class="highlight"><?php
		admin_form_element( array ("type" => "select", "name" => "patterns", "options" => $data["patterns"], "javascript" => "onChange='HS_InsertPattern(this.form)'") );
		?></td></tr><tr><td class="body" align="right">Pattern Output</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "pattern", "size" => 23) );
		?></td></tr>
		<tr><td class="body" align="right">Condition If</td><td class="highlight"><?php
		admin_form_element( array ("type" => "select", "name" => "condition", "options" => $data["conditions"], "javascript" => "onChange='HS_InsertLogic(this.form)'") );
		?></td></tr><tr><td class="body" align="right">Then</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "option1", "size" => 23, "javascript" => "onChange='HS_InsertLogic(this.form)'") );
		?></td></tr><tr><td class="body" align="right">Else</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "option2", "size" => 23, "javascript" => "onChange='HS_InsertLogic(this.form)'") );
		?></td></tr><tr><td class="body" align="right">Logic Output</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "logic", "size" => 40) );
		?></td></tr>
		<tr><td>&nbsp;</td><td><?php
		admin_form_element( array ("type" => "button", "value" => "Build Logic Item") );
		?></td></tr>
	</form>
	</table></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">Item Settings</td></tr>
	<tr><td class="form_cell"><table cellpadding="0" cellspacing="3" border="0" align="center">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="menus">
	<input type="hidden" name="action" value="save_item">
	<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
	<input type="hidden" name="menu" value="<?php echo $data["menu"]; ?>">
	<input type="hidden" name="item" value="<?php echo $data["item"]; ?>">
		<tr><td class="body">Active Position</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "on", "value" => $data["values"][on], "size" => 40) );
		?></td></tr>
		<tr><td class="body">Inactive Position</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "off", "value" => $data["values"][off], "size" => 40) );
		?></td></tr>
		<tr><td class="body">Linked to</td><td class="highlight"><?php
		admin_form_element( array ("type" => "input", "name" => "link", "value" => $data["values"]["link"], "size" => 40) );
		?></td></tr>
		<tr><td class="body">Activate on Page</td><td class="highlight"><?php
		$options[""] = "Please, select...";
		$options = array_merge($options,$data["pages"]);
		admin_form_element( array ("type" => "select", "name" => "page", "value" => $data["values"][page], "options" => $options) );
		?></td></tr>
		<tr><td class="body">Activate Within Group</td><td class="highlight"><?php
		$options = array();
		$options[""] = "Please, select...";
		while(list($key,$val) = each($data["groups"])){
			$options[$key] = $val;
		}//while
		admin_form_element( array ("type" => "select", "name" => "group", "value" => $data["values"][group], "options" => $options) );
		?></td></tr>
		<tr><td colspan="2" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link"]) );
		echo "&nbsp;";
		admin_form_element( array ("type" => "button", "value" => "Update") );
		?></td></tr>
	</form>
	</table></td></tr>
	</table>
	</td></tr>
</table>