<%@page contentType="text/html; charset=GBK"%><%@include file="../../include/Admin.jsp"%><%@include file="../../include/DBCon.jsp"%><%if(!StrFormat.isNull(request.getParameter("act")) && !StrFormat.isNull(StrTrans.toGBK(request.getParameter("user")))){try{DBSql = "update admin set user='"+ StrTrans.toGBK(request.getParameter("user")) +"' where id="+AdmID;DBStmt = DBCon.createStatement();DBStmt.executeUpdate(DBSql);MesStr = "修改成功！";}catch(Exception ie){MesStr = "修改失败！";if(isShowErr!=0){MesStr += "\\r\\nErrInfo:"+ie;}}finally{if(DBRs!=null)DBRs.close();if(DBStmt!=null)DBStmt.close();}out.print("<script language=\"javascript\" src=\"../../js/common.js\"></script><script language=\"javascript\">alert(\""+MesStr+"\");history.back(-2);</script>");}else{DBSql = "select * from admin where id="+AdmID;DBStmt = DBCon.createStatement();DBRs = DBStmt.executeQuery(DBSql);if(DBRs.next()){%><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK" /><meta name="keywords" content="向继根,Xiang Jigen,QQ,190582560"><meta name="description" content="Programmer:向继根 QQ:190582560 Email:190582560@qq.com"><meta name="author" content="向继根,Xiang Jigen" /><title><%=TitleStr%>修改资料</title><link rel="stylesheet" type="text/css" href="../images/Style.css"/><script type="text/javascript" src="../../js/min.js"></script><script type="text/javascript" src="../../js/common.js"></script><script type="text/javascript" src="../../js/css.js"></script><script type="text/javascript">function doCheck(){if(isNull($GenID('user').value)){alert('姓名不能为空！');		$GenID('user').focus();return false;}	return true;}</script></head><body><form action="?act=do" method="post" name="form" id="form" onSubmit="return doCheck();"><table cellpadding="0" cellspacing="1" class="table_list"><caption>修改资料</caption><tr><th width="20%"><strong>昵 称</strong></th><td>&nbsp;<%=StrFormat.isNull(DBRs.getString("name"),"")%></td></tr><tr><th><span class="red">*</span> <strong>姓 名</strong></th><td>&nbsp;<input type="text" name="user" id="user" value="<%=StrFormat.isNull(DBRs.getString("user"),"")%>" size="16" /></td></tr></table><div id="button"><input type="submit" name="dosubmit" class="button_style" value="确 定" />&nbsp;<input type="reset" name="reset" class="button_style" value="清 除" />&nbsp;<input type="button" name="button" class="button_style" value="返 回" onClick="history.back();"></div></form></body></html><%}else{out.print("<script language=\"javascript\">alert(\"无信息...\");history.back();</script>");}DBRs.close();DBStmt.close();}%><%@include file="../../include/DBConClose.jsp"%>