當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DataList::GetDataList方法代碼示例

本文整理匯總了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 . "&nbsp;&nbsp;</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>&nbsp;<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\">&nbsp;&nbsp;總計:&nbsp;¥" . $cmoney . "元</td></tr>";
echo "<tr><td colspan='8'>&nbsp;" . $dlist->GetPageList($cfg_record) . "</td></tr>";
echo "</table>";
$csql->close();
?>
	  </td>
     </tr></form>
    </table>
	</td>
    <td>&nbsp;</td>
  </tr>
開發者ID:BGCX261,項目名稱:zlskytakeorder-svn-to-git,代碼行數:31,代碼來源:system_money.php

示例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();
?>
開發者ID:BGCX262,項目名稱:zyyhong-svn-to-git,代碼行數:24,代碼來源:money2scores.php


注:本文中的DataList::GetDataList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。