<?php /* Smarty version Smarty-3.1.11, created on 2016-12-12 09:36:07
         compiled from "../views/default/userview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:742284350584e6f87282a42-05378266%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1d0448a6679c59e56fc32b3acab4c13660e25e78' => 
    array (
      0 => '../views/default/userview/show.html',
      1 => 1470051972,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '742284350584e6f87282a42-05378266',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'message' => 0,
    'UserGroupData' => 0,
    'UserGroup' => 0,
    'userData' => 0,
    'user' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_584e6f876b8a37_22027881',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_584e6f876b8a37_22027881')) {function content_584e6f876b8a37_22027881($_smarty_tpl) {?>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="userController.php?do=show">المستخدمين</a></li>
            <li class="active">عرض المستخدمين</li>
        </ol>
        <div class="panel panel-default">
            <!-- Default panel contents -->
            <div class="panel-heading">عرض المستخدمين <br />
                <?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
                <?php echo $_smarty_tpl->tpl_vars['message']->value;?>

                <?php }?> </div>
            <div class="panel-body">
                <form class="form-inline hidden-print" action="userController.php?do=show" method="post">
                    <div class="form-group">
                        <label class="sr-only">المجموعة</label>
                        <select class="select2 wdt100" name="usergroupid" onchange="this.form.submit();">
                            <option value="-1">اختر مجموعة</option>


                            <?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;
?>


                            <option value="<?php echo $_smarty_tpl->tpl_vars['UserGroup']->value->usergroupid;?>
"><?php echo $_smarty_tpl->tpl_vars['UserGroup']->value->usergroupname;?>
</option>



                            <?php } ?>



                        </select>
                    </div>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>
            <hr/>
            <!-- Table -->
            <table class="table">
                <thead>
                    <tr>
                        <th>اسم العضو</th>
                        <th>اسم المجموعة</th>
                        <th class="hidden-print">تعديل</th>
                        <th class="hidden-print">ايقاف</th>
                    </tr>
                </thead>
                <tbody>

                    <?php  $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['userData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
$_smarty_tpl->tpl_vars['user']->_loop = true;
?>
                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['user']->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['user']->value->conditions;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>

                    <tr> <?php }}?>
                        <td><?php echo $_smarty_tpl->tpl_vars['user']->value->username;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user']->value->usergroupname;?>
</td>
                        <td class="hidden-print"> <a href="userController.php?do=edit&userid=<?php echo $_smarty_tpl->tpl_vars['user']->value->userid;?>
" type="button" class="btn btn-default btn-lg editicon"></a> </td>
                        <td class="hidden-print"> <a href="userController.php?do=delete&userid=<?php echo $_smarty_tpl->tpl_vars['user']->value->userid;?>
&conditions=<?php echo $_smarty_tpl->tpl_vars['user']->value->conditions;?>
" type="button" class="btn btn-default btn-lg removeicon"></a> </td>
                    </tr>
                    <?php } ?>

                </tbody>

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



<div  class="hidden-print">
    <div class="col-lg-12">
        <div class="form-group">
            <div class="col-lg-4">
                <button type="button" onclick="window.print();" class="btn btn-success pull-right">طباعة</button>
            </div>
        </div>
    </div>
    <div class="clearfix"></div>
</div><?php }} ?>