index.aspx
上传用户:ah_jiwei
上传日期:2022-07-24
资源大小:54044k
文件大小:7k
源码类别:

数据库编程

开发平台:

Visual C++

  1. <%@ Page Language="C#"  MasterPageFile = "../MasterPage2.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="student_index"  Title="学生首页"%>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  3.     <script type="text/javascript" src="../js/imgplayer1.js"></script>
  4.     
  5.     <div style="margin-top:20px;height:350px;">
  6.          <div style="float:left;width:200px; height:300px;">
  7.              <div id="ImgBlk">
  8. <div id="ss_img_div"><a href="javascript:ss.hotlink();"><img id="ss_img" src="../image/pic_1.jpg" alt="华东师范大学软件学院工程硕士管理系统""/></a></div>
  9. <div id="ImgNum">
  10. <ul>
  11. <li class="itemOff" id="imbtn0" onclick="ss.goto_slide(0)">1</li>
  12. <li class="itemOff" id="imbtn1" onclick="ss.goto_slide(1)">2</li>
  13. <li class="itemOff" id="imbtn2" onclick="ss.goto_slide(2)">3</li>
  14. <li class="itemOff" id="imbtn3" onclick="ss.goto_slide(3)">4</li>
  15. <li class="itemOff" id="imbtn4" onclick="ss.goto_slide(4)">5</li>
  16. </ul>
  17. <div id="Play" onclick="ss.play(); document.getElementById('Pause').style.display='block'; this.style.display='none';" onmousemove="this.style.color='#c00';" onmouseout="this.style.color='#000';" style="display:none;">自动播放</div>
  18. <div id="Pause" onclick="ss.pause(); document.getElementById('Play').style.display='block'; this.style.display='none';" onmousemove="this.style.color='#c00';" onmouseout="this.style.color='#000';">暂停播放</div>
  19. </div>
  20. </div>
  21.              <div style=" margin-top:20px;height:100px;">
  22.             <img src="../image/huashixinwen.gif" longdesc="../image/huashixinwen.gif" id="IMG1"/>
  23.         <li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/xsglgd_list.asp" target="_blank">规章制度</a></li>
  24.         <li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/zxtz_list.asp" target="_blank">通知公告</a></li>
  25.         <li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/jzgl_list.asp" target="_blank">奖助信息</a></li>
  26.         <li class="STYLE6"><a href="http://www.xgb.ecnu.edu.cn/system/bszn_list.asp" target="_blank">办事指南</a></li>
  27.     </div>  
  28.          </div>
  29.         <div style="float:left;margin-left:15px; width:280px;">
  30.            <div style="float:left;">
  31.               <img src="../image/biaoti_xiushi.gif" width="21" height="21" longdesc="../image/biaoti_xiushi.gif" />
  32.            </div>
  33.    <div style="float:left;">
  34.   <span class="STYLE4">导师查询</span>   
  35.    </div>
  36.    <div style="background-image:url(../image/division.JPG);background-repeat:repeat-x; height:2px; width:300px;">
  37.    </div>
  38.    <div style="width:300px; height:300px;">
  39.                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="tea_id" DataSourceID="SqlDataSource1">
  40.                    <Columns>
  41.                         <asp:HyperLinkfield DataTextField="tea_name"  HeaderText="导师姓名" SortExpression="tea_name"  DataNavigateUrlFields="tea_id" DataNavigateUrlFormatString = "details.aspx?tea_Id={0}">
  42.                             <ItemStyle  Height="20px" Width="100px" HorizontalAlign="Center" VerticalAlign="Middle" />
  43.                         </asp:HyperLinkfield>
  44.                         <asp:BoundField DataField="tea_toward" HeaderText="研究方向" SortExpression="tea_toward">
  45.                             <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="200px" />
  46.                         </asp:BoundField>
  47.                    </Columns>
  48.                </asp:GridView>
  49.                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ConnectionStrings:ecnuprosysConnectionString%>"
  50.                    SelectCommand="SELECT tea_id, tea_name, tea_toward FROM tea_table WHERE (tea_maxstu > tea_nowstu) GROUP BY tea_toward, tea_id, tea_name">
  51.                </asp:SqlDataSource>
  52.           </div>
  53.    </div>
  54.    <div style="float:right;width:180px; height:180px;">
  55.     <img src="../image/shangcaigk.gif" longdesc="../image/shangcaigk.gif" />
  56. <li class="STYLE6"><asp:HyperLink ID="HyperLink1" runat="server" >科研实践能力考核表</asp:HyperLink>&nbsp; &nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Text="未提交"></asp:Label></li>
  57. <li class="STYLE6"><asp:HyperLink ID="HyperLink2" runat="server" >企业导师表</asp:HyperLink>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="未提交"></asp:Label></li>
  58. <li class="STYLE6"><asp:HyperLink ID="HyperLink3" runat="server" >选报导师表</asp:HyperLink>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:Label ID="Label3" runat="server" Text="未提交"></asp:Label></li>
  59. <li class="STYLE6"><asp:HyperLink ID="HyperLink4" runat="server" >开题报告</asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label ID="Label4" runat="server" Text="未提交"></asp:Label></li>
  60. <li class="STYLE6"><asp:HyperLink ID="HyperLink5" runat="server" >我的论文</asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<asp:Label ID="Label5" runat="server" Text="未提交"></asp:Label></li>
  61.    </div>
  62.    <div style="float:right; width:180px; height:150px;">
  63.      <img src="../image/gonggongfw.gif" longdesc="../image/gonggongfw.gif" />
  64.  <li class="STYLE6"><a href="arrangement.aspx" target="_parent">答辩安排</a></li>
  65.    </div>   
  66.     </div>  
  67.     
  68.         <script type="text/javascript" language="javascript">
  69. ss = new slideshow("ss");
  70. ss.prefetch = 1;
  71. ss.sizelmt = true;
  72. ss.repeat = true;
  73. s = new slide();
  74. s.src = "../image/pic_1.jpg";
  75. //s.link = "third.aspx?id=2";
  76. ss.add_slide(s);
  77. s = new slide();
  78. s.src = "../image/pic_2.jpg";
  79. //s.link = "third.aspx?id=1";
  80. ss.add_slide(s);
  81. s = new slide();
  82. s.src = "../image/pic_3.jpg";
  83. //s.link = "third.aspx?id=3";
  84. ss.add_slide(s);
  85. s = new slide();
  86. s.src = "../image/pic_4.jpg";
  87. //s.link = "third.aspx?id=41";
  88. ss.add_slide(s);
  89. s = new slide();
  90. s.src = "../image/pic_5.jpg";
  91. //s.link = "third.aspx?id=40";
  92. ss.add_slide(s);
  93. for (var i=0; i < ss.slides.length; i++) {
  94. s = ss.slides[i];
  95. s.target = "_blank";
  96. }
  97.     </script>
  98.             
  99.     <script type="text/javascript">
  100.     ss.pre_update_hook = function() {
  101. sid = ss.current;
  102. linkurl = ss.slides[sid].link;
  103. tempid = parseInt(sid) + 1;
  104. for (var i = 0;i < ss.slides.length;i++){
  105. document.getElementById("imbtn"+i).className = "itemOff";
  106. }
  107. document.getElementById("imbtn"+sid).className = "itemOn";
  108. return;
  109. }
  110. if (document.images) {
  111. ss.image = document.images.ss_img;
  112. ss.update();
  113. ss.play();
  114.     }
  115.     </script>
  116.     
  117. </asp:Content>