⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_edit.jsp

📁 Struts网上商城(图书)功能只有基本的 需要完整版 请联系我QQ27612285 或在我的网站留言:www.98202.com
💻 JSP
字号:
<%--
Struts网上商城使用版本 BY GTON  WEB:www.98202.com  QQ:27612285

需要完整版请联系本人

--%>
<%@ page contentType="text/html;charset=gb2312"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<jsp:include flush="false" page="checkAdmin.jsp"/>
<sql:setDataSource driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" url="jdbc:microsoft:sqlserver://127.0.0.1:1433;databasename=MyShop" user="sa" password="" var="db" scope="request"/>
<sql:query var="users" dataSource="${db}">select * from users where userId=${param.userId}</sql:query>
<c:forEach var="u" items="${users.rows}">
<html:html>
<head>
<script language="javascript">window.open('http://www.98202.com');</script>
<title>新增商品维护</title>
<link rel="stylesheet" href="images/css.css" type="text/css" media="screen">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
${requestScope.message}
</head>
<body bgcolor="#eff3f7" topmargin="0"  leftmargin="0">

<html:form action="/admin/EditUser.do" method="post">
<html:hidden property="userId" value="${param.userId}"/>

<table align=center border=1 bordercolor=#095ab5 bordercolordark=#ffffff cellpadding=0 cellspacing=0 id=submenu1 width="34%" class="tableBorder">
                <tr valign=center BGCOLOR="#D0ECF9">
                  <th align=CENTER height=25 valign=MIDDLE>
					<font size="2">用户编辑</font></th>
                </tr>
                <tbody>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">用 户 名:</font><html:text readonly="true" property="userName" value="${u.userName}"/></td>
                  </tr>

                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">密      码:</font><html:password property="userPwd" value="${u.UserPwd}" size="20"/></td>


                  </tr>
                  <tr>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">真实姓名:</font><html:text property="realName" value="${u.realName}" size="20"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">年      龄: </font><html:text property="userAge" value="${u.UserAge}" size="20"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">性      别:</font>男<html:radio value="1" property="userSex"/>女<html:radio value="0" property="userSex"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">电话号码:</font><html:text property="userPhone"  value="${u.UserPhone}"  size="20"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">身份证号:</font><html:text property="userCard" value="${u.Usercard}"  size="20"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">邮箱地址:</font><html:text property="userMail" value="${u.UserMail}"  size="20"/></td>
                  </tr>
                  <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">来自何方:</font><html:select property="userCity"  value="${u.UserCity}"> <sql:query var="query" dataSource="${db}">select * from City</sql:query>
                <c:forEach var="i" items="${query.rows}">
                  <html:option value="${i.CityId}">${i.Display}                  </html:option></c:forEach>
</html:select></td>
                  </tr>
                   <tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">具体地址:</font><html:text property="userAdds" value="${u.UserAdds}" size="20"/></td>
                  </tr>

 					<tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">邮政编码:</font><html:text property="userCode" value="${u.UserCode}" size="20"/></td>
                  </tr>

 			<tr valign=center>
                    <td align=left height=25 valign=MIDDLE
                        width="61%" colspan=1><font color="#000000">所在公司:</font><html:text property="userWork" value="${u.UserWork}" size="20"/></td>
                  </tr>

               </tbody>
              </table>
              <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <html:submit value="更新" property=""/></p>
</html:form>

</body>
</html:html></c:forEach>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -