TeacherCount.aspx 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <%@ Page Language="C#" Debug=true AutoEventWireup="true" CodeFile="TeacherCount.aspx.cs" Inherits="TeacherCount" %>
  2. <!doctype html>
  3. <html lang="en">
  4. <head>
  5. <title>教师听课统计</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
  7. <link href="css/ASPNET2.0BaseCss.css" rel="stylesheet" type="text/css" /> <script language="javascript">
  8. function preview() {
  9. bdhtml = window.document.body.innerHTML;
  10. sprnstr = "<!--startprint-->";
  11. eprnstr = "<!--endprint-->";
  12. prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
  13. prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
  14. window.document.body.innerHTML = prnhtml;
  15. window.print();
  16. //prnform.htext.value=prnhtml;
  17. //prnform.submit();
  18. //alert(prnhtml);
  19. }
  20. </script>
  21. <link rel="stylesheet" href="css/dataTable.css" media="screen">
  22. <style type="text/css">
  23. body {
  24. margin: 30px;
  25. font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  26. }
  27. /* Style the form with a coloured background (and a gradient for Gecko/WebKit browsers), along with curved corners and a drop shadow */
  28. form {
  29. width: 92%;
  30. margin: 0 auto;
  31. padding: 20px;
  32. overflow: auto;
  33. color: #3e4a49;
  34. background-color: #f5eedb;
  35. background: -webkit-gradient( linear, left bottom, left top, color-stop(0,#f5eedb), color-stop(1, #faf8f1) );
  36. background: -moz-linear-gradient( center bottom, #f5eedb 0%, #faf8f1 100% );
  37. border-radius: 10px;
  38. -moz-border-radius: 10px;
  39. -webkit-border-radius: 10px;
  40. box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  41. -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  42. -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  43. }
  44. /* Give form elements consistent margin, padding and line height */
  45. form ul {
  46. list-style: none;
  47. margin: 0;
  48. padding: 0;
  49. }
  50. form ul li {
  51. margin: .9em 0 0 0;
  52. padding: 0;
  53. }
  54. form * {
  55. line-height: 1em;
  56. }
  57. /* Form heading */
  58. form h2 {
  59. margin: 0 0 1.5em 0;
  60. padding: 0;
  61. font-size:32px;
  62. font-family:"黑体";
  63. text-align:center;
  64. color:#White;
  65. text-shadow:#000 2px 2px 5px, #FFFFFF -1px -1px 8px,2px 2px 6px #000000;
  66. }
  67. /* Give each fieldset a darker background, dark curved border and plenty of space */
  68. /*<!--
  69. fieldset {
  70. padding: 0 20px 20px;
  71. margin: 0 0 20px;
  72. border: 2px solid #593131;
  73. background: #eae1c0;
  74. border-radius: 10px;
  75. -moz-border-radius: 10px;
  76. -webkit-border-radius: 10px;
  77. }
  78. -->*/
  79. fieldset
  80. {
  81. text-align:center;
  82. height:auto;
  83. border:#06F 1px groove;
  84. margin:0 auto;
  85. margin-top:10px;
  86. border-radius:15px;
  87. box-shadow:#CCC 6px 6px;
  88. padding:10px;
  89. font-size:12px;
  90. background-color:White;
  91. }
  92. /* Give each fieldset legend a nice curvy green box with white text */
  93. legend {
  94. color: #fff;
  95. background: #8fb98b;
  96. font-family: Arial, Helvetica, sans-serif;
  97. font-size: 0.9em;
  98. font-weight: bold;
  99. text-align: center;
  100. padding: 5px;
  101. margin: 0;
  102. width: AUTO;
  103. border: 2px solid #593131;
  104. border-radius: 5px;
  105. -moz-border-radius: 5px;
  106. -webkit-border-radius: 5px;
  107. }
  108. /* The field labels */
  109. label {
  110. display: block;
  111. float: left;
  112. clear: left;
  113. text-align: right;
  114. width: 30%;
  115. padding: .4em 0 0 0;
  116. margin: .15em .5em 0 0;
  117. }
  118. select {
  119. font-size: 1em;
  120. height: 30px;
  121. }
  122. .scroll-parent {
  123. margin: 40px;
  124. height: 300px;
  125. width: 350px;
  126. display: inline-block;
  127. overflow: auto;
  128. border: 2px solid #eee;
  129. padding: 40px;
  130. }
  131. body, th, td { font-family: Arial, Verdana, sans-serif; font-size: 0.9em; }
  132. a:link, a:visited { color: #59B337; }
  133. a:hover, a:active, a:focus { color: #000000; }
  134. table.dataTable tr.marked { background-color: #FFD900; }
  135. </style>
  136. <!-- jquery packed -->
  137. <script type="text/javascript" src="css/jquery-1.2.3.pack.js"></script>
  138. <!-- tableRowCheckboxToggle -->
  139. <script type="text/javascript" src="css/tableRowCheckboxToggle.js"></script>
  140. </head>
  141. <body>
  142. <div id="formbox">
  143. <form id="formpersonal" runat="server">
  144. <div class="form">
  145. <h2>督导个人工作量统计报表</h2>
  146. <div align="center">
  147. <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 width=1 height=1>&nbsp;</OBJECT>
  148. <input type="button" name="print" value="预览并打印" onclick="preview()">&nbsp;
  149. <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="导出为WORD文档" />
  150. </div>
  151. <fieldset class=fieldsetQuery style="background-color: #E7F4F8">
  152. <h3>
  153. <table>
  154. <tr>
  155. <td> <div title="选择部门,如计算机">部门:<input type="text" id="sDempent" list="sDemplist1" name="sDempent" placeholder="选择部门" required autofocus maxlength="18" style="width:120px; height:30px;" runat="server"/>
  156. <datalist id="sDemplist1">
  157. <option value="计算机系" />
  158. <option value="经管系" />
  159. <option value="机械系" />
  160. <option value="电气系" />
  161. <option value="外语系" />
  162. <option value="基础部" />
  163. </datalist></div>
  164. </td>
  165. <td> <div title="选择教师,如刘">督导姓名:<input type="text" id="sDemp" list="sDemplist" name="sDemp" placeholder="选择输入教师" required autofocus maxlength="18" style="width:120px; height:30px;" runat="server"/>
  166. <datalist id="sDemplist">
  167. <option value="全院" />
  168. <asp:Literal ID="Literal1" runat="server"></asp:Literal>
  169. </datalist></div>
  170. </td>
  171. <td>
  172. <div title="输入报表名:如第1季度、第4月">
  173. 报表名: <input type="text" id="ReportName" placeholder="输入报表名:如第1季度" required autofocus maxlength="48" style="width:120px; height:30px;" runat="server"/>
  174. </div></td>
  175. <td> <div title="输入报表起始时间:如第2017-9-10">
  176. 从<input type="text" id="tbStartTime" name="tbStartTime" placeholder="如2017-9-1" required autofocus maxlength="38" style="width:150px; height:30px;" runat="server" />
  177. </div> </td>
  178. <td> <div title="输入报表结束时间:如第2017-12-30">
  179. 到 <input type="text" id="tbEndTime" name="tbEndTime" placeholder="输入结束时间:如2017-12-31" required autofocus maxlength="38" style="width:150px; height:30px;" runat="server" />
  180. </div> </td>
  181. <td>
  182. <asp:Button ID="Button1" runat="server" Text="生成报表" onclick="Button1_Click"
  183. Height="27px" Width="96px" /></td>
  184. <td>&nbsp;
  185. </td>
  186. </tr>
  187. </table>
  188. </h3>
  189. </fieldset>
  190. <!--startprint-->
  191. <div style="margin: 0 auto;" id="mainContent">
  192. <div class=WordSection1>
  193. <asp:Panel ID="Panel1" Visible="false" runat="server">
  194. <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>
  195. <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;">
  196. <tr style="color:#CCCCFF;background-color:#003399;font-weight:bold;height:32px;white-space:nowrap;">
  197. <th scope="col">教师姓名</th>
  198. <th scope="col">督导会议</th>
  199. <th scope="col">听课次数</th>
  200. <th scope="col">评课次数</th>
  201. <th scope="col">督学次数</th>
  202. <th scope="col">教学检查次数</th>
  203. <th scope="col">项目评审次数</th>
  204. <th scope="col">督导培训交流次数</th>
  205. <th scope="col">其它</th>
  206. </tr>
  207. <tr style="color:#003399;background-color:White; height:30px;">
  208. <th scope="row">
  209. <asp:Literal ID="XB" runat="server"></asp:Literal>
  210. </th>
  211. <td>
  212. <asp:Literal ID="DDHY" runat="server" Text="0"></asp:Literal>
  213. </td>
  214. <td>
  215. <asp:Literal ID="DDTK" runat="server" Text="0"></asp:Literal>
  216. </td>
  217. <td>
  218. <asp:Literal ID="DDPK" runat="server" Text="0"></asp:Literal>
  219. </td>
  220. <td>
  221. <asp:Literal ID="DXCS" runat="server" Text="0"></asp:Literal>
  222. </td>
  223. <td>
  224. <asp:Literal ID="JXJC" runat="server" Text="0"></asp:Literal>
  225. </td>
  226. <td>
  227. <asp:Literal ID="XMPH" runat="server" Text="0"></asp:Literal>
  228. </td>
  229. <td>
  230. <asp:Literal ID="PXJL" runat="server" Text="0"></asp:Literal>
  231. </td>
  232. <td>
  233. <asp:Literal ID="Othe" runat="server" Text="0"></asp:Literal>
  234. </td>
  235. </tr>
  236. </table>
  237. <p align=center style='text-align:center'>&nbsp;</p>
  238. </asp:Panel>
  239. </div> <!--WordSection1 end-->
  240. </div><!--mainContent end-->
  241. <!--endprint-->
  242. </div><!--form end-->
  243. </form>
  244. </div><!--formbox end-->
  245. </body>
  246. </html>