<?php
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Created: 1/10/2011	ELL
// Revised: 2/10/2012	ELL
// Added table prefix handling.
// 
// 
	include ("check_session.php");
	
	$menu_name = $_POST['selectMenu3'];
	$menu_type = $_POST['menu_type3'];

	if (($menu_name != "") && isset($menu_name))
	{
		$query = "UPDATE `" . BWB_TABLE_PREFIX . "menus` SET `menu_type` = '$menu_type' WHERE `menu_name` = '$menu_name'";
		$cnt = $bwb_dbh->exec($query);
	}
	
	header("Location: manage_menu.php?menu=$menu_name");
	
?>
