$back_button = $this->block->generate_back_icon(site_url('seo/release/manage')); $title = lang('content_detail') . $back_button; echo block_header($title); echo $this->block->generate_table($head, $data, array(), NULL, 'width: 40%; float:left'); $head = array(lang('username'), lang('password'), 'URL', lang('category'), 'language', 'Verification URL', lang('options')); $data = array(); foreach ($resources as $resource) { if (isset($url_count[$resource->url]) && $url_count[$resource->url] > 3) { continue; } $submit_url = site_url('seo/release/save_verifying'); $url = anchor($resource->url, 'Resource URL', array('target' => '_blank', 'title' => $resource->url)); $config_drop = array('name' => 'drop', 'value' => lang('close'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'drop', this);return true;"); $drop_button = form_input($config_drop); $config_save = array('name' => 'save', 'value' => lang('release'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'save', this);return true;"); $save_button = block_button($config_save); $config_input = array('name' => 'validate_url_' . $resource->id, 'id' => 'validate_url_' . $resource->id, 'value' => $resource ? $resource->validate_url : '', 'maxlength' => '200', 'size' => '20'); $data[] = array($resource->username, $resource->password, $url, $resource->cat_name, $resource->language, form_input($config_input) . $save_button, $drop_button); } $attributes = array('id' => 'release_form'); $save_url = site_url('seo/release/save_verifying'); echo form_open($save_url, $attributes); $options = array(); $companys = $this->seo_service_company_model->fetch_all_service_companys(); $options[-1] = lang('all'); foreach ($companys as $company) { $options[$company->id] = $company->name; } $url = site_url_no_key('seo/content_edit/content_detail'); $url_key = site_key('seo/content_edit/content_detail'); $js = "onChange='filter_company_resource(\"{$url}\", \"{$url_key}\", {$content->id}, this.value);'";
foreach ($purchase_users as $purchase_user) { $config = array('name' => 'permissions[]', 'value' => $purchase_user->u_id, 'checked' => in_array($purchase_user->u_id, $permission_array) ? TRUE : FALSE, 'style' => 'margin:10px'); $permission .= form_checkbox($config) . form_label($purchase_user->u_name); } $data[] = array($this->block->generate_required_mark(lang('purchase_permission')), $permission); $title = lang('edit_a_provider'); $title .= $this->block->generate_back_icon(site_url('purchase/provider/management')); $back_button = $this->block->generate_back_icon(site_url('purchase/provider/management')); } else { $title = lang('provider_detail'); $title .= $this->block->generate_back_icon(site_url('purchase/provider/view_list')); $back_button = $this->block->generate_back_icon(site_url('purchase/provider/view_list')); } $option_users = array(); foreach ($purchase_users as $purchase_user) { $option_users[$purchase_user->u_id] = $purchase_user->u_name; } $data[] = array($this->block->generate_required_mark(lang('edit_creator')), form_dropdown('edit_user', $option_users, $provider ? $provider->edit_user : '')); echo block_header($title); $attributes = array('id' => 'edit_provider_form'); echo form_open(site_url('purchase/provider/edit_save'), $attributes); echo $this->block->generate_table($head, $data); if ($action == 'edit') { $url = site_url('purchase/provider/edit_save', array('provider_id' => $provider ? $provider->id : '')); $config = array('name' => 'submit', 'value' => 'Save provider!', 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "this.blur();helper.ajax('{$url}',\$('edit_provider_form').serialize(true), 1);"); $attributes = array('id' => $provider ? $provider->id : '', 'type' => 'button', 'style' => 'margin:10px'); $url = site_url('purchase/provider/provider_sku_manage', array('provider_id' => $provider ? $provider->id : '')); $add_button = anchor($url, lang('manage_sku'), $attributes); echo '<h2>' . block_button($config) . $add_button . $back_button . '</h2>'; } echo form_close();
$total_count = $skus[$sku]; $retrun_rate = price($count / $total_count * 100) . '%'; $all_return += $count; $all_total += $total_count; $data[] = array($sku, $count, $total_count, $retrun_rate); } if ($all_total == 0) { $all_rate = 0; } else { $all_rate = price($all_return / $all_total * 100) . "%"; } $data[] = array(lang('statistics'), $all_return, $all_total, $all_rate); $sortable[] = 'integer'; $sortable[] = 'integer'; $title = lang('received_partial_refunded_statistics') . "-" . lang('by_sku'); echo block_header($title); echo "<br>"; echo form_open(current_url()); echo lang('from') . ' ' . block_time_picker('begin_time', $begin_time) . ' '; echo lang('to') . ' ' . block_time_picker('end_time', $end_time) . ' '; $users = array(); foreach ($input_users as $input_user) { $users[$input_user->input_user] = $input_user->input_user; } $users = array_merge(array(lang('all_input_user')), $users); echo form_dropdown('input_user', $users, $current_user); $config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit'); echo block_button($config); echo form_close(); echo js_sortabl(); echo block_js_sortable_table($head, $data, $sortable, "width: 100%;border-collapse: collapse;");
<?php $head = array('<br/>'); $config_input = array('name' => 'url_search', 'id' => 'url_search', 'maxlength' => '50', 'size' => '50'); $url = site_url('seo/seo_rank/seo_rank_result'); $id = "result"; $config_button = array('name' => 'submit', 'value' => lang('search'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "return search('{$url}', '{$id}');"); $data[] = array('<div align="center">' . lang('search_by_url') . ': ' . form_input($config_input) . ' ' . block_button($config_button) . '<div>'); echo $this->block->generate_table($head, $data); ?> <div id="result"> </div> <script type='text/javascript'> function search(url,id) { var search = $('url_search').value; var params = {'url_search' : search}; this.blur(); helper.update_content(url, params,id, 1); return false; } </script>
echo form_open(); echo $this->block->generate_pagination('order'); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'order'); echo form_close(); echo $this->block->generate_check_all(); $batch_confirm_url = site_url('order/regular_order/make_batch_confirmed'); $batch_confirm_order = lang('batch_confirm_order'); if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') { // $confirm_url = site_url('finance/finance_order/make_batch_confirmed'); $batch_confirm_url = site_url('finance/finance_order/make_batch_confirmed'); $batch_confirm_order = lang('batch_approve'); } $config = array('name' => 'batch_confirm', 'id' => 'batch_confirm', 'value' => $batch_confirm_order, 'type' => 'button', 'onclick' => "batch_confirm_order('{$batch_confirm_url}');"); $batch_confirm = '<div style="float: right; ">'; $batch_confirm .= block_button($config); $batch_confirm .= '</div>'; echo $batch_confirm; echo '<div style="clear:both;"></div>'; echo $this->block->generate_pagination('order'); echo block_notice_div(lang('note') . ': <br/>' . lang('confirm_order_notice')); ?> <script> function remove_item(obj) { if (confirm('Are you sure?')) { $(obj.parentNode).remove(); } }
<?php $head = array(lang('ship_order_no'), lang('sku'), lang('box_contain_number'), lang('processing_status'), lang('storage_code'), lang('created_date'), lang('instock_num'), lang('options')); $data = array(); foreach ($move_stock_lists as $move_stock_list) { if ($move_stock_list->status == 0) { $url = site_url('stock/move_stock/confirm_arrival_received', array($move_stock_list->id)); //$url = site_url('stock/move_stock/confirm_arrival_received'); $config = array('name' => 'name', 'value' => lang('confirm_arrival'), 'type' => 'button', 'onclick' => "confirm_arrival_received(this, '{$url}',{$move_stock_list->id});"); $edit_button = ''; $edit_button .= block_button($config); $config = array('type' => 'input', 'name' => 'received_count_' . $move_stock_list->id, 'id' => 'received_count_' . $move_stock_list->id, 'maxlength' => '50', 'size' => '14', 'value' => $move_stock_list->qty_str); $edit_button .= '<br/>' . lang('instock_num') . ' ' . form_input($config) . '<br/>' . lang('multi_products_seperate_by_comma'); } else { $edit_button = ''; } if ($move_stock_list->status == 0) { $status = lang('in_transit'); } elseif ($move_stock_list->status == 1) { $status = lang('received'); } $data[] = array($move_stock_list->ship_order_no, $move_stock_list->sku_str, $move_stock_list->qty_str, $status, $move_stock_list->storage_code, $move_stock_list->created_date, $move_stock_list->received_count, $edit_button); } $filters = array(array('type' => 'input', 'field' => 'ship_order_no'), array('type' => 'input', 'field' => 'sku_str'), '', $this->block->generate_search_dropdown('status', 'status'), ''); $config = array('filters' => $filters); $title = lang('confirm_arrival'); echo block_header($title); echo $this->block->generate_pagination('move_stock_list'); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters); echo $this->block->generate_pagination('move_stock_list');
$address = lang('address'); $customer_information = <<<CUSTOMER <div style='padding: 10px;'> {$name}: {$order->name}<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}<br/><br/> </div> CUSTOMER; $row[] = $customer_information; $row[] = $order->input_date; $row[] = empty($order->stock_user_id) ? '' : element($order->stock_user_id, $all_stock_user_ids, ''); $config = array('name' => 'confirm_' . $order->id, 'id' => 'confirm_' . $order->id, 'value' => lang('force_change'), 'onclick' => "force_change(this, '{$force_change_url}', {$order->id}, 1);"); $give_back = block_button($config); $row[] = $give_back; $data[] = $row; } $title = lang('wait_for_purchase_order_list'); echo block_header($title); $filters = array(NULL, array('type' => 'input', 'field' => 'item_no'), array('type' => 'input', 'field' => 'sku_str'), array('type' => 'input', 'field' => 'country|state_province|town_city|name')); $filters[] = array('type' => 'date', 'field' => 'input_date', 'method' => 'from_to'); $filters[] = array('type' => 'dropdown', 'field' => 'stock_user_id', 'options' => $all_stock_user_ids, 'default' => $stock_user_id, 'method' => '='); $config = array('filters' => $filters); echo $this->block->generate_pagination('order_list'); echo form_open(); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'order_list'); echo form_close(); echo $this->block->generate_pagination('order_list');
$payment_options[$payment_state->s_id] = lang('not_review'); } elseif ($payment_state->s_name == 'paid_zero') { $payment_options[$payment_state->s_id] = lang('paid_zero'); } elseif ($payment_state->s_name == 'paid_part') { $payment_options[$payment_state->s_id] = lang('paid_part'); } else { $payment_options[$payment_state->s_id] = lang('paid_all'); } } $filters = array(NULL, array('type' => 'input', 'field' => 'purchase_order.item_no'), array('type' => 'input', 'field' => 'purchase_provider.name'), array('type' => 'dropdown', 'field' => 'purchase_order.payment_type', 'options' => $payment_types, 'method' => '='), array(), array(), array('type' => 'input', 'field' => 'purchase_order.item_cost'), array(), array('type' => 'dropdown', 'field' => 'status_map.status_id', 'options' => $payment_options, 'method' => '='), $review_state, array('type' => 'dropdown', 'field' => 'user.id', 'options' => $options, 'method' => '=')); echo $this->block->generate_pagination('finance_pending'); $config = array('filters' => $filters); echo form_open(); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'finance_pending'); $check_all = $this->block->generate_check_all(); echo $check_all; $url_status = site_url('purchase/finance/batch_update_purchase_order_status', array('tag' => 'update_status')); $config_status = array('name' => 'purchase_order_status', 'id' => 'purchase_order_status', 'value' => lang('modification_purchase_order_status'), 'type' => 'button', 'onclick' => "update_purchase_order_status('{$url_status}');"); $url_review = site_url('purchase/finance/batch_update_purchase_order_status', array('tag' => 'batch_review')); $config_review = array('name' => 'batch_review', 'id' => 'batch_review', 'value' => lang('batch_approve'), 'type' => 'button', 'onclick' => "update_purchase_order_status('{$url_review}');"); $print_label = '<span style="padding-left: 20px;">'; $print_label .= block_button($config_status) . block_button($config_review); $print_label .= '</span>'; echo $print_label; echo form_close(); echo $this->block->generate_pagination('finance_pending'); ?>
<?php $head = array(lang('suggest_price'), lang('buyer_shipping_cost'), lang('list_fee'), lang('trade_fee'), lang('pay_fee'), lang('shipping_fee') . "-{$shipping_type_name}", lang('other_cost'), lang('total_cost'), lang('total_profit'), lang('total_profit_rate'), lang('options')); $data = array(); $url = site_url('sale/price/calculate_profit'); $config = array('name' => 'calculate_profit', 'id' => 'calculate_profit', 'value' => lang('calculate_profit'), 'onclick' => "calculate_profit('{$url}');"); $calculate_profit = block_button($config); $config = array('name' => 'suggest_price', 'id' => 'suggest_price', 'value' => price(to_foreigh_currency($currency_code, $suggest_price)), 'maxlength' => '20', 'size' => '8'); $suggest_price_str = "<div style='padding:5px;'>" . $currency_code . ": " . form_input($config) . br() . br() . $default_currency_code . ": " . price($suggest_price) . "</div>"; $total_weight_str = ''; if (isset($total_weight)) { $total_weight_str = "<div style='padding:5px;'>" . lang('total_weight') . ": " . $total_weight . "</div>"; } $data[] = array($suggest_price_str, _get_currency_str($currency_code, $default_currency_code, $buyer_shipping_cost), _get_currency_str($currency_code, $default_currency_code, $list_fee), _get_currency_str($currency_code, $default_currency_code, $trade_fee), _get_currency_str($currency_code, $default_currency_code, $pay_fee), $total_weight_str . _get_currency_str($currency_code, $default_currency_code, $shipping_cost), _get_currency_str($currency_code, $default_currency_code, $other_cost), _get_currency_str($currency_code, $default_currency_code, $total_cost), $default_currency_code . ": " . price($total_profit), price($total_profit_rate, 4), $calculate_profit); echo block_table($head, $data); echo br(); function _get_currency_str($currency_code, $default_currency_code, $price) { return "<div style='padding:5px;'>" . $currency_code . ": " . price(to_foreigh_currency($currency_code, $price)) . br() . br() . $default_currency_code . ": " . price($price) . "</div>"; }
} else { $title = lang('add_a_new_catalog'); } $back_button = $this->block->generate_back_icon(site_url('pi/catalog/manage')); echo block_header($title . $back_button); $attributes = array('id' => 'catalog_form'); echo form_open(site_url('pi/catalog/save_catalog'), $attributes); echo $this->block->generate_table($head, $data); $url = site_url('pi/catalog/save_catalog'); $old_tester = isset($product_catalog) ? $product_catalog->tester_id : ''; $old_seo_user_id = isset($product_catalog) ? $product_catalog->seo_user_id : ''; $lang = lang('check_tester'); $lang_seo = lang('check_seo_user_id'); $config = array('name' => 'submit', 'value' => 'Save product!', 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "check_tester_data('{$url}','{$old_tester}','{$lang}','{$old_seo_user_id}','{$lang_seo}')"); echo form_hidden('catalog_id', isset($product_catalog) ? $product_catalog->id : '-1'); echo block_button($config) . $back_button; $js_array = '$A(['; if (isset($product_catalog)) { $items = explode('>', $product_catalog->path); $count = count($items); for ($i = 0; $i < $count; $i++) { $js_array .= $items[$i]; if ($i < $count - 1) { $js_array .= ','; } } } $js_array .= '])'; ?> <script>
$delay_time = secs_to_readable($shipping_order->delay_times); $which_table = $this->order_check_model->check_exists('order_list', array('id' => $shipping_order->id, 'transaction_id' => $shipping_order->transaction_id)); // $table_order_id = ($which_table > 0) ? 'o_l_' . $shipping_order->id : 'o_l_c_' . $shipping_order->id; $data[] = array($this->block->generate_select_checkbox($shipping_order->id), isset($shipping_order) ? $shipping_order->submit_date : '', $delay_time['days'] . lang('day') . $delay_time['hours'] . lang('hour'), $item_html, $shipping_order->gross, $detal_html, $this->block->generate_div("state_{$shipping_order->id}", empty($shipping_order->state) ? lang('select') : lang($shipping_order->state)), $shipping_order->submit_remark, $this->block->generate_div("answer_remark_{$shipping_order->id}", empty($shipping_order->answer_remark) ? '[edit]' : $shipping_order->answer_remark)); echo $this->block->generate_editor("answer_remark_{$shipping_order->id}", 'shipping_orders_form', $shipping_order_url, "{id: {$shipping_order->id}, type: 'answer_remark'}"); echo $this->block->generate_editor("state_{$shipping_order->id}", 'shipping_orders_form', $shipping_order_url, "{id: {$shipping_order->id}, type: 'state'}", "{$collection}"); } $title = lang('order_check_manage'); $options[''] = lang('all'); $options['have_to_wait_for_the_result'] = lang('have_to_wait_for_the_result'); $options['determined_through_a'] = lang('determined_through_a'); $options['sure_is_lost'] = lang('sure_is_lost'); $options['obtain_compensation'] = lang('obtain_compensation'); $options['not_handled'] = lang('not_handled'); $options['closed'] = lang('closed'); $filters = array(NULL, array('type' => 'input', 'field' => 'submit_date'), NULL, array('type' => 'input', 'field' => 'item_no|track_number'), array('type' => 'input', 'field' => 'gross'), array('type' => 'input', 'field' => 'name|zip_code|contact_phone_number|transaction_id'), array('type' => 'dropdown', 'field' => 'state', 'options' => $options, 'method' => '='), array('type' => 'input', 'field' => 'order_check_list.submit_remark'), array('type' => 'input', 'field' => 'order_check_list.answer_remark')); echo block_header($title); $print_order_check_url = site_url('order/order_check/print_order_check'); echo form_open($print_order_check_url); echo $this->block->generate_pagination('sale_orders_check'); $config = array('filters' => $filters); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'sale_orders_check'); echo $this->block->generate_check_all(); $config = array('name' => 'print_order_check', 'id' => 'print_order_check', 'value' => lang('print_order_check'), 'type' => 'submit'); $print_order_check = '<span style="padding-left: 20px;">'; $print_order_check .= block_button($config); $print_order_check .= '</span>'; echo $print_order_check; echo $this->block->generate_pagination('sale_orders_check'); echo form_close();
$item = array(anchor(site_url('seo/content_edit/add_edit', array('id' => $resource->content_id)), $resource->title), anchor(site_url('seo/resource/add_edit', array('id' => $resource->resource_id)), $resource->url), $resource->con_type, $resource->res_category); $item[] = fetch_user_name_by_id($resource->owner_id); // $item[] = $resource->validate_url; $edit_button = $this->block->generate_edit_link(site_url('seo/release/update_validate_url', array($resource->id))); $validate_limit = string_limiter($resource->validate_url, 0, 20); $item[] = "<a href='{$resource->validate_url}' title='{$resource->validate_url}' target='_blank'>" . $validate_limit . "</a>" . $edit_button; $item[] = $resource->created_date; $item[] = $resource->remark; $item[] = $status; if ($priority > 1 && ($resource->status == '-1' || $resource->status == '0') || $CI->is_super_user() && ($resource->status == '-1' || $resource->status == '0') || $priority > 1 && 'personal' == $tag && ($resource->status == '-1' || $resource->status == '0')) { $url_successful = site_url('seo/release/released_validate', array('successful')); $config_successful = array('name' => 'submit', 'value' => lang('handwork_validate_successful'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "handwork_validate(this, '{$url_successful}', {$resource->id}, 0, false);"); $url_failure = site_url('seo/release/released_validate', array('failure')); $config_failure = array('name' => 'submit', 'value' => lang('handwork_validate_failure'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "handwork_validate(this, '{$url_failure}', {$resource->id}, 0, true);"); // echo '<h2>'.block_button($config).'</h2>'; $item[] = block_button($config_successful) . br() . block_button($config_failure); } else { $item[] = ''; } $data[] = $item; } $users = $this->user_model->fetch_users_by_system_code('seo'); $user_options[''] = lang('all'); foreach ($users as $user) { $user_options[$user->u_id] = $user->u_name; } $con_types = $this->seo_model->fetch_all_content_type(); $con_type_options[''] = lang('all'); foreach ($con_types as $con_type) { $con_type_options[$con_type->name] = $con_type->name; }
<?php $url = site_url('admin/crontab/crontab_add_row'); $add_button = $this->block->generate_add_icon($url); $head = array(lang('on'), lang('job'), lang('description'), lang('creator'), lang('created_date'), lang('options') . $add_button); $data = array(); $crontab_url = site_url('admin/crontab/verify_crontab'); foreach ($crontabresult as $show_result) { $drop_button = $this->block->generate_drop_icon('admin/crontab/crontab_delete', "{id: {$show_result->id}}", TRUE); $data[] = array($this->block->generate_div("on_{$show_result->id}", empty($show_result->on) ? '[edit]' : $show_result->on), $this->block->generate_div("job_{$show_result->id}", empty($show_result->job) ? '[edit]' : $show_result->job), $this->block->generate_div("description_{$show_result->id}", empty($show_result->description) ? '[edit]' : $show_result->description), fetch_user_name_by_id($show_result->creator), $show_result->created_date, $drop_button); echo $this->block->generate_editor("on_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'on'}"); echo $this->block->generate_editor("job_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'job'}"); echo block_editor("description_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'description'}"); } $title = lang('admin_crontab'); echo block_header($title); echo $this->block->generate_table($head, $data); $activate_crontab_url = site_url('admin/crontab/activate_crontab'); $view_crontab_url = site_url('admin/crontab/view_crontab_list'); $config = array('name' => 'activate_crontab', 'id' => 'activate_crontab', 'value' => lang('activate_crontab_again'), 'type' => 'button', 'onclick' => "helper.ajax('{$activate_crontab_url}', {}, 1);"); $activate_crontab = '<div style="float: right; ">'; echo br(); $activate_crontab .= block_button($config); $attributes = "onclick=\"helper.update_content('{$view_crontab_url}', {}, 'crontab_list_div'); return false;\""; $activate_crontab .= ' ' . anchor(current_url(), lang('view_crontab_list'), $attributes); $activate_crontab .= '</div>'; echo $activate_crontab; echo '<div style="clear:both;"></div>'; echo '<div id="crontab_list_div" style="display:none;"></div>';
if (isset($action) && $action == 'cost_view_list') { $filters[5] = array('type' => 'input', 'field' => 'shipping_cost'); $filters[] = array('type' => 'date', 'field' => 'cost_date', 'method' => 'from_to'); $title_html = block_header(lang('view_costs')); } echo $title_html; echo $this->block->generate_pagination('accounting_cost'); $config = array('filters' => $filters); echo form_open(); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'accounting_cost'); $check_all = $this->block->generate_check_all(); echo $check_all; $accounting_url = site_url('finance/accounting_cost/save_accounting_costs'); $config = array('name' => 'accounting_costs', 'id' => 'accounting_costs', 'value' => lang('accounting_costs'), 'type' => 'button', 'onclick' => "accounting_cost('{$accounting_url}');"); $print_label = '<span style="padding-left: 20px;">'; $print_label .= block_button($config); $print_label .= '</span>'; echo $print_label; echo form_close(); $attributes = array('id' => 'download_form'); $accounting_url_download = site_url('finance/accounting_cost/download_order_info'); echo "<div style='clear:both; margin-top:-25px;float:right;'>"; echo form_open($accounting_url_download, $attributes); $config = array('name' => 'order_ids_str', 'id' => 'order_ids_str', 'value' => '', 'type' => 'hidden'); $config_download = array('name' => 'download', 'id' => 'download', 'value' => lang('download'), 'type' => 'submit', 'onClick' => "accounting_cost_download();"); echo block_button($config_download); echo form_input($config); echo form_close(); echo "</div>"; echo $this->block->generate_pagination('accounting_cost');
$duty = $this->user_model->get_user_name_by_id($record->duty); } else { $duty = '#'; } $row = array(); $row[] = $record->sku; $row[] = $this->block->generate_image($product_image_url); $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);
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $head = array('<br/>'); $url = site_url('order/setting/modification_order_status'); $config_input = array('name' => 'item_no', 'id' => 'item_no', 'maxlength' => '50', 'size' => '50', 'onkeydown' => "if(event.keyCode==13) { update_order_status('{$url}'); }"); $config_button = array('name' => 'submit', 'value' => lang('modification'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "update_order_status('{$url}');"); //echo '<pre>'; // //var_dump($this->block->generate_search_dropdown('order_status', 'order_status')); //echo '</pre>'; $html = lang('item_number'); $text = lang('clue_for_update_status'); $data[] = array('<div align="center">' . $html . ':' . form_input($config_input) . ' ' . block_button($config_button) . '<div>'); echo "<div id='search_div'>"; echo block_header(lang('modification_order_status')); echo $this->block->generate_table($head, $data); echo block_notice_div($text); echo "</div>"; ?> <script> function update_order_status(url) { var item_no = $('item_no').value; var params = {'item_no' : item_no}; this.blur(); if(confirm('此操作会直接更改数据库数据,请确认订单的后续流程并没有完成'))
$options = array('0755-83998006-8020' => '0755-83998006-8020', '0755-83998006-8021' => '0755-83998006-8021'); $data[] = array($this->block->generate_required_mark(lang('collect_phone')), form_dropdown('collect_phone', $options, isset($apply_obj) ? $apply_obj->collect_phone : '1')); $config = array('name' => 'abroad_stock_remark', 'id' => 'abroad_stock_remark', 'value' => isset($apply_obj) ? $apply_obj->remark : '', 'maxlength' => '200', 'size' => '80'); $data[] = array(lang('abroad_stock_remark'), form_input($config)); echo "<div id='in_store_list_div'>"; echo block_notice_div($today_all_orders_detail); echo '<br/>'; $title = lang('bfe_in_store_apply'); echo block_header($title); $attributes = array('id' => 'in_store_list_info_form'); $url = site_url('stock/abroad_stock/in_store_case'); echo form_open($url, $attributes); echo form_hidden('list_id', isset($apply_obj) ? $apply_obj->id : '-1'); echo $this->block->generate_table($head, $data); $config = array('name' => 'submit', 'value' => lang('next'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$url}',\$('in_store_list_info_form').serialize(true), 'in_store_list_div',1);"); echo '<h2>' . block_button($config) . '</h2>'; echo form_close(); echo '</div>'; ?> <script> window.onbeforeunload=function () { if( ! confirm("<?php echo lang('before_refurbish_info'); ?> ")) { return false;
echo block_header($title); $attributes = array('id' => 'in_store_case_info_form'); $url = site_url('stock/abroad_stock/in_store_product'); echo form_open($url, $attributes); echo form_hidden('list_id', $list_id); echo form_hidden('case_id', isset($case_obj) ? $case_obj->id : '-1'); echo $this->block->generate_table($head, $data); $config = array('name' => 'submit', 'value' => lang('next'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$url}', \$('in_store_case_info_form').serialize(true), 'in_store_list_div', 1);"); $back_url = site_url('stock/abroad_stock/in_store_apply_page', array('list_id' => $list_id, 'status' => 0)); $config_back = array('name' => 'submit_back', 'value' => lang('renext'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$back_url}', null, 'in_store_list_div',1);"); if (isset($page_status) && $page_status == 'close_case_back_button') { $html_button = ''; } else { $html_button = block_button($config_back); } echo '<h2>' . $html_button . block_button($config) . '</h2>'; echo form_close(); ?> <script> window.onbeforeunload=function () { if( ! confirm("<?php echo lang('before_refurbish_info'); ?> ")) { return false; } }
$state_options = array('' => lang('all'), '0' => lang('pending'), '1' => lang('reviewed')); $company_options = array(); $companys = $this->seo_service_company_model->fetch_all_service_companys(); $company_options[''] = lang('all'); foreach ($companys as $company) { $company_options[$company->name] = $company->name; } $filters = array(array('type' => 'dropdown', 'field' => 'seo_service_company.name', 'options' => $company_options, 'method' => '='), array('type' => 'input', 'field' => 'url'), array('type' => 'dropdown', 'field' => 'seo_resource.category', 'options' => $options, 'method' => '='), NULL, array('type' => 'dropdown', 'field' => 'language', 'options' => $language_options, 'method' => '='), array('type' => 'input', 'field' => 'root_pr'), array('type' => 'input', 'field' => 'current_pr'), array('type' => 'input', 'field' => 'seo_resource.email'), array('type' => 'input', 'field' => 'user.name'), array('type' => 'input', 'field' => 'username'), array('type' => 'input', 'field' => 'seo_resource.password'), array('type' => 'input', 'field' => 'update_date'), array('type' => 'dropdown', 'field' => 'seo_resource.integral_state', 'options' => $state_options, 'method' => '=')); if ('edit' == $action) { if ($priority > 1 || $CI->is_super_user()) { array_unshift($filters, NULL); } } echo $this->block->generate_pagination('seo_resource'); $config = array('filters' => $filters); echo form_open(); echo $this->block->generate_reset_search($config); echo $this->block->generate_table($head, $data, $filters, 'seo_resource'); if ('edit' == $action) { if ($priority > 1 || $CI->is_super_user()) { echo $this->block->generate_check_all(); $integral_url = site_url('seo/resource/batch_add_edit_resource_integral'); $config = array('name' => 'batch_review_interal', 'id' => 'batch_review_interal', 'value' => lang('batch_review_interal'), 'type' => 'button', 'onclick' => "batch_to_add_resource_interal('{$integral_url}', 'resource');"); $print_label = '<span style="padding-left: 20px;">'; $print_label .= block_button($config); $print_label .= '</span>'; echo $print_label; } } echo form_close(); echo $this->block->generate_pagination('seo_resource');
备注信息: {$list_info->remark} <br/><br/> <h4> 【入库装箱信息】 </h4> {$box_and_product_html} INFO; echo block_notice_div($list_info_html); echo '<br/>'; echo block_header(lang('in_store_apply_reslut')); $again_completed = site_url('stock/abroad_stock/in_store_apply_page', array('list_id' => $list_id, 'status' => 1)); $config_completed = array('name' => 'submit', 'value' => lang('completed'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$again_completed}', null, 'in_store_list_div',1);"); $url = site_url('stock/abroad_stock/in_store_case', array('again_list_id' => $list_id, 'case_no' => $case_no)); $config_again = array('name' => 'submit', 'value' => lang('again_add_box'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$url}', null, 'in_store_list_div',1);"); $back_url = site_url('stock/abroad_stock/in_store_product', array('case_id' => $case_id, 'tag' => 'product_back')); $config_back = array('name' => 'submit_back', 'value' => lang('renext'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "clear_div();helper.update_content('{$back_url}', null, 'in_store_list_div',1);"); echo '<h2 align="center">' . block_button($config_back) . block_button($config_again) . block_button($config_completed) . '</h2>'; echo block_notice_div(lang('in_store_apply_notice')); ?> <script> window.onbeforeunload=function () { if( ! confirm("<?php echo lang('before_refurbish_info'); ?> ")) { return false; } }
$tmpl = array('table_open' => '<table class="tableborder" cellspacing="1" cellpadding="0" border="0" style="width: 49%; float: left;">', 'heading_row_start' => '<tr class="heading">', 'heading_row_end' => '</tr>', 'heading_cell_start' => '<th>', 'heading_cell_end' => '</th>', 'row_start' => '<tr class="td-odd">', 'row_end' => '</tr>', 'cell_start' => '<td>', 'cell_end' => '</td>', 'row_alt_start' => '<tr class="td">', 'row_alt_end' => '</tr>', 'cell_alt_start' => '<td>', 'cell_alt_end' => '</td>', 'table_close' => '</table>'); $this->table->set_template($tmpl); $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')));
$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(' ', 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; echo '<div style="clear:both;"></div>'; echo $this->block->generate_pagination('product_apply');
<?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;
$row[] = $result; $row[] = $rate->created; $row[] = $rate->nick; $comment_type_ = 'comment_type_'; $give_back = ''; if (in_array($rate->result, array('bad', 'bad_verify'))) { $give_back .= form_dropdown('comment_type_' . $rate->id, $options, $rate->bad_type, 'id="' . $comment_type_ . $rate->id . '"'); $give_back .= br(); $config = array('name' => 'remark_' . $rate->id, 'id' => 'remark_' . $rate->id, 'value' => $rate->review, 'rows' => '2', 'cols' => '14'); $give_back .= form_textarea($config); $config = array('name' => 'confirm_' . $rate->id, 'id' => 'confirm_' . $rate->id, 'value' => lang('confirm_review'), 'onclick' => "confirm_review('{$confirm_review_url}', {$rate->id});"); if ($role > 1 || $CI->is_super_user()) { $give_back .= '<br/>' . block_button($config); } else { if ($rate->result == 'bad') { $give_back .= '<br/>' . block_button($config); } } } $row[] = $give_back; $data[] = $row; } $results = array('' => lang('all'), 'good' => lang('good'), 'neutral' => lang('neutral'), 'bad' => lang('bad'), 'good_verify' => lang('good_verify'), 'neutral_verify' => lang('neutral_verify'), 'bad_verify' => lang('bad_verify')); $roles = array('' => lang('all'), 'buyer' => lang('buyer'), 'seller' => lang('seller')); $filters = array(array('type' => 'input', 'field' => 'sku'), array('type' => 'input', 'field' => 'item_title'), array('type' => 'input', 'field' => 'item_price'), array('type' => 'input', 'field' => 'content'), array('type' => 'dropdown', 'field' => 'result', 'options' => $results, 'method' => '='), array('type' => 'input', 'field' => 'created'), array('type' => 'input', 'field' => 'nick')); $config = array('filters' => $filters); $title = lang('comment_list'); echo block_header($title); echo $this->block->generate_pagination('rate'); echo form_open(); echo $this->block->generate_reset_search($config);
</td> <td style="width: 75%; padding-left: 10px;" class="tableCellTwo"> <input type="text" maxlength="50" value="" size="20" name="username" class="input" style="width: 80%;"> </td> </tr> <tr> <td align="right" class="tableCellTwo"><b><?php echo lang('password'); ?> </b></td> <td style="padding-left: 10px;" class="tableCellTwo"> <input type="password" maxlength="32" value="" size="20" name="password" class="input" style="width: 80%;"> </td> </tr><tr> <td class="tableCellOne buttonRow"> </td> <td style="padding-right:65px;" align="right" class="tableCellOne buttonRow"> <?php echo block_button(array('type' => 'submit', 'value' => lang('login'), 'name' => 'submit', 'style' => "padding: 3px;")); ?> </tr> </tbody></table> </form> </div>
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(); } else {
$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(); echo $this->block->generate_pagination('return_order_auditing'); echo block_notice_div(lang('batch_return_order_notice') . '<br/>' . lang('refund_duty_notice'));
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $head = array('<br/>'); $url = site_url('qt/recommend/recommend_list'); $config_input = array('name' => 'search', 'id' => 'search', 'maxlength' => '50', 'size' => '50', 'onkeydown' => "if(event.keyCode==13) { search('{$url}','{$tag}'); }"); $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) {
<?php $head = array('<br/>'); $config_input = array('name' => 'search', 'id' => 'search', 'maxlength' => '50', 'size' => '50'); $url = site_url('order/order_check/order_check_list'); $config_button = array('name' => 'submit', 'value' => lang('search'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "search('{$url}');"); $options = array('item_no' => lang('item_no'), 'name' => lang('name'), 'transaction_id' => lang('transaction_id'), 'buyer_id' => lang('buyer_id'), 'item_id_str' => lang('item_id_str')); $data[] = array('<div align="center">' . lang('order_check_search') . ': ' . form_input($config_input) . ' ' . form_dropdown('type', $options, lang('item_no'), "id='type'") . block_button($config_button) . '<div>'); echo $this->block->generate_table($head, $data); ?> <script> function search(url) { var search = $('search').value; var type = $('type').value; var params = {'search' : search, 'type' : type}; this.blur(); helper.update_content(url, params); } </script>
$title = lang('email_advanced_search'); echo block_header($title); $attributes = array('id' => 'email_search'); $url = site_url('seo/email_search/email_search_result'); $error = lang('one_value_required'); echo form_open($url, $attributes); echo $this->block->generate_table($head, $data); echo '<br/>'; echo block_header(lang('email_exclude_search')); echo $this->block->generate_table($head, $data_b); echo '<br/>'; $config = array('id' => 'search', 'name' => 'search', 'value' => lang('search'), 'type' => 'submit', 'onclick' => "return check_submit('{$error}', this.form)"); echo block_button($config); $config_sent = array('name' => 'sent_email', 'id' => 'sent_email', 'value' => lang('sent_to_shiqi'), 'type' => 'submit', 'onclick' => 'return check_sent()'); if (isset($check_value) && $check_value == 1 && isset($nums) && $nums > 0) { echo block_button($config_sent); } echo form_close(); echo $this->block->generate_ac('skus', array('product_basic', 'sku')); echo $this->block->generate_ac('country', array('country_code', 'name_en')); echo "<br><br><br>"; echo "<div id ='result'>"; if (isset($nums) && $nums > 0) { $title = lang('email_matches') . $nums . lang('num'); $remark = block_header($title); if (isset($sent_value) && $sent_value == 1) { $remark = block_header(lang('sent_success')); } echo $remark; } else { if (isset($nums) && $nums == 0) {