<?php
// $Id: separator.menu.html.php,v 1.2 2003/10/05 14:42:24 saka_car Exp $
/**
* Administrator menu component item presentation layer
* @package Mambo Open Source
* @Copyright (C) 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under GNU/GPL License: http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 1.2 $
**/

// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/**
* Writes the edit form for new and existing content item
*
* A new record is defined when <var>$row</var> is passed witht the <var>id</var>
* property set to 0.
* @param mosContent The category object
*/

class separator_menu_html {

	function edit( &$menu, &$olist, &$glist, &$parlist, $option ) {
?>
		<script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			var form = document.adminForm;
			submitform( pressbutton );
		}
		</script>

		<form action="index2.php" method="POST" name="adminForm">

		<table cellpadding="5" cellspacing="0" border="0" width="100%">
			<tr>
				<td colspan="2" class="sectionname" >
					<?php echo $menu->id ? 'Edit' : 'Add';?> Menu Item - Separator
				</td>
			</tr>
		</table>

		<table cellpadding="5" cellspacing="0" border="0" width="100%" class="adminform">
			<tr>
				<td align="right">Pattern:</td>
				<td>
					<input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo $menu->name; ?>" />
				</td>
			</tr>
			<tr>
				<td align="right">Parent Item:</td>
				<td>
					<?php echo $parlist;?>
				</td>
			</tr>

			<tr>
				<td valign="top" align="right">Ordering:</td>
				<td>
					<?php echo $olist; ?>
				</td>
			</tr>
			<tr>
				<td valign="top" align="right">Access Level:</td>
				<td>
					<?php echo $glist; ?>
				</td>
			</tr>
			<tr>
				<td valign="top" align="right">Parameters:</td>
				<td>
					<textarea name="params" cols="50" rows="5" class="inputbox"><?php echo $menu->params; ?></textarea>
				</td>
			</tr>
		</table>

		<input type="hidden" name="option" value="<?php echo $option;?>" />
		<input type="hidden" name="id" value="<?php echo $menu->id; ?>" />
		<input type="hidden" name="link" value="" />
		<input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?>" />
		<input type="hidden" name="type" value="<?php echo $menu->type; ?>" />
		<input type="hidden" name="browserNav" value="3" />
		<input type="hidden" name="task" value="" />
		</form>
<?php
	}
}
?>
