• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP orders类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getInstance

 public static function getInstance() {
     if (!self::$me) {
         $class=new orders();
         self::$me=$class;
     }
     return self::$me;
 }
开发者ID:jiangsuei8,项目名称:public_php_shl,代码行数:7,代码来源:orders.php


示例2: actionStop

 public function actionStop()
 {
     $orderNow = orders::find()->where(['active' => 1])->one();
     $timeOld = $orderNow->time_total;
     $timeBegin = new DateTime($orderNow->time_begin);
     $timeEnd = new DateTime(date("Y-m-d H:i:s"));
     $orderNow->active = 0;
     $timeWork = $timeBegin->diff($timeEnd);
     $MinutesWork = $timeWork->i + $timeWork->h * 60 + $timeWork->d * 60 * 24 + $timeOld;
     $orderNow->time_total = $MinutesWork;
     $orderNow->save();
     Yii::$app->response->redirect(array('site/index'));
 }
开发者ID:nikit-ac,项目名称:gitwork,代码行数:13,代码来源:SiteController.php


示例3: respond

    function respond() {
        require_once ("tenpay/PayResponseHandler.class.php");
        $resHandler = new PayResponseHandler();
        $sp_billno = $resHandler->getParameter("sp_billno");
        if(preg_match('/(select|union|and|\'|"|\))/i',$sp_billno)){
        	exit('非法参数');
        }
        preg_match_all("/-(.*)-(.*)-(.*)/isu",$sp_billno,$oidout);
        $paytype = $where['pay_code'] = $oidout[3][0];
        include_once ROOT.'/lib/plugins/pay/'.$paytype.'.php';
        $pay = pay::getInstance()->getrows($where);
        $payconfig = unserialize($pay[0]['pay_config']);
        $resHandler->setKey($payconfig[1]['value']);
        
        $where = array();
        $where['oid']=$sp_billno;
        $orders=orders::getInstance()->getrow($where);

        if($resHandler->isTenpaySign()) {
            $transaction_id = $resHandler->getParameter("transaction_id");
            $total_fee = $resHandler->getParameter("total_fee");
            $pay_result = $resHandler->getParameter("pay_result");
            if("0" == $pay_result) {
                if (!pay::check_money($orders['id'],$total_fee/100)) {
                    echo "<br/>" . "金额不符" . "<br/>";
                    return false;
                }
                pay::changeorders($orders['id'],$_GET);
                $show = config::get('site_url');
                $resHandler->doShow($show);
            } else {
                echo "<br/>" . "支付失败" . "<br/>";
                 return false;
            }
        } else {
            echo "<br/>" . "认证签名失败" . "<br/>";
             return false;
        }
    }
开发者ID:jiangsuei8,项目名称:public_php_shl,代码行数:39,代码来源:tenpay.php


示例4: send_custom

 /**
  * Send a custom e-mail to the user
  * @developer Brandon Hansen
  * @date Oct 23, 2010
  */
 public function send_custom(Order_Model $order)
 {
     orders::history_entry($order, 'Sent Email to Customer');
 }
开发者ID:ready4god2513,项目名称:scs,代码行数:9,代码来源:order_email.php


示例5: checkCustomerIsVIP

/**
 * Get vip status of customer from an order
 * @param String $type
 * @param Int $orders_id
 * @return Boolean
 */
function checkCustomerIsVIP($type, $orders_id)
{
    $type = strtoupper($type);
    $is_vip = false;
    if ($type == 'SP') {
        use_class('jng_sp_orders');
        use_class('jng_sp_customers');
        use_class('jng_sp_customers_special');
        $class_jo = new jng_sp_orders();
        $class_jc = new jng_sp_customers();
        $class_jcs = new jng_sp_customers_special();
        $o = $class_jo->retrieveDetail($orders_id);
        //GET CUSTOMER DETAIL VIP OR NOT
        $cust_data = $class_jc->retrieveDetail(null, $o['jng_sp_id'], $o['customer_billing_id']);
        if (is_array($cust_data) && $cust_data['jng_sp_customers_id'] > 0) {
            $cust_detail = $class_jcs->getCustomerDetail($cust_data['jng_sp_customers_id']);
        }
        $is_vip = $cust_detail['list_type'] == 'V';
    } elseif ($type == 'JG') {
        use_class('orders');
        use_class('customers_special_list');
        $class_o = new orders();
        $class_csl = new customers_special_list();
        $o = $class_o->retrieveDetail($orders_id);
        //GET CUSTOMER DETAIL VIP OR NOT
        $cust_detail = $class_csl->getCustomerDetail($o['customers_id']);
        $is_vip = $cust_detail['list_type'] == 'V';
    } elseif ($type == 'DP') {
        use_class('depot_orders');
        $class_do = new depot_orders();
        $do = $class_do->retrieveDetail($orders_id);
        if ($do['trans_type'] == 'SP' || $do['trans_type'] == 'JG') {
            if ($do['trans_type'] == 'SP') {
                use_class('jng_sp_orders');
                $class_jo = new jng_sp_orders();
                $it = $class_jo->retrieveItemDetail($do['trans_id']);
                $orders_id = $it['jng_sp_orders_id'];
            } elseif ($do['trans_type'] == 'JG') {
                use_class('orders');
                $class_o = new orders();
                $it = $class_o->retrieveProductDetail($do['trans_id']);
                $orders_id = $it['orders_id'];
            }
            $is_vip = checkCustomerIsVIP($do['trans_type'], $orders_id);
        }
    }
    return $is_vip;
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:54,代码来源:functions-2.php


示例6: replaceEmoticons

    }
}
$item['description'] = replaceEmoticons($item['description']);
$item["theme_preview"] = DATA_SERVER . "/uploads/items/" . $item["id"] . "/" . $item["theme_preview"];
abr('item', $item);
#BUY ITEM
//购买作品
if (isset($_SESSION['tmp']['order_id']) && $_SESSION['tmp']['order_id']) {
    $_SESSION['tmp']['order_id'] = 0;
}
if (isset($_POST['licence'])) {
    if (!check_login_bool()) {
        $_SESSION['temp']['golink'] = '/' . $languageURL . 'items/' . $itemID;
        refresh('/' . $languageURL . 'sign_in/');
    }
    $ordersClass = new orders();
    if ($_POST['licence'] == 'regular') {
        //余额购买作品
        if (isset($_POST['pay_method']) && $_POST['pay_method'] == 'paymethod') {
            $orderID = $ordersClass->add($item['price']);
            if (isset($_SESSION['tmp']['deposit_id'])) {
                unset($_SESSION['tmp']['deposit_id']);
            }
            $_SESSION['tmp']['order_id'] = $orderID;
            refresh('/' . $languageURL . 'items/payment/');
        } else {
            //判断余额
            if ($_SESSION['user']['total'] < $item['prepaid_price']) {
                addErrorMessage($langArray['error_not_enought_money'], '', 'error');
            } else {
                $total_money = floatval($item['prepaid_price']) + floatval($item['your_profit']);
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:index.php


示例7: users

    $anketa = new users();
    $anketa->get_user_info($_SESSION['user_uniq']);
    //echo $anketa->name."<br>";
    //echo $anketa->famil."<br>";
    //echo $anketa->otch."<br>";
    //echo $anketa->email."<br>";
    $recent_order = $_GET['recent_order'];
    if ($recent_order == '1') {
        echo '<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Уважаемая(ый) ' . $anketa->name . '!</strong><br> Ваш заказ принят и в самом скором времени будет обработан. Вы можете следить за исполнением заказа из своего личного кабинета.
</div>
';
    }
    //Проверка на наличие наобработанных заказов
    $unprocessed_orders = new orders();
    $unprocessed_orders->get_unprocessed_orders();
    if ($unprocessed_orders->num_rows > 0) {
        echo "<p>Кажется у нас есть необработанные заказы! И их целых<span class=\"badge badge-important\">{$unprocessed_orders->num_rows}</span>шт.! <a href='unprocessed_orders.php'>Просмотреть</a></p>";
    } else {
        echo "<p><a href='unprocessed_orders.php'>Лист заказов </a></p>";
    }
    ?>
 
    
    
    
<br>
<?php 
    //   $tyty = new orders();
    //   $tyty->get_order($_SESSION['user_uniq']);
开发者ID:beholder17,项目名称:ls.files,代码行数:31,代码来源:ankets_mngr.php


示例8: session_start

<?php

session_start();
$page_title = "Tambah Order";
include_once $_SERVER['DOCUMENT_ROOT'] . '/pages/header.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/config/database.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/orders.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/orderdetail.php';
echo "\t\t\t\t<div class='col-md-3'>";
include_once $_SERVER['DOCUMENT_ROOT'] . '/pages/sidebarmenu.php';
echo "\t\t\t\t</div>";
$database = new database();
$db = $database->getConnection();
$orders = new orders($db);
$orderdetail = new orderdetail($db);
$orders->order_id = $orders->AutoNumber();
include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/customer.php';
$custoer = new customer($db);
$customer = new customer($db);
$orders->cust_kode = "";
$statement = $orderdetail->ShowTemp($orders->order_id);
$bayar = isset($bayar) ? $bayar : 0;
$kembali = isset($kembali) ? $kembali : 0;
echo "\t\t\t\t<div class='col-md-9'>";
//echo "<div class='container'>";
echo "<div class='panel panel-default'>";
echo "<div class='panel-body'>";
echo "\t\t\t<div class='row' style='border-bottom: none;'>";
echo "\t\t\t\t<div class='col-md-2'>";
echo "\t\t\t\t\t<label>Order No</label>";
echo "\t\t\t\t</div>";
开发者ID:ilhamdoanggg,项目名称:penjualan_salon,代码行数:31,代码来源:insert.php


示例9: use_class

        $sp_prefix[$sp['jng_sp_id']] = $sp['package_prefix'];
    }
    use_class("jng_sp_packages");
    $class_jp = new jng_sp_packages();
    use_class("jng_sp_orders");
    $class_jo = new jng_sp_orders();
    $package_id = tep_db_prepare_input($_GET['id']);
    $orders_array = $class_jp->getOrders($package_id);
    $items_array = $class_jp->getItems($package_id);
} elseif (isset($_GET['pid']) && $_GET['pid'] != '') {
    $type = 'jng';
    //JNG PACKAGES
    use_class("minierp_packages");
    $class_mp = new minierp_packages();
    use_class("orders");
    $class_o = new orders();
    $package_id = tep_db_prepare_input($_GET['pid']);
    $orders_array = $class_mp->getOrders($package_id);
    $items_array = $class_mp->getProducts($package_id);
} else {
    exit;
}
class PDF extends FPDF
{
    var $left_margin;
    var $page_width;
    var $label_width;
    var $label_height;
    var $label_per_width;
    var $label_per_height;
    //Page header
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:package-labels.php


示例10: ob_start

<?php

ob_start();
session_start();
function __autoload($name)
{
    include_once "files/" . $name . ".php";
}
$orders = new orders();
$rooms = new rooms();
$products = new products();
$validate = new validation();
if (isset($_SESSION['cafeteriaSystem'])) {
    ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Cafeteria System | Home Page</title>
	<link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/css.css" rel="stylesheet">
    
    
	
    <style>
		body{
			margin-top:10px ;	
		}
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:index.php


示例11: session_start

<?php 
session_start();
ini_set('max_execution_time', 0);
require_once "../files/dbConnect.php";
require_once "../files/orders.php";
$orders = new orders();
$db = dbConnect::getInstance();
$mysqli = $db->getConnection();
$query = " select * from check_tb  where  u_id = '" . $_SESSION['cafeteriaSystem'] . "' ";
$res = $mysqli->query($query) or die(mysqli_error($mysqli));
$row = mysqli_num_rows($res);
//$file_name = 'document.txt';
$client_amount = isset($_GET['lastModified']) ? $_GET['lastModified'] : 0;
//$client_deliver = isset($_GET['LastModifiedDelivered'])?$_GET['LastModifiedDelivered']:0;
//$client_process = isset($_GET['LastModifiedProcessing'])?$_GET['LastModifiedProcessing']:0;
/* Get Deliver number 
$queryDeliver = " select * from check_tb  where  u_id = '".$_SESSION['cafeteriaSystem']."' and status='2' ";  
$resDeliver = $mysqli->query($queryDeliver) or die (mysqli_error($mysqli));

$serverDeliver=mysqli_num_rows($resDeliver);


/* Get Process number 
$queryProcess = " select * from check_tb  where  u_id = '".$_SESSION['cafeteriaSystem']."' and status='3' ";  
$resProcess = $mysqli->query($queryProcess) or die (mysqli_error($mysqli));

$serverProcess=mysqli_num_rows($resProcess);


$client_process = $serverProcess;
开发者ID:Mayyad,项目名称:Tigers,代码行数:30,代码来源:myOrdersRedirectPage.php


示例12: _setView

// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email [email protected]
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['downloads_setTitle']);
if (!check_login_bool()) {
    $_SESSION['temp']['golink'] = '/' . $languageURL . 'download/';
    refresh('/' . $languageURL . 'sign_in/');
}
require_once ROOT_PATH . '/apps/items/models/orders.class.php';
$ordersClass = new orders();
#下载作品
$itemID = get_id(2);
if (is_numeric($itemID)) {
    require_once ROOT_PATH . '/apps/items/models/items.class.php';
    $itemsClass = new items();
    $item = $itemsClass->get($itemID);
    if (!is_array($item) || check_login_bool() && $item['status'] == 'unapproved' && $item['user_id'] != $_SESSION['user']['user_id'] || $item['status'] == 'queue') {
        header("HTTP/1.0 404 Not Found");
        header("Location: http://" . DOMAIN . "/" . $languageURL . "error");
    }
    if (isset($_POST['rating'])) {
        $_GET['rating'] = $_POST['rating'];
    }
    if (isset($_GET['rating'])) {
        if (!isset($_GET['rating']) || !is_numeric($_GET['rating']) || $_GET['rating'] > 5) {
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:downloads.php


示例13: tep_db_connect

#  Author  : D3W4 & SAHAT                                       #
#  Created : Jul 2, 2010 5:34:28 PM                             #
#  Purpose : send email reminder to customer to pay the order   #
#################################################################
global $db;
require_once '../confy.php';
require_once '../functions.php';
require_once '../functions-2.php';
tep_db_connect();
use_class('logger');
$logger = new logger('cron', 'email-vorkasse-reminder');
use_class('Order');
use_class('orders');
use_class('jng_sp_orders');
use_class('payone_invoice');
$class_o = new orders();
$class_jo = new jng_sp_orders();
$sp_need_reminder = array('2');
$tolerance_before_really_cancelling_orders = '7 days';
$languages[2]['path'] = 'german';
function sendUnderpaidReminder($order, $open_amount, $language)
{
    global $class_o, $class_jo;
    $status = '1';
    $order_id = $order['orders_id'];
    $order_no = $order['orders_no'];
    $to_name = $order['customers_name'];
    $to_email_address = $order['customers_email_address'];
    $order_currency = $order['currency'];
    $from_email_name = FROM_EMAIL_NAME;
    $from_email_address = FROM_EMAIL_ADDRESS;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:email-vorkasse-reminder.php


示例14: changeorders

 public static function changeorders($id,$orderlog) {
     $where=array();
     $where['id']=$id;
     $where['status']=4;
     $where['orderlog']=serialize($orderlog);
     $update=orders::getInstance()->rec_update($where,$id);
     if($update<1) {
         exit('改变订单状态出错,请联系管理员');
     }
 }
开发者ID:jiangsuei8,项目名称:public_php_shl,代码行数:10,代码来源:ologin.php


示例15: _setView

// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email [email protected]
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['earnings_setTitle']);
if (!check_login_bool()) {
    $_SESSION['temp']['golink'] = '/' . $languageURL . 'earnings/';
    refresh('/' . $languageURL . 'sign_in/');
}
require_once ROOT_PATH . '/apps/items/models/orders.class.php';
$ordersClass = new orders();
if (isset($_POST['ajax'])) {
    $month = get_id(2);
    $year = get_id(3);
    $text = '';
    $sales = $ordersClass->getAll(" `paid_datetime` > '" . date('Y-m-d 23:59:59', mktime(0, 0, 0, $month - 1, date('t', mktime(0, 0, 0, $month - 1, 1, $year)), $year)) . "' AND `paid_datetime` < '" . date('Y-m-d 00:00:00', mktime(0, 0, 0, $month + 1, 1, $year)) . "' AND `paid` = 'true' AND `type` = 'buy' AND `owner_id` = '" . intval($_SESSION['user']['user_id']) . "' ", "`paid_datetime` ASC");
    if (is_array($sales)) {
        $buff = array();
        foreach ($sales as $s) {
            $day = explode(' ', $s['paid_datetime']);
            $day = explode('-', $day[0]);
            if (!isset($buff[$day[2]])) {
                $buff[$day[2]]['sale'] = 1;
                $buff[$day[2]]['earning'] = $s['receive'];
            } else {
                $buff[$day[2]]['sale']++;
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:earnings.php


示例16: gen_redirect

         }
     }
     if (DEBUG) {
         $messageStack->write_debug();
     }
     break;
 case 'delete':
     if ($security_level < 4) {
         $messageStack->add_session(ERROR_NO_PERMISSION, 'error');
         gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL'));
         break;
     }
     $id = $_POST['id'] != '' ? $_POST['id'] : '';
     // will be null unless opening an existing purchase/receive
     if ($id) {
         $delOrd = new orders();
         $delOrd->journal($id);
         // load the posted record based on the id submitted
         if ($_SESSION['admin_prefs']['restrict_period'] && $delOrd->period != CURRENT_ACCOUNTING_PERIOD) {
             $error = $messageStack->add(ORD_ERROR_DEL_NOT_CUR_PERIOD, 'error');
             break;
         }
         $delOrd->recur_frequency = db_prepare_input($_POST['recur_frequency']);
         if ($delOrd->delete_ordr()) {
             if (DEBUG) {
                 $messageStack->write_debug();
             }
             gen_add_audit_log(constant('ORD_TEXT_' . JOURNAL_ID . '_WINDOW_TITLE') . ' - Delete', $delOrd->purchase_invoice_id, $delOrd->total_amount);
             gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL'));
             break;
         }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:pre_process.php


示例17: tep_db_connect

global $db;
require_once '../confy.php';
require_once '../functions.php';
require_once '../functions-2.php';
tep_db_connect();
define('FPDF_IMGPATH', DIR_WS_IMAGES . 'pdf/');
define('FPDF_FONTPATH', FPDF_IMGPATH . 'fonts/');
require_once DIR_WS_CLASSES . 'fpdf.php';
use_class('jng_sp');
use_class('jng_sp_orders');
use_class('orders');
use_class('products_ean');
use_class('bins');
$class_sp = new jng_sp();
$class_jo = new jng_sp_orders();
$class_o = new orders();
$class_ean = new products_ean();
$class_bin = new bins();
$PRINT_RETAILS = isset($_GET['type']) && $_GET['type'] == 'retails';
$ean_collection = array();
$orders = array();
$orders_barcode = array();
$inhh_status = '8';
$oi_printed_sp = array();
$oi_printed_jg = array();
$total_products_picked = 0;
$bin_location_qty_collection = array();
//GET FLAG INCLUDE REPACKAGE
$ir = tep_db_prepare_input($_GET['ir']);
$need_repackage = $ir == 1 ? true : false;
$filter_ir_sp = " AND " . ($need_repackage ? 'jo.need_repackaging=1' : 'jo.need_repackaging!=1');
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:HH-picklist.php


示例18: use_class

<?php

use_class('orders');
$class_o = new orders();
use_class('customers_special_list');
$class_csl = new customers_special_list();
$search_days = 60;
//AJAX ACTION
if (isset($_POST['me_action']) && $_POST['me_action'] != '') {
    if ($_POST['me_action'] == 'SEARCHORDERS') {
        $search_field = tep_db_prepare_input($_POST['search_field']);
        $search_keywords = tep_db_prepare_input(utf8_decode($_POST['search_keywords']));
        $date_filter = date('Y-m-d', strtotime("-{$search_days} day"));
        $orders = $class_o->searchBanktransferOrders($search_field, $search_keywords, "o.date_purchased>DATE('{$date_filter}')");
        $result = '';
        $table = array();
        if (count($orders) > 0) {
            $t = array();
            $t['d'] = 'Date';
            $t['c'] = 'Customer';
            $t['o'] = 'Order No';
            $t['i'] = 'Bank Info';
            $t['p'] = 'Order Value';
            $t['t'] = 'Withdrawal Date';
            $table[] = $t;
            foreach ($orders as $row) {
                $order_date = strtotime($row['date_purchased']);
                $customer_special = $class_csl->getCustomerDetail($row['customers_id']);
                $crown_img = is_null($customer_special) ? '' : $class_csl->getTypeSymbol($customer_special['list_type'], $row['customers_id']);
                $t = array();
                $t['d'] = date('d-M-y', $order_date);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:orders-bankeinzug-withdrawal.php


示例19: tep_db_connect

<?php

global $db;
require_once '../confy.php';
require_once '../functions.php';
require_once '../functions-2.php';
tep_db_connect();
//JNG PACKAGES
use_class("minierp_packages");
$class_mp = new minierp_packages();
use_class("orders");
$class_o = new orders();
$package_id = tep_db_prepare_input($_GET['pid']);
$order_data_array = $class_mp->getOrders($package_id);
$items_array = $class_mp->getProducts($package_id);
$csvdata = array();
$c = array();
$c['order_id'] = 'order_id';
$c['delivery_company'] = 'delivery_company';
$c['delivery_name'] = 'delivery_name';
$c['delivery_address'] = 'delivery_address';
$c['delivery_city'] = 'delivery_city';
$c['delivery_postcode'] = 'delivery_postcode';
$c['delivery_country'] = 'delivery_country';
$csvdata[] = $c;
foreach ($order_data_array as $order_id) {
    $order = array();
    //RETRIEVED DATA
    $order_data = $class_o->retrieveDetail($order_id);
    $c = array();
    $c['order_id'] = $order_data['orders_no'];
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:package-labels-csv.php


示例20: mysqli_connect

<?php

$connection = mysqli_connect('localhost', 'adminJy48FWL', 'wUP-8TVubuIq', 'ititigers') or die("Error in Connection to server ") . mysqli_error();
if (mysqli_connect_errno($connection)) {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($connection, "SET charset UTF8");
if (isset($_POST['secondryPage'])) {
    require_once "../files/orders.php";
    $orders = new orders();
}
/* **********************/
if (isset($_GET['p_id'])) {
    if (is_numeric($_GET['p_id'])) {
        $strPage = $_GET['p_id'];
    } else {
        $strPage = '';
    }
} else {
    $strPage = '';
}
$query = "select * from users_tb  ";
$result = mysqli_query($connection, $query) or die(mysqli_error($connection));
$Num_Rows = mysqli_num_rows($result);
########### pagins
$Per_Page = 1;
// Records Per Page
$Page = $strPage;
if (!$strPage) {
    $Page = 1;
}
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:paginationChecks.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP org类代码示例发布时间:2022-05-23
下一篇:
PHP order_total类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap