插入模板 include template('xx');
模板中使用子模版
{subtemplate header}
模板中执行代码
eval执行php语句
{eval $needhiddenreply = ($hiddenreplies && $discuz_uid != $post['authorid'] && $discuz_uid != $thread['authorid'] && !$post['first'] && !$forum['ismoderator']);}
sql的
$db->fetch_all($sql);
$db->fetch_first($sql);
$db->result_first($sql); //获取一个字段(通常是count)
result的
$db->fetch_array($result);
$db->fetch_row($result);
$db->result($result,$row);
跳转
showmessage('credits_net_amount_iszero');
lang语言包
template.lang.php支持""
message.lang.php 只能用/"才行
加虚拟币代码
<form id="addfundsform" name="addfundsform" method="post" action="memcp.php?action=credits&infloat=yes&addfundssubmit=yes" οnsubmit="showWindow('credit', 'addfundsform', 'post');return false;">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="operation" value="addfunds" />
<input type="text" size="5" id="addfundamount" name="addfundamount" value="0" οnkeyup="addcalcredit()" class="txt" />
</form>