コード例 #1
0
     }
     if ($mp_value < $month_now) {
         $levelling_orders_forecast[$mp] = $no_values;
         $levelling_target_forecast[$mp] = $no_values;
     } else {
         $levelling_orders_forecast[$mp] = 0;
         $levelling_target_forecast[$mp] = 0;
     }
 }
 foreach ($pids as $pid) {
     $p = new Product($pid);
     $fc_base_daily = $p->getForecastDailyBaseValue();
     foreach ($months as $mp => $mtext) {
         $sales_real[$mp] += $p->getSoldMonthlyExcludingPromotionOrders($year, $mp);
         if (intval($mp) >= date('n')) {
             $sales_forecast[$mp] += $fc->calcForecastMonthly($fc_base_daily, $mp);
             $levelling_orders_forecast[$mp] += $fc->calcLevellingSplit($fc_base_daily, $mp);
             $levelling_target_forecast[$mp] += $fc->calcLevellingTarget($fc_base_daily, $mp);
         }
     }
 }
 $result = '<div class="draw-table">';
 $result .= '<table border="0" cellpadding="0" cellspacing="0">';
 //THEAD
 $result .= '<thead>';
 $result .= '<tr>';
 $result .= '<th class="w250">Description</th>';
 foreach ($months as $mp => $mtext) {
     $result .= '<th class="w080">' . $mtext . '</th>';
 }
 $result .= '';