Beispiel #1
0
 /**
  * method for creating a confirm form
  * @param string $legend text of the legend
  * @param string $submit text of the submit
  * @return string $form the confirm form.
  */
 public static function confirmForm($legend, $submit_value = null, $submit_name = 'submit')
 {
     $html = new html();
     $html->setAutoEncode(true);
     $html->formStart('custom_delete_form');
     $html->legend($legend);
     if (!$submit_value) {
         $submit_value = lang::translate('Submit');
     }
     $html->submit($submit_name, $submit_value);
     $html->formEnd();
     return $html->getStr();
 }
Beispiel #2
0
 public function importForm()
 {
     $f = new html();
     $f->formStart();
     $f->legend('Indsæt brugere');
     $f->textarea('users');
     $f->submit('submit', 'Send');
     $f->formEnd();
     return $f->getStr();
 }
Beispiel #3
0
 /**
  * Form that creates a kvadrille
  * @param string $title
  * @return string $html
  */
 public function formCreateHel($title = 'Opret en hel kvadrille')
 {
     $f = new html();
     $f->init(array(), 'send', true);
     $f->formStart();
     $f->legend($title);
     //$f->label('name','Indtast et navn');
     //$f->text('name');
     $h = new eHelpers();
     $ary = $h->getFormHalveAry();
     $f->label('halv', 'Vælg en halv kvadrille som skal indgå i din kvadrille');
     $f->selectAry('halv', $ary);
     $f->label('send');
     $f->submit('send', 'Opret');
     $f->formEnd();
     return $f->getStr();
 }