<?php /* Smarty version Smarty-3.1.11, created on 2023-10-16 18:45:33
         compiled from "../views/default/usergroupview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:641471100652d5a9da28654-57509757%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ec9ee1e3a1c85ff097b50ede14b68f2f5345597f' => 
    array (
      0 => '../views/default/usergroupview/show.html',
      1 => 1693253996,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '641471100652d5a9da28654-57509757',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'userGroupData' => 0,
    'userGroup' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_652d5a9dab0242_02714759',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_652d5a9dab0242_02714759')) {function content_652d5a9dab0242_02714759($_smarty_tpl) {?>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="#">مجموعات المستخدمين</a></li>
            <li class="active">عرض أسماء المجموعات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;">عرض أسماء المجموعات</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[1]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="usergroupController.php"><input type="button"  id="submit" style="margin-left: 12px"  class="btn btn-primary pull-left" value="إضافة جديد"/></a>
            </div>
            <div class="panel-body">

                <!---------- start outputString alert ----------->
                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>
                    <div class="clearfix"></div>
                </div>
                <!---------  end outputString alert ------------>

                
                <form id="form1" name="form1" method="post" action="usergroupController.php?do=executeOperation" onsubmit="if (Spry.Widget.Form.validate(this)) {
                            return countChoosenProducts('usergroupController');
                        } else {
                            return false;
                        }
                      " enctype="multipart/form-data">
                    
                    <div class="table-responsive">
                        <div style="display:inline;float: left;">
                            <div><a href="usergroupControllerAdmin.php" class="btn btn-success" target="_blank">GT4</a></div>
                        </div>
                        <table class="table table-black">
                            <thead>
                                <tr>
                                    <th class=" hidden-print">
                                        <label>
                                            <input type="checkbox" name="checkAll" id="checkAll"/>
                                        </label>
                                    </th>
                                    <th>اسم المجموعة</th>
                                    <th class=" hidden-print">حذف مؤقت</th>
                                    <th class=" hidden-print">تعديل</th>
                                    <th class=" hidden-print">نسخ</th>
                                    <th class=" hidden-print">حذف</th>
                                </tr>
                            </thead>
                            <tbody>

                                <?php  $_smarty_tpl->tpl_vars['userGroup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['userGroup']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['userGroupData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['userGroup']->key => $_smarty_tpl->tpl_vars['userGroup']->value){
$_smarty_tpl->tpl_vars['userGroup']->_loop = true;
?>
                                <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['userGroup']->value->conditions;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?>
                                <tr class="danger"> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['userGroup']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>

                                <tr> <?php }}?>
                                    <td class=" hidden-print">
                                        <label>
                                            <input type="checkbox" name="choosedItem[]" id="checked<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" class="choosenItem" value="<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
" />
                                        </label>
                                    </td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupname;?>
</td>
                                    <td class="hidden-print"> <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['userGroup']->value->conditions;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==0){?> <a href="usergroupController.php?do=tempdelete&id=<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
"  type="button" class="btn btn-default btn-lg removeicon"> </a> <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['userGroup']->value->conditions;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp4==1){?> <a  href="usergroupController.php?do=returndelete&id=<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
"  type="button" class="btn btn-default btn-lg correcticon"> </a><?php }}?> </td>
                                    <td class="hidden-print"><a href="usergroupController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
" type="button" class="btn btn-default btn-lg editicon"></a></td>
                                    <td class="hidden-print"><a href="usergroupController.php?do=copy&id=<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
" type="button" class="btn btn-default btn-lg copyicon"></a></td>
                                    <td class="hidden-print"><a href="#" name="dd" type="button" class="btn btn-default btn-lg deleteicon conformdel1" data-position="usergroupController.php?do=deleteFinaly&id=<?php echo $_smarty_tpl->tpl_vars['userGroup']->value->usergroupid;?>
" ></a></td>
                                </tr>
                                <?php } ?>

                            </tbody>

                        </table>
                        <div class="clearfix"></div>
                    </div>

                    <!-- Modal -->
                    <div class="hidden-print">
                        <div class="modal fade " id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        <h4 class="modal-title">تأكيد حذف مجموعة</h4>
                                    </div>
                                    <div class="modal-body"> هل تريد حذف هذه المجموعة؟ </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                                        <button type="button" class="btn btn-primary savemodel1">نعم</button>
                                    </div>
                                </div>
                                <!-- /.modal-content -->
                            </div>
                            <!-- /.modal-dialog -->
                        </div>
                    </div>
                    <!-- /.modal -->

                    <hr />
                    <div  class=" hidden-print">
                        <div class="col-lg-12">
                            <div class="well well-sm">
                                <div class="form-group">
                                    <div class="col-lg-4">
                                        <label for="operation"></label>
                                        <span id="spryselect1">
                                            <select name="operation" id="operation"  data-placeholder="اختر العملية"  class="select2 wdt100">
                                                <option></option>
                                                <option value="1">حذف مؤقت</option>
                                                <option value="2">إلغاء الحذف</option>
                                                <option value="3">حذف نهائي</option>
                                            </select>
                                            <span class="selectRequiredMsg">اختر العملية</span></span></div>
                                </div>
                                <div class="form-group">
                                    <div class="col-lg-4">
                                        <input name=""  class=" hidden-print btn btn-primary" type="submit" value="تنفيذ"/>
                                    </div>
                                </div>

                                <!-----------  start noElementsError alert ------------->
                                <div class="clearfix"></div>
                                <div id="noElementsError" class="alert alert-danger fade in" style="display:none;">
                                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">×</button>
                                    <p>يجب اختيار العناصر أولاً</p>
                                    <div class="clearfix"></div>
                                </div>
                                <!----------  end noElementsError alert -------------->

                                <div class="clearfix"></div>
                            </div>
                            <div  class="hidden-print">
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <div class="col-lg-4">
                                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
</script>
<?php }} ?>