一、本方法調(diào)用“閱讀收費(fèi)”購(gòu)買后的文章方法
調(diào)用我購(gòu)買的文章(show.html寫(xiě)法)
<?php $table= SITE_ID.'_news_buy';?> {list action=table table=$table eid=0 cid=$id uid=$member.uid} {$t.title} {/list}
調(diào)用文章購(gòu)買后的人數(shù)(show.html寫(xiě)法)
{$ci->db->where('eid=0 and cid='.$id)->count_all_results(SITE_ID.'_news_buy')}
購(gòu)買的后的會(huì)員(show.html寫(xiě)法)
<?php $table= SITE_ID.'_news_buy';?> {list action=table table=$table eid=0 cid=$id} {php $m=dr_member_info($t.uid);} 會(huì)員:{$m.username} 頭像:{$m.avatar_url} {/list}
二、訂單模塊的方法
內(nèi)容頁(yè)show.html {if $member && $ci->db->where('mid', MOD_DIR)->where('cid', $id)->where('uid', $member.uid)->count_all_results(SITE_ID.'_order_buy')} 已經(jīng)購(gòu)買了 顯示內(nèi)容字段:{$content} {else} 沒(méi)有購(gòu)買 {/if}
文檔最后更新時(shí)間:2017-06-13 13:01:23