{$reflesh_page}<span id="return" style="text-decoration:underline; cursor:pointer;" onClick="location.reload();">{$return}</span> </div> </center> HTML; } else { $head = array(lang('is_register'), lang('track_number'), lang('weight'), lang('remark'), lang('product_information'), lang('customer_information'), lang('options')); $row = array(); $row[] = form_dropdown('is_register', $local_shipping, $order->is_register, 'id = is_register'); $config = array('name' => 'track_number_0', 'id' => 'track_number_0', 'value' => '', 'size' => '10'); $row[] = "<div id='track_number_div'>" . form_input($config) . "</div>"; $gift = lang('mouse_pad_gift'); if (strpos($order->descript, $gift) !== FALSE) { $shipping_weight += 22; } $config = array('name' => 'weight_0', 'id' => 'weight_0', 'value' => $shipping_weight, 'size' => '10'); $row[] = "<div id='weight_div'>" . form_input($config) . block_add_icon_only("add_packet('{$base_url}');") . "</div>"; $config = array('name' => 'shipping_remark', 'id' => 'shipping_remark', 'rows' => '2', 'cols' => '14', 'value' => $order->descript); $row[] = form_textarea($config); $skus = explode(',', $order->sku_str); $qties = explode(',', $order->qty_str); $count = count($skus); $item_sku_html = ''; for ($i = 0; $i < $count; $i++) { $item_sku_html .= '<div style="margin: 5px;">'; $item_sku_html .= $skus[$i] . '【' . get_product_name($skus[$i]) . '】'; $item_sku_html .= ' Qty: ' . $qties[$i]; $item_sku_html .= '</div>'; } $item_sku_html .= '</div>'; $product_info = <<<PRODUCT <div style='padding: 10px;'>
<?php $head = array(lang('product_name'), lang('picture'), lang('single_product_total_weight'), lang('10_to_99_price'), lang('length'), lang('width'), lang('height'), lang('required_profit')); $base_url = base_url(); $data = array(); $fetch_product_info_url = site_url('sale/price/fetch_product_information'); $fetch_product_information = anchor('#', lang('fetch_product_information'), array('onclick' => "return fetch_product_information('{$fetch_product_info_url}');")); echo '<div id="on_pi_manage_show">'; $config = array('name' => 'sku_0', 'id' => 'sku_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $product_html = ' SKU: ' . form_input($config); $config = array('name' => 'qty_0', 'id' => 'qty_0', 'value' => '1', 'maxlength' => '20', 'size' => '4'); $product_html .= ' QTY: ' . form_input($config); $url = site_url('sale/price/make_pi'); $config = array('name' => 'make_pi', 'id' => 'make_pi', 'value' => lang('make_pi'), 'onclick' => "make_pi('{$url}');"); $product_html .= block_add_icon_only("add_product('{$base_url}', this)") . nbs() . nbs() . $fetch_product_information . nbs(4) . block_button($config); $config = array('name' => 'weight_0', 'id' => 'weight_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $weight = form_input($config) . "<div id='weight_more_0'></div>"; $config = array('name' => 'price_0', 'id' => 'price_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $price = form_input($config); $config = array('name' => 'length_0', 'id' => 'length_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $length = form_input($config); $config = array('name' => 'width_0', 'id' => 'width_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $width = form_input($config); $config = array('name' => 'height_0', 'id' => 'height_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $height = form_input($config); $config = array('name' => 'profit_0', 'id' => 'profit_0', 'value' => '', 'maxlength' => '20', 'size' => '8'); $profit = form_input($config); $image_url = "<img src='' id='image_0' height='80' style='display: none;'/>"; $data[] = array($product_html, $image_url, $weight, $price, $length, $width, $height, $profit); $config = array('name' => 'counter', 'id' => 'counter', 'value' => 1, 'type' => 'hidden'); echo form_input($config);