<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 16:55:55
         compiled from "..\views\default\userview\show.html" */ ?>
<?php /*%%SmartyHeaderCode:111826695387bb78d56-28612197%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c4cb948403928c4e03c451aedbfb2655cdac140e' => 
    array (
      0 => '..\\views\\default\\userview\\show.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '111826695387bb78d56-28612197',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'message' => 0,
    'youtubes' => 0,
    'UserGroupData' => 0,
    'UserGroup' => 0,
    'userData' => 0,
    'user' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6695387bbf5e43_91565067',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6695387bbf5e43_91565067')) {function content_6695387bbf5e43_91565067($_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 panel-m">
            <!-- Default panel contents -->


            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض المستخدمين<br />
                    <?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
                    <?php echo $_smarty_tpl->tpl_vars['message']->value;?>

                    <?php }?></h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[2]->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="userController.php" class="hidden-print"><input type="button"  style="margin-left: 12px"  id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </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 table-black">
                <thead>
                    <tr>
                        <th>اسم العضو</th>
                        <th>اسم المجموعة</th>
                        <th>تاريخ اخر نشاط</th>
                        <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;?>
 / <?php echo $_smarty_tpl->tpl_vars['user']->value->employeename;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user']->value->usergroupname;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user']->value->lastactivetime;?>
</td>
                        <td><?php if ($_smarty_tpl->tpl_vars['user']->value->loginip==''){?><span style="color: red; font-weight: bold;">سجل خروج</span><?php }else{ ?><span style="color: green; font-weight: bold;">سجل دخول</span><?php }?></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['user']->value->deviceType;?>
</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="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
            </div>
        </div>
    </div>
    <div class="clearfix"></div>
</div><?php }} ?>