?? enteruserinfo.jsp
字號:
<jsp:useBean id="userUseBean" class="com.sun.j2ee.workflow.control.web.UserUseBean" scope="session"></jsp:useBean>
<jsp:useBean id="userBean" class="com.sun.j2ee.workflow.user.model.UserModel" scope="request"></jsp:useBean>
<P align="center"><BR><BR>
Please Enter the Information for the User You Want to Create</P>
<P>
<%
String userID = request.getParameter("user_ID");
%>
<!-- this does not work on netscape
<FORM action="createuser" enctype="multipart/form-data">
-->
<FORM action="createuser" >
<CENTER>
<TABLE border="0" cellspacing=1 bgcolor="#e0d0b0">
<TBODY bgcolor="white">
<% if(userID!=null)
{
userBean = userUseBean.getUser(userID);
pageContext.setAttribute("userBean",userBean, pageContext.REQUEST_SCOPE);
%>
<INPUT type="HIDDEN" name="user_ID" value = "<%= userID%>" >
<TR>
<TD nowrap width="142">User ID <FONT color="#ff0000"></FONT></TD>
<TD width="471"><%=userID%></TD>
</TR>
<TR>
<TD nowrap width="142">Password <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="password" maxlength="30" name="password" value="<jsp:getProperty name="userBean" property="password"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">First Name <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="30" name="f_name" value="<jsp:getProperty name="userBean" property="f_name"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Last Name <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="30" name="l_name" value="<jsp:getProperty name="userBean" property="f_name"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Location <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="location" value="<jsp:getProperty name="userBean" property="location"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Phone <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="phone" value="<jsp:getProperty name="userBean" property="phone"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">E-Mail <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="email" value="<jsp:getProperty name="userBean" property="email"/>" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Title <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="title" value="<jsp:getProperty name="userBean" property="title"/>" /> </TD>
</TR>
<TR>
<TD>Role</TD>
<TD><SELECT name="role" size="1" class="content-fxd-sm">
<option value="<jsp:getProperty name="userBean" property="role" />" selected><jsp:getProperty name="userBean" property="role" /></option>
<option value="Manger">Manager</option>
<option value="Engineer">Engineer</option>
<option value="Other">Other</option>
</SELECT></TD>
</TR>
<INPUT type="HIDDEN" name="actiontype" value ="UPDATE_USER">
<%
}
else
{
%>
<INPUT type="HIDDEN" name="actiontype" value ="CREATE_USER">
<TR>
<TD nowrap width="142">User ID <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="30" name="user_ID" /></TD>
</TR>
<TR>
<TD nowrap width="142">Password <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="password" maxlength="30" name="password" /></TD>
</TR>
<TR>
<TD nowrap width="142">First Name <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="30" name="f_name" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Last Name <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="30" name="l_name" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Location <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="location" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Phone <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="phone" /> </TD>
</TR>
<TR>
<TD nowrap width="142">E-Mail <FONT color="#ff0000">*</FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="email" /> </TD>
</TR>
<TR>
<TD nowrap width="142">Title <FONT color="#ff0000"></FONT></TD>
<TD width="471"><INPUT size="20" type="text" maxlength="60" name="title" /> </TD>
</TR>
<TR>
<TD>Role</TD>
<TD><SELECT name="role" size="1" class="content-fxd-sm">
<option value="Manager">Manager</option>
<option value="Engineer">Engineer</option>
<option value="Other">Other</option>
</SELECT></TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
</CENTER>
<CENTER><BR>
<INPUT type="image" src="../images/button-submit2.gif" name="submit"></CENTER>
</FORM>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -