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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript" src="js/jquery.Xslider.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            /* 选项卡切换 */
            $("#testtab").tab({
                tabId: "#tabtag", tabTag: "span", conId: "#tabcon", conTag: ".rt_n_bd", act: "mouseover"
            });
            // 焦点图片淡隐淡现
            $("#slider3").Xslider({
                affect: 'fade',
                ctag: 'dd'
            });
        });
    </script>

    <script src="images/swfobject.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="main">
        <!--左侧-->
        <div class="m_left">
            <!--登录-->
            <% if (Session["Account1"] == null || Session["Account1"].ToString() == "")
               { %>
            <div class="l_login">
                <ul>
                    <li class="log_name">
                        <asp:TextBox ID="txt_Account" runat="server" MaxLength="20" class="required"></asp:TextBox>
                    </li>
                    <li class="log_key">
                        <asp:TextBox ID="txt_Pwd" runat="server" MaxLength="20" TextMode="Password" class="required"></asp:TextBox>
                    </li>
                    <li>
                        <asp:Button ID="btnLogin" runat="server" Text="登录" class="log_mn1" OnClick="btnLogin_Click" />
                        <input type="button" class="log_mn2" value="注册" onclick="window.location.href='register.aspx'" />
                    </li>
                </ul>
            </div>
            <%}
               else
               { %>
            <div class="l_login">
                <div class="ny_login">
                    <ul>
                        <li><span style="color: #4662a3"><%=Session["Name1"].ToString()!=""?Session["Name1"].ToString():Session["Account"].ToString() %></span>，您好！</li>
                        <li class="link"><a href="system/Home/index.aspx">[个人资料]</a><a style="color: #FF3300" href="logout.aspx">[退出]</a></li>
                    </ul>
                    <dl class="log_link">
                        <dd><a href="system/Home/index.aspx">实验室预约</a></dd>
                        <dd><a href="system/Home/index.aspx">设备预约</a></dd>
                        <dd><a href="system/Home/index.aspx">视频资源库</a></dd>
                        <dd><a href="system/Home/index.aspx">实验室预约管理</a></dd>
                        <dd><a href="system/Home/index.aspx">设备预约管理</a></dd>
                        <dd><a href="system/Home/index.aspx">视频评论管理</a></dd>
                    </dl>
                </div>
            </div>
            <%} %>
            <!-- 登录-->
            <% if (Session["Account1"] == null || Session["Account1"].ToString() == "")
               { %>
            <div class="l_banner"><a href="javascript:void(0);" onclick="javascript:alert('你还未登录，不能进行预约');"><img src="images/index_38.jpg" /></a></div>
            <div class="l_banner"><a href="javascript:void(0);" onclick="javascript:alert('你还未登录，不能进行预约');"><img src="images/index_41.jpg" /></a></div>
            <%}
               else
               { %>
            <div class="l_banner"><a href="system/Home/index.aspx"><img src="images/index_38.jpg" /></a></div>
            <div class="l_banner"><a href="system/Home/index.aspx"><img src="images/index_41.jpg" /></a></div>
            <%} %>
            <!--规章制度-->
            <div class="l_gz">
                <div class="l_gz_tit">
                    <cite><a href="gzzd.aspx">更多>></a></cite><h2>规章制度</h2>
                </div>
                <ul>
                    <asp:Literal ID="lit_gzzd" runat="server"></asp:Literal>
                </ul>
            </div>
            <!--规章制度-->
            <div class="l_link">
                <p>
                    <select onchange="window.open(this.options[this.selectedIndex].value);">
                        <option value="">-------------- 学院链接 --------------</option>
                        <asp:Literal ID="lit_link1" runat="server"></asp:Literal>
                    </select>
                </p>
                <p>
                    <select onchange="window.open(this.options[this.selectedIndex].value);">
                        <option value="">-------------- 友情链接 --------------</option>
                        <asp:Literal ID="lit_link2" runat="server"></asp:Literal>
                    </select>
                </p>
            </div>
        </div>
        <!--右侧-->
        <div class="m_right">
            <div class="r_banner slider" id="slider3">
                <dl class="big_pic conbox">
                    <asp:Literal ID="lit_adv1" runat="server"></asp:Literal>
                </dl>
                <dl class="chick_mn switcher">
                    <asp:Literal ID="lit_adv2" runat="server"></asp:Literal>
                </dl>
            </div>
            <!-- 新闻公告 -->
            <div class="r_news mt8px mr4px" id="testtab">
                <div class="rn_tit" id="tabtag">
                    <span class="cur">新闻公告</span>|<span>资料下载</span>
                </div>
                <div id="tabcon">
                    <div class="rt_n_bd">
                        <div class="rt_more">
                            <a href="news.aspx">更多>></a></div>
                        <ul>
                            <asp:Literal ID="lit_news" runat="server"></asp:Literal>
                            <%--<% foreach (DataRow dr in dt_news.Rows)
                            {%>
                            <li><cite><%=DateTimeFunc.dateFormat(DateTime.Parse(dr["AddTime"].ToString()),3,"-") %></cite>·<a href="newsdetails.aspx?nid=<%=dr["ID"] %>" title="<%=dr["Title"] %>"> <%=FrontFunc.Cutstring(dr["Title"].ToString(),35) %></a></li>
                            <%} %>--%>
                        </ul>
                    </div>
                    <div class="rt_n_bd" style="display: none">
                        <div class="rt_more">
                            <a href="download.aspx">更多>></a></div>
                        <ul>
                            <asp:Literal ID="lit_download" runat="server"></asp:Literal>
                            <%--<% foreach (DataRow dr in dt_download.Rows)
                            {%>
                            <li><cite><%=DateTimeFunc.dateFormat(DateTime.Parse(dr["AddTime"].ToString()),3,"-") %></cite>·<a href="<%=dr["FilePath"] %>" title="<%=dr["Title"] %>"> <%=FrontFunc.Cutstring(dr["Title"].ToString(),35) %></a></li>
                            <%} %>--%>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- 新闻公告 -->
            <!--视频-->
            <div class="r_video mt8px">
                <h2 class="r_v_tit">
                    <cite><a href="video.aspx">更多>></a></cite><span>教学视频</span></h2>
                <div class="r_v_bd">
                    <%--<img src="images/index_52.jpg" />--%>
                    <div id="CuPlayer">
                    </div>

                    <script type="text/javascript">
                        var so = new SWFObject("Images/CuPlayerMiniV3_Black_S.swf", "CuPlayer", "200", "193", "9", "#000000");
                        so.addParam("allowfullscreen", "true");
                        so.addParam("allowscriptaccess", "always");
                        so.addParam("wmode", "opaque");
                        so.addParam("quality", "high");
                        so.addParam("salign", "lt");
                        so.addVariable("CuPlayerFile", "<asp:Literal ID="lit_video" runat="server"></asp:Literal>");
                        so.addVariable("CuPlayerImage", "Images/flashChangfa2.jpg");
                        so.addVariable("CuPlayerShowImage", "true");
                        so.addVariable("CuPlayerWidth", "200");
                        so.addVariable("CuPlayerHeight", "193");
                        so.addVariable("CuPlayerAutoPlay", "false");
                        so.addVariable("CuPlayerAutoRepeat", "true");
                        so.addVariable("CuPlayerShowControl", "true");
                        so.addVariable("CuPlayerAutoHideControl", "false");
                        so.addVariable("CuPlayerAutoHideTime", "6");
                        so.addVariable("CuPlayerVolume", "80");
                        so.addVariable("CuPlayerGetNext", "false");
                        so.write("CuPlayer");	
                    </script>

                    <!--酷播迷你 CuPlayerMiniV3.0 代码结束-->
                </div>
            </div>
            <!--视频-->
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
