本文整理汇总了PHP中osC_Order::isValid方法的典型用法代码示例。如果您正苦于以下问题:PHP osC_Order::isValid方法的具体用法?PHP osC_Order::isValid怎么用?PHP osC_Order::isValid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osC_Order
的用法示例。
在下文中一共展示了osC_Order::isValid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><h1><?php
echo HEADING_TITLE;
?>
</h1></td>
<td class="smallText" align="right"><?php
echo '<input type="button" value="' . IMAGE_BACK . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $_GET['oID']) . '\';" class="operationButton">';
?>
</td>
</tr>
</table>
<?php
if ($osC_Order->isValid() === false) {
$osC_MessageStack->add('orders_edit', sprintf(ERROR_ORDER_DOES_NOT_EXIST, $_GET['oID']), 'error');
echo $osC_MessageStack->output('orders_edit');
} else {
?>
<p>
<input type="button" value="Summary" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionSummary');"> <input type="button" value="Products" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionProducts');"> <input type="button" value="Status History" class="sectionButton" onClick="toggleDivBlocks('section', 'sectionStatusHistory');">
<input type="button" value="<?php
echo IMAGE_ORDERS_INVOICE;
?>
" onClick="window.open('<?php
echo tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']);
?>
');" class="infoBoxButton"> <input type="button" value="<?php
echo IMAGE_ORDERS_PACKINGSLIP;
示例2: Copyright
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License v2 (1991)
as published by the Free Software Foundation.
*/
require 'includes/classes/tax.php';
$osC_Tax = new osC_Tax_Admin();
$osC_Order = new osC_Order($_GET['oID']);
if (!$osC_Order->isValid()) {
$osC_MessageStack->add($osC_Template->getModule(), sprintf(ERROR_ORDER_DOES_NOT_EXIST, $_GET['oID']), 'error');
}
$tabIndex = 0;
if (isset($_GET['tabIndex']) && !empty($_GET['tabIndex'])) {
switch ($_GET['tabIndex']) {
case 'tabProducts':
$tabIndex = 1;
break;
case 'tabTransactionHistory':
$tabIndex = 2;
break;
case 'tabStatusHistory':
$tabIndex = 3;
break;
}