';
$taskid = 0;
echo "
";
if (isset($activeid)) {
$btntype = 'control-btn_blue';
$txt = 'К исполнению';
switch ($sort)
{
case '2':
case '3':
case '4': $btntype = 'control-btn_yellow'; $txt = 'В работе'; break;
case '5': $btntype = 'control-btn_green'; $txt = 'Готово'; break;
}
echo "Создать новую задачу
'; echo ""; } } $array_type = []; $array_id = []; foreach ($array_children as $parent_id => $children) { // var_dump($children); if ($activeid == $parent_id) { foreach ($children as $res1) { EchoTask2($res1, $activeid, false); $array_type[] = $res1->type; $array_id[] = $res1->id; } } } $type = implode(',',$array_type); $id = implode(',',$array_id); if (isset($activeid)) { if ($sort == 5) { echo ''; echo ''; } else if ($sort == 1) { echo ""; } } echo '