Exemple #1
0
function delete_sp_and_edit_student($var)
{
    $f = explode('_', $var);
    $spid = $_POST['listid_' . $f[1] . '_' . $f[2]];
    $stid = $_POST['0'];
    save_student();
    $details = db_retrieve_study_prog_and_student_details($spid, $stid);
    show_remove_form(array('Study program "' . $details[0] . '" from student "' . $details[1] . '"'), $spid, array('stid' => $stid));
    $st = db_retrieve_student_byID($stid);
    addedit_student($st);
}
Exemple #2
0
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
<table width="1200px"><tbody><tr><td><img src="images/logo_uk.jpg" width="150px" /></td>
<td style=" text-align: center; "><b>UNIVERZITA KOMENSKÉHO V BRATISLAVE</b><br />
       Fakulta matematiky, fyziky a informatiky<br />
       Mlynská dolina, 84148 Bratislava<br />
       Študijné oddelenie<br />
       tel.: 02/65427086, 65426720, fax: 02/65425882</td>
<td style=" text-align: right; "><img src="images/logo_fmfi.jpg" width="150px" /></td></tr></tbody></table><br />
<table width="1200px"><tbody><tr><td>Meno studenta: 
<?php 
    $tv = db_retrieve_travel_byID($id, TRUE);
    $id_student = $tv[5];
    $id_program = $tv[6];
    logmsg("s: {$id_student} p: {$id_program}");
    $stsp = db_retrieve_study_prog_and_student_details($id_program, $id_student);
    $agr = db_retrieve_agreement_byID($tv[2]);
    $courses = $tv[14];
    print $stsp[1];
    print '</td><td>Ročník a štúdijný program: ';
    print $tv[1] . ' - ' . $stsp[0];
    print '</td></tr><tr><td>Partnerská univerzita: ';
    print $agr[1][1] . ' (' . $agr[1][2] . ')';
    print '</td><td>Obdobie: ';
    if ($tv[3] !== '0000-00-00') {
        print $tv[3];
    } else {
        print 'neznámy termín nástupu';
    }
    print ' - ';
    if ($tv[4] !== '0000-00-00') {