注意:此方法也适用与其他字段,做好自己的设置即可
1、在<head>中加入
| <script src= "{dede:global.cfg_cmsurl/}/include/dedeajax2.js" type = "text/javascript" ></script> |
| <script language= "javascript" > |
| var taget_obj = document.getElementById( '_userlogin_c' ); |
|
var req = document.getElementById( 'hid' ).value; |
|
myajax = new DedeAjax(taget_obj, false ,fal se, '' , '' , '' ); |
|
myajax.SendGet2( "{dede:global.cfg_cmspath/}/member/ajax_loginsta_c.php?val=" +req); |
|
2、在dedecms.com/usersguide/license.html
| require_once( dirname (__FILE__). "/config.php" ); |
| if ($myurl == '' ) exit ( '' ); |
| $uid = $cfg_ml->M_LoginID; |
| !$cfg_ml->fields[ 'face' ] && $face = ($cfg_ml->fields[ 'sex' ] == '女' )? 'dfgirl' : 'dfboy' ; |
| $facepic = empty($face)? $cfg_ml->fields[ 'face' ] : $GLOBALS[ 'cfg_memberurl' ]. '/templets/images/' .$face. '.png' ; |
| $row = $dsql->GetOne( " Select * From `dede_addon19` where `aid`=$val " ); |
| 购买链接(已登录):<?php echo $row[ 'url2' ];?><br /> |
| 本店价格:<?php echo $row[ 'jiage2' ];?><br /> |