123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?php
- PutEnv("NLS_LANG=RUSSIAN_CIS.CL8MSWIN1251");
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- // always modified
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- // HTTP/1.1
- header("Cache-Control: post-check=0, pre-check=0", false);
- // HTTP/1.0
- header('Cache-Control: no-cache, no-store, must-revalidate');
- header('Pragma: no-cache');
- header('Expires: 0');
- ?>
- <?php
- //if (isset($_POST["tabn"])) $mynzk=$_POST["tabn"]; else $mynzk="-1";
- if (isset($_POST["c_fam"])) $c_fam = trim($_POST["c_fam"]);
- else $c_fam = "empty";
- if (isset($_POST["tabn"])) $tabn = trim($_POST["tabn"]);
- else $tabn = "-1";
- $f = file_get_contents("http://172.16.0.55/api/get_information_rating_student.php?tabn=" . urlencode($tabn) . "&c_fam=" . urlencode($c_fam));
- $json = json_decode($f);
- if (isset($json->error))
- exit($json->message);
- //echo count($json->tables);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="0" />
- <link rel="stylesheet" href="css/get_info.css">
- </head>
- <body>
- <?php
- foreach ($json->tables as $table) :
- if ($table->table_row == null) continue;
- ?>
- <div style="text-align: center;"><span class='clh2'>Кабардино-Балкарский государственный университет им. Х.М. Бербекова</span>
- <span class='clh1'>ПРОТОКОЛ</span>
- <span class='clh2'>текущей успеваемости студента по балльно-рейтинговой системе</span>
- </div>
- <span class='clh3'><?= $table->faculty ?></span>
- <span class='clh3'><b><?= $table->specialty ?></b></span>
- <span class='clh3'>
- <?= $table->course ?> курс <?= $table->group ?> группа <?= $table->sem ?> семестр <?= $table->teacher_year ?> учебный год
- </span>
- <span class='clh3'><b><?= $json->fio ?></b></span>
- <table width=100% border=0>
- <tr>
- <td>
- <table width=100% class='clTableBold'>
- <tr>
- <td class='clTableCols' rowspan=2 align=center>№</td>
- <td class='clTableCols' style='width: 400px' rowspan=2 align=center>Дисциплина</td>
- <td class='clTableCols' style='width: 400px' rowspan=2 align=center>Преподаватель</td>
- <td class='clTableCols' colspan=5 align=center>1 контрольная точка</td>
- <td class='clTableCols' colspan=5 align=center>2 контрольная точка</td>
- <td class='clTableCols' colspan=5 align=center>3 контрольная точка</td>
- <td class='clTableCols' rowspan=2 align=center>Сумма<br>итог.</td>
- <td class='clTableCols' rowspan=2 align=center>Прош.<br>сем.</td>
- <td class='clTableCols' rowspan=2 align=center>Зачет</td>
- <td class='clTableCols' rowspan=2 align=center>Экзам.</td>
- <td class='clTableCols' rowspan=2 align=center>Отраб.</td>
- <td class='clTableCols' rowspan=2 align=center>Пересдача</td>
- <td class='clTableCols' rowspan=2 align=center>Общий<br>итог.</td>
- <td class='clTableCols' rowspan=2 align=center>Оценка</td>
- </tr>
- <tr>
- <td class='clTableCols' align=center>П</td>
- <td class='clTableCols' align=center>К</td>
- <td class='clTableCols' align=center>Т</td>
- <td class='clTableCols' align=center>И</td>
- <td class='clTableCols' align=center>∑</td>
- <td class='clTableCols' align=center>П</td>
- <td class='clTableCols' align=center>К</td>
- <td class='clTableCols' align=center>Т</td>
- <td class='clTableCols' align=center>И</td>
- <td class='clTableCols' align=center>∑</td>
- <td class='clTableCols' align=center>П</td>
- <td class='clTableCols' align=center>К</td>
- <td class='clTableCols' align=center>Т</td>
- <td class='clTableCols' align=center>И</td>
- <td class='clTableCols' align=center>∑</td>
- </tr>
- <?php
- $index = 0;
- foreach ($table->table_row as $rating) :
- ?>
- <tr class=''>
- <td class='cltd' align=center><?= $rating->index ?></td>
- <td class='cltd'>
- <?= $rating->uplan_name ?> <br /><b><?= $rating->final ?></b>
- </td>
- <td class='cltd'><?= $rating->teacher ?></td>
- <td class='cltd' align=center><b><?= $rating->first_point->p ?></b></td>
- <td class='cltd' align=center><b><?= $rating->first_point->k ?></b></td>
- <td class='cltd' align=center><b><?= $rating->first_point->t ?></b></td>
- <td class='cltd' align=center><b><?= $rating->first_point->i ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->first_point->summ ?></b></td>
- <td class='cltd' align=center><b><?= $rating->second_point->p ?></b></td>
- <td class='cltd' align=center><b><?= $rating->second_point->k ?></b></td>
- <td class='cltd' align=center><b><?= $rating->second_point->t ?></b></td>
- <td class='cltd' align=center><b><?= $rating->second_point->i ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->second_point->summ ?></b></td>
- <td class='cltd' align=center><b><?= $rating->third_point->p ?></b></td>
- <td class='cltd' align=center><b><?= $rating->third_point->k ?></b></td>
- <td class='cltd' align=center><b><?= $rating->third_point->t ?></b></td>
- <td class='cltd' align=center><b><?= $rating->third_point->i ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->third_point->summ ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->summ_point ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->bps ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->offset ?></b></td>
- <td class='cltd' align=center><b><?= $rating->exam ?></b></td>
- <td class='cltdb' align=center><b><?= $rating->working_off ?></b></td>
- <td class='cltdb' align=center><?= $rating->rb_bo ?></td>
- <td class='cltdb' align=center><?= $rating->total ?></td>
- <td class='cltdb' align=center><?= $rating->total_str ?></td>
- </tr>
- <?php endforeach ?>
- </table>
- </td>
- </tr>
- </table>
- <span class='clh4'>
- П - посещаемость <br /> К - коллоквиум <br /> Т - тестирование <br /> И - иные формы контроля<br>
- </span>
- <div class="page-break"></div>
- <?php endforeach ?>
- </body>
- </html>
|