Ejemplo n.º 1
0
                    if (!$tmp) {
                        $db->query("REPLACE INTO {$DT_PRE}mall_stat (mallid,buyer,seller) VALUES ('{$itemid}','{$_username}','{$t['username']}')");
                    }
                    if (!$cod) {
                        $ids .= ',' . $oid;
                    }
                    $touser = $t['username'];
                    $_title = $title;
                    $title = lang($L['trade_message_t6'], array($oid));
                    $url = $MODULE[2]['linkurl'] . 'trade.php?itemid=' . $oid;
                    $goods = '<a href="' . $linkurl . '" target="_blank" class="t"><strong>' . $_title . '</strong></a>';
                    $content = lang($L['trade_message_c6'], array(userurl($_username), $_username, timetodate($DT_TIME, 3), $goods, $oid, $amount, $url));
                    $content = ob_template('messager', 'mail');
                    send_message($touser, $title, $content);
                    unset($cart[$k]);
                }
            }
            $do->set($cart);
            if ($ids) {
                $ids = substr($ids, 1);
            }
            exit($ids ? 'ok|' . $ids : 'ko');
        } else {
            $lists = $do->get_list($cart);
        }
        break;
}
include template('cart', 'mobile');
if (DT_CHARSET != 'UTF-8') {
    toutf8();
}