登陆
<script >退出
$(function(){
$('img[title="login"]').click(function(){
$('form[name="myForm"]').submit();
})
})
</script>
<form action="__URL__/doLogin" method='post' name='myForm'>
<input id="uid" type="text" style="width:150px;line-height:30px; height:30px; background:url(/Public/images/login/3.png) no-repeat; border:#66CCFF 1px solid;" onblur="return checkuid();" name="uid">
<input id="password" type="password" style="width:150px;line-height:30px; height:30px; background:url(/Public/images/login/3.png) no-repeat; border:#66CCFF 1px solid;" onblur="return checkpwd();" name="password">
<img src='http://d260288701.blog.163.com/blog/__APP__/Public/code' οnclick="this.src=this.src+'?' +Math.random()" />thinkPHP验证码
<img src='http://d260288701.blog.163.com/blog/__PUBLIC__/Images/login.gif' title='login'/>
</form>
============================退出===========================================
<p>欢迎您 {$Think.session.username}<a href='http://d260288701.blog.163.com/blog/__APP__/Login/doLogout' target='_top'>退出</a></p>
public funciton doLogout(){
$_SESSION=array();
if(isset($_COOKIE[session_name()])){
setcookie(session_name(),'',time()-1,'/');
}
session_destroy();
]