<td><?php 
            echo escape_html($user_data['username']);
            ?>
</td>
            <th>用户等级</th>
            <td><?php 
            echo $user_data['level'];
            ?>
</td>
          </tr>
        </table>
      </div>
    </div>

<?php 
            if (auth_can_change_password($vars['user_id'])) {
                ?>

    <div class="col-md-4">
      <div class="well">
        <form id="edit" name="edit" method="post" class="form-horizontal" action="" style="margin-bottom: 0;">
        <input type="hidden" name='action' value='changepass'>
        <div id="change_password">
          <fieldset>
            <legend>更改密码</legend>
            <div class="control-group">
              <label class="control-label" for="new_pass">新密码</label>
              <div class="controls">
                <input type="password" name="new_pass" size="32" value="">
              </div>
            </div>
/**
 * Observium Network Management and Monitoring System
 * Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
 *
 * @package    observium
 * @subpackage webui
 * @author     Adam Armstrong <*****@*****.**>
 * @copyright  (C) 2006-2013 Adam Armstrong, (C) 2013-2016 Observium Limited
 *
 */
register_html_title("User preferences");
$navbar['class'] = 'navbar-narrow';
$navbar['brand'] = 'User Preferences';
$pages = array('general' => 'General', 'authentication' => 'Authentication', 'authlog' => 'Auth Log');
if (!auth_can_change_password($_SESSION['username'])) {
    unset($pages['authentication']);
}
if (!$vars['section']) {
    $vars['section'] = "general";
}
foreach ($pages as $page_name => $page_desc) {
    if ($vars['section'] == $page_name) {
        $navbar['options'][$page_name]['class'] = "active";
    }
    $navbar['options'][$page_name]['url'] = generate_url(array('page' => 'preferences', 'section' => $page_name));
    $navbar['options'][$page_name]['text'] = escape_html($page_desc);
}
/*
$navbar['options_right']['add']['url']       = '#add_contact_modal';
$navbar['options_right']['add']['link_opts'] = 'data-toggle="modal"';