<%@ Page Inherits="WanerSoft.Provider.BasePage" AutoEventWireup="true" EnableViewState="false" %>
<%IF Session.Item("UserName") Is Nothing Then%>
document.write('<div class="tompass topnav"><form action="/User/LoginCheck.aspx" method="post" name="LoginFrom" style="DISPLAY:inline;" target="_top"><span>通行证：</span><input type="text" name="username" id="username" class="tominput" /><span>密码：</span><input name="password" id="password" type="password" class="tominput" />');
	   <%If InfoSys.ValidateCodeLogin Then%>
	   document.write('<span class="title">验证码</span><input name="VolidaCode" id="VolidaCode" Style="ime-mode:disabled" size="4" maxlength="4" type="text" />&nbsp;<img src="ValidatorCode.ashx" id="Vl" alt="刷新验证码" border="0" onclick="javascript:this.src=\'ValidatorCode.ashx\'" align="absmiddle" />');
	   <%End IF%>
	   document.write('<input type="hidden" name="CookieTime" value="30"><input name="UserLogin" type="submit" value="登陆" class="tombutton"  onClick="checkform();" /><em><a class="thereg" style="padding-left:3px;" href="/User/ForgetPass.aspx" target=_blank>忘记密码</a></em><em><a class="thereg" style="padding-left:3px;" href="/User/Regters.aspx" target=_blank>用户注册</a></em></form></div>');
	<%Else%>
	 document.write('<div class="login"><em><%=Session.Item("UserNameB")%>，您好！</em> ┊ <a href="/User/Index.aspx">个人中心</a> ┊ <a href="/User/User_BookList.aspx">藏书架</a> ┊ <a href="/User/Messages.aspx">短消息</a><%IF Ctype(Session.Item("UserMegNum"),Integer)>0 Then%><bgsound loop=\'1\' autoplay=\'true\' src=\'/Images/meg.wav\' /><Font color=red>(<%=Session.Item("UserMegNum")%>条新消息)</font><%End IF%> ┊ <a href="/User/Logout.aspx" class="bnloginout">退出</a></div>');
	<%End IF%>