Exemplo n.º 1
0
        $remove = "<div id=\"rem{$number}\" class=\"icon\"><img alt=\"Zrušiť rozloženie\" src=\"img/icon_rem.jpg\" /></div>\n";
    } else {
        $remove = "";
    }
    echo "           <div id=\"tab{$number}\" class=\"{$class}\" {$style}>\n\t\t\t\t<div id=\"switch{$number}\" class=\"heading\">Rozloženie {$number}</div>\n    {$add}{$remove}\n\t\t\t</div>";
}
?>
<h2>Požiadavky cvičiaceho pre predmet: <?php 
echo $subject['nazov'];
?>
</h2>
<?php 
include "view/helpers/students_count.php";
require_once "view/helpers/preberanie.php";
if (!isset($requirement)) {
    zobrazMinulorocnePredmety($minule, $subject, "pract/requirements/copy/{$course_id}", $blokovanie_preberania);
}
?>
                                                    
<form style="margin: 0px;" method="post" action="pract/requirements/save">
    <div class="row">
        Poznámka k požiadavke:<br />
        <textarea rows="3" style="height:52px;" cols="70" name='requirement[komentare][vseobecne]'><?php 
echoParam($requirement["komentare"]["vseobecne"]);
?>
</textarea><br />
    </div>
    <div class="row" style="margin-bottom: 10px;">
        Požiadavka na softvér:<br />
        <textarea rows="3" style="height:52px;" cols="70" name='requirement[komentare][sw]'><?php 
echoParam($requirement["komentare"]["sw"]);
<h2>Požiadavky garanta pre predmet: <?php 
echo $predmet['nazov'];
?>
</h2>
<div class="row">
        <?php 
require_once "view/helpers/preberanie.php";
if (!isset($requirements["skratka"]) || $requirements["skratka"] == "" || $requirements["pred_hod"] == "" || $requirements["cvic_hod"] == "") {
    zobrazMinulorocnePredmety($minule, $predmet, "garant/requirements/copy/{$course_id}", $blokovanie_preberania);
}
?>
</div>
<form method="post" action="garant/requirements/save/">
    <input type="hidden" name="id" value="<?php 
echo $predmet['id'];
?>
"/>
        <p>
        	<label for="skratka">Skratka predmetu:</label>
            <input type="text" size="5" style="width: 200px;" id="skratka" name="skratka" value="<?php 
echo $requirements["skratka"];
?>
" />
        </p>
        <p>
            <label for="prednasajuci">Prednášajúci:</label>
              <select  size="1" style="width: 200px;" id="prednasajuci" name="prednasajuci">
                            <?php 
echo "<option value='0'>--nie je--</option>";
foreach ($lecturers as $lecturer) {
    $name = $lecturer['priezvisko'] . " " . $lecturer['meno'] . ", " . $lecturer['tituly_pred'] . " " . $lecturer['tituly_za'];