<?php echo $this->fetch('admin_head.htm'); ?>
<?php echo $this->fetch('nav.htm'); ?>

<div class="span10">
	  
		  <div class="page-header">
            <h3>更新用户</h3>
          </div>
		  
          <div class="row-fluid">
            <div class="span12">
	  
	  
	  
	  <form class="form-horizontal" method="post" action="?action=user&do=updata">
	  
	       <input type="text" name="id" value="<?php echo $this->_var['row']['id']; ?>" style="display:none;">
			<div class="control-group">
            <label for="input01" class="control-label">用户名：</label>
            <div class="controls">
              <input type="text" id="input01" class="input-xlarge" name="username" value="<?php echo $this->_var['row']['username']; ?>">
            </div>
          </div>
			
		<div class="control-group">
            <label for="input01" class="control-label">用户组：</label>
            <div class="controls">
              <select name="roleid">
			  
				<option value ="2"  <?php if ($this->_var['row']['roleid'] == "2"): ?>selected<?php endif; ?> >普通用户</option>
				<option value="1" <?php if ($this->_var['row']['roleid'] == "1"): ?>selected<?php endif; ?>>管理员</option>
			  </select>
            </div>
          </div>

          <div class="control-group">
            <label for="input01" class="control-label">密&nbsp;&nbsp;&nbsp;码：</label>
            <div class="controls">
              <input type="password" id="input01" class="input-xlarge" name="password">
            </div>
          </div>


		   <div class="control-group">
            <label for="input01" class="control-label">再次密码：</label>
            <div class="controls">
              <input type="password" id="input01" class="input-xlarge" name="password2">
            </div>
          </div>
		  
			<div class="form-actions">
            <button class="btn btn-success" type="submit" >保存</button>
			   <a class="btn" href="?action=user"><i class="icon-share"></i> 返回</a>		
          </div>   	
      </form>
		  
		  
	   
            </div>
          </div>
		  
		  
        </div>

		
<?php echo $this->fetch('foot.htm'); ?>