forked from aslan/applicant-site
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
header('Content-Type: application/json; charset=utf-8');
|
|
|
|
if(isset($_POST['ajx'])) {
|
|
if($_POST['ajx']=='get_fak_info') {
|
|
|
|
}
|
|
if($_POST['ajx']=='get_napr') {
|
|
if(isset($_POST['format'])&&$_POST['format']=='html'){
|
|
$out['html'] = '
|
|
<tr class="border-bottom border-white">
|
|
<td> Технологический факультет 1</td>
|
|
<td> Строительство </td>
|
|
<td class="text-end"> 4 года</td>
|
|
</tr>
|
|
<tr class="border-bottom border-white">
|
|
<td> Технологический факультет 2</td>
|
|
<td> Строительство </td>
|
|
<td class="text-end"> 4 года</td>
|
|
</tr>
|
|
';
|
|
|
|
}
|
|
;
|
|
}
|
|
echo json_encode($out);
|
|
}
|
|
//echo '<table><tr><td>1</td><td>2</td></tr></table>';
|