21,886
社区成员
发帖
与我相关
我的任务
分享
<item id="nocredit"><![CDATA[对不起,您的金币余额不足,请先<a target="_blank" href="http://bbs.csdn.net/topics/new?forum_id=PHP"><font color="red"><B>【充值金币】</B></font></a>]]></item>
if($paytype=='credit'){
if($cvar['onlinepay']){
$paymoney = $paymoney*$cvar['ccbl'];
}
$credit = C::t('common_member_count')->fetch($_G['uid']);
if($credit['extcredits'.$cvar['extcredit']]<$paymoney){
showmessage(str_replace('{credit}',$_G['setting']['extcredits'][$cvar['extcredit']]['title'],lang('plugin/dc_vip','nocredit')));
}
}
<script>
function succeedhandle_$_GET['handlekey'](locationhref, message, param) {
hideWindow('$_GET['handlekey']');
showDialog(message, 'right', '', 'window.location.href=\''+locationhref+'\'','','','','','','',3);
}
</script>
第二个文件:
function succeedhandle_payfor(locationhref, message, param){
showDialog(message, 'right', '', 'window.location.href=\''+locationhref+'\'','','','','','','',3);
}
function errorhandle_payfor(message, param){
hideWindow('payfor');
showDialog(message, 'alert');
}
第三个文件:
<script>
function succeedhandle_{$_GET['handlekey']}(href, message, param){
$('payselect').style.display='none';
$('payfor').style.display='';
$('payforurl').href=href;
}
function payclick(){
$('payforcheck').style.display='';
}
function succeedhandle_paycheck(href, message, param){
hideWindow('{$_GET['handlekey']}');
showDialog(message, 'right', '', 'window.location.href=\''+href+'\'', '','','','','','',3);
}
</script>
else {
s += '<div class="c altw"><div class="' + (mode == 'alert' ? 'alert_error' : (mode == 'right' ? 'alert_right' : 'alert_info')) + '"><p>' + msg + '</p></div></div>';
s += '<p class="o pns">' + (leftmsg ? '<span class="z xg1">' + leftmsg + '</span>' : '') + (showconfirm ? '<button id="fwin_dialog_submit" value="true" class="pn pnc"><strong>'+confirmtxt+'</strong></button>' : '');
s += mode == 'confirm' ? '<button id="fwin_dialog_cancel" value="true" class="pn" onclick="hideMenu(\'' + menuid + '\', \'dialog\')"><strong>'+canceltxt+'</strong></button>' : '';
s += '</p>';
}
<p>' + msg + '</p>
这里控制的
F12源代码是
<div class="alert_error"><p>对不起,您的独币余额不足,请先【充值独币】</p></div>