Esempio n. 1
0
$attributes = array('class' => 'form-horizontal');
?>
                    <?php 
echo form_open('', $attributes);
?>
                    
                        <fieldset>

                            <!-- Select Basic -->
                            <div class="form-group">

                                <div class="col-md-6">
                                    <select id="to_user" name="to_user" class="form-control">
                                        <option value="0">Select User</option>
                                        <?php 
$users = get_users_list();
?>
                                        <?php 
foreach ($users as $user) {
    ?>
                                            <?php 
    if ($user->id == $this->session->userdata('id')) {
        continue;
    }
    ?>
                                            <option 
                                                value="<?php 
    echo $user->id;
    ?>
" 
                                                <?php 
Esempio n. 2
0
function get_user_byID($user_id)
{
    $users = get_users_list();
    $i = 0;
    $output = false;
    while ($i < count($users)) {
        if ((int) $users[$i]['id'] === (int) $user_id) {
            $output = $users[$i];
            break;
        }
        $i++;
    }
    unset($output['secretphrase']);
    return $output;
}
Esempio n. 3
0
                                <div class="tab-content">
                                        <div role="tabpanel" class="tab-pane active" id="useri">
                                                <table class="table">
                                                      <thead>
                                                        <tr>
                                                          <th>#</th>
                                                          <th>Nume</th>
                                                          <th>Username</th>
                                                          <th>Departament</th>
                                                          <th>Rapoarte Complete</th>
                                                          <th>Rapoarte Incomplete</th>
                                                        </tr>
                                                      </thead>
                                                      <tbody id="body_users_table">
                                                              <?php 
get_users_list();
?>
                                                      </tbody>
                                                    </table>
                                        </div>
                                        <div role="tabpanel" class="tab-pane" id="adauga_user">
                                            <?php 
if (user_can(1)) {
    ?>
                                            
                                                <div class="panel panel-default" style="max-width:500px;">
                                                        <div class="panel-body">
                                                                <form id="add_user" name="add_user" class="well">
                                                                        <div class="form-group">
                                                                                <label for="">Nume</label>
                                                                                <input type="text" name="user_name" class="form-control" value="">
Esempio n. 4
0
include 'header.php';
include_once '../include/users.php';
?>
<div align="center">
<span class="head_top">Список пользователей:</span>
<table id="rounded-corner">
  <thead>
  <tr>
    <th class="rounded-left">Логин</th>
    <th> Ф.И.О.</th>
    <th class="rounded-right">&nbsp;</th>
  </tr>
  </thead>
  <tbody>
<?php 
$user_list = get_users_list();
foreach ($user_list as $user) {
    echo "<tr><td>{$user['login']}</td><td>{$user['last_name']} {$user['first_name']} {$user['middle_name']}</td><td>\n  <a href=\"user.php?user_id={$user['user_id']}&" . uniqid('') . "&keepThis=true&TB_iframe=true&height=400&width=600\" class=\"thickbox\" title=\"Редактировать информацию об учителе\">Редактировать</a></td></tr>";
}
?>
</tbody>
<tfoot>
    	<tr>
       	  <td class="rounded-foot-left" colspan="2">&nbsp;</td>
        	<td class="rounded-foot-right"><a href="" onClick="javascript: tb_show('Добавить', 'user.php?<?php 
echo uniqid('');
?>
&keepThis=true&TB_iframe=true&height=400&width=600'); return false;" class="add" title="Добавить учителя">Добавить</a>
</td>
        </tr>
    </tfoot>