<!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  "header.php"?>
     
     <!--content-->
     <div class="wrap">
          <div class="hspace1"></div>
          <!--left-->
          <div class="con_left">
               <%include file = "admin/sys/sub_menu.tpl"%>
          </div>
          <!--right-->
          <div class="con_right">
                        <!--menu-->
                        <div class="cr_menu">
                             <%include file = "admin/main_menu.tpl"%>
                        </div>
                        <div class="position">
                        您所在的位置：<b>系统管理</b>>><b>管理员<%if $info%>编辑<%else%>添加<%/if%></b>
                        </div>

                        <!--搜索结果列表-->
                        <div class="cr_form">
						<form method="post"  name="form_user" id="form_user" action="/admin/sys/save" onsubmit="return checkForm(this);">
						<input type="hidden" id="id" name="id" value="<%$info.user_id%>" />
                         <table width="92%" cellspacing="0">
                        <tr>
                                        <th width="15%">*用户名：</th>
                                    <td width="45%"><input name="user_name" type="text" id="user_name" value="<%$info.user_name%>" class="insert_text" valid="trim|required|alpha_numeric|max_length:16" /></td>
                                    <td width="40%" colspan="2" id="user_name_msg">&nbsp;</td>
                               </tr>
                                  <tr>
                                        <th>*真实姓名：</th>
                                        <td><input name="real_name" type="text" id="real_name" value="<%$info.real_name%>" class="insert_text" valid="trim|required|max_length:16" /></td>
                                        <td colspan="2" id="real_name_msg"></td>
                                  </tr>
				  <tr>
				    <th><%if $info.uid == 0%>
				      *
				      <%/if%>
				      密码：</th>
				    <td><input name="user_pwd" type="password" id="user_pwd" value="" class="insert_text" <%if $info.uid == 0%>valid="trim|required|max_length:16"<%/if%> />
				    </td>
				    <td colspan="2" id='user_pwd_msg'></td>
				  </tr>
				  <tr>
				    <th><%if $info.uid == 0%>
				      *
				      <%/if%>
				      密码确认：</th>
				    <td><input name="user_pwd2" type="password" id="user_pwd2" value="" class="insert_text" <%if $info.uid == 0%>valid="trim|required|max_length:16"<%/if%> />
				    </td>
				    <td colspan="2" id='user_pwd2_msg'></td>
				  </tr>

                                  <tr>
                                        <th>*状态：</th>
                                        <td> 
											<%array value="1:激活,0:停用" assign="radios"%>
											<%if $info%><%assign var="selected" value=$info.active%><%else%><%assign var="selected" value=1%><%/if%>
											<%html_radios options=$radios name="active" selected=$selected separator="&nbsp;"%>
                                        </td>
                                        <td colspan="2">
                                        </td>
                                  </tr>										  							  							  
                                  <tr>
                                        <td colspan="4" class="cr_formop">
                                            <span class="button"><input name="" type="submit" value="提 交" /><input type="button" value="返 回" onclick="window.location.href='/admin/sys/show'" /></span> 
                                            <span class="backtop"><a href="#">返回顶部 TOP</a></span>
                                        </td>
                                 </tr>
                            </table>
						  </form>
                    </div>
                   </div>
          </div>
     </div>  
</body>
</html>
