파일 위치는
Template_/tpl_plugin/function.GetUserItemAfter.php
<?
function GetUserItemAfter($rows=10,$type='o') {
global $cm;
$list = array();
$rs=sql_query(" SELECT a.*, b.* FROM ".CM_SHOP_ITEM_USE." a left join ".CM_SHOP_ITEM." b on(a.it_id=b.it_id) where a.confirm = '1' order by a.id desc limit 0, $rows ");
while($row=sql_fetch_array($rs)) {
$row['href'] = $cm->link['itemuse'].'?id='.$row['id'];
$row['img'] = $cm->GetItemImgPath($row,$type);
$list[] = $row;
}
return $list;
}
?>
|