【小(xiǎo)編推薦】destoon首頁顯示供•≠應、企業(yè)、資訊的(de)條數(shù)的(de)方法之一(yī)

2014-10-14   ∑σ£|   發布者:梁國(g&¥∞uó)芳   | &nbγγ sp; 查看(kàn):3320次

destoon

destoon的(de)模闆裡(lǐ)面是(shì)δ•✔支持php的(de)代碼的(de),我們可( ¥↔kě)以直接在模闆裡(lǐ)面查詢出來(lái)即可(kě)¥±$♥的(de)。

 

 <ul>
            {php $sellcount=$db-&g'★t;get_one("select COUNT(*) δ∑ >AS num FROM ".$DT_PRE.&quoγΩt;sell WHERE status=3&quo®‌t;);}  
             <li>共有(yǒu){$se₽÷​llcount[num]}條供應</li>
                {php $company=$db->get_one(&q↓φuot;select COUNT(*) ASβ∞® num FROM ".$DT_PRE."‌Ωmember WHERE groupid>5");}
             <li>共有(yǒu){$company[n÷₽um]}個(gè)企業(yè)</li​↕±≥>
                {php $newcount=$db->get_one(σ£&α"select COUNT(*) AS n¶↕©↕um FROM ".$DT_PRE.">•≈;article_21 WHERE status=3") →←↓;}
             <li>共有(yǒu){$newcount[num]}條資訊&≤'lt;/li>

</ul>

 

頁面顯示當前的(de)日(rì)期的(de)方法:∞®α{date('Y-m-d',$DT_TIME)}

 

destoon首頁顯示供應、企業(yè)、資訊的(de)條數(shù)的(de)方法之一(yī)