ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
example_014.php File Reference

Go to the source code of this file.

Namespaces

 com\tecnick\tcpdf
 Configuration file for TCPDF.
 

Variables

 $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false)
 
 $js
 

Variable Documentation

◆ $js

$js
Initial value:
= <<<EOD
function CheckField(name,message) {
var f = getField(name);
if(f.value == '') {
app.alert(message);
f.setFocus();
return false;
}
return true;
}
function Print() {
if(!CheckField('firstname','First name is mandatory')) {return;}
if(!CheckField('lastname','Last name is mandatory')) {return;}
if(!CheckField('gender','Gender is mandatory')) {return;}
if(!CheckField('address','Address is mandatory')) {return;}
print();
}
EOD
Definition: example_053.php:93

Definition at line 165 of file example_014.php.

Referenced by ilObjAdvancedEditing\_getRichTextEditor(), TCPDF\Button(), ilTemplate\getOnLoadCodeForAsynch(), ilPCQuestion\getQuestionJsOfPage(), ilLMPresentationGUI\ilJavaScript(), TCPDF\ListBox(), ilObjLinkResourceGUI\manage(), TCPDF\RadioButton(), ilPageObjectGUI\showPage(), and TCPDF\TextField().

◆ $pdf

$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false)

Definition at line 32 of file example_014.php.