<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{if $title}><{$title}>，<{$config.company}><{else}><{$config.title}><{/if}></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta name="description" content="<{$config.description|regex_replace:"/[\r\t\n]/":""}>">
<meta name="keywords" content="<{$config.keyword|regex_replace:"/[\r\t\n]/":""}>" />
<link href="<{$config.weburl}>/templates/<{$config.temp}>/css/page.css" rel="stylesheet" type="text/css" />
<link href="<{$config.weburl}>/templates/<{$config.temp}>/css/login.css" rel="stylesheet" type="text/css" />
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="<{$config.weburl}>/script/index.js" type="text/javascript"></script>
</head>
<body>
<div class="header">
    <div class="w">
    <a href="<{$config.weburl}>">
    	<img height="38" src="<{if $config.logo}><{$config.logo}><{else}><{$config.weburl}>/image/logo.png<{/if}>" />
    </a>
    </div>
</div>
                    
                    
<div class="w login clearfix">
	<script src='<{$config.weburl}>/api/ad.php?id=10'></script>
	<div class="login_box">
	<form id="login" name="login" action="login.php" method="post">
    	<h2>Sign In</h2>
    	<dl>
        	<dt>Member ID or Email:</dt>
        	<dd>
            <input class="input" value='<{$smarty.get.user}>' name='user' type='text' id="user" tabindex="1" />
            </dd>
        </dl>
    	<dl>
        	<dt>Password:</dt>
        	<dd>
             <input class="input" type='password' name='password' id="password" tabindex="2" />
            </dd>
        </dl>
        <{if $smarty.get.erry=="-1"||$smarty.get.erry=="-2"}>
        	<div class="error">Incorrect Member ID/Email or Password. Please try again.</div>
        <{/if}>
    	<div class="randcode clearfix">
            <input class="input" type='text' name='randcode' id="randcode" tabindex="3" />	
            <img onclick="get_randfunc(this);" src='includes/rand_func.php'/>
        </div>
        <{if $smarty.get.erry=="-3"}>
        	<div class="error">Please input correct Verification Code according to the characters in the picture.</div>
        <{elseif $smarty.get.erry=="-4"}>
        	<div class="error"><{$lang.have_restpass}></div>
        <{/if}>
    	<div class="act">
            <a href="lostpass.php">Forgot Password?</a>
            <a class="fr" href="<{$config.regname}>">Join Free</a>
        </div>
        <div class="submit">
            <input name="action" type="hidden" value="submit" />
            <input type="submit" value="Sign in" tabindex="4" />
            <input name="forward" type="hidden" id="forward" value="<{$smarty.get.forward}>" />
        </div>
	</form>
    </div>
</div>
<div id="footer" class="clearfix">
    <div class="w">
        <p><{$web_con}></p>
        <p class="copyright"><{$bt}></p>
    </div>
</div>
</body>
</html>