ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

一、本方法調用“閱讀收費”購買后的文章方法


調用我購買的文章(show.html寫法)

<?php $table= SITE_ID.'_news_buy';?>
{list action=table table=$table eid=0 cid=$id uid=$member.uid}
{$t.title}
{/list}


調用文章購買后的人數(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}


二、訂單模塊的方法

內容頁show.html
{if $member && $ci->db->where('mid', MOD_DIR)->where('cid', $id)->where('uid', $member.uid)->count_all_results(SITE_ID.'_order_buy')}
已經購買了
顯示內容字段:{$content}
{else}
沒有購買
{/if}


文檔最后更新時間:2017-06-13 13:01:23