Log 4868

$employees = #עובדים נוספים#;
$progress = #אחוזי התקדמות של העובד#;
$nameToCheck = “אהרן בלומנטל”;

if (!empty($employees) && strpos($employees, $nameToCheck) !== false) {
$names = explode(“,”, $employees);
$totalProgress = 0;

foreach ($names as $name) {
if ($name === $nameToCheck) {
if (#חזית# == #סעיף# && #סעיף# == #אזור# && #אזור# == #אבן דרך#) {
// Calculate total progress percentage
// Here you would need to retrieve and calculate the progress for each employee
// For demonstration purpose, let’s assume each employee already has a predefined progress value
// You would replace these values with actual progress retrieval logic

// Employee progresses (placeholder values)
$progress1 = 30;
$progress2 = 70;

if (($progress1 + $progress2) === 100) {
return “Yes”;
break;
} else {
return “No”;
break;
}
} else {
return “”;
break;
}
}
}
} else {
return “”;
}

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare