织梦cmsdede自定dede:php与dede:sql应用自变量

php文档 require_once (dirname( __FILE__ ). /../../mon.inc.php ); require_once DEDEINC. /iew.class.php ;$arc = new PartView();$tempfile = $cfg_basedir.$cfg_templets_skin. /mood_ranking.htm ; //模版文档 $arc-SetTemplet($tempfile);$arc-Display( […] php文档
require_once(dirname(__FILE__). /../../mon.inc.php );
require_once DEDEINC. /iew.class.php ;
$arc = new PartView();
$tempfile = $cfg_basedir.$cfg_templets_skin. /mood_ranking.htm ;//模版文档
$arc- SetTemplet($tempfile);
$arc- Display();

{/dede:php} {dede:sql sql= SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath FROM `58pic_archives` arc LEFT JOIN `58pic_arctype` tp ON arc.typeid=tp.id where arc.arcrank -1 AND arc.typeid=8 ORDER BY arc.id desc limit 0, 10 } [field:id runphp=yes]$id=@me;@me= ;$url=GetOneArchive($id);@me=$url[ arcurl ];[/field:id] - [field:title/] {/dede:sql}