
$(document).ready(function(){ 
$.get('../../check-login.php', function(data) {

  if("true" == data ){
  //	alert('Login');
  }else{
  //	alert(data);
	$("#staticContent").css("height", "700px");
	$("#staticContent").css("overflow", "hidden");
	
	var strHtml = '';//<h1>会员登录</h1>
	strHtml+= '<div  style="text-align:center; ">';
	strHtml+= '<p><strong>会员登录</strong></p>';
	strHtml+= '<form id="loginPad"  action=../../club/logging.php?action=login method=post>   ';
	strHtml+= '用户:';
	strHtml+= '<input style="width:8em" type=text size=12 name=username> ';
	strHtml+= '<br />';
	strHtml+= '密码:';
	strHtml+= '<input style="width:8em"  type=password size=12 name=password>';
	strHtml+= '<br />';
	strHtml+= '<input type="hidden" name="referer" value="论坛真实地址"><input type=hidden name=radio value=31536000> ';
	strHtml+= '<input name="loginsubmit" type=submit value="登 录"> <a href="../../club/register.php" target="_blank">注册</a> '; 
	strHtml+= '</form>';
	strHtml+= '   ';
	strHtml+= '<p  style="text-align:center; font-size:14px"><br />';
	strHtml+= '您目前的身份是游客，只能查看部分内容。请<strong>注册</strong>或者<strong>登录</strong>后继续浏览。</p>';
	strHtml+= '</div>';
	
	$('#staticContent').after(strHtml);
  }
});
	

});
