<?php /* Smarty version Smarty-3.1.11, created on 2025-02-08 13:18:03
         compiled from "../views/obgy/_role/setting.html" */ ?>
<?php /*%%SmartyHeaderCode:24554980166cc92ab9c56c0-52117137%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8cac71fa4705fe6c0c422648a63741433c87384d' => 
    array (
      0 => '../views/obgy/_role/setting.html',
      1 => 1739049478,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '24554980166cc92ab9c56c0-52117137',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc92abaa19d7_66905949',
  'variables' => 
  array (
    'shcontrollname' => 0,
    'breadcrumbs' => 0,
    'role' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'dismenu' => 0,
    'controlls' => 0,
    'count' => 0,
    'single' => 0,
    'sin' => 0,
    'incount' => 0,
    'drawBtn' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc92abaa19d7_66905949')) {function content_66cc92abaa19d7_66905949($_smarty_tpl) {?><!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>

        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <?php echo $_smarty_tpl->tpl_vars['breadcrumbs']->value;?>

            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Setting in <?php echo $_smarty_tpl->tpl_vars['shcontrollname']->value;?>
 for "<?php echo $_smarty_tpl->tpl_vars['role']->value->name;?>
"</span>
                        </div>
                        <div class="actions" id="nestable_list_menu">


                            <a class="btn default btn-xs blue tooltips" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show" data-container="body" data-placement="top" data-original-title="Show">
                                <i class="icon-list"></i>
                                Show items
                            </a>

                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=insetting" method="post" class="form-horizontal" id="role_form">
                            <div class="form-body">
                                <!-- tabs -->
                                <input type="hidden" name="roleid" value="<?php echo $_smarty_tpl->tpl_vars['role']->value->id;?>
"/>
                                <div class="row">
                                    <div class="tabbable tabbable-custom tabbable-noborder ">
                                        <ul class="nav nav-tabs">
                                            <li class="active">
                                                <a href="#tab_setting_1" data-toggle="tab">
                                                    <i class="icon-notebook"></i>
                                                    Menu permissions
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#tab_setting_2" data-toggle="tab">
                                                    <i class="icon-crop"></i>
                                                    Controls permissions </a>
                                            </li>
                                            <li>
                                                <a href="#tab_setting_3" data-toggle="tab">
                                                    <i class="icon-crop"></i>
                                                    Main Page Buttons  </a>
                                            </li>
                                        </ul>


                                        <div class="tab-content mysettingrole">

                                            <div class="tab-pane active" id="tab_setting_1">

                                                <div class="note note-success">

                                                    <div class="form-group">
                                                        <label class="col-md-3 control-label">Change All permissions</label>
                                                        <div class="col-md-9">
                                                            <div class="radio-list">
                                                                <label class="radio-inline">
                                                                    <input type="radio" name="genmenurole" value="1"> Show </label>
                                                                <label class="radio-inline">
                                                                    <input type="radio" name="genmenurole" value="0" checked> Hide </label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                </div>


                                                <div class="dd" id="nestable_list_2">
                                                    <ol class="dd-list rolemenucheck">
                                                        <?php echo $_smarty_tpl->tpl_vars['dismenu']->value;?>

                                                    </ol>
                                                </div>


                                            </div>

                                            <div class="tab-pane fade" id="tab_setting_2">


                                                <div class="note note-success">

                                                    <div class="form-group">
                                                        <label class="col-md-3 control-label">Change All permissions</label>
                                                        <div class="col-md-9">
                                                            <div class="radio-list">
                                                                <label class="radio-inline">
                                                                    <input type="radio" name="gencontrollrole" value="1"> Access </label>
                                                                <label class="radio-inline">
                                                                    <input type="radio" name="gencontrollrole" value="0" checked> Deny </label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="panel-group accordion" id="accordion3">
                                                    <?php $_smarty_tpl->tpl_vars['count'] = new Smarty_variable(1, null, 0);?>
                                                    <input type="hidden" name="itrcontroll" value="<?php echo count($_smarty_tpl->tpl_vars['controlls']->value);?>
"/>
                                                    <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['controlls']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                                    <div class="panel panel-default">
                                                        <div class="panel-heading">
                                                            <h4 class="panel-title">
                                                                <a class="accordion-toggle accordion-toggle-styled collapsed" data-toggle="collapse" data-parent="#accordion3" href="#collapse_controll_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
">
                                                                    <?php echo $_smarty_tpl->tpl_vars['single']->value->label;?>
 </a>
                                                            </h4>
                                                        </div>
                                                        <div id="collapse_controll_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" class="panel-collapse collapse">
                                                            <div class="panel-body">
                                                                <ul class="list-group">
                                                                    <?php $_smarty_tpl->tpl_vars['incount'] = new Smarty_variable(1, null, 0);?>
                                                                    <input type="hidden" name="itrcontrollprop<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="<?php echo count($_smarty_tpl->tpl_vars['single']->value->props);?>
"/>
                                                                    <?php  $_smarty_tpl->tpl_vars['sin'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sin']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['single']->value->props; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sin']->key => $_smarty_tpl->tpl_vars['sin']->value){
$_smarty_tpl->tpl_vars['sin']->_loop = true;
?>
                                                                    <li class="list-group-item row nomargin custompadding">
                                                                        <div class="col-md-4">
                                                                            <label class="radio-inline"> <i class="icon-arrow-right"></i> <?php echo $_smarty_tpl->tpl_vars['sin']->value->proplabel;?>
</label></div>
                                                                        <input type="hidden" name="controllpropid<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
<?php echo $_smarty_tpl->tpl_vars['incount']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['sin']->value->id;?>
"/>
                                                                        <div  class="col-md-3 pull-right forroleradio">
                                                                            <div class="radio-list">
                                                                                <label class="radio-inline">
                                                                                    <input class="controllcheckyes control_prop_role_item" data-controlpropid="<?php echo $_smarty_tpl->tpl_vars['sin']->value->id;?>
" type="radio" name="proprolecheck<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
<?php echo $_smarty_tpl->tpl_vars['incount']->value;?>
" value="1" <?php if ($_smarty_tpl->tpl_vars['sin']->value->rolevalue==1){?> checked <?php }?>/>
                                                                                    Access </label>
                                                                                <label class="radio-inline">
                                                                                    <input  class="controllcheckno control_prop_role_item" data-controlpropid="<?php echo $_smarty_tpl->tpl_vars['sin']->value->id;?>
"  type="radio" name="proprolecheck<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
<?php echo $_smarty_tpl->tpl_vars['incount']->value;?>
" value="0" <?php if ($_smarty_tpl->tpl_vars['sin']->value->rolevalue==0){?> checked <?php }?>/>
                                                                                    Deny</label>
                                                                            </div>
                                                                        </div>
                                                                    </li>
                                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'incount', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['incount']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                                    <?php } ?>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'count', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                    <?php } ?>
                                                </div>

                                            </div>

                                            <div class="tab-pane fade" id="tab_setting_3">

                                                <div >
                                                    <ol class="dd-list">
                                                        <?php echo $_smarty_tpl->tpl_vars['drawBtn']->value;?>

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

                                    </div>
                                </div>



                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
<!--                                        <button type="submit" class="btn green">Update</button>-->
                                        <button type="button" class="btn default rtnshow" data-controll="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
">Cancel</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->


                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT --><?php }} ?>