<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ taglib uri="/oscache" prefix="cache" %>

<link href="css/style.css" rel="stylesheet" type="text/css">
<% String siteFullPathAndTemplet = ""; %>
<cms4j:site_config node_id="root">
	<% siteFullPathAndTemplet = siteconfig_info.getSiteFullPathAndTemplet2(); %>
</cms4j:site_config>


<%
	if(cn.com.dekn.cms.security.login.CMS4JUser.isLogin(request)){
		cn.com.dekn.cms.sa.vo.UserVO userVO = cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request);
%>
	<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0" class="list">
	  <tr>
		<td height="40" align="center">欢迎您:<%=userVO.getUID()%></td>
	  </tr>
	<tr>
	  <td height="21" align="center">上次登录:<%=userVO.getLAST_LOGIN_DATE_FORMATED("yy-MM-dd kk:mm")%></td>
	  </tr>
	<tr>
	  <td height="40" align="center"><a href="../../AdminLogout?LogOutReturnPage=<%=siteFullPathAndTemplet%>"><strong>退 出</strong></a></td>
	  </tr>
  </table>

<%
	}else{
%>



  <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0" class="list">	
    <form action="../../AdminLogin" name="cms4jMemberLogin" id="cms4jMemberLogin" method="post">
		<input name="loginPage" type="hidden" value="<%=siteFullPathAndTemplet%>">
		<input name="LoginErrpage" type="hidden" value="<%=siteFullPathAndTemplet%>login_err.jsp">
	<tr>
	  <td height="25">用户名：</td>
	  <td height="22" colspan="2"><input name="UID" type="text" class="form" id="UID" style="width:90%"></td>
	</tr>
	<tr>
	  <td height="25">密　码：</td>
	  <td height="22" colspan="2"><input name="PWD" type="password" class="form" id="PWD" style="width:90%"></td>
	</tr>
	<tr>
	  <td height="25">验证码：</td>
	  <td height="22"><input name="randCode" type="text" class="form" id="randCode" size="4" maxlength="4"></td>
	  <td width="41%"><img src="../../cms4jadmin/common/randomNumber.jsp" alt="" name="CheckNumber" width="60" height="20" hspace="3" border=0></td>
	</tr>
	<tr>
	  <td height="36" colspan="3" align="center"><input name="Submit" type="submit" class="btn_css" value="登录">
		<input name="Submit2" type="button" class="btn_css" onClick="location.href='member_reg.jsp'" value="新会员注册">
		<input type="hidden" name="loginType" id="loginType" value="front">
	  </td>
    </tr>
</form></table>
  

  
	
<%	} %>