コード例 #1
0
ファイル: order.view.php プロジェクト: wangjiang988/ukshop
?>
</li>
            <li><strong><?php 
echo $lang['store_name'];
echo $lang['nc_colon'];
?>
</strong><?php 
echo $output['order_info']['store_name'];
?>
</li>
            <li><strong><?php 
echo $lang['payment'];
echo $lang['nc_colon'];
?>
</strong><?php 
echo uk86_orderPaymentName($output['order_info']['payment_code']);
?>
</li>
            <li><strong><?php 
echo $lang['order_time'];
echo $lang['nc_colon'];
?>
</strong><?php 
echo date('Y-m-d H:i:s', $output['order_info']['add_time']);
?>
</li>
            <?php 
if (intval($output['order_info']['payment_time'])) {
    ?>
            <li><strong><?php 
    echo $lang['payment_time'];
コード例 #2
0
        ?>
</td>
        <td><?php 
        echo $order['buyer_name'];
        ?>
</td>
        <td class="nowrap align-center"><?php 
        echo date('Y-m-d H:i:s', $order['add_time']);
        ?>
</td>
        <td class="align-center"><?php 
        echo $order['order_amount'];
        ?>
</td>
        <td class="align-center"><?php 
        echo uk86_orderPaymentName($order['payment_code']);
        ?>
</td>
        <td class="align-center"><?php 
        echo $order['state_desc'];
        ?>
</td>
        <td class="w144 align-center"><a href="index.php?act=vr_order&op=show_order&order_id=<?php 
        echo $order['order_id'];
        ?>
"><?php 
        echo $lang['nc_view'];
        ?>
</a>

            <!-- 取消订单 -->
コード例 #3
0
ファイル: order.php プロジェクト: wangjiang988/ukshop
 /**
  * 生成excel
  *
  * @param array $data
  */
 private function createExcel($data = array())
 {
     Uk86Language::uk86_read('export');
     uk86_import('libraries.uk86excel');
     $excel_obj = new Uk86Excel();
     $excel_data = array();
     //设置样式
     $excel_obj->uk86_setStyle(array('id' => 's_title', 'Font' => array('FontName' => '宋体', 'Size' => '12', 'Bold' => '1')));
     //header
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_no'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_store'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_buyer'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_xtimd'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_count'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_yfei'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_paytype'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_state'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_storeid'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_buyerid'));
     $excel_data[0][] = array('styleid' => 's_title', 'data' => L('exp_od_bemail'));
     //data
     foreach ((array) $data as $k => $v) {
         $tmp = array();
         $tmp[] = array('data' => 'NC' . $v['order_sn']);
         $tmp[] = array('data' => $v['store_name']);
         $tmp[] = array('data' => $v['buyer_name']);
         $tmp[] = array('data' => date('Y-m-d H:i:s', $v['add_time']));
         $tmp[] = array('format' => 'Number', 'data' => uk86_ncPriceFormat($v['order_amount']));
         $tmp[] = array('format' => 'Number', 'data' => uk86_ncPriceFormat($v['shipping_fee']));
         $tmp[] = array('data' => uk86_orderPaymentName($v['payment_code']));
         $tmp[] = array('data' => uk86_orderState($v));
         $tmp[] = array('data' => $v['store_id']);
         $tmp[] = array('data' => $v['buyer_id']);
         $tmp[] = array('data' => $v['buyer_email']);
         $excel_data[] = $tmp;
     }
     $excel_data = $excel_obj->uk86_charset($excel_data, CHARSET);
     $excel_obj->uk86_addArray($excel_data);
     $excel_obj->uk86_addWorksheet($excel_obj->uk86_charset(L('exp_od_order'), CHARSET));
     $excel_obj->uk86_generateXML($excel_obj->uk86_charset(L('exp_od_order'), CHARSET) . $_GET['curpage'] . '-' . date('Y-m-d-H', time()));
 }
コード例 #4
0
				<li>
					<strong>店铺<?php 
echo $lang['nc_colon'];
?>
</strong>
					<?php 
echo $output['live_order']['store_name'];
?>
				</li>
				<li>
					<strong>支付方式<?php 
echo $lang['nc_colon'];
?>
</strong>
					<?php 
echo uk86_orderPaymentName($output['live_order']['payment_code']);
?>
				</li>
				<li>
					<strong>下单时间<?php 
echo $lang['nc_colon'];
?>
</strong>
					<?php 
echo date('Y-m-d H:i:s', $output['live_order']['add_time']);
?>
				</li>
				<?php 
if (intval($output['live_order']['payment_time'])) {
    ?>
				<li>
コード例 #5
0
 /**
  * 取得订单列表(所有)
  * @param unknown $condition
  * @param string $pagesize
  * @param string $field
  * @param string $order
  * @return array
  */
 public function getOrderList($condition, $pagesize = '', $field = '*', $order = 'order_id desc', $limit = '')
 {
     $list = $this->table('pm_order')->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->select();
     if (empty($list)) {
         return array();
     }
     foreach ($list as $key => $order) {
         if (isset($order['order_state'])) {
             list($list[$key]['state_desc'], $list[$key]['order_state_text']) = $this->_orderState($order['order_state']);
         }
         if (isset($order['payment_code'])) {
             $list[$key]['payment_name'] = uk86_orderPaymentName($order['payment_code']);
         }
     }
     return $list;
 }
コード例 #6
0
ファイル: order.model.php プロジェクト: wangjiang988/ukshop
 /**
  * 取得订单列表(所有)
  * @param unknown $condition
  * @param string $pagesize
  * @param string $field
  * @param string $order
  * @param string $limit
  * @param unknown $extend 追加返回那些表的信息,如array('order_common','order_goods','store')
  * @return Ambigous <multitype:boolean Ambigous <string, mixed> , unknown>
  */
 public function getOrderList($condition, $pagesize = '', $field = '*', $order = 'order_id desc', $limit = '', $extend = array(), $master = false)
 {
     $list = $this->table('order')->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->master($master)->select();
     if (empty($list)) {
         return array();
     }
     $order_list = array();
     foreach ($list as $order) {
         if (isset($order['order_state'])) {
             $order['state_desc'] = uk86_orderState($order);
         }
         if (isset($order['payment_code'])) {
             $order['payment_name'] = uk86_orderPaymentName($order['payment_code']);
         }
         if (!empty($extend)) {
             $order_list[$order['order_id']] = $order;
         }
     }
     if (empty($order_list)) {
         $order_list = $list;
     }
     //追加返回订单扩展表信息
     if (in_array('order_common', $extend)) {
         $order_common_list = $this->getOrderCommonList(array('order_id' => array('in', array_keys($order_list))));
         foreach ($order_common_list as $value) {
             $order_list[$value['order_id']]['extend_order_common'] = $value;
             $order_list[$value['order_id']]['extend_order_common']['reciver_info'] = @unserialize($value['reciver_info']);
             $order_list[$value['order_id']]['extend_order_common']['invoice_info'] = @unserialize($value['invoice_info']);
         }
     }
     //追加返回店铺信息
     if (in_array('store', $extend)) {
         $store_id_array = array();
         foreach ($order_list as $value) {
             if (!in_array($value['store_id'], $store_id_array)) {
                 $store_id_array[] = $value['store_id'];
             }
         }
         $store_list = Model('store')->getStoreList(array('store_id' => array('in', $store_id_array)));
         $store_new_list = array();
         foreach ($store_list as $store) {
             $store_new_list[$store['store_id']] = $store;
         }
         foreach ($order_list as $order_id => $order) {
             $order_list[$order_id]['extend_store'] = $store_new_list[$order['store_id']];
         }
     }
     //追加返回买家信息
     if (in_array('member', $extend)) {
         foreach ($order_list as $order_id => $order) {
             $order_list[$order_id]['extend_member'] = Model('member')->getMemberInfoByID($order['buyer_id']);
         }
     }
     //追加返回商品信息
     if (in_array('order_goods', $extend)) {
         //取商品列表
         $order_goods_list = $this->getOrderGoodsList(array('order_id' => array('in', array_keys($order_list))));
         if (!empty($order_goods_list)) {
             foreach ($order_goods_list as $value) {
                 $order_list[$value['order_id']]['extend_order_goods'][] = $value;
             }
         } else {
             $order_list[$value['order_id']]['extend_order_goods'] = array();
         }
     }
     return $order_list;
 }