<p><!-- BEGIN required --><spanclass="form_required">*</span><!-- END required -->{label}
<divclass="formw"><!-- BEGIN error --><spanclass="form_error">{error}</span><br/><!-- END error --><b>'.get_lang('And').'</b>          {element} % =';
<divclass="formw"><!-- BEGIN error --><spanclass="form_error">{error}</span><br/><!-- END error --><br/><b>'.get_lang('And').'</b>          {element} % =';
$elementTemplateTwoLabel2 =
'<!-- BEGIN error --><spanclass="form_error">{error}</span><br/><!-- END error --> {element}
//replace relative path by absolute path for resources
//$document_html= str_replace('src="/chamilo/main/default_course_document/', 'temp_template_path', $document_html);// before save src templates not apply
//$document_html= str_replace('src="/', 'temp_template_path', $document_html);// before save src templates not apply
@ -121,6 +139,7 @@ class PDF {
if (empty($pdf_name)) {
$output_file = 'pdf_'.date('Y-m-d-his').'.pdf';
} else {
$pdf_name = replace_dangerous_char($pdf_name);
$output_file = $pdf_name.'.pdf';
}
$result = $this->pdf->Output($output_file, 'D'); /// F to save the pdf in a file
@ -217,6 +236,7 @@ class PDF {
if (empty($pdf_name)) {
$output_file = 'pdf_'.date('Y-m-d-his').'.pdf';
} else {
$pdf_name = replace_dangerous_char($pdf_name);
$output_file = $pdf_name.'.pdf';
}
$result = $this->pdf->Output($output_file, 'D'); /// F to save the pdf in a file