<%@ control language="C#" autoeventwireup="true" inherits="space_topbar, ZKCMS" %>

<script type="text/javascript" src="/s/skin/base64.js"></script>

<script type="text/javascript" src="/s/skin/tinybox.js"></script>

<script type="text/javascript" src="/skin/public/public.js"></script>

<script type="text/javascript" src="/space/skin/public/space.js"></script>

<div class="topbar">
    <div class="hto">
        <div class="fl">
            <table id="head_login_box" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <div>
                            用户名：
                               <script type="text/javascript">
                            function self_dzlogin(){
                            var str1="<%=ZK.config("dzswitch", "dzuc") %>";if(str1=="1"){window.location="<%=ZK.config("dzloginpage", "dzuc") %>";}
                            }
                            </script> 
                            </div>
                    </td>
                    <td>
                        <input type="text" class="inp1" id="city_user" maxlength="200" value="用户名/手机号/邮箱" onclick="self_dzlogin()"
                            onfocus="if(this.value=='用户名/手机号/邮箱')this.value=''" onblur="if(this.value=='')this.value='用户名/手机号/邮箱'"
                            tabindex="1" onkeyup="logininputonkeyup(event)" autocomplete="off" /><script type="text/javascript">if(GetCookie("CK_city_user")!=null&&GetCookie("CK_city_user")!="null"&&GetCookie("CK_city_user")!="")document.getElementById("city_user").value=GetCookie("CK_city_user");</script>

                    </td>
                    <td style="padding-left: 6px">
                        <div>
                            密码：</div>
                    </td>
                    <td>
                        <input type="password" class="inp1" id="city_pwd" maxlength="20" tabindex="2" onclick="self_dzlogin()" onkeyup="logininputonkeyup(event)" />
                    </td>
                    <td style="padding-left: 6px">
                        <input type="button" id="head_login_btn" class="but2" value="登录" onclick="self_dzlogin();SetCookie('CK_city_user',document.getElementById('city_user').value,365);return check_login()"
                            tabindex="3" />
                    </td>
                    <td style="padding-left: 6px">
                        <input type="button" value="注册" class="but2" onclick="window.location='/user/reg.htm?ReturnUrl='+base64en(location.href)"
                            tabindex="4" />
                    </td>
                      <td style="padding-left: 6px">
                        <input type="button" value="首页" class="but2" onclick="window.location='/'" tabindex="4" />
                    </td>
                </tr>
            </table>
            <div id="logined_box" style="display: none">
                <a title="进入我的空间" href="/space/?uid=<%=ZK.uid %>" class="str">
                    <%=WM.cut(ZK.m_u(ZK.uid),18,"..")%></a></span>，您好！&nbsp;&nbsp;<a href="/">返回<%=ZK.config("site") %></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
                        href="/user/control.aspx">进入我的会员中心</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/user/mail.aspx">消息(<%=ZK.getMailCount%>)条</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a
                            href="#" onclick="logout()">退出登录</a>
            </div>
            <asp:Literal ID="LiteralLogined" runat="server"></asp:Literal>
        </div>
        <div class="fr">
            <div id="scrollMarqueBox" style="height: 29px; overflow: hidden">
                <div id="scrollMarqueCon" style="overflow: hidden">
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                    <div style="background-image: none; padding-right: 0">
                        欢迎光临<%=ZK.config("site") %>博客！
                    </div>
                </div>
            </div>

            <script type="text/javascript">
var scrollMarqueArr=document.getElementById("scrollMarqueCon").getElementsByTagName("div");document.getElementById("scrollMarqueCon").innerHTML="<div style=\"background-image:none; padding-right:0\">"+scrollMarqueArr[scrollMarqueArr.length-1].innerHTML+"</div>"+document.getElementById("scrollMarqueCon").innerHTML;var scrollMarqueHeight=29*scrollMarqueArr.length;
setInterval("scrollMarqueUP(29,scrollMarqueHeight,document.getElementById('scrollMarqueBox'),1)", 10);
setInterval("scrollMarqueDS(29,scrollMarqueHeight,document.getElementById('scrollMarqueBox'),1)",3000);
            </script>

        </div>
        <div class="clear">
        </div>
    </div>
</div>
