Ejemplo n.º 1
0
            echo "<td>" . $values['username'] . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = "<input type='text' class='input-medium' name='email' value='" . $values['email'] . "' />";
            $string .= "<input type='hidden' name='action' value='update-email' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_email') . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = select('group', Users::types(), $values['group'], 'input-small');
            $string .= "<input type='hidden' name='action' value='update-group' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_group') . "</td>" . nl();
            // Build the miniForm to update the user's email address
            $string = "<input type='password' class='input-medium' name='password' value='password' />";
            $string .= "<input type='hidden' name='action' value='update-password' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_password') . "</td>" . nl();
            /*echo "<td>" . Options::userGet($id, 'firstName') . "</td>". nl();*/
            // Build the miniForm to update the user's email address
            $string = bool_select(Activation::status($id), 'active');
            $string .= "<input type='hidden' name='action' value='update-activation' />";
            echo "<td>" . miniform($string, $id, 'user_id', 'users_update_activation') . "</td>" . nl();
            /*echo "<td>" . Options::userGet($id, 'firstName') . "</td>". nl();*/
            echo "</tr>" . nl();
        }
    }
    ?>

<?php 
    // If the user is just a normal user
    if ($admin == false) {
        ?>
  <thead>
      <tr>
        <th>Username</th>