帝国cms中JS调用登陆模板
2018-10-23 站长 站长日志
1. 头像调用方法
打开e/data/template/loginiframetemp.txt
在
$r=$empire->fetch1("select ".$user_userid.",".$user_username.",".$user_group.",".$user_userfen.",".$user_money.",".$user_userdate.",".$user_havemsg.",".$user_checked." from ".$user_tablename." where ".$user_userid."='$myuserid' and ".$user_rnd."='$myrnd' limit 1"); |
$m=$empire->fetch1("select userpic from phome_enewsmemberadd where userid='$myuserid' limit 1"); if($m['userpic']){ $userrpic=$m['userpic']; }else{ $userrpic="/e/data/images/nouserpic.gif"; } |
在JS调用登陆模板中使用<?=$userrpic?>调用会员头像!
上一篇:帝国cms的会员中心链接
下一篇:帝国cms搜索框制作