本文整理汇总了PHP中Receipt::getlist方法的典型用法代码示例。如果您正苦于以下问题:PHP Receipt::getlist方法的具体用法?PHP Receipt::getlist怎么用?PHP Receipt::getlist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Receipt
的用法示例。
在下文中一共展示了Receipt::getlist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
$smarty->assign('tpl_theotherend', $theotherend);
$smarty->assign('tpl_theend', $theend);
$smarty->assign('tpl_theotherstart', $theotherstart);
$smarty->assign('tpl_thestart', $thestart);
$smarty->assign('tpl_start1', $thestart1);
$smarty->assign('tpl_theotherstart1', $theotherstart1);
$smarty->assign('tpl_end1', $theend1);
$smarty->assign('tpl_theotherend1', $theotherend1);
if ($what == 'thedate') {
list($day, $month, $year) = split('[.]', $thedate);
$thestart = "{$year}-{$month}-{$day} 00:00:00";
$theend = "{$year}-{$month}-{$day} 23:59:59";
if ($request->GetVar('frm_display', 'post') !== $request->undefined) {
$display = $request->GetVar('frm_display', 'post');
}
$smarty->assign('tpl_receipt', $receipt->getlist($thestart, $theend, $display));
} elseif ($what == 'timeline') {
list($day, $month, $year) = split('[.]', $theend1);
$theend1 = "{$year}-{$month}-{$day} 23:59:59";
list($day, $month, $year) = split('[.]', $thestart1);
$thestart1 = "{$year}-{$month}-{$day} 00:00:00";
if ($request->GetVar('frm_display2', 'post') !== $request->undefined) {
$display = $request->GetVar('frm_display2', 'post');
}
$smarty->assign('tpl_receipt', $receipt->getlist($thestart1, $theend1, $display));
} else {
list($month, $year) = split('[/]', $theend);
$theend = "{$year}-{$month}-01 00:00:00";
list($month, $year) = split('[/]', $thestart);
$thestart = "{$year}-{$month}-01 00:00:00";
if ($request->GetVar('frm_display3', 'post') !== $request->undefined) {