24 require_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
 
   48                 $this->form_action = $a_form_action;
 
   53                 return $this->form_action;
 
   63                 $this->headertext = $a_headertext;
 
   73                 return $this->headertext;
 
   84                 $this->buttons[] = array(
 
   85                         "txt" => $a_txt, 
"cmd" => $a_cmd);
 
   96                 $this->cancel_txt = $a_txt;
 
   97                 $this->cancel_cmd = $a_cmd;
 
  108                 $this->confirm_txt = $a_txt;
 
  109                 $this->confirm_cmd = $a_cmd;
 
  123                 $template = 
new ilTemplate(
"tpl.confirmation.simple.html", TRUE, TRUE, 
"Services/Utilities");
 
  125                 if (strlen($this->confirm_cmd))
 
  127                         $template->setCurrentBlock(
'cmd');
 
  128                         $template->setVariable(
'CMD', $this->confirm_cmd);
 
  129                         $template->setVariable(
'TXT_CMD', $this->confirm_txt);
 
  130                         $template->parseCurrentBlock();
 
  133                 if (strlen($this->cancel_cmd))
 
  135                         $template->setCurrentBlock(
'cmd');
 
  136                         $template->setVariable(
'CMD', $this->cancel_cmd);
 
  137                         $template->setVariable(
'TXT_CMD', $this->cancel_txt);
 
  138                         $template->parseCurrentBlock();
 
  142                 foreach ($this->buttons as $b)
 
  144                         $template->setCurrentBlock(
'cmd');
 
  145                         $template->setVariable(
'CMD', $b[
'cmd']);
 
  146                         $template->setVariable(
'TXT_CMD', $b[
'txt']);
 
  147                         $template->parseCurrentBlock();
 
  150                 $template->setVariable(
"FORMACTION", $this->
getFormAction());
 
  151                 return $template->get();