<!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" />
<meta name="save" content="history"> 
<title><?php echo V('-:tpl/title');?>管理后台</title>
<link href="<?php echo W_BASE_URL;?>css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/admin.js"></script>
</head>
<body>
     <!--header-->
     <?php include  APP::tplFile("admin/header", false);?>
     
     <!--content-->
     <div class="wrap">
         
          <!--right-->
          <div class="con_right">
                        <div class="position">当前位置：帐号设置<em>></em>帐号管理<em>></em><strong>用户<?php if ($info['id']) {?>编辑<?php } else { ?>添加<?php } ?></strong></div>
                        <!--搜索结果列表-->
                        <div class="cr_form">
								<form method="post" name="form_user" id="form_user" action="" onsubmit="return checkForm(this);">
										<input type="hidden" id="id" name="id" value="<%$info.user_id%>" />
										<table cellspacing="0">
											<tr>
                                                <td width="315" class="tbtitle" ><label for="name"><em>*</em>帐号：</label></td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<?php if ($info['id']) {?>
													<?php echo $info['name'];?>
                                                    <input type="hidden" name="id" valid="required" value="<?php echo $info['id'];?>" />
                                                    <?php } else {?>
                                                    <input type="text" name="name" id="name" class="insert_text" valid="required" />
                                                    <?php }?>
                                                </td>
                                                <td><div id="name_msg"></div></td>
                                            </tr>
											<?php if (!$info['id']) {?>
                                            <tr>
                                                <td width="315" class="tbtitle" ><label for="pwd"><em>*</em>密码：</label></td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<input name="pwd" type="password" id="pwd" class="insert_text" valid="required" />
                                                </td>
                                                <td><div id="pwd_msg"></div></td>
                                            </tr>
                                            <tr>
                                                <td width="315" class="tbtitle" ><label for="re_pwd"><em>*</em>确认密码：</label></td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<input name="re_pwd" type="password" id="re_pwd" class="insert_text" valid="required" />
                                                </td>
                                                <td><div id="re_pwd_msg"></div></td>
                                            </tr>
											<?php }?>
                                            <tr>
                                                <td width="315" class="tbtitle" ><label for="real_name"><em>*</em>姓名：</label></td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<input name="real_name" type="text" id="real_name" value="<?php echo $info['real_name'];?>" class="insert_text" valid="required" />
                                                </td>
                                                <td><div id="real_name_msg"></div></td>
                                            </tr>
											
											<?php if ($info['id']) {?>
                                            <tr>
                                                <td width="315" class="tbtitle" >状态：</td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<?php echo $states[$info['state']];?>
                                                </td>
                                                <td></td>
                                            </tr>
											<tr>
                                                <td width="315" class="tbtitle" >添加时间：</td>
                                                <td></td>
                                            </tr>
                                            <tr class="from_row">
                                                <td>
                                                	<?php echo date('Y-m-d H:i:s', $info['add_time']);?>
                                                </td>
                                                <td></td>
                                            </tr>
												
											<?php }?>
												<tr>
													<td colspan="2" class="cr_formop">
														<span class="button"><input name="" type="submit" value="提 交" /></span>
													</td>
												</tr>
									   </table>
								</form>
						</div>
		   </div>
          </div>
     </div>  
</body>
</html>
