TEXT; $address_incorrect_div = 'address_incorrect_' . $order->id; $address_incorrect_gif = 'address_incorrect.gif'; if ($ebay_order) { if (strtolower($ebay_order->street2) != strtolower($order->address_line_2)) { $address_incorrect_gif = 'address_incorrect-red.gif'; } $address_incorrect_text = <<<TEXT paypal address: {$order->address_line_1} {$order->address_line_2}, {$order->town_city}, {$order->state_province}, {$order->country} <br/> ebay address: {$ebay_order->street1} {$ebay_order->street2}, {$ebay_order->city}, {$ebay_order->province}, {$ebay_order->country} TEXT; } $address_incorrect = "<span style='padding:5px;float: right'>" . "<a href='#' title='click to see detail' onclick=\"\$('{$address_incorrect_div}').toggle();return false;\">" . fetch_icon($address_incorrect_gif) . "</a>" . "<div id='{$address_incorrect_div}' style='display: none;border: 2px solid #F27B04;background-color: #F0FFF0;'>{$address_incorrect_text}</div>" . "</span>"; $address_incorrect .= "<div style='clear:both;'></div>"; } $edit_button = block_edit_link(site_url('order/regular_order/edit_customer_info', array($order->id)), TRUE); if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') { $edit_button = ''; } $item_info = <<<ITEM <div style='padding-left: 10px;'> {$address_incorrect} <br/> {$order->item_no} {$ebay_id}<br/> {$name}: {$order->name} {$buyer_id}<br/> {$address}: {$order->address_line_1} {$order->address_line_2}<br/> {$town_city}: {$order->town_city}<br/> {$state_province}: {$order->state_province}<br/> {$country}: {$order->country}<br/> {$zip_code}: {$order->zip_code} {$edit_button}<br/> </div> ITEM;
if ($ebay_product->currency == 'AUD') { $ebay_url = 'http://www.ebay.com.au/itm/ws/eBayISAPI.dll?ViewItem&item='; } $ebay_html = '<a target="_blank" href="' . $ebay_url . $ebay_product->item_id . '">' . $ebay_product->item_id . '</a>'; $product = NULL; $product_information = ''; if ($ebay_product->sku) { $ebausku = explode(",", $ebay_product->sku); $product = $this->product_model->fetch_product_by_sku($ebausku[0], NULL, FALSE); if ($product) { $product_information .= lang('stock_count') . ": " . $product->stock_count . "<br/>"; $product_information .= lang('sale_amount_level') . ": " . $product->sale_amount_level . "<br/>"; $product_information .= lang('sale_quota_level') . ": " . $product->sale_quota_level; } } $edit_button = block_edit_link(site_url('sale/ebay_competitor/edit_competitor', array($ebay_product->item_id)), TRUE); $ebay_bother_str = ''; $competitors = $this->ebay_model->fetch_competitors_item_id($ebay_product->item_id); $alarm_image = '<img width="12" src="' . $base_url . 'static/images/icons/alarm.gif"' . '/>'; foreach ($competitors as $competitor) { $seller_text = $competitor->seller_id; if (!empty($competitor->balance)) { $seller_text .= '(' . $competitor->balance . ')'; } if ($competitor->status) { $seller_text .= $alarm_image; } $attributes = array('target' => '_blank', 'title' => empty($competitor->track_time) ? lang('not_track_yet') : lang('track_time') . ':' . $competitor->track_time); $ebay_bother_str .= anchor($competitor->url, $seller_text, $attributes) . nbs(); $ebay_bother_str .= br(); }
<?php $add_button = $this->block->generate_add_icon('order/setting/add_stmp_sender'); $head = array(lang('paypal_email'), lang('sender_name'), lang('stmp_account'), lang('options') . $add_button); $data = array(); $sender_update_url = site_url('order/setting/update_stmp_sender'); $data = array(); foreach ($paypal_senders as $sender) { $sender_id = $sender->id; $drop_button = block_drop_icon('order/setting/drop_stmp_sender', "{id: {$sender_id}}", TRUE); $sender_accounts = $this->stmp_model->fetch_paypal_sender_accounts($sender_id); $account_html = ''; foreach ($sender_accounts as $account) { $account_html .= $account->stmp_host . ': ' . $account->stmp_account . block_status_image($account->account_status) . '<br/>'; } $edit_button = block_edit_link(site_url('order/setting/update_stmp_sender_accounts', array($sender_id))); $account_html .= $edit_button; $data[] = array($this->block->generate_div("paypal_email_{$sender_id}", $sender->paypal_email), $this->block->generate_div("sender_name_{$sender_id}", $sender->sender_name), $account_html, $drop_button); echo block_editor("paypal_email_{$sender_id}", 'sender_form', $sender_update_url, "{id: {$sender_id}, type: 'paypal_email'}"); echo block_editor("sender_name_{$sender_id}", 'sender_form', $sender_update_url, "{id: {$sender_id}, type: 'sender_name'}"); } echo block_header(lang('notification_email_account_setting')); echo block_table($head, $data);
<?php $head = array(lang('order_option'), lang('full_name')); $data = array(); $edit_url = block_edit_link(site_url('order/setting/update_view_all')); $str = ''; foreach ($setted_users as $user) { $str .= $user->u_name . ' '; } $str .= $edit_url; $data[] = array(lang('order_view_all'), $str); echo block_header(lang('order_view_permission_setting')); echo block_table($head, $data);
<?php $head = array(lang('option'), lang('full_name')); $data = array(); $edit_url = block_edit_link(site_url('pi/setting/select_delete_permission')); $str = ''; foreach ($setted_users as $user) { $str .= $user->u_name . ' '; } $str .= $edit_url; $data[] = array(lang('delete_product_permission'), $str); echo block_header(lang('delete_product_permission_setting')); echo block_table($head, $data);
<?php $url = site_url('order/profit_rate/add_profit_rate_view'); $add_button = $this->block->generate_add_icon($url); $head = array(lang('start_rate'), lang('end_rate'), lang('full_name'), lang('creator'), lang('options') . $add_button); $data = array(); $code_url = site_url('order/profit_rate/verigy_exchange_profit_rate_view'); foreach ($profit_rate_lists as $profit_rate_list) { $drop_button = $this->block->generate_drop_icon('order/profit_rate/drop_profit_rate_view_by_id', "{id: {$profit_rate_list->id}}", TRUE); $edit_url = block_edit_link(site_url('order/profit_rate/update_view_all', array($profit_rate_list->id))); $str = ''; foreach ($name_string["{$profit_rate_list->id}"] as $name) { $str .= $name->u_name . ' '; } $str .= $edit_url; $data[] = array($this->block->generate_div("start_rate_{$profit_rate_list->id}", isset($profit_rate_list) && $profit_rate_list->start_rate ? $profit_rate_list->start_rate : '[edit]'), $this->block->generate_div("end_rate_{$profit_rate_list->id}", isset($profit_rate_list) && $profit_rate_list->end_rate ? $profit_rate_list->end_rate : '[edit]'), $str, $this->block->generate_div("creator_{$profit_rate_list->id}", isset($profit_rate_list) ? $profit_rate_list->u_name : ''), $drop_button); echo $this->block->generate_editor("start_rate_{$profit_rate_list->id}", 'order_form', $code_url, "{id: {$profit_rate_list->id}, type: 'start_rate'}"); echo $this->block->generate_editor("end_rate_{$profit_rate_list->id}", 'order_form', $code_url, "{id: {$profit_rate_list->id}, type: 'end_rate'}"); } $title = lang('order_profit_rate_view_setting'); echo block_header($title); echo form_open(); echo $this->block->generate_table($head, $data); echo form_close();