"; echo "jbId : " . $jbId . "
"; echo "csId : " . $csId . "
"; echo "ecoZipcode : " . $ecoZipcode . "
"; echo "jbOrdertime : " . $jbOrdertime . "
"; echo "jbTimedFilter : " . $jbTimedFilter . "
"; echo "hourTimeUnits : " . $hourTimeUnits . "
"; echo "ecoNeededTimeUnits : " . $ecoNeededTimeUnits . "
"; echo "sortSequence : " . $sortSequence . "
"; echo "ecoServices : " . $ecoServices . "
"; echo "ecoIsInstallationJob : " . ($ecoIsInstallationJob ? "YES" : "NO") . "
"; echo "ecoWeight : " . $ecoWeight . "
"; echo "ecoPositions : " . $ecoPositions . "
"; echo "maxLimitOfRows : " . $maxLimitOfRows . "
"; echo "deliveryTimeValue : " . $deliveryTimeValue . "
"; echo "ecoWeekdayArray : "; print_r($ecoWeekdayArray); echo "
"; echo "ecoDayTimeArray : "; print_r($ecoDayTimeArray); echo "
"; echo "daytimeReadonlyArray : "; print_r($daytimeReadonlyArray); echo "
"; echo "Uhrzeitenpaare : "; print_r($ecoDayClockTimes); echo "
"; echo "jbIdChildren : "; print_r($jbIdChildren); echo "
"; echo "jbIdChildrenLen : " . $jbIdChildrenLen . "
"; echo "ecoHasWholeDayRequest : " . ($ecoHasWholeDayRequest ? "WD YES" : "WD NO") . "
"; echo "fromDateRange : " . "NOT_NEEDED_HERE" . "
"; echo "toDateRange : " . "NOT_NEEDED_HERE" . "
"; echo "whereClause : " . "NOT_NEEDED_HERE" . "
"; echo "orderByClause : " . "NOT_NEEDED_HERE" . "
"; echo "Wochentage : "; print_r($weekDayNames); echo "
"; echo "checkTotalweight : " . $checkTotalweight . "
"; echo "ecoSrvpId : " . $ecoSrvpId . "
"; echo "ecoSrvzId : " . $ecoSrvzId . "
"; if ($maskDispositionServicezoneCapacityEnabled == "1") : echo "Max. Kapazitäten : "; print_r($ecoCapacityMax); echo "
"; echo "Akt. Kapazitäten des gesamten Tages : "; print_r($ecoCapacityOccupied); echo "
"; endif; if ($combinedJob) : echo "ecoSummatedNeededTimeUnits : " . $ecoSummatedNeededTimeUnits . "
"; echo "ecoChildrenServices : " . $ecoChildrenServices . "
"; else : echo "combined_job: NO
"; endif; echo "dispositionJbStatusMode : " . $dispositionJbStatusMode . "
"; echo "maskDisplayWholeDayAvoidingSingleDaytimes : " . $maskDisplayWholeDayAvoidingSingleDaytimes . "
"; echo "ecoIsSpecialServiceJob : " . $ecoIsSpecialServiceJob . "
"; echo "dispositionAllocationMode : " . $dispositionAllocationMode . "
"; echo "maskDispositionMultipleRowsDisabled : " . $maskDispositionMultipleRowsDisabled . "
"; echo "maskDispositionAppointmentsEnabled : " . $maskDispositionAppointmentsEnabled . "
"; echo "maskDispositionDaytimeForInstallationsDisabled : " . $maskDispositionDaytimeForInstallationsDisabled . "
"; endif; // DEBUG (END) // Headline of the list $outWidth = " width=\"100\" "; $output .= ""; $output .= ""; for ($i = 0; $i < $maskDisplayedArrayLen; $i++) : if ($maskDisplayedArray[$i] == 0) : $output .= "" . getLngt("Wochentag") . " " . getLngt("Datum") . " "; endif; if ($maskDisplayedArray[$i] == 1) : $output .= "" . getLngt("Fahrzeug") . " "; // SID endif; if ($maskDisplayedArray[$i] == 2) : $output .= "" . getLngt("Tageszeit") . " "; // Namen der Tageszeiten endif; if ($maskDisplayedArray[$i] == 3) : $output .= "" . getLngt("Verf. Zeiteinheiten") . " "; endif; if ($maskDisplayedArray[$i] == 4) : $output .= "" . getLngt("Startzeit") . " "; endif; if ($maskDisplayedArray[$i] == 5) : $output .= "" . getLngt("Service") . " "; endif; if ($maskDisplayedArray[$i] == 6) : $output .= "" . getLngt("Tageszeiten") . " "; // Nummern der Tageszeiten endif; // .... if ($maskDisplayedArray[$i] == 10) : $output .= "" . getLngt("Tageszeit") . " "; // Uhrzeiten der Tageszeiten endif; if ($maskDisplayedArray[$i] == 11) : $output .= "" . " " . " "; // Uhrzeiten der Tageszeiten endif; endfor; $output .= ""; // Get parameter for displaying "whole day" link after "day" has changed [="0" <=> default] or after "day AND vehicle" [="1"] have changed only $wholeDayEcoLinkDisplayMode = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_JOB_DISPLAY_MODE", $hq_id); if ($wholeDayEcoLinkDisplayMode == "") : $wholeDayEcoLinkDisplayMode = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_JOB_DISPLAY_MODE", "0"); endif; if ($wholeDayEcoLinkDisplayMode == "") : $wholeDayEcoLinkDisplayMode = "0"; endif; // Get MASK parameter for value to be inserted in attribute "colspan" for "whole-day"-jobs // (e.g. "5,0" <=> 5 cols before phrase "Ganztägig" and 0 cols after phrase and befor link "Reservierung") $wholeDayEcoColspanValues = "2,0"; $parWholeDayEcoColspanValues = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_COLSPAN_VALUES", $hq_id); if ($parWholeDayEcoColspanValues == "") : $parWholeDayEcoColspanValues = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_COLSPAN_VALUES", "0"); endif; if ($parWholeDayEcoColspanValues != "") : $wholeDayEcoColspanValues = $parWholeDayEcoColspanValues; endif; $wholeDayEcoColspanArray = spliti(",", $wholeDayEcoColspanValues); // Get MASK parameter for JAVASCRIPT setting for function "reserveEco" or "reserveMultiEco" $wholeDayEcoJsReserveParameter = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_JS_RESERVE_PAR", $hq_id); if ($wholeDayEcoJsReserveParameter == "") : $wholeDayEcoJsReserveParameter = getParameterValue("0", "MASK_DISPOSITION_WHOLE_DAY_JS_RESERVE_PAR", "0"); endif; if ($wholeDayEcoJsReserveParameter == "") : $wholeDayEcoJsReserveParameter = "1"; endif; if ($tmpArrayLen > 0) : $remMasterArray = array(); $remDay = ""; $remDaytime = ""; $remVehicle = ""; $firstRowWillBeDisplayed = true; $displayDayInRow = true; $wholeDayEcoReserveLink = ""; $displayWholeDayLinkIfatLeastOneDaytimeLinkDoesExist = false; // The whole day link has to appear only if at least one daytime link does exist for ($i = 0; $i < $tmpArrayLen; $i++) : $tmpArray2 = $tmpArray[$i]; $tmpArray2Len = count($tmpArray2); // Get week day of the suggested date $weekDay = date("w", mktime(0, 0, 0, substr($tmpArray2[0],5,2), substr($tmpArray2[0],8,2), substr($tmpArray2[0],0,4))); // 0 = Sunday, 1 = Monday, etc. if ($weekDay == 0) : $weekDay = "7"; endif; // Reformat to 1 = Monday, ... , 7 = Sunday // Check for week day is matching the selection if (!(array_search($weekDay, $ecoWeekdayArray) === FALSE)) : if ($ecoHasWholeDayRequest && $maskDisplayWholeDayAvoidingSingleDaytimes == "1") : // **** DISPLAYING WHOLE DAY LINKS ONLY **************************************************************************************************** $displayDayInRow = false; if ($remDay != $tmpArray2[0]) : $displayDayInRow = true; endif; // Day changed? if (true || $dispositionUniqueDisplayArray[0] == "1") : $tmpCmpLeft = $remDay; $tmpCmpRight = $tmpArray2[0]; endif; // Daytime changed? if ($dispositionUniqueDisplayArray[1] == "1") : $tmpCmpLeft .= $remDaytime; $tmpCmpRight .= $tmpArray2[6]; endif; // Vehicle changed? if ($dispositionUniqueDisplayArray[2] == "1") : $tmpCmpLeft .= $remVehicle; $tmpCmpRight .= $tmpArray2[7]; endif; // if ($tmpCmpLeft != $tmpCmpRight) : if (!in_array($tmpCmpRight, $remMasterArray)) : $output .= ""; if ($displayDayInRow) : $output .= ""; // Name of the week day $output .= ""; else : $output .= ""; endif; for ($j = 1; $j < $maskDisplayedArrayLen; $j++) : if ($maskDisplayedArray[$j] == 11) : // Coloured background for service or delivery $cellBgCol = "#88BB88"; $cellText = getLngt("LI"); if (((int)$tmpArray2[$maskDisplayedArray[$j]] & 2) == 2) : $cellBgCol = "#55BB55"; $cellText = getLngt("MO"); endif; $output .= ""; elseif ($maskDisplayedArray[$j] == 10) : // if ($wholeDayEcoColspanArray[0] != "" && is_numeric($wholeDayEcoColspanArray[0]) && $wholeDayEcoColspanArray[0] > 0) : // $output .= ""; // endif; $output .= ""; // if ($wholeDayEcoColspanArray[1] != "" && is_numeric($wholeDayEcoColspanArray[1]) && $wholeDayEcoColspanArray[1] > 0) : // $output .= ""; // endif; else : $output .= ""; endif; endfor; // If the current data come from an stored job in the database then use following link to move this job on the timeline regarding the selected suggested date // if ($jbId != "" && (!$ecoIsSpecialServiceJob || ($ecoIsSpecialServiceJob && ($tmpArray2[6] == "0" || $tmpArray2[6] == "1")))) : if ($jbId != "") : if ($combinedJob) : // Set string with starttimes for ALL jobs // (e.g. 5 jobs [1001-1005] 12_03, 12_05, 13_04, 16_03, 17_01 => "1001;12;03;2014-01-17 12:30:00;2#1002;12;05;2014-01-17 12:50:00;2#1003;13;04;2014-01-17 13:40:00;3#1004;16;03;2014-01-17 16:30:00;12#1005;17;01;2014-01-17 17:10:00;3") $tmpStartHour = intval($tmpArray2[8]); $tmpStartHourUnit = intval($tmpArray2[9]); $remNeededTimeUnits = $ecoNeededTimeUnits; // The following job has to use the needed timeunits of the job before to get the start time !!!! $combinedJobStr = $jbId . ";" .$tmpStartHour . ";" . $tmpStartHourUnit . ";" . $tmpArray2[0] . " " . $tmpArray2[4] . ":00" . ";" . $ecoNeededTimeUnits; // Init with main job for ($k = 0; $k < $jbIdChildrenLen; $k++) : // Add timeunits of the job before to increase $tmpStartHour and $tmpStartHourUnit for current (child) job for ($l = 0; $l < $remNeededTimeUnits; $l++) : $tmpStartHourUnit++; if ($tmpStartHourUnit == $hourTimeUnits) : $tmpStartHour++; $tmpStartHourUnit = 0; endif; endfor; // Get timeunits of the current (child) job $tmpTimeUnitsNeeded = $ecoChildrenTimeunitsArray[$jbIdChildren[$k]]; if ($tmpTimeUnitsNeeded != "" && is_numeric($tmpTimeUnitsNeeded)) : $combinedJobStr .= "#" . $jbIdChildren[$k] . ";" . pad(strval($tmpStartHour),2) . ";" . pad(strval($tmpStartHourUnit),2) . ";" . $tmpArray2[0] . " " . pad(strval($tmpStartHour),2) . ":" . pad(strval(floor($tmpStartHourUnit * (60 / $hourTimeUnits))), 2) . ":00" . ";" . $tmpTimeUnitsNeeded; $remNeededTimeUnits = $tmpTimeUnitsNeeded; endif; endfor; $ecoReserveLink = ""; else : $ecoNewOrdertime = $tmpArray2[0] . " " . $tmpArray2[4] . ":00"; // Needed to set the new ordertime to the existing job $ecoReserveLink = ""; endif; $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", "1", $ecoReserveLink); // Link is "whole day" /* if ($wholeDayEcoWillBeSetInFDS == "1") : $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", "0", $ecoReserveLink); // Link is NOT "whole day" else : $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", "1", $ecoReserveLink); // Link is "whole day" endif; */ if ($displayStatusDaytimeForInstallations) : $output .= $tmpEcoReserveLink; endif; // Set whole day link if eco should be set on the FDS. Take care to take the earliest (daytime) interval being available. if ($wholeDayEcoReserveLink == "") : $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", $wholeDayEcoJsReserveParameter, $ecoReserveLink); // Link is "whole day" $wholeDayEcoReserveLink = $tmpEcoReserveLink; endif; endif; $output .= ""; $remDay = $tmpArray2[0]; $remDaytime = $tmpArray2[6]; $remVehicle = $tmpArray2[7]; array_push($remMasterArray, $tmpCmpRight); endif; else : // **** STANDARD DISPLAYING **************************************************************************************************************** // Display link for whole-day if ($dispositionAllocationMode == "0") : $displayDayInRow = false; endif; if ($firstRowWillBeDisplayed) : $displayDayInRow = true; $firstRowWillBeDisplayed = false; endif; if ($dispositionAllocationMode == "0") : $tmpDisplayWholeDayLink = ($remDay != "" && $tmpArray2[0] != "" && $remDay != $tmpArray2[0]); // Day changed? if ($wholeDayEcoLinkDisplayMode == "1") : $tmpDisplayWholeDayLink = $tmpDisplayWholeDayLink && (true); // Vehicle or other changed....? endif; if ($tmpDisplayWholeDayLink) : if ($ecoHasWholeDayRequest) : $output .= ""; // Whole day reservation link if ($displayWholeDayLinkIfatLeastOneDaytimeLinkDoesExist) : $output .= ""; if ($wholeDayEcoColspanArray[0] != "" && is_numeric($wholeDayEcoColspanArray[0]) && $wholeDayEcoColspanArray[0] > 0) : $output .= ""; endif; $output .= ""; if ($wholeDayEcoColspanArray[1] != "" && is_numeric($wholeDayEcoColspanArray[1]) && $wholeDayEcoColspanArray[1] > 0) : $output .= ""; endif; if ($jbId != "") : if ($wholeDayEcoWillBeSetInFDS == "1" && $wholeDayEcoReserveLink != "") : $output .= $wholeDayEcoReserveLink; $wholeDayEcoReserveLink = ""; else : $output .= ""; endif; endif; $output .= ""; $displayWholeDayLinkIfatLeastOneDaytimeLinkDoesExist = false; endif; $output .= ""; endif; $displayDayInRow = true; endif; endif; // Check for mode hiding the row $displayRow = true; if ($dispositionAllocationMode == "0") : if ($maskDispositionMultipleRowsDisabled == "1") : $displayRow = false; // Day changed? if (true || $dispositionUniqueDisplayArray[0] == "1") : $tmpCmpLeft = $remDay; $tmpCmpRight = $tmpArray2[0]; endif; // Daytime changed? if ($dispositionUniqueDisplayArray[1] == "1") : $tmpCmpLeft .= $remDaytime; $tmpCmpRight .= $tmpArray2[6]; endif; // Vehicle changed? if ($dispositionUniqueDisplayArray[2] == "1") : $tmpCmpLeft .= $remVehicle; $tmpCmpRight .= $tmpArray2[7]; endif; // if ($remDay . $remDaytime != $tmpArray2[0] . $tmpArray2[6]) : // if ($tmpCmpLeft != $tmpCmpRight) : if (!in_array($tmpCmpRight, $remMasterArray)) : $remDay = $tmpArray2[0]; $remDaytime = $tmpArray2[6]; $remVehicle = $tmpArray2[7]; array_push($remMasterArray, $tmpCmpRight); $displayRow = true; endif; endif; endif; // Check for servicezone capacities if enabled if ($displayRow && $maskDispositionServicezoneCapacityEnabled == "1") : if ( ( ($ecoCapacityMax[$weekDay][$tmpArray2[6]] - $ecoCapacityOccupied[$weekDay][$tmpArray2[6]]) <= 0) || ( ($ecoCapacityMax[$weekDay]["999"] - $ecoCapacityOccupied[$weekDay]["999"]) <= 0)) : $displayRow = false; endif; endif; if ($displayRow) : $output .= ""; if (!(array_search(0, $maskDisplayedArray) === false)) : if ($displayDayInRow) : $output .= ""; // Name of the week day $output .= ""; else : $output .= ""; endif; endif; for ($j = 1; $j < $maskDisplayedArrayLen; $j++) : if ($maskDisplayedArray[$j] == 11) : // Coloured background for service or delivery $cellBgCol = "#88BB88"; $cellText = getLngt("LI"); if (((int)$tmpArray2[$maskDisplayedArray[$j]] & 2) == 2) : $cellBgCol = "#55BB55"; $cellText = getLngt("MO"); endif; $output .= ""; else : $output .= ""; endif; endfor; // If the current data come from an stored job in the database then use following link to move this job on the timeline regarding the selected suggested date // if ($jbId != "" && (!$ecoIsSpecialServiceJob || ($ecoIsSpecialServiceJob && ($tmpArray2[6] == "0" || $tmpArray2[6] == "1")))) : if ($jbId) : if ($combinedJob) : // Set string with starttimes for ALL jobs // (e.g. 5 jobs [1001-1005] 12_03, 12_05, 13_04, 16_03, 17_01 => "1001;12;03;2014-01-17 12:30:00;2#1002;12;05;2014-01-17 12:50:00;2#1003;13;04;2014-01-17 13:40:00;3#1004;16;03;2014-01-17 16:30:00;12#1005;17;01;2014-01-17 17:10:00;3") $tmpStartHour = intval($tmpArray2[8]); $tmpStartHourUnit = intval($tmpArray2[9]); $remNeededTimeUnits = $ecoNeededTimeUnits; // The following job has to use the needed timeunits of the job before to get the start time !!!! $combinedJobStr = $jbId . ";" .$tmpStartHour . ";" . $tmpStartHourUnit . ";" . $tmpArray2[0] . " " . $tmpArray2[4] . ":00" . ";" . $ecoNeededTimeUnits; // Init with main job for ($k = 0; $k < $jbIdChildrenLen; $k++) : // Add timeunits of the job before to increase $tmpStartHour and $tmpStartHourUnit for current (child) job for ($l = 0; $l < $remNeededTimeUnits; $l++) : $tmpStartHourUnit++; if ($tmpStartHourUnit == $hourTimeUnits) : $tmpStartHour++; $tmpStartHourUnit = 0; endif; endfor; // Get timeunits of the current (child) job $tmpTimeUnitsNeeded = $ecoChildrenTimeunitsArray[$jbIdChildren[$k]]; if ($tmpTimeUnitsNeeded != "" && is_numeric($tmpTimeUnitsNeeded)) : $combinedJobStr .= "#" . $jbIdChildren[$k] . ";" . pad(strval($tmpStartHour),2) . ";" . pad(strval($tmpStartHourUnit),2) . ";" . $tmpArray2[0] . " " . pad(strval($tmpStartHour),2) . ":" . pad(strval(floor($tmpStartHourUnit * (60 / $hourTimeUnits))), 2) . ":00" . ";" . $tmpTimeUnitsNeeded; $remNeededTimeUnits = $tmpTimeUnitsNeeded; endif; endfor; $ecoReserveLink = ""; else : $ecoNewOrdertime = $tmpArray2[0] . " " . $tmpArray2[4] . ":00"; // Needed to set the new ordertime to the existing job $ecoReserveLink = ""; endif; $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", "0", $ecoReserveLink); // Link is NOT "whole day" if ($displayStatusDaytimeForInstallations) : $output .= $tmpEcoReserveLink; endif; // Set whole day link if eco should be set on the FDS. Take care to take the earliest (daytime) interval being available. if ($wholeDayEcoReserveLink == "") : $tmpEcoReserveLink = str_replace("WHOLE_DAY_MAKRO", $wholeDayEcoJsReserveParameter, $ecoReserveLink); // Link is "whole day" $wholeDayEcoReserveLink = $tmpEcoReserveLink; endif; endif; $output .= ""; $displayWholeDayLinkIfatLeastOneDaytimeLinkDoesExist = true; endif; // Check for $displayRow endif; // Display mode "whole day only" or "standard mode" endif; endfor; if ($dispositionAllocationMode == "0" && $ecoHasWholeDayRequest) : if ($maskDisplayWholeDayAvoidingSingleDaytimes != "1") : // Display link for whole-day for the last day displayed in the list $output .= ""; if ($wholeDayEcoColspanArray[0] != "" && is_numeric($wholeDayEcoColspanArray[0]) && $wholeDayEcoColspanArray[0] > 0) : $output .= ""; endif; $output .= ""; if ($wholeDayEcoColspanArray[1] != "" && is_numeric($wholeDayEcoColspanArray[1]) && $wholeDayEcoColspanArray[1] > 0) : $output .= ""; endif; if ($jbId != "") : if ($wholeDayEcoWillBeSetInFDS == "1" && $wholeDayEcoReserveLink != "") : $output .= $wholeDayEcoReserveLink; $wholeDayEcoReserveLink = ""; else : $output .= ""; endif; endif; $output .= ""; endif; endif; else : // $output .= ""; $output .= ""; endif; $output .= "
" . $weekDayNames[$weekDay - 1] . "" . $tmpArray2[$maskDisplayedArray[0]] . ""; $output .= "
 " . $cellText . " 
"; $output .= "
 " . getLngt("Ganztägig") . " " . $tmpArray2[$maskDisplayedArray[$j]] . "" . "" . getLngt("Reservierung") . "" . "" . "" . getLngt("Reservierung") . "" . "
 " . getLngt("Ganztägig") . " " . "" . getLngt("Reservierung") . "" . "
" . $weekDayNames[$weekDay - 1] . "" . $tmpArray2[$maskDisplayedArray[0]] . ""; $output .= "
 " . $cellText . " 
"; $output .= "
" . $tmpArray2[$maskDisplayedArray[$j]] . "" . "" . getLngt("Reservierung") . "" . "" . "" . getLngt("Reservierung") . "" . "
 " . getLngt("Ganztägig") . " " . "" . getLngt("Reservierung") . "" . "
" . getLngt("In dem angegebenen Zeitraum sind keine passenden Termine verfügbar!") . "
" . getLngt("Überschreitung der Zeiteinheiten - bitte kontaktieren Sie die Disposition!") . "
"; else : if ($tmpArray == "ERR:NO_ZONE") : $output .= "" . getLngt("Die PLZ des Kunden liegt außerhalb der Liefergebiete!") . ""; // Error message else : $output .= "" . $tmpArray . ""; // Error message endif; endif; else : // if ($jbId == "") : if ($csId == "") : $errMsgArray[] = getLngt("Der Kunde (z.B. Markt) ist nicht spezifiziert!"); endif; if ($ecoZipcode == "") : $errMsgArray[] = getLngt("Die PLZ wurde nicht definiert!"); endif; if ($ecoNeededTimeUnits == "") : $errMsgArray[] = getLngt("Die benötigte Auftragsdauer wurde nicht definiert!"); endif; // endif; endif; // Check for any error message if (count($errMsgArray) > 0) : $output .= "" . implode("
", $errMsgArray) . "
"; // Error message endif; /* Zone zipcodes IKEA Schnelsen 0 = 20253 // Kerngebiet 1 = 22946 // Sek.-gebiet Nord 2 = 21039 // Sek.-gebiet Süd 3 = 24239 // Restgebiet Nord 4 = 19273 // Restgebiet Süd $tmpCrvhSid = getFieldValueFromId("couriervehicle", "crvh_id", $row["crvh_id"], "crvh_sid"); $tmpDaytime = getFieldValueFromClause("metatype","mt_value","mt_type = 'day_time' AND mt_objtype = 'cs' AND mt_objid = '" . $csId . "' AND mt_sort = '" . $row["vhat_daytime"] . "'"); $tmpStarttime = substr($row["vhat_starttimeunit"],0,2) . ":" . pad(strval(floor(intval(substr($row["vhat_starttimeunit"],3,2)) * (60 / $hourTimeUnits))), 2); $retArray[] = array($row["vha_day"], $tmpCrvhSid, $tmpDaytime, $row["vhat_timeunits"], $tmpStarttime, $row["vhat_daytime"], $row["crvh_id"], substr($row["vhat_starttimeunit"],0,2), substr($row["vhat_starttimeunit"],3,2)); SELECT vha.vha_day, vha.crvh_id, vhat.vhat_daytime, vhat.vhat_timeunits, vhat.vhat_starttimeunit FROM vehicleavailability AS vha, vehicleavailabilitytimeunits AS vhat WHERE vha.vha_id = vhat.vha_id AND vhat.cs_id = '1' AND vhat.vhat_srvz_no = '0' AND vha.vha_day = '2013-08-16' AND vhat.vhat_daytime = '0' AND vhat.vhat_timeunits >= '7' LIMIT 0,3 SELECT crvh.crvh_sid, crvh.crvh_service, vha.vha_day, vhat.vhat_srvz_no, vhat.vhat_daytime, vhat.vhat_timeunits, vhat.vhat_starttimeunit FROM vehicleavailability AS vha, vehicleavailabilitytimeunits AS vhat , couriervehicle AS crvh WHERE crvh.crvh_id = vha.crvh_id AND vha.vha_id = vhat.vha_id AND vhat.cs_id = '1' ORDER BY crvh.crvh_sid, vha.vha_day, vhat.vhat_srvz_no, vhat.vhat_daytime */ // * Output only * // Javascript-function as template only for categorie depending on date-filter (not status-filter) $onLoadCall = "initForm();"; // displayStatusMessage(); $onLoadCall .= "calendarMonthInit('appointment', " . $year_from . ", " . $month_from . ", true);"; $js_date = ""; $js_date .= "\n"; $js_date .= "\n"; $js_date .= "\n"; // Date ranges $categoryFilter = "von:\n"; $categoryFilter .= "\n"; $categoryFilter .= "\n"; $categoryFilter .= "\n"; $categoryFilter .= "  bis:\n"; $categoryFilter .= "\n"; $categoryFilter .= "\n"; $categoryFilter .= "\n"; ?> <?php echo $pageTitel ?>
>
" . getLngt("Bevorzugter Zeitraum") . " :    " . $categoryFilter; ?>
" . getLngt("Bevorzugte Wochentage") . " :    " . addCheckboxesFromTable("ecoWeekdayArray","metatype","mt_sort","LEFT(mt_value,2)","mt_sort","mt_type = 'cal_week_days' AND mt_objtype = '' AND mt_objid = '0'",$ecoWeekdayArray, "    ") ?>
" . getLngt("Bevorzugte Tageszeit") . " :    " . addCheckboxesFromTable("ecoDayTimeArray","metatype","mt_sort","mt_value","mt_sort","mt_type = 'day_time' AND mt_objtype = 'cs' AND mt_objid = '" . $csId . "'",$ecoDayTimeArray, "    ", $daytimeReadonlyArray) ?>
" . getLngt("Anzeigepriorität nach") . " :    " ?> > >
" . getLngt("Auftrag") . " :  " . $jbId . "    [" . $jbOrdertime2 . "]" . "    [" . $tmpService . "]" . "    [" . $ecoSummatedNeededTimeUnits . " ". getLngt("ZE") . "]"; ?>