} $anz++; $allOutputs++; } if ($anz == 0) { continue; } $markingElement = Template::WithTemplateFile('include/MarkingTool/MarkingTool.template.html'); $markingElement->bind($markingTool_data); $markingElement->bind(array('selectedSheet' => $selectedSheet)); $markingElement->bind(array('group' => $group)); if (isset($GroupNotificationElements[$group['leader']['id']])) { $markingElement->bind(array('GroupNotificationElements' => $GroupNotificationElements[$group['leader']['id']])); unset($GroupNotificationElements[$group['leader']['id']]); } $w->insert($markingElement); $w->defineForm(basename(__FILE__) . "?cid=" . $cid . "&sid=" . $sid, false, $markingElement); } if ($allOutputs == 0) { $markingElement = Template::WithTemplateFile('include/MarkingTool/MarkingToolEmpty.template.html'); $markingElement->bind($markingTool_data); $w->insert($markingElement); } } else { $markingElement = Template::WithTemplateFile('include/MarkingTool/MarkingToolEmpty.template.html'); $markingElement->bind($markingTool_data); $w->insert($markingElement); } if (!empty($GroupNotificationElements)) { foreach ($GroupNotificationElements as $key => $notifs) { $notifications = array_merge($notifications, $notifs);