Template_/tpl_plugin/function.GetTodayView.php
 <?
 function GetTodayView($rows, $width=120, $height=120) {
 	global $cm, $member, $g4;
 	$list = array();
 	$rs=sql_query(" SELECT b.*  FROM cm_shop_member_view a left join cm_shop_item b on(a.it_id=b.it_id) WHERE a.mb_id = '$member[mb_id]' and a.v_date='$g4[time_ymd]' order by id desc limit 0, $rows ");
 	while($it=sql_fetch_array($rs)) {
 		$it['img'] = $cm->GetItemImg($it,'l', $width, $height); 
 		$it['href'] = $cm->path.'/shop/item.php?it_id='.$it['it_id'];
 		$list[]=$it;
 	}
 	return $list;		
 }
 ?>
 
 출력 할 htm파일 위치에 아래와 같이 선언
 	<!--{ = this->assign('list', GetTodayView(4)) }-->
 	<!--{ = include_file('include/today_view.htm') }-->
 
 today_view.htm 
 <!--{@ list }-->
 	<a href="{.href}">{.img}</a>
 <!--{/}-->
                
        
        
 |