receiptpage.jspf

来自「JAVA做的J2EE下CA认证系统 基于EJB开发」· JSPF 代码 · 共 86 行

JSPF
86
字号
<%               
  int[] receipttypes = {IReceiptSettings.RECEIPTTYPE_NONE, IReceiptSettings.RECEIPTTYPE_GENERAL};
  String[] receipttypetexts = {"NONE","GENERALRECEIPT"};

  IReceiptSettings receiptprofile = (IReceiptSettings) helper.profiledata;
%>
   <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
         &nbsp;
        </div>
      </td>
      <td width="50%" valign="top"> 
         &nbsp;
      </td>
   </tr>
   <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
          <%= ejbcawebbean.getText("RECEIPTSETTINGS") %>:
        </div>
      </td>
      <td width="50%" valign="top"> 
         &nbsp;
      </td>
    </tr>
    <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
          <%= ejbcawebbean.getText("RECEIPTTYPE") %>
        </div>
      </td>
      <td width="50%" valign="top">   
        <select name="<%=EditHardTokenProfileJSPHelper.SELECT_RECEIPTTYPE%>" size="1"  >       
            <% int currentreceipttype = receiptprofile.getReceiptType();
               for(int i=0; i < receipttypes.length ; i ++){%>
              <option value="<%=receipttypes[i]%>" <% if(receipttypes[i] == currentreceipttype) out.write(" selected "); %>> 
                  <%= ejbcawebbean.getText(receipttypetexts[i]) %>
               </option>
            <%}%>
          </select>         
      </td>
    </tr>
    <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
          <%= ejbcawebbean.getText("CURRENTTEMPLATE") %>
        </div>
      </td>
      <td width="50%" valign="top">          
         <% if(receiptprofile.getReceiptTemplateFilename() == null || receiptprofile.getReceiptTemplateFilename().equals("")){
              out.write("NONE");
            }else{
              out.write(receiptprofile.getReceiptTemplateFilename());
            }
         %> 
      </td>
    </tr>
    <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
          <%= ejbcawebbean.getText("UPLOADTEMPLATE") %>
        </div>
      </td>
      <td width="50%" valign="top">          
        <input type="submit" name="<%= EditHardTokenProfileJSPHelper.BUTTON_UPLOADRECEIPTTEMP %>" onClick='return checkallfields()' value="<%= ejbcawebbean.getText("UPLOADTEMPLATE") %>">
      </td>
    </tr>
    <tr id="Row<%=row++%2%>"> 
      <td width="50%" valign="top"> 
        <div align="right"> 
          <%= ejbcawebbean.getText("NUMOFRECEIPTCOPIES") %>
        </div>
      </td>
      <td width="50%" valign="top"> 
        <select name="<%=EditHardTokenProfileJSPHelper.SELECT_NUMOFRECEIPTCOPIES%>" size="1"  >
           <%   for(int i=1; i<5;i++){ %>
           <option  value="<%= i %>" 
              <% if(receiptprofile.getNumberOfReceiptCopies() == i) out.write(" selected "); %>> 
              <%= i %>
           </option>
           <%   } %> 
        </select>
      </td>
    </tr>

⌨️ 快捷键说明

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