<?php /* Smarty version Smarty-3.1.11, created on 2025-03-04 12:49:16
         compiled from "../views/obgy/_menu/arrange.html" */ ?>
<?php /*%%SmartyHeaderCode:114065591667c7674cc0f124-74150337%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '247858c2b0717d93612e1a0614c9aef2d009346c' => 
    array (
      0 => '../views/obgy/_menu/arrange.html',
      1 => 1542464108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '114065591667c7674cc0f124-74150337',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'result' => 0,
    'value' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67c7674cdf11d3_62528560',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67c7674cdf11d3_62528560')) {function content_67c7674cdf11d3_62528560($_smarty_tpl) {?>
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="arrangeMainModal" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds30">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">

                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-cogs"></i> Arrange
                                    </div>
                                </div>
                                <div class="portlet-body">
                                    <div class="scroller"  data-always-visible="1" data-rail-visible="0">

                                        <ul id="sortable" class="list-group ">

                                            <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['result']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                                            <li id="item_<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
" class="ainli" style="text-align: left;"><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?>
</li>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                        <div class="modal-footer">

                            <button type="button" class="btn default" id="closemodel_arrange" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>


<script>
    var hosturl = $('#hosturl').val();
    $("#sortable").sortable({
        update: function () {
            var datasorted = $("#sortable").sortable('serialize');
            $.ajax({
                url: hosturl + '/controllers/_menu.php?ac=sortable',
                type: "POST",
                data: {datasorted: datasorted},
                success: function (data)  		// A function to be called if request succeeds
                {
                    // alert(data);
                },
                error: function () {
                    alert("There was an error while sending.");
                }
            });
        }
    });
</script>


<?php }} ?>