当前位置: 首页>>代码示例>>PHP>>正文


PHP DataList::GetPageList方法代码示例

本文整理汇总了PHP中DataList::GetPageList方法的典型用法代码示例。如果您正苦于以下问题:PHP DataList::GetPageList方法的具体用法?PHP DataList::GetPageList怎么用?PHP DataList::GetPageList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataList的用法示例。


在下文中一共展示了DataList::GetPageList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: while

            $rowcount = $csql1->GetTotalRow();
            echo "<tr class='row1_color_head'><td>货号</td><td>名称</td><td>规格</td><td>分类</td><td>单位</td><td>售价</td><td>供应商<td>入库数量</td><td>操作</tr>";
            while ($row = $csql1->GetArray()) {
                $nsql = new dedesql(false);
                $query1 = "select * from #@__basic where cp_number='" . $row['productid'] . "'";
                $nsql->setquery($query1);
                $nsql->execute();
                $row1 = $nsql->getone();
                echo "<tr onMouseMove=\"javascript:this.bgColor='#EBF1F6';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\"><td>" . $row['productid'] . "</td><td>&nbsp;" . $row1['cp_name'] . "</td><td>" . $row1['cp_gg'] . "</td><td>" . get_name($row1['cp_categories'], 'categories') . ">" . get_name($row1['cp_categories_down'], 'categories') . "</td><td>" . get_name($row1['cp_dwname'], 'dw') . "</td><td>¥" . $row1['cp_sale'] . "</td><td>" . $row1['cp_gys'] . "</td><td>" . $row['number'] . "</td><td><a href=''></a></td></tr>";
                $nsql->close();
            }
            $csql1->close();
            echo "</table><br></td></tr>\r\n";
        }
        $csql->close();
        echo "<tr><td colspan='6'>&nbsp;" . $dlist->GetPageList($cfg_record) . "</td></tr></table>\r\n </td></tr></table>\r\n </td></tr>  <tr>\r\n    <td id=\"table_style\" class=\"l_b\">&nbsp;</td>\r\n    <td>&nbsp;</td>\r\n    <td id=\"table_style\" class=\"r_b\">&nbsp;</td>\r\n  </tr>\r\n</table>";
    } else {
        ?>
<body onload="form1.seek_text.focus()">
<table width="100%" border="0" id="table_style_all" cellpadding="0" cellspacing="0">
  <tr>
    <td id="table_style" class="l_t">&nbsp;</td>
    <td>&nbsp;</td>
    <td id="table_style" class="r_t">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
	<table width="100%" border="0" cellpadding="0" cellspacing="2">
     <tr>
      <td><strong><strong>&nbsp;销售管理</strong>&nbsp;&nbsp;- <a href="sale.php">新单</a> - <a href="sale.php?action=seek">销售单查询</a></td>
开发者ID:BGCX261,项目名称:zlskytakeorder-svn-to-git,代码行数:31,代码来源:sale.php

示例2: getbank

//设置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>
  <tr>
    <td id="table_style" class="l_b">&nbsp;</td>
    <td>&nbsp;</td>
    <td id="table_style" class="r_b">&nbsp;</td>
  </tr>
</table>
开发者ID:BGCX261,项目名称:zlskytakeorder-svn-to-git,代码行数:31,代码来源:system_money.php

示例3: 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::GetPageList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。