HTML中的THEAD,TBODY,TFOOT,th标签

function getPrintDetailBySheetId(sheet_id){
  var url = "<%=_base%>/agent/cimAgentSett!getPrintDetailPPBySheetId.so?sheet_id="+sheet_id;
   openwin(url,900,500);
}

 

<table id="sortTable" width="100%" cellpadding="0" cellspacing="0">
     <THEAD>
      <tr>
       <!-- nowrap 属性规定表头单元格中的内容不换行-->

       <!-- 用th标签把表格头的内容显示在其中-->
       <th nowrap οnclick="sort()">
        申领单编号
       </th>
       <th nowrap οnclick="sort()">
        收款单位
       </th>
       <th nowrap οnclick="sort()">
        申请项目
       </th>
       <th nowrap οnclick="sort()">
        开始帐期
       </th>
       <th nowrap οnclick="sort()">
        结束帐期
       </th>
       <th nowrap οnclick="sort()">
        返利金额
       </th>
      
       <th nowrap οnclick="sort()">
        填单日期
       </th>
       <th nowrap οnclick="sort()">
        状态
       </th>
       <th nowrap οnclick="sort()">
        支付方式
       </th>
       
       <th nowrap οnclick="sort()">
        备注
       </th>
       <th nowrap>
        操作
       </th>
      </tr>
     </THEAD>
     <TBODY>
      <%
          int i = 0;
      %>
      <s:iterator value="cimApplySheets">
       <tr>
        <td nowrap>
         <a
          href="javascript:getPrintDetailBySheetId(<s:property value='sheet_id'/>);">

         <!-- 这里href的书写格式:点击这个链接会调用js函数getPrintDetailBySheetId(传递的参数值)-->
          <s:property value="sheet_id" /> </a>
        </td>
        <td nowrap align="center">
         &nbsp;
         <s:property value="agentName" />
        </td>
        <td nowrap align="center">
         &nbsp;
         <ai:write name="projectId" dictId="CIM_APPLY_PROJECT"></ai:write>
        </td>
        <td nowrap align="center">
         &nbsp;
         <s:property value="makeMonthStart" />
        </td>
        <td nowrap align="center">
         &nbsp;
         <s:property value="makeMonthEnd" />
        </td>
        <td nowrap align="center">
         <s:property value="payMoney"/>
         &nbsp;

         <!--埋一个返利金额的数据-->
         <input type="hidden" value='<s:property value="payMoney"/>' name="payMoneyc"/>
        </td>
      
        <td nowrap align="center">
         &nbsp;
         <s:date name="dcreate_time" format="yyyy-MM-dd" />  
        </td>
        <td nowrap align="center">
         &nbsp;
         <ai:write name="status" dictId="CIM_STATUS"></ai:write>
        </td>
        
        <td nowrap align="center">
         &nbsp;<s:property value="is_send_zg_name" /><!--支付方式-->
        </td>
      
        <td nowrap align="center">        
         &nbsp;<s:property value="send_reason" />><!--备注-->
        </td>
        <td nowrap align="center">><!--操作-->
         &nbsp;
         <input name="Submit6" type="button" class="simpleButton"
          value="备注" οnclick="addReason(<s:property value='sheet_id'/>)"
          accesskey="R" title="快捷键ALT+R">
         <input name="Submit1" type="button" class="simpleButton"
          value="发票" οnclick="inc(<s:property value='sheet_id'/>)"
          accesskey="I" title="快捷键ALT+F">
         <input name="Submit2" type="button" class="simpleButton"
          value="作废" οnclick="fail(<s:property value='sheet_id'/>)"
          accesskey="F" title="快捷键ALT+P"> 
       
         <s:if test="sendFlag==0">
          <input name="Submit5" type="button" class="simpleButton"
           value="发送" οnclick="send(<s:property value='sheet_id'/>);"
           accesskey="S" title="快捷键ALT+S">
         </s:if>
        </td>
       </tr>
       <%
           i++;
       %>
      </s:iterator>
      <tr>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td><b>小计:</b></td>
       <td><b><span id="moneyXJ"></span></b></td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       <td>&nbsp;</td>
       
      </tr>
     </TBODY>
    </table>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值