<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)admin_adduser.jsp    1.7    03/06/02     SMI"
   * 
   */
 --%>
<%@ include file="/layout/toptags.jsp"%>

<html locale="true">

<head>
<%@include file="/layout/page_head_section.jsp"%>
	<title>
		<bean:message  key="admin.user.add.title"/>
	</title>
</head>

<%@ page import="com.sun.netstorage.array.mgmt.cfg.admin.business.UserInterface" %>
<%@ page import="com.sun.netstorage.array.mgmt.cfg.admin.business.Role" %>

<%@ include file="/layout/bodytag.jsp"%>
<%@ include file="/layout/top.jsp"%>
<%@ include file="/layout/breadcrumb.jsp"%>
<%@ include file="/layout/spacer.jsp"%>
<%@ include file="/layout/user_messages.jsp"%>

<html:form action="root.menu.item3.item1.m1m2adduser.do">
<!-- hidden element which specifies the action for this form -->
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">

<jsp:include page="../layout/section_header.jsp" flush="true">
	<jsp:param name="sectionname" value="admin.user.add.title" />
</jsp:include>

<div class="content-layout">

<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
     	<td><img alt="" border="0" height="5"
src="images/general/dot.gif" width="15"><td> <bean:message key="admin.user.add.description" /><br> <br></td>
     </tr>
     <tr>
        <td><td>
        <table  bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td align="left">
              <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>
                    <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                      <tr>
                        <td>
                          <table border="0" cellpadding="0" cellspacing="0" class="button-content-enabled">
                            <tr>
                              <td align="center" valign="middle" nowrap>
                                    <component:button text="button.save" 
                                    href="javascript:submitForm('save');" 
                                    title="button.save" isEnabled="true" />
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                  <td width="10"><img alt width="10" height="1" border="0" src="images/general/dot.gif"></td>
                  <td>
                    <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                      <tr>
                        <td>
                          <table border="0" cellpadding="0" cellspacing="0" class="button-content-enabled">
                            <tr>
                              <td align="center" valign="middle" nowrap>
                                    <component:button text="button.cancel" 
                                    href="javascript:submitForm('cancel');" 
                                    title="button.cancel" isEnabled="true" />
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                  <td width="10"><img alt width="10" height="1" border="0" src="images/general/dot.gif"></td>
                  <td width="10"><img alt width="10" height="1" border="0" src="images/general/dot.gif"></td>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          </tr>
          <tr>
            <td><img alt width="1" height="2" border="0" src="images/general/dot.gif"></td>
          </tr>
          <tr>
            <td nowrap>
              <table class="back-table" border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <table class="front-table" border="0" cellspacing="0" cellpadding="0">
                      <tr class="header-row">
                        <td nowrap>
                          <div class="table-header-text">
                            <bean:message key="admin.user.add.title" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="admin.users.list.username" />
                          </div>
                        </td>
                        <td nowrap>
                          <div class="table-normal-text">
                            <html:text maxlength="16" size="18" property="name"/>
                          </div>
                        </td>
                      </tr>
            		  <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="admin.users.list.role" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <html:select property="role">
                              <html:option value="<%=Role.STORAGE.getKey()%>"
                                key="<%=Role.STORAGE.getKey()%>"/>
                              <html:option  value="<%=Role.ADMIN.getKey()%>"  
                                key="<%=Role.ADMIN.getKey()%>"/>
                              <html:option  value="<%=Role.GUEST.getKey()%>" 
                                key="<%=Role.GUEST.getKey()%>"/>
			                </html:select>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
 </table> 
</table>
     
	</td>
     </tr>
   </table>
   </div>
</html:form>


  </body>
</html>
