本文整理汇总了PHP中orderGoodsType函数的典型用法代码示例。如果您正苦于以下问题:PHP orderGoodsType函数的具体用法?PHP orderGoodsType怎么用?PHP orderGoodsType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了orderGoodsType函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexOp
/**
* 发货列表
*
*/
public function indexOp()
{
$model_order = Model('order');
if (!in_array($_GET['state'], array('deliverno', 'delivering', 'delivered'))) {
$_GET['state'] = 'deliverno';
}
$order_state = str_replace(array('deliverno', 'delivering', 'delivered'), array(ORDER_STATE_PAY, ORDER_STATE_SEND, ORDER_STATE_SUCCESS), $_GET['state']);
$condition = array();
$condition['store_id'] = $_SESSION['store_id'];
$condition['order_state'] = $order_state;
if ($_GET['buyer_name'] != '') {
$condition['buyer_name'] = $_GET['buyer_name'];
}
if ($_GET['order_sn'] != '') {
$condition['order_sn'] = $_GET['order_sn'];
}
$if_start_date = preg_match('/^20\\d{2}-\\d{2}-\\d{2}$/', $_GET['query_start_date']);
$if_end_date = preg_match('/^20\\d{2}-\\d{2}-\\d{2}$/', $_GET['query_end_date']);
$start_unixtime = $if_start_date ? strtotime($_GET['query_start_date']) : null;
$end_unixtime = $if_end_date ? strtotime($_GET['query_end_date']) : null;
if ($start_unixtime || $end_unixtime) {
$condition['add_time'] = array('time', array($start_unixtime, $end_unixtime));
}
$order_list = $model_order->getOrderList($condition, 5, '*', 'order_id desc', '', array('order_goods', 'order_common', 'member'));
foreach ($order_list as $key => $order_info) {
foreach ($order_info['extend_order_goods'] as $value) {
$value['image_60_url'] = cthumb($value['goods_image'], 60, $value['store_id']);
$value['image_240_url'] = cthumb($value['goods_image'], 240, $value['store_id']);
$value['goods_type_cn'] = orderGoodsType($value['goods_type']);
$value['goods_url'] = urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
if ($value['goods_type'] == 5) {
$order_info['zengpin_list'][] = $value;
} else {
$order_info['goods_list'][] = $value;
}
}
if (empty($order_info['zengpin_list'])) {
$order_info['goods_count'] = count($order_info['goods_list']);
} else {
$order_info['goods_count'] = count($order_info['goods_list']) + 1;
}
$order_list[$key] = $order_info;
}
Tpl::output('order_list', $order_list);
Tpl::output('show_page', $model_order->showpage());
self::profile_menu('deliver', $_GET['state']);
Tpl::showpage('store_order.deliver');
}
示例2: urlShop
?>
</td>
<td><i></i><a target="_blank" href="<?php
echo urlShop('goods', 'index', array('goods_id' => $goods['goods_id']));
?>
"></a></td>
<td><dl class="goods-name">
<dt><a target="_blank" href="<?php
echo urlShop('goods', 'index', array('goods_id' => $goods['goods_id']));
?>
"><?php
echo $goods['goods_name'];
?>
</a></dt>
<dd><?php
echo orderGoodsType($goods['goods_type']);
?>
</dd>
</dl></td>
<td><?php
echo $goods['goods_price'];
?>
</td>
<td><?php
echo $output['order_info']['sell_goods_qty'];
?>
</td>
<td><?php
//echo sprintf('%.2f',$goods['goods_num']*$goods['goods_price']);
echo sprintf('%.2f', $output['order_info']['buyer_pd_amount']);
?>
示例3: thumb
" target="_blank">
<img width="50" src="<?php
echo thumb($val, 60);
?>
" />
</a></td>
<td class="intro">
<p><a href="<?php
echo urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
?>
" target="_blank"><?php
echo $val['goods_name'];
?>
</a></p>
<p><?php
echo orderGoodsType($val['goods_type']);
?>
</p>
</td>
<td width="10%"><?php
echo $lang['currency'] . $val['goods_refund'];
?>
</td>
<td width="10%"><?php
echo $lang['currency'] . $val['goods_pay_price'];
?>
</td>
<td width="10%"><?php
echo $val['goods_num'];
?>
</td>
示例4: show_orderOp
/**
* 订单详细
*
*/
public function show_orderOp()
{
$order_id = intval($_GET['order_id']);
if ($order_id <= 0) {
showMessage(Language::get('member_order_none_exist'), '', 'html', 'error');
}
$model_order = Model('order');
$condition = array();
$condition['order_id'] = $order_id;
$condition['buyer_id'] = $_SESSION['member_id'];
$order_info = $model_order->getOrderInfo($condition, array('order_goods', 'order_common', 'store'));
if (empty($order_info) || $order_info['delete_state'] == ORDER_DEL_STATE_DROP) {
showMessage(Language::get('member_order_none_exist'), '', 'html', 'error');
}
$model_refund_return = Model('refund_return');
$order_list = array();
$order_list[$order_id] = $order_info;
$order_list = $model_refund_return->getGoodsRefundList($order_list, 1);
//订单商品的退款退货显示
$order_info = $order_list[$order_id];
$refund_all = $order_info['refund_list'][0];
if (!empty($refund_all) && $refund_all['seller_state'] < 3) {
//订单全部退款商家审核状态:1为待审核,2为同意,3为不同意
Tpl::output('refund_all', $refund_all);
}
//显示锁定中
$order_info['if_lock'] = $model_order->getOrderOperateState('lock', $order_info);
//显示取消订单
$order_info['if_cancel'] = $model_order->getOrderOperateState('buyer_cancel', $order_info);
//显示退款取消订单
$order_info['if_refund_cancel'] = $model_order->getOrderOperateState('refund_cancel', $order_info);
//显示投诉
$order_info['if_complain'] = $model_order->getOrderOperateState('complain', $order_info);
//显示收货
$order_info['if_receive'] = $model_order->getOrderOperateState('receive', $order_info);
//显示物流跟踪
$order_info['if_deliver'] = $model_order->getOrderOperateState('deliver', $order_info);
//显示评价
$order_info['if_evaluation'] = $model_order->getOrderOperateState('evaluation', $order_info);
//显示分享
$order_info['if_share'] = $model_order->getOrderOperateState('share', $order_info);
//显示系统自动取消订单日期
if ($order_info['order_state'] == ORDER_STATE_NEW) {
//$order_info['order_cancel_day'] = $order_info['add_time'] + ORDER_AUTO_CANCEL_DAY * 24 * 3600;
// by shopnc.club
$order_info['order_cancel_day'] = $order_info['add_time'] + ORDER_AUTO_CANCEL_DAY + 3 * 24 * 3600;
}
//显示快递信息
if ($order_info['shipping_code'] != '') {
$express = rkcache('express', true);
$order_info['express_info']['e_code'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_code'];
$order_info['express_info']['e_name'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_name'];
$order_info['express_info']['e_url'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_url'];
}
//显示系统自动收获时间
if ($order_info['order_state'] == ORDER_STATE_SEND) {
//$order_info['order_confirm_day'] = $order_info['delay_time'] + ORDER_AUTO_RECEIVE_DAY * 24 * 3600;
//by shopnc.club
$order_info['order_confirm_day'] = $order_info['delay_time'] + ORDER_AUTO_RECEIVE_DAY + 15 * 24 * 3600;
}
//如果订单已取消,取得取消原因、时间,操作人
if ($order_info['order_state'] == ORDER_STATE_CANCEL) {
$order_info['close_info'] = $model_order->getOrderLogInfo(array('order_id' => $order_info['order_id']), 'log_id desc');
}
foreach ($order_info['extend_order_goods'] as $value) {
$value['image_60_url'] = cthumb($value['goods_image'], 60, $value['store_id']);
$value['image_240_url'] = cthumb($value['goods_image'], 240, $value['store_id']);
$value['goods_type_cn'] = orderGoodsType($value['goods_type']);
$value['goods_url'] = urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
if ($value['goods_type'] == 5) {
$order_info['zengpin_list'][] = $value;
} else {
$order_info['goods_list'][] = $value;
}
}
if (empty($order_info['zengpin_list'])) {
$order_info['goods_count'] = count($order_info['goods_list']);
} else {
$order_info['goods_count'] = count($order_info['goods_list']) + 1;
}
Tpl::output('order_info', $order_info);
//卖家发货信息
if (!empty($order_info['extend_order_common']['daddress_id'])) {
$daddress_info = Model('daddress')->getAddressInfo(array('address_id' => $order_info['extend_order_common']['daddress_id']));
Tpl::output('daddress_info', $daddress_info);
}
Tpl::showpage('member_order.show');
}
示例5: thumb
" target="_blank"><img src="<?php
echo thumb($goods_info, 60);
?>
"/></a></span></div></td>
<td>
<dl class="goods-name">
<dt><a href="<?php
echo urlShop('goods', 'index', array('goods_id' => $goods_info['goods_id']));
?>
" target="_blank"><?php
echo $goods_info['goods_name'];
?>
</a></dt>
<dd>
<?php
echo orderGoodsType($goods_info['goods_type']);
?>
</dd>
</dl></td>
<td class="goods-price w120"><i><?php
echo $goods_info['goods_price'];
?>
x <?php
echo $goods_info['goods_num'];
?>
</i><?php
if ($goods_info['refund'] == 1) {
?>
<p><a href="javascript:void(0)" nc_type="dialog" dialog_title="退款退货" dialog_id="member_goods_refund"
dialog_width="480" uri="index.php?act=member_refund&op=add_refund&order_id=<?php
示例6: show_orderOp
/**
* 卖家订单详情
*
*/
public function show_orderOp()
{
Language::read('member_member_index');
$order_id = intval($_GET['order_id']);
if ($order_id <= 0) {
showMessage(Language::get('wrong_argument'), '', 'html', 'error');
}
$model_order = Model('order');
$condition = array();
$condition['order_id'] = $order_id;
$condition['store_id'] = $_SESSION['store_id'];
$order_info = $model_order->getOrderInfo($condition, array('order_common', 'order_goods', 'member'));
if (empty($order_info)) {
showMessage(Language::get('store_order_none_exist'), '', 'html', 'error');
}
Tpl::output('order_info', $order_info);
//订单处理历史
$log_list = $model_order->getOrderLogList(array('order_id' => $order_id));
Tpl::output('order_log', $log_list);
$model_refund_return = Model('refund_return');
$order_list = array();
$order_list[$order_id] = $order_info;
$order_list = $model_refund_return->getGoodsRefundList($order_list, 1);
//订单商品的退款退货显示
$order_info = $order_list[$order_id];
$refund_all = $order_info['refund_list'][0];
if (!empty($refund_all) && $refund_all['seller_state'] < 3) {
//订单全部退款商家审核状态:1为待审核,2为同意,3为不同意
Tpl::output('refund_all', $refund_all);
}
//显示锁定中
$order_info['if_lock'] = $model_order->getOrderOperateState('lock', $order_info);
//显示调整费用
$order_info['if_modify_price'] = $model_order->getOrderOperateState('modify_price', $order_info);
//显示取消订单
$order_info['if_cancel'] = $model_order->getOrderOperateState('buyer_cancel', $order_info);
//显示发货
$order_info['if_send'] = $model_order->getOrderOperateState('send', $order_info);
//显示物流跟踪
$order_info['if_deliver'] = $model_order->getOrderOperateState('deliver', $order_info);
//显示系统自动取消订单日期
if ($order_info['order_state'] == ORDER_STATE_NEW) {
$order_info['order_cancel_day'] = $order_info['add_time'] + ORDER_AUTO_CANCEL_DAY * 24 * 3600;
}
//显示快递信息
if ($order_info['shipping_code'] != '') {
$express = rkcache('express', true);
$order_info['express_info']['e_code'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_code'];
$order_info['express_info']['e_name'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_name'];
$order_info['express_info']['e_url'] = $express[$order_info['extend_order_common']['shipping_express_id']]['e_url'];
}
//显示系统自动收获时间
if ($order_info['order_state'] == ORDER_STATE_SEND) {
$order_info['order_confirm_day'] = $order_info['delay_time'] + ORDER_AUTO_RECEIVE_DAY * 24 * 3600;
}
//如果订单已取消,取得取消原因、时间,操作人
if ($order_info['order_state'] == ORDER_STATE_CANCEL) {
$order_info['close_info'] = $model_order->getOrderLogInfo(array('order_id' => $order_info['order_id']), 'log_id desc');
}
foreach ($order_info['extend_order_goods'] as $value) {
$value['image_60_url'] = cthumb($value['goods_image'], 60, $value['store_id']);
$value['image_240_url'] = cthumb($value['goods_image'], 240, $value['store_id']);
$value['goods_type_cn'] = orderGoodsType($value['goods_type']);
$value['goods_url'] = urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
if ($value['goods_type'] == 5) {
$order_info['zengpin_list'][] = $value;
} else {
$order_info['goods_list'][] = $value;
}
}
if (empty($order_info['zengpin_list'])) {
$order_info['goods_count'] = count($order_info['goods_list']);
} else {
$order_info['goods_count'] = count($order_info['goods_list']) + 1;
}
Tpl::output('order_info', $order_info);
//发货信息
if (!empty($order_info['extend_order_common']['daddress_id'])) {
$daddress_info = Model('daddress')->getAddressInfo(array('address_id' => $order_info['extend_order_common']['daddress_id']));
Tpl::output('daddress_info', $daddress_info);
}
//退款退货信息
$model_refund = Model('refund_return');
$condition = array();
$condition['order_id'] = $order_info['order_id'];
$condition['seller_state'] = 2;
$condition['admin_time'] = array('gt', 0);
$return_list = $model_refund->getReturnList($condition);
Tpl::output('return_list', $return_list);
//退款信息
$refund_list = $model_refund->getRefundList($condition);
Tpl::output('refund_list', $refund_list);
self::profile_menu('show', 'show_order');
Tpl::output('menu_sign', 'show_order');
Tpl::output('left_show', 'order_view');
Tpl::showpage('store_order.show');
//.........这里部分代码省略.........