<?php /* Smarty version 2.6.22, created on 2016-11-22 20:52:51
         compiled from /data/vhosts/orders.eurojaponautosupply.com/httpdocs/ultimate_support_chat/modules/users/views/index.html */ ?>
<div class="usc_app_page_wrap" style="min-height:500px">
<?php if ($this->_tpl_vars['users']): ?>
<div class="row">
    <div class="col-xs-12">
        <div class="panel">
            <header class="panel-heading">Operators</header>
            <button class="btn btn-block btn-primary op_button" onclick="window.location.href = applicationPath + 'users/add'">Add New</button>
            <span id="error_handling" class="op_error_handeling"></span>
            <div class="panel-body table-responsive">
           
                <table class="table table-hover">
                    <tr>
                        <th>AVATAR</th>
                        <th>DISPLAY NAME</th>
                        <th>FIRST NAME</th>
                        <th>LAST NAME</th>
                        <th>EMAIL</th>
                        <th>ADMIN</th>
                        <th>STATUS</th>
                    </tr>

                    <?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>

                    <tr>
                        <td><img src="<?php if ($this->_tpl_vars['i']['avatar'] != ''): ?><?php echo $this->_tpl_vars['data_server']; ?>
<?php echo $this->_tpl_vars['i']['avatar']; ?>
<?php else: ?><?php echo $this->_tpl_vars['data_server']; ?>
config/themes/img/avatars/default.png<?php endif; ?>" width="30" height="30"/></td>
                        <td><?php echo $this->_tpl_vars['i']['username']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['i']['firstname']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['i']['lastname']; ?>
</td>
                        <td><?php echo $this->_tpl_vars['i']['email']; ?>
</td>
                        <td><?php if ($this->_tpl_vars['i']['permissions'] == '1'): ?><i class="fa fa-check"></i><?php else: ?><i class="fa fa-close"></i><?php endif; ?></td>
                        <td><span id="operator_<?php echo $this->_tpl_vars['i']['user_id']; ?>
_status" class="label label-<?php if ($this->_tpl_vars['i']['status'] > $this->_tpl_vars['time_expired']): ?>primary<?php elseif ($this->_tpl_vars['i']['status'] == 'away'): ?>warning<?php else: ?>danger<?php endif; ?>"><?php if ($this->_tpl_vars['i']['status'] > $this->_tpl_vars['time_expired']): ?>Online<?php else: ?>Offline<?php endif; ?></span></td>
                        <td onclick="edit(<?php echo $this->_tpl_vars['i']['user_id']; ?>
)"><i class="fa fa-edit tip_tip" title="Edit"></i></td>
                        <td onclick="delete_operator(<?php echo $this->_tpl_vars['i']['user_id']; ?>
)"><i class="fa fa-trash tip_tip" title="Delete"></i></td>
                    </tr>

                    <?php endforeach; endif; unset($_from); ?>

                </table>
            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div>
</div>
<?php endif; ?>
</div>

<script src="<?php echo $this->_tpl_vars['data_server']; ?>
js/users.min.js" type="text/javascript"></script>