clientsearch.jsp

来自「EJB+Struts+Webservice实现的开放式基金管理系统」· JSP 代码 · 共 63 行

JSP
63
字号
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<script type="text/javascript">
function validateClientSearch(){
  if(document.searchClientForm.clientNo.value==null||document.searchClientForm.clientNo.value==""){
    if(document.searchClientForm.idCardNo.value==null||document.searchClientForm.idCardNo.value==""){
      alert("Please enter Client number and/or Client Identity card number");
      document.searchClientForm.clientNo.focus();
      return false;
    }
  }else{
    return true;
  }
}
function clearFields()
{
	document.getElementById("clientNo").value="";
	document.getElementById("idCardNo").value="";
}
</script>
<html:form action="clientSearch" onsubmit="return validateClientSearch();">
  <table border="0" width="60%">
    <tr>
      <td class="thd" colspan="2" width="50%" align="center">
        <bean:message key="clientForm.search.title"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="clientForm.clientNo"/>
      </td>
      <td class="tdata" width="50%">
        <html:text styleClass="inputstyle" styleId="clientNo" property="clientNo"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="clientForm.idCardNo"/>
      </td>
      <td class="tdata" width="50%">
        <html:text styleClass="inputstyle" styleId="idCardNo" property="idCardNo"/>
      </td>
    </tr>
    <tr>
    <tr>
      <td colspan="2" align="center">
        <html:submit styleClass="btnaction">
          <bean:message key="button.search"/>
        </html:submit>
        <!-- html:reset styleClass="btnaction" >
          < bean:message key="button.reset"/ >
        < /html:reset -->
		<input type ="button" name="clear" value ="取消" class="btnaction" onClick="javascript:clearFields()">
      </td>
    </tr>
    <tr>
      <td class="thd" colspan="2" width="50%" align="center">&nbsp;</td>
    </tr>
  </table>
  <html:errors/>
</html:form>

⌨️ 快捷键说明

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