<?xml version="1.0" encoding="gb2312"?>
<logintemplate>
    <label name="top">
    <![CDATA[
	 <div id="toplogintips"><img src="{$GetSiteUrl}images/loading.gif" align="absmiddle" alt=""/>加载中...</span></div>
	 <script type="text/javascript">
	  function CheckLoginForm(){
		var username=document.myform.username.value;
		var pass=document.myform.password.value;
		if (username==''){
		  alert('请输入用户名');
		  document.myform.username.focus();
		  return false;}
		if (pass==''){
		  alert('请输入登录密码');
		  document.myform.password.focus();
		  return false;
		 }
		  return true;
	  } 
	 jQuery(document).ready(function(){
		  jQuery.getScript("{$GetInstallDir}user/userlogin.asp?action=checklogin",function(){
			 jQuery("#toplogintips").html(user.loginstr);
		  });
	  })
	 </script>
	]]>
   </label>
   <label name="popup">
    <![CDATA[
	<!--弹窗式登录代码--->
	 <script type="text/javascript">
	 function ShowPopLogin(){ $.dialog({title:"<img src='{$GetInstallDir}user/images/icon18.png' align='absmiddle'>会员登录",content:"url:{$GetSiteUrl}user/userlogin.asp?action=PoploginStr",width:450,height:200});}
	jQuery(document).ready(function(){
		  jQuery.getScript("{$GetSiteUrl}user/userlogin.asp?action=checklogin&s=1",function(){
		    jQuery("#showuserlogin").html(user.loginstr);
		  });
	  })
	 </script>
	 <span id="showuserlogin">加载中...</span>
	 <!--登录结束--->
	]]>
   </label>
</logintemplate>
