本文整理汇总了PHP中Cart66Common::getElapsedTime方法的典型用法代码示例。如果您正苦于以下问题:PHP Cart66Common::getElapsedTime方法的具体用法?PHP Cart66Common::getElapsedTime怎么用?PHP Cart66Common::getElapsedTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cart66Common
的用法示例。
在下文中一共展示了Cart66Common::getElapsedTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<input type="hidden" name="cart66-action" value="check followup emails" id="cart66-action" />
<input type="submit" value="<?php
_e('Send Followup Emails', 'cart66');
?>
" class="button-secondary" />
</form>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php
_e('Prune Pending Orders Last Checked', 'cart66');
?>
</th>
<td>
<?php
echo Cart66Setting::getValue('daily_prune_pending_orders_last_checked') ? Cart66Common::getElapsedTime(date('Y-m-d H:i:s', Cart66Setting::getValue('daily_prune_pending_orders_last_checked'))) : __("Never", "cart66");
?>
<form action="" method="post" style="display:inline-block">
<input type="hidden" name="cart66-action" value="prune pending orders" id="cart66-action" />
<input type="submit" value="<?php
_e('Prune Pending Orders', 'cart66');
?>
" class="button-secondary" />
</form>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php
_e('Next Scheduled Cron Check', 'cart66');
?>
</th>
示例2: cart66_statistics_widget
//.........这里部分代码省略.........
<th colspan="2" class="left"><?php
_e('Today\'s Order Details', 'cart66');
?>
</th>
<th class="right"><?php
_e('Order Total', 'cart66');
?>
</th>
</tr>
</thead>
<?php
$Orders = new Cart66Order();
$todaysOrders = $Orders->getOrderRows(" WHERE ordered_on > '{$dayStart}' AND ordered_on < '{$dayEnd}' AND id>0", "order by ordered_on DESC");
if ($todaysOrders) {
$i = 1;
?>
<tbody>
<?php
foreach ($todaysOrders as $order) {
?>
<tr>
<td class="rowNumber">
<h2><?php
echo $i;
?>
</h2>
</td>
<td class="orderInformation">
<p><?php
echo $order->bill_first_name . " " . $order->bill_last_name;
?>
<br>
<span class='orderDate'><?php
echo Cart66Common::getElapsedTime($order->ordered_on);
?>
</span>
</p>
</td>
<td class='right'>
<?php
echo Cart66Common::currency($order->total);
?>
</td>
<?php
$i++;
?>
</tr>
<?php
}
?>
</tbody>
<?php
} else {
?>
<tfoot>
<tr>
<td colspan='3'>
<h2 class="noOrders"><?php
_e('No orders yet today', 'cart66');
?>
</h2>
</td>
</tr>
</tfoot>
<?php
}