$content .= '<tr><td width="200">Total products taken per run:</td><td>' . $total_pids_taken_per_run . ' products</td></tr>'; $content .= '<tr><td width="200">Upload status:</td><td>' . $upload_status . '</td></tr>'; $content .= '<tr><td width="200">Process already running:</td><td>' . $process_runned . ' times</td></tr>'; $content .= '<tr><td width="200">Available time left:</td><td>' . (SP_NECKERMANN_CATUPLOAD_HOUREND - date('H')) . ' hours</td></tr>'; $content .= '</table>'; } else { $content .= '<p>No preparation or progress yet.</p>'; if (date('H') >= SP_NECKERMANN_CATUPLOAD_HOURSTART) { $content .= '<h3 style="color:red;">Please contact Administrator to run manually!</h3>'; } } } $content .= '</div><br/>'; } } $zeroStock = $class_jc->retrieveReportedStockZero($jng_sp_id); $totalZeroStock = count($zeroStock); if ($totalZeroStock > 0) { $content .= '<div style="clear:both;"> </div>'; $content .= '<h3 class="pro-title">There are ' . $totalZeroStock . ' product(s) with Reported Stock 0 (zero)</h3>'; $content .= '<div class="pro-detail">'; $a_template = 'href="?open=elements-stock&products_id=%s" title="View Elements Used"'; foreach ($zeroStock as $c) { $a = sprintf($a_template, $c['products_id']); $style = $totalZeroStock > 20 ? 'style="display:none;"' : ''; $content .= '<div class="pro-thumb">'; //$content .= '<div class="thumb" '.$style.'><a '.$a.'>'.webImage($c['products_image'],'120','120').'</a></div>'; $content .= '<div class="thumb" ' . $style . '>' . webImage($c['products_image'], '120', '120') . '</div>'; $content .= '<div><a href="?open=product-detail&products_id=' . $c['products_id'] . '" target="_blank">' . $c['products_id'] . '</a></div>'; $content .= '<div>' . $c['article_number'] . '</div>'; //$content .= '<div style="width:120px;"><a '.$a.'>View Elements</a></div>';