<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="jiaofeitongji.aspx.cs" Inherits="jiaowu.tongji.jiaofeitongji" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Width="323px">
        </asp:SiteMapPath>
    </div>
    <table border="1" align="center" bordercolor="#D2ECFC"  
            style="border-collapse:collapse " width="100%" class="line_table">
        <tr >
          <td> 缴费时间：<asp:TextBox ID="txtbaoming1" runat="server" onfocus="WdatePicker()"></asp:TextBox>至<asp:TextBox ID="txtbaoming2" runat="server" onfocus="WdatePicker()"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="搜索" />
            </td>
        </tr>
        
        <tr >
          <td class="style1"> 
          <%System.Data.DataTable tbx = SqlHelper.dataTable("select * from fenxiao order by bianhao asc");
            System.Data.DataTable tbc = SqlHelper.dataTable("select * from xiangmu order by bianhao asc"); 
               %>
              <table class="style1">
                  <tr>
                      <td>
                          校区</td>
                   <%for(int c=0;c<tbc.Rows.Count;c++){ %>
                      <td>
                         <%=tbc.Rows[c]["xiangmu"].ToString() %></td>
                   <%} %>
                      <td>
                          合计</td>
                  </tr>
                  <%for (int i = 0; i < tbx.Rows.Count; i++)
                    { %>
                  <tr>
                      <td>
                          <%=tbx.Rows[i]["fenxiao"].ToString() %></td>
                           <%for (int c = 0; c < tbc.Rows.Count; c++)
                             { %>
                      <td>
                        <%=jiaowu.tongji.jiaofeitongji.jiaofeishu(tbx.Rows[i]["id"].ToString(),tbc.Rows[c]["xiangmu"].ToString(),txtbaoming1.Text,txtbaoming2.Text) %></td>
                     <%} %>
                      <td>
                         <%=jiaowu.tongji.jiaofeitongji.jiaofeishu(tbx.Rows[i]["id"].ToString(), "", txtbaoming1.Text, txtbaoming2.Text)%> </td>
                  </tr>
                  <%} %>
                   <tr>
                      <td>
                          合计</td>
                           <%for (int c = 0; c < tbc.Rows.Count; c++)
                             { %>
                      <td>
                        <%=jiaowu.tongji.jiaofeitongji.jiaofeishu("", tbc.Rows[c]["xiangmu"].ToString(), txtbaoming1.Text, txtbaoming2.Text)%></td>
                     <%} %>
                      <td>
                         <%=jiaowu.tongji.jiaofeitongji.jiaofeishu("", "", txtbaoming1.Text, txtbaoming2.Text)%> </td>
                  </tr>
              </table>
            </td></tr></table></form></body></html>

