Пример #1
0
 /**
  * Returns HTML for the submit form. 
  * 
  * @param type $lang_id
  * @param array $coursedetails an array containing Kurssitieto objects.
  * @param bool $is_teacher
  * @return type
  */
 function show_submit_form($lang_id, $coursedetails)
 {
     $html = "";
     // Fields and textareas are shown only in case there are courses in the
     // database available to all users.
     if (empty($coursedetails)) {
         $html .= Html::div(array(Attr::classs("submit_ilmoitus")), Palautustekstit::no_courses_found($lang_id));
     } else {
         $html = Palautustekstit::how_to_submit($lang_id);
         $html .= Html::luo_label_for("nimi_opiskelija", "Nimi", array()) . Html::luo_input(array(Attr::id("nimi_opiskelija")));
     }
     return $html;
 }