<%-- $Id: ModifyUserProfile.jsp,v 1.11.2.2 2004/02/09 11:39:22 rsathish Exp $ --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<html>
<head>
<script language="javascript" src="/webclient/admin/js/ModifyProfileFunctions.js"></script>
<script language="javascript" src="/webclient/common/js/validation.js"></script>
<%@include file="/webclient/common/jspf/commonIncludes.jspf" %>
<%@include file="/webclient/admin/jspf/ModifyProfileFunctions.jspf" %>
</head>

<body class="bgNone">

<form name="ModifyProfileForm" action="ModifyUserProfileAction.do" method="POST" onSubmit="return Validate()">  
<input type="hidden" name="userName" value="<c:out value='${userName}'/>">
<input type="hidden" name="availableItems">
<input type="hidden" name="existingItems">
<table width="80%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="10">&nbsp;</td>
    <td height="30" align="left" valign="bottom"><span class="header1">
	<fmt:message key="webclient.admin.modifyuserprofile.modify">
		<fmt:param><c:out value='${userName}'/></fmt:param>
	</fmt:message>
</span></td>
    </tr>
    <tr> 
        <td width="10" height="0"><img src="/webclient/common/images/trans.gif" width="1" height="1"></td>
        <td height="1" class="hline"><img src="/webclient/common/images/trans.gif" width="1" height="1"></td>
    </tr>     
    <tr>
      <td>&nbsp;</td>
      <td align="left" valign="top" class="text">
      
      <table width="500" border="0" align="left" cellpadding="5" cellspacing="0" class="botBorder">

            <tr align="left" valign="top"> 
              <td colspan="2">
              
              	<table width="100%" border="0" cellspacing="5" cellpadding="0" class="NoBotBorder">
                  <tr align="left" valign="top" class="botBorder"> 
                    <td colspan="2"><input type="checkbox" name="ispasschange" value="checkbox" onClick="PassChangeCheck()"> 
                      <span class="text"><fmt:message key="webclient.admin.modifyuserprofile.changepassword"/></span></td>
                  </tr>
                  <tr align="left" valign="top" class="botBorder"> 
                    <td width="230"><span class="text"><fmt:message key="webclient.admin.modifyuserprofile.currentpassword"/></span></td>
                    <td width="300"> 
                      <input name="currentpassword" type="password" disabled class="formStyleDisabled" value="">
                    </td>
                  </tr>
                  <tr align="left" valign="top" class="botBorder"> 
                    <td><span class="text"><fmt:message key="webclient.admin.modifyuserprofile.newpassword"/></span></td>
                    <td><input name="newPassword" type="password" disabled class="formStyleDisabled" value=""></td>
                  </tr>
                  <tr align="left" valign="top" class="botBorder"> 
                    <td><span class="text"><fmt:message key="webclient.admin.modifyuserprofile.retypepassword"/></span></td>
                    <td><input name="password" type="password" disabled class="formStyleDisabled" value=""></td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr align="left" valign="top"> 
              <td align="left" valign="top" colspan="2"> <table border="0" cellpadding="1" cellspacing="1" class="NobotBorder">
                    <tr align="center"> 
                      <td height="30" colspan="3" align="left" valign="top" class="text"><fmt:message key="webclient.admin.modifyuserprofile.groupoptions.message"/></td>
                    </tr>
                    <tr align="left" valign="top"> 
                      <td class="text"><fmt:message key="webclient.admin.modifyuserprofile.availablegroups"/></td>
                      <td><img src="/webclient/common/images/trans.gif" width="1" height="1"></td>
                      <td><span class="text"><fmt:message key="webclient.admin.modifyuserprofile.enrolledgroups"/></span></td>
                    </tr>
                    <tr align="left" valign="top"> 
                      <td> <select class="formStyle" multiple name="availableGroups" size="4" >
                          <c:forEach items="${AvailableGroups}" var="pls" varStatus="index"> 
                          <option value='<c:out value="${pls}"/>'> <c:out value="${pls}"/> 
                          </option>
                          </c:forEach> </select> </td>
                      <td width="0"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
                            <tr> 
                              <td><a href="javascript:add()"><img src="/webclient/common/images/<c:out value = "${selectedskin}"/>/b_add.gif" 
                                width="32" height="25" alt='<fmt:message key="webclient.admin.modifyuserprofile.img.add.alt"/>' 
                                border="0"></a></td>
                            </tr>
                            <tr> 
                              <td> <img src="/webclient/common/images/trans.gif" width="1" height="3"></td>
                            </tr>
                            <tr> 
                              <td><a href="javascript:remove()"><img src="/webclient/common/images/<c:out value = "${selectedskin}"/>/b_remove.gif" 
                                width="32" height="25" alt='<fmt:message key="webclient.admin.modifyuserprofile.img.remove.alt"/>' 
                                border="0"></a></td>
                            </tr>
                        </table></td>
                      <td> <select class="formStyle" multiple name="existingGroups" size="4" >
                          <c:forEach items="${ExistingGroups}" var="pls" varStatus="index"> 
                          <option value='<c:out value="${pls}"/>'> <c:out value="${pls}"/> 
                          </option>
                          </c:forEach> </select> </td>
                    </tr>
                </table></td>
            </tr>
            <tr align="left" valign="top"> 
            
              <td width="360"> 
                <input name="ispasswordexpiry" type="checkbox" onClick="PasswordExpCheck()" value="checkbox">
                <span class="text"><fmt:message key="webclient.admin.modifyuserprofile.modifypasswordexpiry"/></span></td>
              <td width="331"><input name="passwordExpiryTime" type="text" size="3" maxlength="3" class="formStyleDisabled" disabled style="width:50" value="<c:out value='${passage}'/>"> 
                <span class="text"><fmt:message key="webclient.admin.modifyuserprofile.modifypasswordexpiry.days"/></span></td>
            </tr>
            <tr align="left" valign="top"> 
              <td><input type="checkbox" name="isaccountexpiry" value="checkbox" onClick="AccountExpCheck()"> 
                <span class="text"><fmt:message key="webclient.admin.modifyuserprofile.modifyaccountexpiry"/></span></td>
              <td><input name="accountExpiryTime" type="text" size="3" class="formStyleDisabled" disabled maxlength="3"  style="width:50"  value="<c:out value='${userage}'/>"> 
                <span class="text"><fmt:message key="webclient.admin.modifyuserprofile.modifyaccountexpiry.days"/></span></td>
            </tr>
            <tr align="left" valign="top"> 
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr align="left" valign="top"> 
              <td colspan="2" align="center"> <input name="Submit" type="submit" id="Submit" value="<fmt:message key='webclient.admin.modifyuserprofile.submit'/>" class="button"> 
                &nbsp;&nbsp; <input name="Reset" type="reset" class="button" value="<fmt:message key='webclient.admin.modifyuserprofile.clear'/>" onclick="resetFields()"></td>
            </tr>
        </table></td>
    </tr>
</table>
</body>
</html>
