/js/menu.js"></script>
<link rel="stylesheet" href="<?php 
echo ADMIN_LAYOUT_PATH;
?>
/css/menu.css">
<div class="row" >
	<?php 
if (hm_get('mes') == 'add_success') {
    ?>
		<div class="alert alert-success" role="alert"><?php 
    echo _('Đã tạo trình đơn, bây giờ bạn có thể chỉnh sửa nó');
    ?>
</div>
	<?php 
}
?>

	<div class="col-md-12">
		<h1 class="page_title"><?php 
echo _('Tạo hoặc sửa trình đơn');
?>
</h1>
	</div>
	<div class="col-md-12">
	
		<div class="row admin_fullbar_box">
		
			<div class="col-md-3 menu_select_choise">
				<?php 
menu_select_choise();
?>
Exemplo n.º 2
0
?>
/css/menu.css">
<link rel="stylesheet" href="<?php 
echo ADMIN_LAYOUT_PATH;
?>
/css/jquery.nestable.css">
<script src="<?php 
echo ADMIN_LAYOUT_PATH;
?>
/js/jquery.nestable.js"></script>
<script>
$(document).ready(function(){
    var updateOutput = function(e)
    {
        var list   = e.length ? e : $(e.target),
            output = list.data('output');
        if (window.JSON) {
            output.val(window.JSON.stringify(list.nestable('serialize')));
		} else {
			$.notify('Trình duyệt của bạn cần phải hỗ trợ JSON', { globalPosition: 'top right',className: 'warning' } );
        }
    };
    $('#nestable').nestable().on('change', updateOutput);
    updateOutput($('#nestable').data('output', $('#nestable-output')));
});
</script>
<div class="row" >
	<?php 
if (hm_get('mes') == 'add_success') {
    ?>
		<div class="alert alert-success" role="alert"><?php 
$menu_location = $hmmenu->menu_location;
foreach ($menu_location as $location) {
    $location_name = $location['name'];
    ?>
				<div class="col-md-6">
					<div class="form_new_menu"> 
						<label><?php 
    echo $location['nice_name'];
    ?>
</label>
					</div>
				</div>
				<div class="col-md-6">
					<?php 
    $checked = get_option(array('section' => 'theme_setting', 'key' => $location_name));
    menu_select_choise('name=menu[' . $location_name . ']&checked=' . $checked);
    ?>
				</div>
			<?php 
}
?>
			<div class="col-md-12">
				<div class="form-group"> 
					<button name="submit" type="submit" class="btn btn-primary fright"><?php 
echo _('Lưu vị trí trình đơn');
?>
</button>
				</div>
			</div>
		</div>
	</div>