<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Oykx.index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=title() %>
        -
        <%=Resources.zhouxiang.index %></title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="script/highslide/highslide.css" rel="stylesheet" type="text/css" />

    <script src="script/highslide/highslide-with-gallery.js" type="text/javascript"></script>

    <script type="text/javascript">
        hs.graphicsDir = 'script/highslide/graphics/';
        hs.align = 'center';
        hs.transitions = ['expand', 'crossfade'];
        hs.outlineType = 'rounded-white';
        hs.fadeInOut = true;
        //hs.dimmingOpacity = 0.75;

        // Add the controlbar
        hs.addSlideshow({
            //slideshowGroup: 'group1',
            interval: 5000,
            repeat: false,
            useControls: true,
            fixedControls: 'fit',
            overlayOptions: {
                opacity: 0.75,
                position: 'bottom center',
                hideOnMouseOut: true
            }
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="HD" runat="server">
    </div>

    <script>
        artDialog.tips = function(content, time) {
            return artDialog({
                id: 'Tips',
                title: false,
                cancel: false,
                fixed: true,
                lock: true
            })
    .content('<div style="padding: 0 1em;">' + content + '</div>')
    .time(time || 1);
        };
        var wei = '<%=IPnum() %>';
        var pd = '<%=strssss() %>';
    </script>

    <div id="content">
        <table id="miantable" cellpadding="0" cellspacing="0">
            <tr>
                <td id="userinfo" style="vertical-align: top">
                    <table cellpadding="0" cellspacing="0" style="margin: 2px; height: 402px; width: 202px;"
                        class="bian">
                        <tr>
                            <td class="titleBT">
                                <table cellpadding="0" cellspacing="0" align="left">
                                    <tr>
                                        <td>
                                            &nbsp;<img alt="" src="image/usericon.gif" />&nbsp;
                                        </td>
                                        <td>
                                            <b>个人资料</b>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 120px;">
                                <asp:Image ID="Image" runat="server" Width="100px" Height="100px" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0" style="height: 240px; width: 90%">
                                    <colgroup>
                                        <col width="36px" align="right">
                                        <col align="left">
                                    </colgroup>
                                    <tr>
                                        <td>
                                            姓名:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblName" runat="server" Text="周祥"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            性别:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblsex" runat="server" Text="男"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            MSN:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblmsn" runat="server" Text="无"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Email:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblEmail" runat="server" Text="Netzhouxiang@163.com"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            电话:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lbldianhua" runat="server" Text="13824361084"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            爱好:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblaihao" runat="server" Text="旅游,逛街,打球"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            工作:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lbljob" runat="server" Text="软件开发"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            主页:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lblurl" runat="server" Text="http://www.周祥.com"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            简介:
                                        </td>
                                        <td style="color: #333; text-align: left">
                                            &nbsp;<asp:Label ID="lbljianjie" runat="server" Text="花样年华"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <div style="margin: 2px; height: 185px; width: 200px;" class="bian">
                        <div class="titleBT">
                            <table cellpadding="0" cellspacing="0" align="left" style="margin-top: 6px;">
                                <tr>
                                    <td>
                                        &nbsp;<img alt="" src="image/branch_node.gif" />
                                    </td>
                                    <td>
                                        &nbsp;<b>友情链接</b>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div>
                            <ul style="text-align: left" runat="server" id="lianjie">
                            </ul>
                        </div>
                    </div>
                </td>
                <td style="vertical-align: top">
                    <div style="margin-top: 2px; margin-right: 1px; margin-bottom: 2px; height: 400px;"
                        class="bian">
                        <div class="titleBT">
                            <table cellpadding="0" cellspacing="0" align="left" style="margin-top: 6px;">
                                <tr>
                                    <td>
                                        &nbsp;<img alt="" src="image/rizi.png" width="16px" height="16px" />
                                    </td>
                                    <td>
                                        &nbsp;<b>最新日志</b>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="margin: 20px 20px 10px 10px;">
                            <asp:DataList ID="Data_Blog" runat="server" DataSourceID="ObjectData_Blog" Width="98%"
                                OnItemDataBound="Data_Blog_ItemDataBound">
                                <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" width="100%" align="center">
                                        <tr>
                                            <td style="width: 80px; text-align: left">
                                                <asp:Label ID="DIDLabel" runat="server" Text='<%# Eval("TID") %>' />&nbsp;
                                            </td>
                                            <td style="text-align: left; width: 260px;">
                                                <a href="Blogwz.aspx?bid=<%# Eval("BID") %>" target="_blank" class="graylink">
                                                    <asp:Label ID="BTitleLabel" runat="server" Text='<%# Eval("BTitle") %>' /><asp:Image
                                                        ID="ImageNew" runat="server" ImageUrl="~/image/posts_new.gif" /><asp:Label ID="lblDID"
                                                            runat="server" Text='<%# Eval("DID") %>' Style="font-weight: 700; color: #00FF00"></asp:Label></a>
                                            </td>
                                            <td style="text-align: left;">
                                                <asp:Label ID="BTimeLabel" runat="server" Text='<%# Eval("BTime") %>' />
                                            </td>
                                            <td>
                                                <asp:Label ID="BAuthorLabel" runat="server" Text='<%# Eval("BAuthor") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </ItemTemplate>
                            </asp:DataList>
                        </div>
                    </div>
                    <div style="margin-top: 2px; margin-right: 1px; margin-bottom: 2px; height: 185px;"
                        class="bian">
                        <div class="titleBT">
                            <table cellpadding="0" cellspacing="0" align="left" style="margin-top: 6px;">
                                <tr>
                                    <td>
                                        &nbsp;<img alt="" src="image/tpzs.PNG" width="16px" height="16px" />
                                    </td>
                                    <td>
                                        &nbsp;<b>图片展示</b>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="height: 155px">
                            <div id="demo">
                                <div id="indemo">
                                    <div id="demo1" runat="server">
                                    </div>
                                    <div id="demo2">
                                    </div>
                                </div>
                            </div>

                            <script>
                                var speed = 10;
                                var tab = document.getElementById("demo");
                                var tab1 = document.getElementById("demo1");
                                var tab2 = document.getElementById("demo2");
                                tab2.innerHTML = tab1.innerHTML;
                                function Marquee() {
                                    if (tab2.offsetWidth - tab.scrollLeft <= 0)
                                        tab.scrollLeft -= tab1.offsetWidth
                                    else {
                                        tab.scrollLeft++;
                                    }
                                }
                                var MyMar = setInterval(Marquee, speed);
                                tab.onmouseover = function() { clearInterval(MyMar) };
                                tab.onmouseout = function() { MyMar = setInterval(Marquee, speed) };
                            </script>

                        </div>
                    </div>
                </td>
                <td id="info" style="vertical-align: top" rowspan="2">
                    <div style="margin: 2px; height: 590px" class="bian">
                        <div class="titleBT">
                            <table cellpadding="0" cellspacing="0" align="left" style="margin-top: 6px;">
                                <tr>
                                    <td>
                                        &nbsp;<img alt="" src="image/folderbig.gif" />
                                    </td>
                                    <td>
                                        &nbsp;<b>文件下载</b>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="text-align: center; height: 565px">
                            <asp:DataList ID="Data_File" runat="server" Width="100%" OnItemCommand="Data_File_ItemCommand">
                                <ItemTemplate>
                                    <ul>
                                        <li style="margin-top: 4px; text-align: left">
                                            <table align="left">
                                                <tr>
                                                    <td>
                                                        &nbsp;<asp:Image ID="Image_files" runat="server" ImageUrl='<%# imgurl(Eval("db2").ToString()) %>'
                                                            Width="16px" Height="16px" />&nbsp;
                                                    </td>
                                                    <td>
                                                        <asp:LinkButton ID="LinkBtnFiles" CssClass="graylink" runat="server" CommandArgument='<%# Eval("db1") %>'
                                                            CommandName="down"><%# Eval("db1") %></asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                    </ul>
                                </ItemTemplate>
                            </asp:DataList>
                        </div>
                    </div>
                    &nbsp;
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div id="DB" runat="server">
    </div>
</body>
<asp:objectdatasource id="ObjectData_Blog" runat="server" selectmethod="gets" typename="OykxBLL.BlogManager"></asp:objectdatasource>

<script>
    window.onload = function() { gg(); gg2(); tishi(); }
</script>

</form>
</html>
