<%@ Page Title="" Language="C#" MasterPageFile="~/HeadIndexFoot.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="center clear">
            <div class="left center_l">
                <!-- 会员 -->
                <div class="line user">
                    <h4 class="f14 bold">会员登录</h4>
                    <% if (Session["Account1"] == null || Session["Account1"].ToString() == "")
                        { %>
                    <div class="login">
                        <p>用户名：<%--<input class="s_input" name="" type="text" />--%>
                        <asp:TextBox ID="txt_Account" runat="server" MaxLength="20" class="s_input"></asp:TextBox></p>
                        <p>密&nbsp;&nbsp;&nbsp;码：<%--<input class="s_input" name="" type="password" />--%>
                        <asp:TextBox ID="txt_Pwd" runat="server" MaxLength="20" TextMode="Password" class="s_input"></asp:TextBox>
                        </p>
                        <p class="blacks">
                            <%--<input class="s_inputs" type="submit" name="button" id="button" value="登 录">
                            <input class="s_inputs" type="submit" name="button" id="button" value="注 册">--%>
                            
                            <asp:Button ID="btnLogin" runat="server" Text="登录" class="s_inputs" OnClick="btnLogin_Click" />
                            <input type="button" class="s_inputs" value="注册" onclick="window.location.href='register.aspx'" />
                            
                            <a href="#">忘记密码？</a>
                        </p>
                  </div>
                  <%}
                   else
                   { %>
                  <div class="login">
                    <p><%=Session["Name1"].ToString()!=""?Session["Name1"].ToString():Session["Account"].ToString() %>，欢迎登录！</p>
                    <p>
                        <span class="blacks"><a href="system/Home/index.aspx">[个人资料]</a></span>&nbsp;
                        <span class="red"><a href="logout.aspx">[退出]</a></span>
                    </p>
                    <p>
                        <%--<a href="system/Home/index.aspx" class="n_input1"></a>
                        <a href="system/Home/index.aspx" class="n_input2"></a>--%>
                        <input class="n_input1" type="button" name="button" id="Submit1" value="" onclick="window.location.href='system/Home/index.aspx'" >
                        <input class="n_input2" type="button" name="button" id="Submit2" value="" onclick="window.location.href='system/Home/index.aspx'" >
                    </p>
                  </div>
                  <%} %>
                </div>
                
                <% if (Session["Account1"] == null || Session["Account1"].ToString() == "")
                   { %>
                <div class="blank8"></div>
                <!-- 实验室预约 -->
                <div class="yuyue">
                    <a href="javascript:void(0);" onclick="javascript:alert('你还未登录，不能进行预约');"><img src="img/yuyue1.jpg" /></a>
                </div>
                <div class="blank8"></div>
                <!-- 设备预约 -->
                <div class="yuyue">
                    <a href="javascript:void(0);" onclick="javascript:alert('你还未登录，不能进行预约');"><img src="img/yuyue2.jpg" /></a>
                </div>
                <div class="blank8"></div>
                <%}
                   else
                   { %>
                <div class="blank8"></div>
                <!-- 实验室预约 -->
                <div class="yuyue">
                    <a href="system/Home/index.aspx"><img src="img/yuyue1.jpg" /></a>
                </div>
                <div class="blank8"></div>
                <!-- 设备预约 -->
                <div class="yuyue">
                    <a href="system/Home/index.aspx"><img src="img/yuyue2.jpg" /></a>
                </div>
                <div class="blank8"></div>
                <%} %>
                
                
                <!-- 实验室管理制度 -->
                <div class="line blacks center_l_new">
                    <h4>
                        <span class="right more-k"><a href="news.aspx">更多>></a></span>
                        <span class="f14 bold">实验室管理制度</span>
                    </h4>
                    <ul>
                        <asp:Literal ID="lit_sysglzd" runat="server"></asp:Literal>
                        
                    </ul>
                </div>
                <div class="blank8"></div>
                <!-- 成果展示 -->
                <div class="line center_l_new">
                    <h4>
                        <span class="right more-k"><a href="list.aspx?ClassId=349">更多>></a></span>
                        <span class="f14 bold">成果展示</span>
                    </h4>
                    <div id="divmain" class="cgzs">
                        <div id="div1st" style="overflow:hidden; ">
                            <asp:Literal ID="lit_cgzs" runat="server"></asp:Literal>
                            
                        </div>
                        <div id="div2ed"></div>
                    </div>
                </div>
                <div class="blank8"></div>
                <!-- 精品课程导航 -->
                <div class="line blacks center_l_new">
                    <h4>
                        <span class="f14 bold">精品课程导航</span>
                    </h4>
                    <ul>
                        <asp:Literal ID="lit_jpkc" runat="server"></asp:Literal>
                        
                    </ul>
                </div>
                <div class="blank8"></div>
                <!-- 校外实习基地 -->
                <div class="line blacks center_l_new2">
                    <h4>
                        <span class="f14 bold">校外实习基地</span>
                    </h4>
                    <ul class="f14">
                        <asp:Literal ID="lit_xwsxjd" runat="server"></asp:Literal>
                        
                    </ul>
                </div>
                <div class="blank8"></div>
                <!-- 友情链接 -->
                <div class="line blacks center_l_new">
                    <h4>
                        <span class="f14 bold">友情链接</span>
                    </h4>
                    <ul>
                        <asp:Literal ID="lit_link2" runat="server"></asp:Literal>
                        
                    </ul>
                </div>
            </div>
            <div class="right center_r">
                <!-- 焦点图+切换 -->
                <div class="line clear">
                    <!--焦点图-->
                    <div class="left new-flash">
                        <script type="text/javascript"> 
                            <!--
                             var interval_time=3;
                             var focus_width=330;
                             var focus_height=318;
                             var text_height=31;
                             var text_align="center";
                             var swf_height = focus_height+text_height;
                             var swfpath="js/focus1.swf";
                             var swfpatha="js/focus1.swf";
                             
                             var pics="<%=imgurl_list%>";
                             var links="<%=imgurl%>";
                             var texts = "<%=imgtitle_list%>";
                             
                             document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
                             document.write('<param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#c4c4c4">');
                             document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                             document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&text_align='+text_align+'&interval_time='+interval_time+'">');
                             document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&text_align='+text_align+'&interval_time='+interval_time+'" menu="false" bgcolor="#c4c4c4" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                             document.write('</object>');
                            //-->
                        </script>
                    </div>
                    <!--焦点图:end-->
					<!--切换-->
					<div class="left new-tab" id="testtab" style="position:relative;">
						<h4 id="tabtag" style="position:relative;">
                            <ul class="f14">
                                <li class="cur">新闻公告</li>
                                <li>学习资料</li>
                            </ul>
                        </h4>
                        <div id="tabcon">
                            <ul class="tab_cent blacks">
                                <div class="tab_top_more more-k"><a href="news.aspx?ClassId=286">更多 >></a></div>
                                <asp:Literal ID="lit_news" runat="server"></asp:Literal>
                                
                            </ul>
                            <ul class="tab_cent blacks">
                                <div class="tab_top_more more-k"><a href="xxzl.aspx">更多 >></a></div>
                                <asp:Literal ID="lit_xxzl" runat="server"></asp:Literal>
                                
                            </ul>
                        </div>
					</div>
					<!--切换:end-->
                </div>
                <div class="blank5"></div>
                <div class="blank10"></div>
                <!--实验室列表-->
                <div class="center_r_new">
                    <h4>
                        <span class="right more-w"><a href="syslb.aspx">更多 >></a></span>
                        <span class="f14 bold">实验室列表</span>
                    </h4>
                    <div class="line laboratory-list clear">
                        <asp:Literal ID="lit_syslb" runat="server"></asp:Literal>
                        
                    </div>
                </div>
                <div class="blank5"></div>
                <div class="blank10"></div>
                <!--实验设备-->
                <div class="center_r_new">
                    <h4>
                        <span class="right more-w"><a href="sysb.aspx">更多 >></a></span>
                        <span class="f14 bold">实验设备</span>
                    </h4>
                    <div class="line laboratory-list clear">
                        <div id="s1" class="scrolllist">
                            <a class="abtn aleft" href="#left" title="左移"></a>
                            <div class="imglist_w">
                                <ul class="imglist">
                                    <asp:Literal ID="lit_sysb" runat="server"></asp:Literal>
                                    
                                </ul>
                            </div>
                            <a class="abtn aright" href="#right" title="右移"></a>
                        </div>
                    </div>
                </div>
                <!--实验设备:end-->
            </div>
        </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="foot" Runat="Server">
<script>
//成果展示
var speed=65; //速度，越小滚动速度越快
div2ed.innerHTML=div1st.innerHTML
function mar2ed(){
if(div2ed.offsetTop-divmain.scrollTop<=0)
	divmain.scrollTop-=div1st.offsetHeight
else{
	divmain.scrollTop++
}
}
var inMar2=setInterval(mar2ed,speed)
divmain.onmouseover=function(){
	clearInterval(inMar2)
}
divmain.onmouseout=function(){
	inMar2=setInterval(mar2ed,speed)
}
</script>
</asp:Content>

