План проведения методических мероприятий ГАУДПО МО «ИРО» на 2021 год
На сайте ГАУДПО МО«ИРО» в разделе «Методические мероприятия» размещены план проведения и аннотации методических мероприятий, запланированных для проведения на сентябрь-декабрь 2020 года.
| 2022 год | 2021 год | 2020 год | |
{source}
<?php
$ch = curl_init();//инициализация дескриптора запроса
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8'); //задание кодировки запроса
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //возврат результата
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_POSTFIELDS);
curl_setopt($ch, CURLOPT_URL, 'http://ez.iro51.ru/activity/activity/table-api?year=2021');
$curl_response = curl_exec($ch); //выполнение запроса
$model = json_decode($curl_response, true); //парсинг результатов


curl_close($ch);
$act_arr=[1=>'Вебинары',
2=>'«Круглые столы»',
3=>'Мастер-класс',
4=>'Семинары',
5=>'Тренинги',
6=>'ВКС'];
$table = '';
for ($i=1;$i<=20;$i++) {
//Вебинар
if($i===1) {
$table .= '<p>{tab title="'.$act_arr[$i].'" positioning="top"}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (!empty($item['act_period'])) {
$table .= $item['theme'];
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
//Круглый стол
if($i===2) {
$table .= '<p>{tab '.$act_arr[$i].'}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (empty($act_link)) {
$table .= $item['theme'];
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
}
if (!empty($item['act_period'])) {
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
//Мастерклас
if($i===3) {
$table .= '<p>{tab '.$act_arr[$i].'}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (empty($act_link)) {
$table .= $item['theme'];
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
}
if (!empty($item['act_period'])) {
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
//Семинары
if($i===4) {
$table .= '<p>{tab '.$act_arr[$i].'}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (empty($act_link)) {
$table .= $item['theme'];
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
}
if (!empty($item['act_period'])) {
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
//Тренинг
if($i===5) {
$table .= '<p>{tab '.$act_arr[$i].'}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (empty($act_link)) {
$table .= $item['theme'];
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
}
if (!empty($item['act_period'])) {
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
//ВКС
if($i===6) {
$table .= '<p>{tab '.$act_arr[$i].'}</p>';
$table .= '<table class="zebra" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>Контингент</strong></td>
<td style="text-align: center;"><strong>Тема</strong></td>
<td style="text-align: center;"><strong>Сроки</strong></td>
<td style="text-align: center;"><strong>Ответственные</strong></td>
<td style="text-align: center;"><strong>Анонс<br />Итоги</strong></td>
</tr>
<tr>
<td colspan="5" style="text-align: center;"><strong>'.$act_arr[$i].'</strong></td>
</tr>';
foreach ($model as $item) {
if ($item['type_id'] == $i) {
$act_link='https://ez.iro51.ru/activity/registration/'.$item['type'].'/'.$item['id'];
$an_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['an_id'];
$it_link='https://iro51.ru/index.php?option=com_content&view=article&id='.$item['it_id'];
$sdate = new DateTime($item['act_date']);
$stime = new DateTime($item['act_time']);
$table .= '<tr>
<td>' . $item['audienc'] . '</td><td>';
if (empty($act_link)) {
$table .= $item['theme'];
} else {
$table .= '<a target="_blank" href="' . $act_link . '">' . $item['theme'] . '</a>';
}
if (!empty($item['act_period'])) {
$table .= '</td><td style="text-align: center;">' . $item['act_period'] . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
} else {
$table .= '</td><td style="text-align: center;">' . $sdate->format('d.m.Y') . ',<br />' . $stime->format('H:i') . '</td>
<td>' . $item['curators'] . '</td>
<td style="text-align: center;">';
}
if (empty($item['an_id'])) {
$table .= 'Анонс';
} else {
$table .= '<a target="_blank" href="' . $an_link . '">Анонс</a>';
}
$table .= '<br />';
if (empty($item['it_id'])) {
$table .= 'Итоги';
} else {
$table .= '<a target="_blank" href="' . $it_link . '">Итоги</a>';
}
$table .= '</td></tr>';
}
}
$table .= '</tbody>
</table>';
}
}
$table.='<p>{/tabs}</p>';
echo $table;
?>
{/source}
