<?php
if (!defined('USING_SYSTEM')) exit;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="admin/images/page.css" />
<script type="text/javascript" src="skins/common/images/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="admin/images/page.js"></script>
<title>Filiant Control Panel</title>
</head>
<body>
<div class="bigTips"<?php echo ($tips=='')?'':' style="display:block;"' ?>><?php echo $tips ?></div>
<form id="mainForm" action="" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th colspan="3">编辑用户</th>
  </tr>
  <tr>
    <td class="title" width="150">用户名</td>
    <td width="400"><?php echo $user->username ?></td>
    <td class="tips">用户的登录账户名</td>
  </tr>
  <tr>
    <td class="title">邮箱</td>
    <td><input name="emailTxt" id="emailTxt" type="text" class="textbox" value="<?php echo $user->email ?>" /></td>
    <td class="tips">用户的邮箱</td>
  </tr>
  <tr>
    <td class="title">新密码</td>
    <td><input name="passwordTxt" id="passwordTxt" type="text" class="textbox" /></td>
    <td class="tips">不修改密码请留空</td>
  </tr>
  <tr>
    <td class="title">用户组</td>
    <td class="dropdown">
      <select name="groupTxt" id="groupTxt">
<?php
foreach($groups as $group) {
	echo '<option value="'.$group['id'].'">'.$group['name'].'</option>';
}
?>
      </select>
<script type="text/javascript">
$('#groupTxt').val('<?php echo $user->class ?>');
</script>
    </td>
    <td class="tips">添加用户后的默认用户组</td>
  </tr>
  <tr>
    <td class="title">扩展空间</td>
    <td><input name="diskExtTxt" id="diskExtTxt" type="text" class="textbox" value="<?php echo $user->disk_ext ?>" /></td>
    <td class="tips">为用户单独扩展空间（单位字节）</td>
  </tr>
</table>
<div class="controls">
  <a class="button" href="javascript:void(0);" onclick="$('#mainForm').trigger('submit');return false;">编辑<i></i></a>　<a class="button" href="admin.php?ac=p201">返回<i></i></a>
</div>
</form>
</body>
</html>