123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <%@ Page Language="C#" Debug="true" EnableEventValidation="false" AutoEventWireup="true" CodeFile="Count.aspx.cs" Inherits="Count" %>
- <!doctype html>
- <html lang="en">
- <head>
- <title>统计报表</title>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
- <link href="css/ASPNET2.0BaseCss.css" rel="stylesheet" type="text/css" /> <script language="javascript">
- function preview() {
- bdhtml = window.document.body.innerHTML;
- sprnstr = "<!--startprint-->";
- eprnstr = "<!--endprint-->";
- prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
- prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
- window.document.body.innerHTML = prnhtml;
- window.print();
- //prnform.htext.value=prnhtml;
- //prnform.submit();
- //alert(prnhtml);
- }
- </script>
- <link rel="stylesheet" href="css/dataTable.css" media="screen">
- <style type="text/css">
- body {
- margin: 30px;
- font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
- }
- /* Style the form with a coloured background (and a gradient for Gecko/WebKit browsers), along with curved corners and a drop shadow */
- form {
- width: 92%;
- margin: 0 auto;
- padding: 20px;
- overflow: auto;
- color: #3e4a49;
- background-color: #f5eedb;
- background: -webkit-gradient( linear, left bottom, left top, color-stop(0,#f5eedb), color-stop(1, #faf8f1) );
- background: -moz-linear-gradient( center bottom, #f5eedb 0%, #faf8f1 100% );
- border-radius: 10px;
- -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
- box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
- -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
- -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
- }
- /* Give form elements consistent margin, padding and line height */
- form ul {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- form ul li {
- margin: .9em 0 0 0;
- padding: 0;
- }
- form * {
- line-height: 1em;
- }
- /* Form heading */
- form h2 {
- margin: 0 0 1.5em 0;
- padding: 0;
-
- font-size:32px;
- font-family:"黑体";
- text-align:center;
- color:#White;
- text-shadow:#000 2px 2px 5px, #FFFFFF -1px -1px 8px,2px 2px 6px #000000;
- }
- /* Give each fieldset a darker background, dark curved border and plenty of space */
- /*<!--
- fieldset {
- padding: 0 20px 20px;
- margin: 0 0 20px;
- border: 2px solid #593131;
- background: #eae1c0;
- border-radius: 10px;
- -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
- }
- -->*/
- fieldset
- {
- text-align:center;
- height:auto;
- border:#06F 1px groove;
- margin:0 auto;
- margin-top:10px;
- border-radius:15px;
- box-shadow:#CCC 6px 6px;
- padding:10px;
- font-size:12px;
- background-color:White;
- }
- /* Give each fieldset legend a nice curvy green box with white text */
- legend {
- color: #fff;
- background: #8fb98b;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 0.9em;
- font-weight: bold;
- text-align: center;
- padding: 5px;
- margin: 0;
- width: AUTO;
- border: 2px solid #593131;
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- }
- /* The field labels */
- label {
- display: block;
- float: left;
- clear: left;
- text-align: right;
- width: 30%;
- padding: .4em 0 0 0;
- margin: .15em .5em 0 0;
- }
- select {
- font-size: 1em;
- height: 30px;
- }
- .scroll-parent {
- margin: 40px;
- height: 300px;
- width: 350px;
- display: inline-block;
-
- overflow: auto;
- border: 2px solid #eee;
- padding: 40px;
- }
- body, th, td { font-family: Arial, Verdana, sans-serif; font-size: 0.9em; }
- a:link, a:visited { color: #59B337; }
- a:hover, a:active, a:focus { color: #000000; }
- table.dataTable tr.marked { background-color: #FFD900; }
- </style>
- <!-- jquery packed -->
- <script type="text/javascript" src="css/jquery-1.2.3.pack.js"></script>
- <!-- tableRowCheckboxToggle -->
- <script type="text/javascript" src="css/tableRowCheckboxToggle.js"></script>
- </head>
- <body>
- <div id="formbox">
- <form id="formpersonal" runat="server">
- <div class="form">
- <h2>数据统计</h2>
- <div align="center">
- <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 width=1 height=1> </OBJECT>
- <input type="button" name="print" value="预览并打印" onclick="preview()">
- <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="导出为WORD文档" />
- </div>
- <fieldset class=fieldsetQuery style="background-color: #E7F4F8">
- <h3>
- <table>
- <tr>
- <td> <div title="选择部门(如未显示列表输入部门),如计算机系">部门:<input type="text" id="sDemp" list="sDemplist" name="sDemp" placeholder="选择部门" required autofocus maxlength="18" style="width:120px; height:30px;" runat="server"/>
- <datalist id="sDemplist">
- <option value="计算机系" />
- <option value="经管系" />
- <option value="机械系" />
- <option value="电气系" />
- <option value="外语系" />
- <option value="基础部" />
- <option value="全院" />
- </datalist></div>
- </td>
- <td>
- <div title="输入报表名:如第1季度、第4月">
- 报表名: <input type="text" id="ReportName" placeholder="报表名:如第1季度" required autofocus maxlength="48" style="width:120px; height:30px;" runat="server"/>
- </div></td>
- <td> <div title="输入报表起始时间:如第2017-9-10">
- 从<input type="text" id="tbStartTime" name="tbStartTime" placeholder="如2017-9-1" required autofocus maxlength="38" style="width:150px; height:30px;" runat="server" />
- </div> </td>
- <td> <div title="输入报表结束时间:如第2017-12-30">
- 到 <input type="text" id="tbEndTime" name="tbEndTime" placeholder="输入结束时间:如2017-12-31" required autofocus maxlength="38" style="width:150px; height:30px;" runat="server" />
- </div> </td>
- <td>
- <asp:Button ID="Button1" runat="server" Text="生成报表" onclick="Button1_Click"
- Height="27px" Width="96px" /></td>
- <td>
- </td>
-
- </tr>
- </table>
- </h3>
-
- </fieldset>
-
- <!--startprint-->
- <div style="margin: 0 auto;" id="mainContent">
- <div class=WordSection1>
- <asp:Panel ID="Panel1" Visible="false" runat="server">
-
- <p align=center style='text-align:center'><b style='mso-bidi-font-weight:normal'><span style='font-size:14.0pt;font-family:黑体'><asp:Literal ID="Literal2" runat="server"></asp:Literal> </span></b></p>
- <table border="1" cellpadding="0" cellspacing="0" style="background-color:White;border-color:#3366CC;border-width:1px;border-style:None;width:98%;border-collapse:collapse;">
- <tr style="color:#CCCCFF;background-color:#003399;font-weight:bold;height:32px;white-space:nowrap;">
- <th scope="col">系部</th>
- <th scope="col">督导会议</th>
- <th scope="col">听课次数</th>
- <th scope="col">评课次数</th>
- <th scope="col">督学次数</th>
- <th scope="col">教学检查次数</th>
- <th scope="col">项目评审次数</th>
- <th scope="col">督导培训交流次数</th>
- <th scope="col">其它</th>
- </tr>
- <tr style="color:#003399;background-color:White; height:30px;">
- <th scope="row">
- <asp:Literal ID="XB" runat="server"></asp:Literal>
- </th>
- <td>
- <asp:Literal ID="DDHY" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="DDTK" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="DDPK" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="DXCS" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="JXJC" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="XMPH" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="PXJL" runat="server" Text="0"></asp:Literal>
- </td>
- <td>
- <asp:Literal ID="Othe" runat="server" Text="0"></asp:Literal>
- </td>
- </tr>
- </table>
- <p align=center style='text-align:center'> </p>
- </asp:Panel>
- </div> <!--WordSection1 end-->
- </div><!--mainContent end-->
- <!--endprint-->
-
- </div><!--form end-->
- </form>
- </div><!--formbox end-->
- </body>
- </html>
|