本文整理匯總了PHP中DataList::GetDataList方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataList::GetDataList方法的具體用法?PHP DataList::GetDataList怎麽用?PHP DataList::GetDataList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataList
的用法示例。
在下文中一共展示了DataList::GetDataList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Dedesql
$query = "select * from #@__accounts order by dtime desc";
}
}
$csql = new Dedesql(false);
$dlist = new DataList();
$dlist->pageSize = $cfg_record;
//設置GET參數表
if ($action == 'seek') {
$dlist->SetParameter("action", $action);
$dlist->SetParameter("cp_sdate", $cp_sdate);
$dlist->SetParameter("cp_edate", $cp_edate);
}
$dlist->SetSource($query);
echo "<tr><td colspan='8' align='right'>" . $moneystring . " </td></tr>";
echo "<tr class='row_color_head'><td>ID號</td><td>科目</td><td>賬戶</td><td>操作用戶</td><td>日期</td><td>金額</td><td>備注</td><td>選擇</td></tr>";
$mylist = $dlist->GetDataList();
while ($row = $mylist->GetArray('dm')) {
$cmoney += $row['amoney'];
echo "<tr onMouseMove=\"javascript:this.bgColor='#EBF1F6';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">\r\n<td>" . $row['id'] . "</td><td> <a href='{$hurl}" . $row['atype'] . "'>" . $row['atype'] . "</td><td>" . getbank($row['abank']) . "</td><td>" . $row['apeople'] . "</td><td>" . $row['dtime'] . "</td><td>¥" . $row['amoney'] . "</td><td>" . $row['atext'] . "</td><td><input type='checkbox' name='sel_pro" . $row['id'] . "' value='" . $row['id'] . "'></td>\r\n</tr>";
}
echo "<tr><td colspan=\"8\"> 總計: ¥" . $cmoney . "元</td></tr>";
echo "<tr><td colspan='8'> " . $dlist->GetPageList($cfg_record) . "</td></tr>";
echo "</table>";
$csql->close();
?>
</td>
</tr></form>
</table>
</td>
<td> </td>
</tr>
示例2: DataList
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('member_List');
require_once(dirname(__FILE__)."/../include/pub_datalist_dm.php");
$query = "select * from #@__score2money_logs order by dateline desc";
$dlist = new DataList();
$dlist->Init();
$dlist->pageSize = 20;
$dlist->SetSource($query);
$log = $dlist->GetDataList();
$logs = array();
while($row = $log->GetArray('dm')) {
$row['dbdateline'] = GetDateTimeMk($row['dateline']);
$row['dbtype'] = $row['type'] == 'score2money' ? '積分 → 金幣' : '金幣 → 積分';
$logs[] = $row;
}
$page = $dlist->GetPageList(7);
require_once(dirname(__FILE__)."/templets/money2score.htm");
ClearAllLink();
?>