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


PHP Order::status方法代码示例

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


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

示例1: formatTanggal

        ?>
">
                <td class="acenter"><?php 
        echo $row->id_order;
        ?>
</td>
                <td><?php 
        echo $row->nama_lengkap;
        ?>
</td>
                <td class="acenter"><?php 
        echo formatTanggal($row->tanggal);
        ?>
</td>
                <td class="acenter"><?php 
        echo Order::status($row->status);
        ?>
</td>
                <td class="aright"><?php 
        echo formatAngka($row->total);
        ?>
</td>
            </tr>
        <?php 
    }
    ?>
        </tbody>
    </table>
<?php 
}
?>
开发者ID:FaddliLWibowo,项目名称:tokonlen,代码行数:31,代码来源:report-table.php

示例2: foreach

                <tbody>
                <?php 
    if ($orders->count() > 0) {
        foreach ($orders->fetch(false) as $order) {
            ?>
                    <tr>
                        <td class="acenter"><?php 
            echo $order->id_order;
            ?>
</td>
                        <td class="acenter"><?php 
            echo formatTanggal($order->tanggal);
            ?>
</td>
                        <td class="acenter"><?php 
            echo Order::status($order->status);
            ?>
</td>
                        <td class="aright"><?php 
            echo formatAngka($order->total);
            ?>
</td>
                        <td class="action"><div class="btn-group">
                            <?php 
            echo anchor('admin-shop/orders/form/' . $order->id_order, 'Lihat', ['class' => 'btn btn-edit']);
            ?>
                        </div></td>
                    </tr>
                <?php 
        }
    } else {
开发者ID:FaddliLWibowo,项目名称:tokonlen,代码行数:31,代码来源:customer-form.php

示例3:

            <?php 
    if (User::is('admin')) {
        ?>
                <input type="checkbox" name="status" value="1" <?php 
        echo $data->status == 1 ? 'disabled checked' : '';
        ?>
>
            <?php 
    } else {
        ?>
                <input type="hidden" name="status" value="<?php 
        echo $data->status;
        ?>
">
                <p class="control-static"><?php 
        echo Order::status($data->status);
        ?>
</p>
            <?php 
    }
    ?>
            </div>
        </div>
    <?php 
} else {
    ?>
        <input type="hidden" name="origin" value="<?php 
    echo Order::cityId();
    ?>
">
    <?php 
开发者ID:gaiius,项目名称:tokonlen,代码行数:31,代码来源:order-form.php

示例4: process


//.........这里部分代码省略.........
     }
     // Authenticate new Customer
     if ($new_customer) {
         // Fails for "unregistered" Customers!
         if (self::$objCustomer->auth($_SESSION['shop']['username'], $_SESSION['shop']['password'], false, true)) {
             if (!self::_authenticate()) {
                 return \Message::error($_ARRAYLANG['TXT_SHOP_CUSTOMER_ERROR_STORING']);
             }
         }
     }
     //die();
     // Clear the ship-to country if there is no shipping
     if (!Cart::needs_shipment()) {
         $_SESSION['shop']['countryId2'] = 0;
     }
     $shipper_id = empty($_SESSION['shop']['shipperId']) ? null : $_SESSION['shop']['shipperId'];
     $payment_id = empty($_SESSION['shop']['paymentId']) ? null : $_SESSION['shop']['paymentId'];
     $objOrder = new Order();
     $objOrder->customer_id(self::$objCustomer->id());
     $objOrder->billing_gender($_SESSION['shop']['gender']);
     $objOrder->billing_firstname($_SESSION['shop']['firstname']);
     $objOrder->billing_lastname($_SESSION['shop']['lastname']);
     $objOrder->billing_company($_SESSION['shop']['company']);
     $objOrder->billing_address($_SESSION['shop']['address']);
     $objOrder->billing_city($_SESSION['shop']['city']);
     $objOrder->billing_zip($_SESSION['shop']['zip']);
     $objOrder->billing_country_id($_SESSION['shop']['countryId']);
     $objOrder->billing_phone($_SESSION['shop']['phone']);
     $objOrder->billing_fax($_SESSION['shop']['fax']);
     $objOrder->billing_email($_SESSION['shop']['email']);
     $objOrder->currency_id($_SESSION['shop']['currencyId']);
     $objOrder->sum($_SESSION['shop']['grand_total_price']);
     $objOrder->date_time(date(ASCMS_DATE_FORMAT_INTERNATIONAL_DATETIME));
     $objOrder->status(0);
     $objOrder->company($_SESSION['shop']['company2']);
     $objOrder->gender($_SESSION['shop']['gender2']);
     $objOrder->firstname($_SESSION['shop']['firstname2']);
     $objOrder->lastname($_SESSION['shop']['lastname2']);
     $objOrder->address($_SESSION['shop']['address2']);
     $objOrder->city($_SESSION['shop']['city2']);
     $objOrder->zip($_SESSION['shop']['zip2']);
     $objOrder->country_id($_SESSION['shop']['countryId2']);
     $objOrder->phone($_SESSION['shop']['phone2']);
     $objOrder->vat_amount($_SESSION['shop']['vat_price']);
     $objOrder->shipment_amount($_SESSION['shop']['shipment_price']);
     $objOrder->shipment_id($shipper_id);
     $objOrder->payment_id($payment_id);
     $objOrder->payment_amount($_SESSION['shop']['payment_price']);
     $objOrder->ip($customer_ip);
     $objOrder->host($customer_host);
     $objOrder->lang_id(FRONTEND_LANG_ID);
     $objOrder->browser($customer_browser);
     $objOrder->note($_SESSION['shop']['note']);
     if (!$objOrder->insert()) {
         // $order_id is unset!
         return \Message::error($_ARRAYLANG['TXT_SHOP_ORDER_ERROR_STORING']);
     }
     $order_id = $objOrder->id();
     $_SESSION['shop']['order_id'] = $order_id;
     // The products will be tested one by one below.
     // If any single one of them requires delivery, this
     // flag will be set to true.
     // This is used to determine the order status at the
     // end of the shopping process.
     $_SESSION['shop']['isDelivery'] = false;
     // Try to redeem the Coupon, if any
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:67,代码来源:Shop.class.php

示例5: getById

 /**
  * Returns the Order for the ID given
  *
  * If the ID is invalid or no record is found for it, returns null.
  * @param   integer   $id       The Order ID
  * @return  Order               The object on success, null otherwise
  */
 static function getById($id)
 {
     global $objDatabase;
     //DBG::activate(DBG_PHP|DBG_ADODB|DBG_LOG_FIREPHP);
     $query = "\n            SELECT `id`, `customer_id`, `lang_id`, `currency_id`,\n                   `shipment_id`, `payment_id`,\n                   `status`,\n                   `sum`,\n                   `vat_amount`, `shipment_amount`, `payment_amount`," . "\n                   `billing_gender`, `billing_company`,\n                   `billing_firstname`, `billing_lastname`,\n                   `billing_address`, `billing_city`, `billing_zip`,\n                   `billing_country_id`,\n                   `billing_phone`, `billing_fax`,\n                   `billing_email`,\n                   `gender`, `company`, `firstname`, `lastname`,\n                   `address`, `city`, `zip`, `country_id`, `phone`,\n                   `ip`, `host`, `browser`,\n                   `note`,\n                   `date_time`, `modified_on`, `modified_by`\n              FROM `" . DBPREFIX . "module_shop" . MODULE_INDEX . "_orders`\n             WHERE `id`=" . intval($id);
     //DBG::activate(DBG_ADODB);
     $objResult = $objDatabase->Execute($query);
     //DBG::deactivate(DBG_ADODB);
     if (!$objResult) {
         return self::errorHandler();
     }
     if ($objResult->EOF) {
         //DBG::log("Order::getById(): Failed to get Order ID $id");
         return null;
     }
     $objOrder = new Order();
     $objOrder->id = $objResult->fields['id'];
     $objOrder->customer_id($objResult->fields['customer_id']);
     $objOrder->currency_id($objResult->fields['currency_id']);
     $objOrder->shipment_id($objResult->fields['shipment_id']);
     $objOrder->payment_id($objResult->fields['payment_id']);
     $objOrder->lang_id($objResult->fields['lang_id']);
     $objOrder->status($objResult->fields['status']);
     $objOrder->sum($objResult->fields['sum']);
     $objOrder->vat_amount($objResult->fields['vat_amount']);
     $objOrder->shipment_amount($objResult->fields['shipment_amount']);
     $objOrder->payment_amount($objResult->fields['payment_amount']);
     $objOrder->gender($objResult->fields['gender']);
     $objOrder->company($objResult->fields['company']);
     $objOrder->firstname($objResult->fields['firstname']);
     $objOrder->lastname($objResult->fields['lastname']);
     $objOrder->address($objResult->fields['address']);
     $objOrder->city($objResult->fields['city']);
     $objOrder->zip($objResult->fields['zip']);
     $objOrder->country_id($objResult->fields['country_id']);
     $objOrder->phone($objResult->fields['phone']);
     // 20111017 Added billing address
     $objOrder->billing_gender($objResult->fields['billing_gender']);
     $objOrder->billing_company($objResult->fields['billing_company']);
     $objOrder->billing_firstname($objResult->fields['billing_firstname']);
     $objOrder->billing_lastname($objResult->fields['billing_lastname']);
     $objOrder->billing_address($objResult->fields['billing_address']);
     $objOrder->billing_city($objResult->fields['billing_city']);
     $objOrder->billing_zip($objResult->fields['billing_zip']);
     $objOrder->billing_country_id($objResult->fields['billing_country_id']);
     $objOrder->billing_phone($objResult->fields['billing_phone']);
     $objOrder->billing_fax($objResult->fields['billing_fax']);
     $objOrder->billing_email($objResult->fields['billing_email']);
     $objOrder->ip($objResult->fields['ip']);
     $objOrder->host($objResult->fields['host']);
     $objOrder->browser($objResult->fields['browser']);
     $objOrder->note($objResult->fields['note']);
     $objOrder->date_time($objResult->fields['date_time']);
     $objOrder->modified_on($objResult->fields['modified_on']);
     $objOrder->modified_by($objResult->fields['modified_by']);
     return $objOrder;
 }
开发者ID:Niggu,项目名称:cloudrexx,代码行数:64,代码来源:Order.class.php


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