<div class="container" style="padding-top:42px;">
	<div class="row">
	   <div class="span12">﻿<H2>编辑用户</H2>
			<form class="form-horizontal" method="post" action="">
				<input type="hidden" name="id" value="<?php echo $users->id; ?>">
				<div class="control-group">
          			<label class="control-label" for="name">用户名</label>
          			<div class="controls">
            			<input type="text" class="input-xlarge" id="name" name="name" value="<?php echo $users->user; ?>">
          			</div>
        		</div>
				<div class="control-group">
          		<label class="control-label" for="email">电子邮件</label>
          		<div class="controls">
            		<input type="text" class="input-xlarge" id="email" name="email"  value="<?php echo $users->email; ?>">
          		</div>
        	</div>
		<div class="control-group">
			<label class="control-label" for="group">分组</label>
			<div class="controls">
				<select name="group" value="<?php echo $users->gid; ?>">
       				<?php
       					foreach($group as $key=>$val){
       						echo "<option value=\"{$val->id}\"  selected>{$val->name}</option>";
       					}
       				?>
				</select>
			</div>
        </div>
		<div class="form-actions">
			<button type="submit" class="btn btn-primary">保存</button>
		</div>
	</form>﻿    		
</div>
</div>
</div>

</body>
</html>







