Example #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();
 }