$activeid. $acttname
$ttdesc
"; if ($main) { $mytt = Tasktype::Find($activeid); $letter = $mytt->letter; if ($letter) $lettername = "[Секция $letter]"; echo "$lettername
"; echo "Типы проекта с данным типом задач:
"; foreach ($mytt->getProjecttypes() as $ptype) { $actionid = $ptype->id; $acname = $ptype->name; echo ""; } echo ""; } // switch ($letter) // { // case "А": $selectedA = "selected"; break; // case "Б": $selectedB = "selected"; break; // case "В": $selectedV = "selected"; break; // case "Г": $selectedG = "selected"; break; // } // echo "Буква секции: // "; if (!$main) { EchoCheckPoints($activeid); } $confirmtype = $ttype['confirmtype']; $confirmtypename = getConfirmTypeName($confirmtype); $zone = $ttype['zone_required_id']; echo "
Способ подтверждения задачи: $confirmtypename
";
echo "
Выполнить в зоне: $zone (".GetZoneName($zone).")
";
$time = intval($ttype['time_to_complete_minutes']);
echo "
Время на выполнение: $time минут
";
if ($main) {
echo "
Добавленные типы команд:
";
$num = 0;
foreach ($subs as $typeid)
{
$type = GrabTasktype($typeid);
$tid = $type['id'];
$taction = $type['ProjectType'];
$num++;
if ($type['main_task'])
echo "[Главная] ";
echo "$num. " . $type['name'] . " [" . $type['id'] . "]";
echo '
';
}
echo "
Активные задачи$addcmd:
";
$tasks = GrabTasksByType($activeid);
foreach ($tasks as $task)
{
$type = $task['type'];
$id = $task['id'];
$ttname = GetTaskNameAndDesc($type)[0];
//$sort = $task['status'];
$sort = GetTaskStatus($id);
if ($task['parent_id'] == '0')
{
echo "".$id.". $ttname
";
}
else
{
echo "" . $task['parent_id'].". $acttname
";
}
}
echo "
'; if ($x == 'mp4' || $x == 'jpg' || $x == 'jpeg' || $x == 'pdf' || $x == 'avi') { echo ""; // echo "$file"; } echo '
'; } echo '
'; } echo "
"; echo '