Exemplo n.º 1
0
<?php

$html = '';
$url = site_url('seo/resource/do_upload');
$export_url = site_url('seo/resource/download_model');
//echo block_export_button(lang('export_3days_item_no'), $export_url);
$html .= '<br/>' . block_form_uploads('userfile', $url, NULL, 'upload_csv_file') . block_export_button(lang('download_model'), $export_url);
$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('resource_csv_upload'));
echo block_table($head, $data);
    }
}
$item[] = $total_delay_orders_count;
$item[] = $total_delay_days_count;
$item[] = $total_delay_days_count > 0 ? price($total_delay_orders_count / $total_delay_days_count) : 0;
$item[] = $total_sku_count;
$data[] = $item;
//
$item = array(lang('statistics'));
$total_count = 0;
$total_weight = 0;
$qty = 0;
$sortable[] = 'default';
foreach ($days as $day) {
    $sortable[] = 'integer';
}
echo block_header(lang('personal_delay_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' => 'split_date', 'checked' => $split_date, 'value' => 1);
echo form_checkbox($config) . form_label(lang('split_date')) . '&nbsp;';
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
echo block_button($config);
$export_url = site_url('purchase/statistics/download_personal_delay_item_no');
echo block_export_button(lang('export_3days_item_no'), $export_url);
echo form_close();
echo block_js_sortable_table($head, $data, $sortable, "width: 100%;border-collapse: collapse;");
$note = lang('note') . ': ' . '<br/>' . lang('purchase_statistics_note') . '<br/>' . lang('total_delay_days_note') . '<br/>' . lang('total_orders_note') . '<br/>' . lang('purchase_delay_rate_note') . '<br/>' . lang('purchase_dealay_products_count_note') . '<br/>';
echo block_notice_div($note);