modifypassword.jsp

来自「移动彩信管理平台」· JSP 代码 · 共 80 行

JSP
80
字号
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="../common/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>密码修改</title>
<link href="${webctx}/css/style.css" rel="stylesheet" type="text/css" />
<script language="javaScript">
function back(){
document.location.href="${webctx}/jsp/modifypassword.jsp";
}
function check()
{
   if(document.form1.oldpassword.value.length==0){
      alert("密码不能为空");
     return false;
  }
  if(document.form1.newpassword.value.length==0)
  {
     alert("密码不能为空");
     return false;
  }
 if(document.form1.newpassword2.value.length==0)
  {
     alert("密码不能为空");
     return false;
  }
}
</script>

</head>

<body>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="8" align="left"><img src="images/pny_01.jpg" width="8" height="25" /></td>
        <td width="80" align="center" background="images/pny_bg.gif" class="psize3">密码修改</td>
        <td width="8" align="right"><img src="images/pny_02.jpg" width="8" height="25" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<form name="form1" action="${webctx}/modifypassword.do" method="post" onsubmit="return check();">
<table width="98%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
  <tr>
    <td height="20" align="center" bgcolor="#FFFFFF"><table width="99%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
      <tr>
        <td height="20" colspan="2" align="left" bgcolor="#CEE8EA"><span class="ysize1">你的旧密码:<span class="psize4">
        <input name="oldpassword" type="text" size="20" /><s:fielderror name="success"/>
        </span></span></td>
      </tr>
      <tr>
        <td height="20" colspan="2" align="left" bgcolor="#F2FAFD"><span class="ysize1">你的新密码:<span class="psize4">
          <input name="newpassword" type="password" size="20" />
        </span></span></td>
        </tr>
      <tr>
        <td height="20" colspan="2" align="left" bgcolor="#CEE8EA">新密码确认:<span class="psize4">
          <input name="newpassword2" type="password" size="20" />
        </span></td>
        </tr>
      
      <tr>
        <td width="7%" height="20" align="left">&nbsp;</td>
        <td width="93%" align="left"><span class="ysize1">
          <input name="Submit" type="submit" class="pal" value="确认" />
          <input type="button" class="pal" value="返回" onclick="back()"/>
        </span></td>
      </tr>
     </table>

    </td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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