|
[ol] array ( 'type' => 'select', 'tbl' => 'admin', 'fld' => 'userName,pwd', 'where' => array ( 'userName' => array(), 'pwd' => array(), ) ), 'stmt' => array ( 'userName' => f('userName'), 'pwd' => f('pwd'), ), ); $rs=exeCmd($sqlArr,'array'); if(count($rs)==0) { $msg='密码或者用户名错误,请重新输入'; $reUrl=$g_reUrl; }else{ loginSession($rs[0]['userName'],$rs[0]['pwd'],0); $msg=''; $reUrl='index.php'; } echo alert(array('msg'=>$msg,'reUrl'=>$reUrl));}?> 后台管理 #logo{height:74px;} #dForm .form{border-left:1px #8DA0AE solid;border-right:1px #8DA0AE solid;height:180px;} #dForm .bTop{height:74px;background:url(images/login.png) no-repeat -7px -2px;} #dForm .bTop .fr{width:12px;height:74px;background:url(images/login.png) no-repeat -960px -2px;float:right;} #dForm .bbot{height:12px;background:url(images/login.png) no-repeat -7px -73px;} #dForm .bbot .fr{width:12px;height:12px;background:url(images/login.png) no-repeat -960px -73px;float:right;} .inp{border:1px #0F5A93 solid;} .formTbl th{color:#333;font-size:14px;letter-spacing:6px;} .formTbl .btn{border:0;width:116px;height:42px;background:url(images/login.png) no-repeat -9px -99px;color:white;font-size:14px;} 用户名: 密码: [/ol]复制代码这个语句,在不输入用户名和密码可以直接登陆,请问应该如何修改语句? |
|