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