$global_ms_string = number_format($end_time - $global_start_time, 3, '.', ''); $running_seconds = round($global_ms_string); if ($running_seconds > 60) { $time_running = number_format($running_seconds / 60, 0, '.', '') . ' minute(s)'; } else { $time_running = number_format($running_seconds, 0, '.', '') . ' seconds'; } file_put_contents($this->msLogFile, print_r($stats, 1) . "\n" . 'Import task completed on: ' . date("Y-m-d G:i:s", time()) . ' and took: ' . $time_running . ".\n", FILE_APPEND); } } } if ($this->post['action'] != 'product-import-preview' && $this->get['action'] != 'edit_job') { $this->ms['show_default_form'] = 1; $tmptab = ''; if ($content) { $tmptab .= mslib_befe::bootstrapPanel('Result', $content, 'success'); $content = ''; } $tmptab .= ' <form action="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=admin_import') . '" method="post" enctype="multipart/form-data" name="form1" id="form1" class="form-horizontal blockSubmitForm"> ' . $this->ms['upload_productfeed_form'] . ' <!-- <input name="cid" type="hidden" value="0" /> --> </form>'; $tabs['Upload_To_Root'] = array($this->pi_getLL('import_to_root'), $tmptab); // tabber if ($this->ms['show_default_form']) { // load the jobs templates $str = "SELECT * from tx_multishop_import_jobs where page_uid='" . $this->shop_pid . "' and (type='' or type='products') order by prefix_source_name asc, id desc"; $qry = $GLOBALS['TYPO3_DB']->sql_query($str); $jobs = array(); while (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry)) != false) {
} */ $jsonData_content .= ' </div> </div> <div class="col-md-4"> '; if ($order['customer_comments']) { $jsonData_content .= '<div class="customer_comments">' . mslib_befe::bootstrapPanel($this->pi_getLL('customer_comments'), nl2br($order['customer_comments']), 'info') . '</div>'; } if ($order['order_memo']) { $tmpFooter = ''; if ($order['memo_crdate']) { $tmpFooter .= '<span class="memo_last_modified">' . $this->pi_getLL('order_memo_last_modified') . ': ' . strftime("%a. %x %X", $order['memo_crdate']) . '</span>'; } $jsonData_content .= '<div class="order_memo">' . mslib_befe::bootstrapPanel($this->pi_getLL('order_memo'), $order['order_memo'], 'default', $tmpFooter) . '</div>'; $tmpContent = ''; } $jsonData_content .= ' </div> </div> '; $jsonData_content .= ' <table width="100%" class="table table-bordered"> <thead> <tr> <th class="cellFixed cellNoWrap">' . $this->pi_getLL('products_id') . '</th> <th class="cellFixed cellNoWrap">' . $this->pi_getLL('qty') . '</th> <th class="cellFluid">' . $this->pi_getLL('products_name') . '</th> <th class="cellFixed cellNoWrap">' . $this->pi_getLL('price') . '</th> ' . ($this->ms['MODULES']['ENABLE_DISCOUNT_ON_EDIT_ORDER_PRODUCT'] > 0 ? '<th>' . $this->pi_getLL('discount') . '</th>' : '') . '