}
    $change_count_div_id = 'change_count_' . $apply_id;
    $item[] = block_div($change_count_div_id, $product->change_count);
    echo block_editor($change_count_div_id, 'name_form', $update_instock_url, "{id: {$apply_id}, type: 'change_count'}");
    $item[] = $product->updated_time;
    $item[] = $options;
    $data[] = $item;
}
$options = array();
$options[''] = lang('all');
foreach ($purchase_users as $purchase_user) {
    $options[$purchase_user->u_id] = $purchase_user->u_name;
}
$filters = array(NULL, array('type' => 'input', 'field' => 'sku', 'method' => '='), array('type' => 'input', 'field' => 'shelf_code'), NULL, array('type' => 'input', 'field' => 'product_basic.name_cn|product_basic.name_en'), array('type' => 'dropdown', 'field' => 'user.id', 'options' => $options, 'method' => '='), array('type' => 'input', 'field' => 'product_more.stock_count', 'size' => 6), NUll);
$config = array('filters' => $filters);
echo block_header(lang('product_instock_verify'));
echo $this->block->generate_pagination('product_apply');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'product_apply');
echo form_close();
echo $this->block->generate_check_all();
$batch_verify_url = site_url('stock/inout/proccess_batch_instock_verify');
$config = array('name' => 'batch_approve', 'id' => 'batch_approve', 'value' => lang('batch_approve'), 'type' => 'button', 'onclick' => "batch_verify_apply_instock('{$batch_verify_url}', 1);");
$batch_verify = '<div style="padding-top: 5px; float: right; ">';
$batch_verify .= block_button($config);
$batch_verify .= repeater('&nbsp;', 4);
$config = array('name' => 'batch_reject', 'id' => 'batch_reject', 'value' => lang('batch_reject'), 'type' => 'button', 'onclick' => "batch_verify_apply_instock('{$batch_verify_url}', -1);");
$batch_verify .= block_button($config);
$batch_verify .= '</div>';
echo $batch_verify;
    $confirm = '<br/><br/>' . block_button($config);
    $rejected_url = site_url('order/return_order_auditing/auditing_order_rejecteds');
    $config_rejected = array('name' => 'rejected_' . $order->id, 'id' => 'rejected_' . $order->id, 'value' => lang('reject_it'), 'onclick' => "auditing_order_by_rejected(this, '{$rejected_url}', {$order->id});");
    $rejected = '<br/>' . block_button($config_rejected);
    $data[] = array($this->block->generate_select_checkbox($order->id), $item_info, $order_info . "<br/>" . $ship_info, $product_info, lang($order->status_name), $order->return_remark, form_dropdown('refund_verify_type', $options, $order->refund_verify_type ? $order->refund_verify_type : (!empty($default_value_obj) ? $default_value_obj->id : ''), "id = 'refund_verify_type_{$order->id}'") . '<br/>' . form_textarea($config_content) . $confirm . $rejected, form_input($config_name), $problem_sku_html);
    echo $this->block->generate_ac('refund_duty_' . $order->id, array('user', 'name'));
}
$users = $this->user_model->fetch_users_by_system_code('order');
$user_options = array();
$user_options[''] = lang('all');
foreach ($users as $user) {
    $user_options[$user->login_name] = $user->u_name;
}
$status = array('' => lang('please_select'), '11' => lang('not_received_apply_for_partial_refund'), '13' => lang('not_received_apply_for_full_refund'), '15' => lang('not_received_apply_for_resending'), '18' => lang('received_apply_for_partial_refund'), '20' => lang('received_apply_for_full_refund'), '22' => lang('received_apply_for_resending'), '25' => lang('not_shipped_apply_for_refund'));
$filters = array(NULL, array('type' => 'input', 'field' => 'item_no'), array('type' => 'input', 'field' => 'from_email|name|transaction_id|item_id_str'), array('type' => 'input', 'field' => 'sku_str|qty_str|item_title_str|item_id_str'), array('type' => 'dropdown', 'field' => 'order_status', 'options' => $status, 'method' => '='), array('type' => 'input', 'field' => 'return_remark'), NULL, NULL, NULL);
echo block_header(lang('batch_auditing_order'));
echo $this->block->generate_pagination('return_order_auditing');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'return_order_auditing');
echo $this->block->generate_check_all();
$auditing_url = site_url('order/return_order_auditing/save_auditings');
$config = array('name' => 'order_auditing', 'id' => 'order_auditing', 'value' => lang('batch_auditing_order'), 'type' => 'button', 'onclick' => "batch_auditing_order('{$auditing_url}');");
$auditing_url_rejected = site_url('order/return_order_auditing/save_rejecteds');
$config_rejected = array('name' => 'order_rejected', 'id' => 'order_rejected', 'value' => lang('batch_rejected_order'), 'type' => 'button', 'onclick' => "batch_auditing_order('{$auditing_url_rejected}');");
$print_label = '<span style="padding-left: 20px;">';
$print_label .= block_button($config) . block_button($config_rejected);
$print_label .= '</span>';
echo $print_label;
echo form_close();
示例#3
0
<?php

$head = array(lang('login_name'), lang('username'), lang('paypal_email_setting'), lang('ebay_id_setting'));
$data = array();
$url = site_url('order/setting/update_ebay_info');
foreach ($users as $user) {
    $user_id = $user->u_id;
    $ebay_info = $this->user_model->fetch_user_ebay_info($user_id);
    $data[] = array($user->login_name, $user->u_name, $this->block->generate_div("paypal_email_{$user_id}", empty($ebay_info->paypal_email_str) ? '[edit]' : $ebay_info->paypal_email_str), $this->block->generate_div("ebay_id_{$user_id}", empty($ebay_info->ebay_id_str) ? '[edit]' : $ebay_info->ebay_id_str));
    echo $this->block->generate_editor("paypal_email_{$user_id}", 'user_form', $url, "{user_id: {$user_id}, type: 'paypal_email'}");
    echo $this->block->generate_editor("ebay_id_{$user_id}", 'user_form', $url, "{user_id: {$user_id}, type: 'ebay_id'}");
}
echo block_header(lang('paypal_email_ebay_id_setting'));
echo $this->block->generate_table($head, $data);
$this->table->set_caption(lang('edit_ebay_info'));
$this->table->set_heading(lang('name'), lang('value'));
$this->table->add_row(lang('name'), form_input(array('name' => 'name', 'size' => '50', 'value' => $order->name)));
$this->table->add_row(lang('address_line_1'), form_input(array('name' => 'address_line_1', 'size' => '30', 'value' => $order->address_line_1)));
$this->table->add_row(lang('address_line_2'), form_input(array('name' => 'address_line_2', 'size' => '30', 'value' => $order->address_line_2)));
$this->table->add_row(lang('town_city'), form_input($config = array('name' => 'town_city', 'size' => '20', 'value' => $order->town_city)));
$this->table->add_row(lang('state_province'), form_input(array('name' => 'state_province', 'size' => '20', 'value' => $order->state_province)));
$this->table->add_row(lang('country'), form_input(array('name' => 'country', 'size' => '10', 'value' => $order->country)));
$this->table->add_row(lang('zip_code'), form_input(array('name' => 'zip_code', 'size' => '10', 'value' => $order->zip_code)));
$params = "\$('customer_form').serialize()";
$url = site_url('order/regular_order/proccess_edit_customer_info');
$config = array('name' => 'submit', 'value' => lang('save'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();helper.ajax('{$url}', {$params}, 1);");
$save_button = block_button($config);
$back_button = '';
//block_back_icon(site_url('order/regular_order/confirm_order'));
echo block_header(lang('edit_customer_info') . "( {$order->item_no} )" . $back_button);
$attributes = array('id' => 'customer_form');
echo form_open('', $attributes);
//-- Display Table
$table = $this->table->generate();
$this->table->clear();
$this->table->set_caption(lang('view_paypal_info'));
$this->table->set_heading(lang('name'), lang('value'));
if ($paypal) {
    $this->table->add_row(lang('name'), form_input(array('size' => '50', 'value' => $paypal->buyer_name, 'readonly' => 'readonly')));
    $this->table->add_row(lang('address_line_1'), form_input(array('size' => '30', 'value' => $paypal->street1, 'readonly' => 'readonly')));
    $this->table->add_row(lang('address_line_2'), form_input(array('size' => '30', 'value' => $paypal->street2, 'readonly' => 'readonly')));
    $this->table->add_row(lang('town_city'), form_input($config = array('size' => '20', 'value' => $paypal->city, 'readonly' => 'readonly')));
    $this->table->add_row(lang('state_province'), form_input(array('size' => '20', 'value' => $paypal->province, 'readonly' => 'readonly')));
    $this->table->add_row(lang('country'), form_input(array('size' => '10', 'value' => $paypal->country, 'readonly' => 'readonly')));
    $this->table->add_row(lang('zip_code'), form_input(array('size' => '10', 'value' => $paypal->postal_code, 'readonly' => 'readonly')));
示例#5
0
    $config = array('name' => 'confirm_' . $order->id, 'id' => 'confirm_' . $order->id, 'value' => $confirm_order, 'onclick' => "confirm_order(this, '{$confirm_url}', {$order->id}, {$last_order});");
    $confirm = block_button($config);
    if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') {
        $confirm .= '&nbsp;';
        $config = array('name' => 'return_' . $order->id, 'id' => 'return_' . $order->id, 'value' => lang('give_order_back'), 'onclick' => "finance_order_back(this, '{$give_order_back_url}', {$order->id}, {$last_order});");
        $confirm .= block_button($config);
    }
    $confirm .= '<span style="float: right;margin: 10px;">';
    $confirm .= anchor('#', lang('hold_order'), array('onclick' => "return hold_order(this, '{$hold_url}', {$order->id}, {$last_order});"));
    $confirm .= '<br/><br/>' . anchor('#', lang('close_order'), array('onclick' => "return close_order(this, '{$close_url}', {$order->id}, {$last_order});"));
    $confirm .= '<br/><br/><a href=' . $split_url . ' target=_blank>' . lang('split_order') . '</a>';
    $confirm .= '</span>';
    $row[] = $confirm;
    $data[] = $row;
}
echo block_header(lang('confirm_order'));
$options = array();
if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') {
    $values = array('wait_for_finance_confirmation', 'finance_holded');
} else {
    $values = array('wait_for_confirmation', 'holded');
}
$type = 'order_status';
foreach ($values as $value) {
    $key = fetch_status_id($type, $value);
    $options[$key] = lang($value);
}
$filters = array(NULL, array('type' => 'input', 'field' => 'id', 'method' => '='), array('type' => 'input', 'field' => 'item_no|buyer_id|from_email|name|country|zip_code'), array('type' => 'input', 'field' => 'item_id_str|invoice_number|sku_str'), array('type' => 'input', 'field' => 'track_number|transaction_id', 'method' => '='), array('type' => 'dropdown', 'field' => 'order_status', 'options' => $options, 'method' => '='));
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_pagination('order');
<?php

$CI =& get_instance();
$head = array(lang('second_glance_amount'), lang('total_amount'), lang('second_glance_rate'), lang('input_sales'));
$data = array();
$saler_name = array();
foreach ($statistics as $statistic) {
    $saler_name = $CI->purchase_statistics_model->fetch_saler_name_by_id($statistic->saler_id);
    $data[] = array($statistic->second_glance_amount, $statistic->totable_amount, $statistic->second_glance_rate, $saler_name);
}
echo block_header(lang('second_glance_rate_statistic'));
$start_year = 2004;
$end_year = date('Y');
$years = array();
for ($i = $start_year; $i <= $end_year; $i++) {
    $years[$i] = $i;
}
$months = array();
for ($i = 1; $i <= 12; $i++) {
    $months[$i] = $i;
}
echo $this->block->generate_pagination('statistics');
echo form_open(current_url());
echo br();
echo form_label(lang('year')) . ': ' . form_dropdown('year', $years, $year);
echo repeater('&nbsp;', 3);
echo form_label(lang('month')) . ': ' . form_dropdown('month', $months, $month);
echo repeater('&nbsp;', 3);
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
echo block_button($config);
echo form_close();
示例#7
0
$CI =& get_instance();
$data = array();
$url = site_url('admin/group/update_permission');
foreach ($all_groups as $group) {
    $systems = $this->group_model->fetch_systems_by_group_id($group->id);
    $permission_text = '';
    $system_name = '';
    foreach ($systems as $system) {
        $system_name .= lang($system->s_name) . '<br/><br>';
        if (isset($all_navs[$system->bind])) {
            $nav = $all_navs[$system->bind];
            $group_id = $group->id;
            $permission_text .= '<fieldset>';
            $permission_text .= '<legend>' . lang($system->s_name) . '</legend>';
            foreach ($nav as $title => $items) {
                $permission_text .= '<h4>' . lang($title) . '</h4>';
                foreach ($items as $key => $value) {
                    $status = $CI->check_permission($group_id, $key);
                    $checkbox = array('name' => $value, 'id' => $value, 'value' => $key, 'checked' => $status ? TRUE : FALSE, 'style' => 'margin:10px', 'onclick' => "helper.ajax('{$url}', {group_id: {$group_id}, resource: '{$key}', checked: this.checked}, 1)");
                    $permission_text .= form_checkbox($checkbox) . form_label(lang($value));
                }
                $permission_text .= '<br/>';
            }
            $permission_text .= '</fieldset>';
        }
    }
    $data[] = array($group->name, $system_name, $permission_text);
}
$filters = array();
echo block_header(lang('group_permission'));
echo $this->block->generate_table($head, $data, $filters, 'permission');
示例#8
0
        $item[] = $key;
        $item[] = $myproduct->name_cn;
        $item[] = $customer_sku_count[$key];
        $item[] = $customer;
        $data[] = $item;
        $i++;
        if ($i >= $limit) {
            break;
        }
    }
}
$sortable[] = 'default';
$sortable[] = 'integer';
$sortable[] = 'integer';
$sortable[] = 'integer';
echo block_header(lang('sku_rank'));
echo '<br/>';
echo form_open(current_url());
echo lang('from') . ' ' . block_time_picker('begin_time', $begin_time) . '&nbsp;&nbsp;';
echo lang('to') . ' ' . block_time_picker('end_time', $end_time) . '&nbsp;&nbsp;';
$time_lines = array();
$time_lines[0] = lang('all');
$time_lines[1] = lang('today');
$time_lines[2] = lang('yesterday');
$time_lines[3] = lang('this_week');
$time_lines[4] = lang('last_week');
$time_lines[5] = lang('this_month');
$time_lines[6] = lang('last_month');
echo form_dropdown('time_line', $time_lines, isset($time_line) ? $time_line : '0');
echo form_dropdown('orderby', array(lang('order_count'), lang('sale_amount')), isset($orderby) ? $orderby : '0');
$config = array('name' => 'limit', 'id' => 'limit', 'value' => $limit, 'maxlength' => '5', 'size' => '5');
示例#9
0
        {$lang_weight} : {$order->ship_weight} <br/>
        {$lang_confirm_user} : {$order->ship_confirm_user} <br/>
        {$lang_ship_remark} : {$order->ship_remark} <br/> | {$order->descript} <br/>
        {$lang_receive_date} : {$order->order_receive_date} <br/>
        <abbr title="{$order->sys_remark}">{$lang_sys_remark}</abbr>

SHIP;
    $row[] = $ship_info;
    $status = '';
    if ($order->email_status == 0) {
        $status = lang('order_email_status_no');
    } elseif ($order->email_status == 1) {
        $status = lang('order_email_status_yes');
    } elseif ($order->email_status == -1) {
        $status = lang('order_email_status_fail');
    } elseif ($order->email_status == -2) {
        $status = lang('order_email_status_needless');
    }
    $row[] = $status . '<br/><br/>';
    $data[] = $row;
}
echo block_header(lang('email_manage'));
$status_options = array('0' => lang('order_email_status_no'), '1' => lang('order_email_status_yes'), '-1' => lang('order_email_status_fail'), '-2' => lang('order_email_status_needless'));
$filters = array(array('type' => 'input', 'field' => 'item_no|name|shipping_address|buyer_id'), array('type' => 'input', 'field' => 'gross|transaction_id|descript|track_number'), array('type' => 'input', 'field' => 'ship_confirm_date|ship_weight|ship_confirm_user'), array('type' => 'dropdown', 'field' => 'email_status', 'options' => $status_options, 'method' => '='));
$config = array('filters' => $filters);
echo $this->block->generate_pagination('order_email');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order_email');
echo form_close();
echo $this->block->generate_pagination('order_email');
示例#10
0
        {$lang_ship_remark} : {$order->ship_remark} <br/> | {$order->descript} <br/>
        {$lang_receive_date} : {$order->order_receive_date} <br/>
        <abbr title="{$order->sys_remark}">{$lang_sys_remark}</abbr>

SHIP;
    $row[] = $ship_info;
    $row[] = lang(element($order->order_status, $statuses)) . '<br/><br/>';
    $row[] = $order->input_date;
    if ($priority > 1 || $CI->is_super_user()) {
        $row[] = fetch_user_name_by_id($order->saler_id);
    }
    $data[] = $row;
}
$users = $this->user_model->fetch_users_by_system_code('sale');
$user_options = array();
$user_options[''] = lang('all');
foreach ($users as $user) {
    $user_options[$user->u_id] = $user->u_name;
}
echo block_header(lang('view_order'));
$filters = array(null, array('type' => 'input', 'field' => 'item_no|name|shipping_address|buyer_id'), array('type' => 'input', 'field' => 'item_title_str|item_id_str|sku_str|is_register'), array('type' => 'input', 'field' => 'gross|transaction_id|descript|track_number'), array('type' => 'input', 'field' => 'ship_confirm_date|ship_weight|ship_confirm_user'), $this->block->generate_search_dropdown('order_status', 'order_status'), array('type' => 'date', 'field' => 'input_date', 'method' => 'from_to'));
if ($priority > 1 || $CI->is_super_user()) {
    $filters[] = array('type' => 'dropdown', 'field' => 'user_saler_input_user_map.saler_id', 'options' => $user_options, 'method' => '=');
}
$config = array('filters' => $filters);
echo $this->block->generate_pagination('order');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order');
echo form_close();
echo $this->block->generate_pagination('order');
    $row[] = $stock_checker;
    $row[] = $duty;
    $row[] = $confirmed[$record->review_status];
    $row[] = $record->before_change_count;
    $row[] = $record->change_count;
    $row[] = $record->after_change_count;
    $row[] = lang($record->differences_remark);
    if ($role > 1 || $CI->is_super_user()) {
        $row[] = lang('person_responsible') . form_dropdown('duty_' . $record->id, $all_stock_user_ids, $record->duty, "id='duty_{$record->id}'") . '<br/>' . form_textarea($config) . '<br/>' . block_button($button_config);
    } else {
        $row[] = form_textarea($config);
    }
    $row[] = $record->update_time;
    $data[] = $row;
}
echo block_header(lang('stock_differences_review'));
$stock_checkers = $this->stock_model->fetch_stock_checkers_and_duty();
$checkers = array();
$checkers[''] = lang('all');
$duty = array();
$duty[''] = lang('all');
foreach ($stock_checkers as $rows) {
    if ($rows->stock_checker > 0 && $rows->duty > 0) {
        $checkers[$rows->stock_checker] = $this->user_model->get_user_name_by_id($rows->stock_checker);
        $duty[$rows->duty] = $this->user_model->get_user_name_by_id($rows->duty);
    } else {
        $duty[$rows->duty] = '#';
    }
}
$filters = array(array('type' => 'input', 'field' => 'sku'), NULL, array('type' => 'dropdown', 'field' => 'stock_checker', 'options' => $checkers, 'method' => '='), array('type' => 'dropdown', 'field' => 'duty', 'options' => $duty, 'method' => '='), array('type' => 'dropdown', 'field' => 'review_status', 'options' => $confirmed, 'method' => '='), NULL, NULL, NULL, NULL, NULL, array('type' => 'date', 'field' => 'update_time', 'method' => 'from_to'));
$config = array('filters' => $filters);
示例#12
0
$config_button = array('name' => 'submit', 'value' => lang('search'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "search('{$url}','{$tag}');");
if ($tag == 'order') {
    $options = array('item_no' => lang('item_number'));
    $html = lang('order_item_no_search');
} else {
    $options = array('item_no' => lang('item_number'), 'name' => lang('name'), 'transaction_id' => lang('transaction_id'), 'buyer_id' => lang('buyer_id'), 'item_id_str' => lang('item_id_str'), 'track_number' => lang('track_number'));
    $html = lang('recommend_order_search');
}
$data[] = array('<div align="center">' . $html . ':' . form_input($config_input) . ' ' . form_dropdown('type', $options, 'item_no', "id='type'") . block_button($config_button) . '</div>');
echo "<div id='search_div'>";
if ($tag == 'qt') {
    echo block_header(lang('recommend_service_list_add'));
} elseif ($tag == 'order') {
    echo block_header(lang('copy_order'));
} elseif ($tag == 'shiping_edit_number') {
    echo block_header(lang('edit_number'));
}
echo $this->block->generate_table($head, $data);
echo "</div>";
?>
<script>

function search(url, tag)
{
    var search = $('search').value;
    var type = $('type').value;
    var params = {'search' : search, 'type' : type, 'tag' : tag};

    this.blur();
    helper.update_content(url, params, 'search_div',1);
}
<?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 . '&nbsp;&nbsp;';
}
$str .= $edit_url;
$data[] = array(lang('order_view_all'), $str);
echo block_header(lang('order_view_permission_setting'));
echo block_table($head, $data);
<?php

echo block_header(lang('notification_mode_setting'));
$options = array('1' => lang('normal_mode'), '0' => lang('dev_mode'));
$select_mode = '';
$select_mode_html = "onchange     = 'toggle_email(this.value);' id='select_mode'";
$select_mode = form_label(lang('select_mode') . ': ') . form_dropdown('select_mode', $options, $notification_mode, $select_mode_html);
$config = array('name' => 'dev_email', 'id' => 'dev_email', 'value' => $notification_dev_mode_email, 'maxlength' => '50', 'size' => '50');
$dev_mode = form_label(lang('receive_email') . ': ') . form_input($config);
$disply_none = "";
if ($notification_mode == 1) {
    $disply_none = "display:none;";
}
$select_mode .= block_div('dev_mode', $dev_mode, 'style="padding-top: 10px;' . $disply_none . '"');
$url = site_url('order/setting/proccess_update_notification_mode');
$params = "{select_mode: \$('select_mode').value, dev_email: \$('dev_email').value}";
$config = array('name' => 'submit', 'value' => lang('save'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;float:right;', 'onclick' => "this.blur();helper.ajax('{$url}', {$params}, 1);");
$select_mode .= block_button($config);
$mode = block_fieldset(lang('mode'), $select_mode);
echo form_open();
echo block_div('mode', $mode);
echo form_close();
?>

<script>
    function toggle_email(val)
    {
        if (val == 1)
        {
            $('dev_mode').hide();
        }
示例#15
0
<?php

$this->load->helper('product_permission');
$this->load->model('user_model');
$html = '';
$url = site_url('order/regular_order/do_upload');
$html .= '<br/>' . block_form_uploads('userfile', $url, NULL, 'upload_csv_file');
$html .= '&nbsp;' . block_notice_div(lang('ali_csv_file_notice'));
$html .= '<br/>';
$head = array(lang('upload_file'));
$data = array();
$data[] = array($html);
echo $error;
echo block_header(lang('add_aliexpress'));
echo block_table($head, $data);
?>


<?php

$head = array(lang('name'), lang('integral'));
$data = array();
foreach ($seo_users as $seo_user) {
    $data[] = array($seo_user->u_name, $users_integral[$seo_user->u_id]);
}
echo block_header(lang('integral_statistics'));
echo '<br/>';
echo form_open(current_url());
echo lang('from') . ' ' . block_time_picker('begin_time', $begin_time) . '&nbsp;&nbsp;';
echo lang('to') . ' ' . block_time_picker('end_time', $end_time) . '&nbsp;&nbsp;';
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
$sortable = array('default', 'default');
echo block_button($config);
echo form_close();
echo block_js_sortable_table($head, $data, $sortable, "width: 100%;border-collapse: collapse;");
<?php

$add_button = $this->block->generate_add_icon('order/setting/add_stmp_account');
$head = array(lang('account_name'), lang('account_password'), lang('stmp_host'), lang('status'), '<div>' . lang('options') . $add_button . '</div>');
$account_update_url = site_url('order/setting/update_stmp_account');
$account_collection = object_to_js_array($hosts, 'id', 'host');
$data = array();
foreach ($accounts as $account) {
    $account_id = $account->id;
    $drop_button = block_drop_icon('order/setting/drop_stmp_accout', "{id: {$account_id}}", TRUE);
    $data[] = array($this->block->generate_div("stmp_account_name_{$account_id}", $account->account_name), $this->block->generate_div("stmp_account_password_{$account_id}", $account->account_password), $this->block->generate_div("stmp_account_host_{$account_id}", $account->stmp_host), '<center>' . block_status_image($account->status) . '</center>', $drop_button);
    echo $this->block->generate_editor("stmp_account_name_{$account_id}", 'account_form', $account_update_url, "{id: {$account_id}, type: 'account_name'}");
    echo $this->block->generate_editor("stmp_account_password_{$account_id}", 'account_form', $account_update_url, "{id: {$account_id}, type: 'account_password'}");
    echo $this->block->generate_editor("stmp_account_host_{$account_id}", 'account_form', $account_update_url, "{id: {$account_id}, type: 'stmp_host'}", $account_collection);
}
echo block_header(lang('stmp_accout_setting'));
echo block_table($head, $data);
示例#18
0
<?php

$ebay_url = 'http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=';
$head = array(array('text' => lang('net_name'), 'sort_key' => 'net_name', 'id' => 'product_net_name'), array('text' => lang('item_id_str'), 'sort_key' => 'item_id'), array('text' => lang('shipping_code'), 'sort_key' => 'shipping_code'), array('text' => lang('editor'), 'sort_key' => 'u_name'), array('text' => lang('update_date'), 'sort_key' => 'update_date'), lang('options'));
$data = array();
foreach ($netnames as $netname) {
    //    if ($action == 'edit') {
    if (1) {
        $drop_button = $this->block->generate_drop_icon('sale/netname/drop_netname', "{id: {$netname->id}}", TRUE);
        $edit_button = $this->block->generate_edit_link(site_url('sale/netname/add_edit', array($netname->id)), '_blank');
        $url = $drop_button . $edit_button;
    } else {
        //        $url = $this->block->generate_view_link(site_url('sale/netname/view', array($netname->id)));
    }
    $user_names = $this->user_model->get_user_name_by_id($netname->user_id);
    $link = '<a target="_blank" href="' . $ebay_url . $netname->item_id . '">' . $netname->item_id . '</a>';
    $data[] = array($netname->net_name, $link, $netname->shipping_code, $user_names, $netname->update_date, $url);
}
$shipping_codes = array('' => lang('please_select'));
foreach ($ship_codes as $ship_code) {
    $shipping_codes[$ship_code->code] = $ship_code->code;
}
$filters = array(array('type' => 'input', 'field' => 'net_name'), array('type' => 'input', 'field' => 'item_id'), array('type' => 'dropdown', 'field' => 'shipping_code', 'options' => $shipping_codes, 'method' => '='), array('type' => 'input', 'field' => 'u.name'), array('type' => 'input', 'field' => 'update_date'));
echo block_header(lang('to_improve_the_goods_net'));
echo $this->block->generate_pagination('product_net_name');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'product_net_name');
echo form_close();
echo $this->block->generate_pagination('product_net_name');
示例#19
0
<?php

$html = '';
$url = site_url('seo/release/do_upload');
$html .= '<br/>' . block_form_uploads('userfile', $url, NULL, 'upload_csv_file');
$html .= '&nbsp;' . block_notice_div(lang('upload_csv_file_notice'));
$html .= '<br/>';
$head = array(lang('upload_file'));
$data = array();
$data[] = array($html);
echo $error;
echo block_header(lang('csv_upload'));
echo block_table($head, $data);
<?php

$CI =& get_instance();
$user_id = $CI->get_current_user_id();
$user_info = $CI->user_model->fetch_user_by_id($user_id);
$user_name_en = str_replace(' ', '~@~', $user_info->name_en);
$user_name_en = str_replace(',', '~@~', $user_name_en);
$user_name_en = str_replace('"', '\\"', $user_name_en);
$user_name_en = str_replace("'", "\\'", $user_name_en);
$title = lang('ebay_message_reply');
$back_button = block_back_icon(site_url('order/ebay_message/manage'));
echo block_header($title . $back_button);
$staus = array('status' => 1);
if ($message->status == 0) {
    $CI->ebay_model->update_ebay_message_by_id($message->id, $staus);
}
$url = site_url('order/ebay_message/ebay_message_reply_save');
echo '<center>';
echo '<br/>';
$attributes = array('id' => 'reply_form');
echo form_open($url, $attributes);
$head = array(lang('key'), lang('value'));
$data = array();
$data[] = array(lang('buyer_id'), $message->sendid);
$data[] = array(lang('ebay_id'), $message->recipientid);
$data[] = array(lang('email_title'), $message->subject);
$data[] = array(lang('email_content'), '<font color="#FF0000"><b>' . nl2br($message->body) . '</b></font>');
$data[] = array(lang('created_date'), $message->createtime);
$data[] = array(lang('item_id_str'), $message->itemid . '<br/><img src=' . $img_url . '>');
$data[] = array(lang('product'), '<a href=' . $message->itemurl . ' target=_blank>' . $message->title . '</a>');
$data[] = array(lang('status_id'), lang($CI->order_model->fetch_status_name('message_status', $message->status)));
示例#21
0
<?php

$back_button = block_back_icon(site_url('order/regular_order/aliexpress'));
echo block_header(lang('data_loading') . $back_button);
foreach ($data as $value) {
    echo $value;
}
echo $back_button;
<?php

$add_button = $this->block->generate_add_icon('order/setting/add_stmp_host');
$head = array(lang('host'), lang('port'), lang('is_ssl'), lang('options') . $add_button);
$host_update_url = site_url('order/setting/update_stmp_host');
$yes = lang('yes');
$no = lang('no');
$ssl_collection = to_js_array(array('1' => $yes, '0' => $no));
$data = array();
foreach ($hosts as $host) {
    $host_id = $host->id;
    $drop_button = block_drop_icon('order/setting/drop_stmp_host', "{id: {$host_id}}", TRUE);
    $data[] = array($this->block->generate_div("stmp_host_{$host_id}", $host->host), $this->block->generate_div("stmp_port_{$host_id}", $host->port), $this->block->generate_div("stmp_is_ssl_{$host_id}", $host->is_ssl == 1 ? $yes : $no), $drop_button);
    echo $this->block->generate_editor("stmp_host_{$host_id}", 'host_form', $host_update_url, "{id: {$host_id}, type: 'host'}");
    echo $this->block->generate_editor("stmp_port_{$host_id}", 'host_form', $host_update_url, "{id: {$host_id}, type: 'port'}");
    echo $this->block->generate_editor("stmp_is_ssl_{$host_id}", 'host_form', $host_update_url, "{id: {$host_id}, type: 'is_ssl'}", $ssl_collection);
}
echo block_header(lang('stmp_host_setting'));
echo block_table($head, $data);
示例#23
0
<?php

$title = block_header(lang('email_template'));
$back_button = $this->block->generate_back_icon(site_url('seo/email_marketing/email_marketing_manage'));
echo $title . $back_button;
$content = $email_infos->content;
echo block_clickable_fieldset(lang('view_template'), $content, 'view');
echo br(), br();
$config = array('name' => 'mail_title', 'id' => 'mail_title', 'value' => $email_infos->title, 'size' => '100');
$email_title = $this->block->generate_required_mark(lang('email_title'));
$email_title .= form_input($config) . "<br>";
$config = array('name' => 'mail_code', 'id' => 'mail_code', 'value' => $email_infos->code, 'size' => '100');
if ($email_infos->code) {
    $config = array_merge($config, array('readonly' => 'readonly'));
}
$email_code = $this->block->generate_required_mark(lang('email_code'));
$email_code .= form_input($config) . "<br>";
$config = array('name' => 'mail_content', 'id' => 'mail_content', 'value' => $email_infos->content, 'cols' => '100', 'rows' => '25');
$textarea = $this->block->generate_required_mark(lang('email_content')) . "<br>";
$textarea .= form_textarea($config);
$url = site_url('seo/email_marketing/edit_save');
$config = array('name' => 'save_template', 'id' => 'save_template', 'value' => lang('save_template'), 'onclick' => "return save_email_template('{$url}', '{$email_infos->id}')");
$button = block_button($config);
$content = $email_title . br() . $email_code . br() . $textarea . br() . $button;
echo block_clickable_fieldset(lang('edit_template'), $content, 'edit');
echo $back_button;
<?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);
示例#25
0
<?php

$head = array(array('text' => lang('sku'), 'sort_key' => 'sku', 'id' => 'instock'), lang('product_image'), array('text' => lang('product_name'), 'sort_key' => 'name_cn'), array('text' => lang('shelf_code'), 'sort_key' => 'shelf_code'), array('text' => lang('stock_code'), 'sort_key' => 'stock_code'), array('text' => lang('stock_count'), 'sort_key' => 'stock_count'), array('text' => lang('instock_num'), 'sort_key' => 'change_count'), array('text' => lang('before_change_count'), 'sort_key' => 'before_change_count'), array('text' => lang('after_change_count'), 'sort_key' => 'after_change_count'), array('text' => lang('instock_apply_username'), 'sort_key' => 'user.name'), array('text' => lang('apply_instock_time'), 'sort_key' => 'updated_time'), array('text' => lang('verifyer'), 'sort_key' => 'verifyer_name'), array('text' => lang('verify_date'), 'sort_key' => 'verify_date'), array('text' => lang('remark'), 'sort_key' => 'type_extra'));
$data = array();
foreach ($products as $product) {
    $data[] = array(get_status_image($product->sku) . $product->sku, $this->block->generate_image($product->image_url), $product->name_cn . '<br/>' . $product->name_en, $product->shelf_code, $product->stock_code, $product->stock_count, $product->change_count, $product->before_change_count, $product->after_change_count, $product->user_name, $product->updated_time, $product->verifyer_name, $product->verify_date, isset($product->type) ? lang($product->type) . '<br/>' . $product->type_extra : '');
}
$filters = array(array('type' => 'input', 'field' => 'sku', 'method' => '='), NULL, array('type' => 'input', 'field' => 'product_basic.name_cn|product_basic.name_en'), array('type' => 'input', 'field' => 'shelf_code'), array('type' => 'input', 'field' => 'stock_code'), array('type' => 'input', 'field' => 'product_basic.stock_count', 'size' => 6, 'method' => '>='), array('type' => 'input', 'field' => 'change_count', 'size' => 6, 'method' => '>='), array('type' => 'input', 'field' => 'before_change_count', 'size' => 6, 'method' => '>='), array('type' => 'input', 'field' => 'after_change_count', 'size' => 6, 'method' => '>='), array('type' => 'input', 'field' => 'user.name'), array('type' => 'date', 'field' => 'updated_time', 'method' => 'from_to'), array('type' => 'input', 'field' => 'verifyer.name'), array('type' => 'date', 'field' => 'verify_date', 'method' => 'from_to'), array('type' => 'input', 'field' => 'type_extra'));
$config = array('filters' => $filters);
echo block_header(lang('instock_record'));
echo $this->block->generate_pagination('instock');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'instock');
echo form_close();
echo $this->block->generate_pagination('instock');
示例#26
0
$mode_collection = array('buy_now' => lang('buy_now'), 'auction' => lang('auction'));
$code_collection = array('' => lang('please_select'));
foreach ($currency_code as $v) {
    $code_collection[$v->code] = $v->code;
}
$mode_collection = array('' => lang('please_select'), 'buy_now' => lang('buy_now'), 'auction' => lang('auction'));
$ebay_collection = array('' => lang('please_select'));
foreach ($ebay_ids as $ebay_id) {
    $ebay_collection[$ebay_id] = $ebay_id;
}
$sku_sale_statuses = array('' => lang('please_select'));
foreach ($sale_statuses as $id => $name) {
    $sku_sale_statuses[$id] = lang($name);
}
$alarm_statuses = array('' => lang('please_select'));
$alarm_statuses[-1] = lang('not_alarm');
$alarm_statuses[0] = lang('not_set');
$alarm_statuses[1] = lang('alarming');
//$active_statuses = array('' => lang('please_select'));
//$active_statuses[0] = lang('out_of_stock');
//$active_statuses[1] = lang('in_stock');
$active_statuses = array('1' => lang('in_stock'), '0' => lang('sale_out_of_stock'));
$filters = array(array('type' => 'input', 'field' => 'sku'), NULL, array('type' => 'dropdown', 'field' => 'sku_sale_status', 'options' => $sku_sale_statuses, 'method' => '='), array('type' => 'dropdown', 'field' => 'active_status', 'options' => $active_statuses, 'method' => '='), array('type' => 'input', 'field' => 'title'), array('type' => 'dropdown', 'field' => 'listing_type', 'options' => $mode_collection, 'method' => '='), array('type' => 'dropdown', 'field' => 'currency', 'options' => $code_collection, 'method' => '='), array('type' => 'input', 'field' => 'price|shipping_price|qty'), NULL, array('type' => 'input', 'field' => 'item_id'), array('type' => 'dropdown', 'field' => 'alarm', 'options' => $alarm_statuses, 'method' => '='), array('type' => 'dropdown', 'field' => 'ebay_id', 'options' => $ebay_collection, 'method' => '='), array('type' => 'input', 'field' => 'updated_date'));
echo block_header(lang('myebay_product_manage'));
echo $this->block->generate_pagination('myebay_list');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'myebay_list');
echo form_close();
echo $this->block->generate_pagination('myebay_list');
    $total_price = 0;
    $purchaser_name = fetch_user_name_by_id($purchaser_id);
    foreach ($sale_statistics as $sku => $qty) {
        if (isset($sku_prices[$sku])) {
            $price = $sku_prices[$sku] * $qty;
        } else {
            $price = $CI->product_model->fetch_cost_by_sku($sku) * $qty;
        }
        $total_price += $price;
        $market_model = get_product_market_model($sku);
        $data[] = array($purchaser_name, $sku, $market_model, $qty, $price);
        $sku_count++;
        $total_qty += $qty;
    }
    $data[] = array($purchaser_name . '(' . lang('statistics') . ')', lang('sku_count') . ': ' . $sku_count, NULL, lang('sale_product_count') . ': ' . $total_qty, lang('total_sale_amount') . ': ' . $total_price);
}
echo block_header(lang('department_purchase_sale_statistics'));
echo '<br/>';
echo form_open(current_url());
echo lang('sale_time') . ': ' . lang('from') . ' ' . block_time_picker('begin_time', $begin_time) . '&nbsp;&nbsp;';
echo lang('to') . ' ' . block_time_picker('end_time', $end_time) . '&nbsp;&nbsp;';
$purchasers = array('0' => lang('all_purchasers'));
foreach ($all_purchasers as $purchaser) {
    $purchasers[$purchaser->u_id] = $purchaser->u_name;
}
echo form_dropdown('purchaser', $purchasers, $current_purchaser);
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
echo block_button($config);
echo form_close();
$sortable = array('default', 'default', 'integer', 'integer');
echo block_js_sortable_table($head, $data, $sortable, "width: 100%;border-collapse: collapse;");
<?php

$this->load->helper('product_permission');
$this->load->model('user_model');
$html = '';
$url = site_url('pi/product/do_import_product_stock_upload');
$html .= '<br/>' . block_form_uploads('userfile', $url, NULL, 'upload_csv_file');
$html .= '&nbsp;' . block_notice_div(lang('batch_import_product_shelf_code_note'));
$html .= '<br/>';
$head = array(lang('upload_file'));
$data = array();
$data[] = array($html);
echo $error;
echo block_header(lang('batch_import_product_shelf_code'));
echo block_table($head, $data);
?>


示例#29
0
    $error = '订单信息有误,请检查订单金额,paypal email, item id等';
    foreach ($unconfirmed_orders as $unconfirmed_order) {
        $input_name = $CI->user_model->fetch_user_login_name_by_id($unconfirmed_order->input_user);
        $data[] = array($unconfirmed_order->item_no, $unconfirmed_order->transaction_id, strpos($unconfirmed_order->message, 'SoapFault exception') !== false ? $error : $unconfirmed_order->message, $input_name, anchor(site_url('shipping/deliver_management/remove_order_from_epacket', array($unconfirmed_order->id)), '从E邮宝中删除该信息'));
    }
    echo block_table($head, $data);
}
if (count($print_no_confirmed)) {
    $data = array();
    $head = array('订单号', 'Paypal交易号', '追踪号');
    $error = '订单信息有误,请检查订单金额,paypal email, item id等';
    foreach ($print_no_confirmed as $print_no_confirmed) {
        $data[] = array($print_no_confirmed->id . "<br>" . $print_no_confirmed->item_no, $print_no_confirmed->transaction_id, $print_no_confirmed->track_number);
    }
    $title = lang('printed_not_confirmed');
    echo block_header($title);
    echo block_table($head, $data);
}
if (count($undownload_ems_orders)) {
    $data = array();
    $head = array('线下EUB未下载订单号', '交易号', '跟踪号', '确认人', '确认时间');
    $error = '订单信息有误,请检查订单金额,paypal email, item id等';
    foreach ($undownload_ems_orders as $undownload_ems_order) {
        $input_name = $CI->user_model->fetch_user_login_name_by_id($undownload_ems_order->input_user);
        $data[] = array($undownload_ems_order->id . "<br>" . $undownload_ems_order->item_no, $undownload_ems_order->transaction_id, $undownload_ems_order->track_number, $undownload_ems_order->check_user, $undownload_ems_order->check_date);
    }
    echo block_table($head, $data);
}
if (count($undownload_orders)) {
    $data = array();
    $head = array('线上EUB未下载订单号', 'Paypal交易号', '跟踪号', '提示信息', '确认人', '确认时间', '操作');
示例#30
0
<?php

$head = array(array('text' => lang('net_name'), 'sort_key' => 'net_name', 'id' => 'product_net_name'), array('text' => lang('sku'), 'sort_key' => 'sku'), array('text' => lang('shipping_code'), 'sort_key' => 'shipping_code'), array('text' => lang('editor'), 'sort_key' => 'u_name'), array('text' => lang('update_date'), 'sort_key' => 'update_date'), lang('options'));
$data = array();
foreach ($netnames as $netname) {
    if ($action == 'edit') {
        $drop_button = $this->block->generate_drop_icon('sale/netname/drop_netname', "{id: {$netname->id}}", TRUE);
        $edit_button = $this->block->generate_edit_link(site_url('sale/netname/add_edit', array($netname->id)), '_blank');
        $url = $drop_button . $edit_button;
    } else {
        //        $url = $this->block->generate_view_link(site_url('sale/netname/view', array($netname->id)));
    }
    $user_names = $this->user_model->get_user_name_by_id($netname->user_id);
    $data[] = array($netname->net_name, $netname->sku ? get_status_image($netname->sku) . $netname->sku : '', $netname->shipping_code, $user_names, $netname->update_date, $url);
}
$shipping_codes = array('' => lang('please_select'));
foreach ($ship_codes as $ship_code) {
    $shipping_codes[$ship_code->code] = $ship_code->code;
}
$filters = array(array('type' => 'input', 'field' => 'net_name'), array('type' => 'input', 'field' => 'sku'), array('type' => 'dropdown', 'field' => 'shipping_code', 'options' => $shipping_codes, 'method' => '='), array('type' => 'input', 'field' => 'u.name'), array('type' => 'input', 'field' => 'update_date'));
echo block_header(lang('product_net_name_manage'));
echo $this->block->generate_pagination('product_net_name');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'product_net_name');
echo form_close();
echo $this->block->generate_pagination('product_net_name');