18 lines
696 B
PHP
18 lines
696 B
PHP
<?php
|
|
$filepathname = $tdnumber . "rev" . $trfData['revtrf'] . "technicaldossier" . ".pdf";
|
|
$filename = "tdpdf/" . $filepathname;
|
|
|
|
ob_end_clean();
|
|
$pdf->Output($filename, 'D');
|
|
|
|
$UpdateQuery = new WA_MySQLi_Query($cmctrfdb);
|
|
$UpdateQuery->Action = "update";
|
|
$UpdateQuery->Table = "data_td";
|
|
$UpdateQuery->bindColumn("pdffilenametd", "s", "$filepathname", "WA_DEFAULT");
|
|
$UpdateQuery->bindColumn("zipname", "s", "$zipnamefile", "WA_DEFAULT");
|
|
$UpdateQuery->addFilter("iddata_td", "=", "i", "" . ($idtd) . "");
|
|
$UpdateQuery->execute();
|
|
$UpdateGoTo = "";
|
|
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo ? rel2abs($UpdateGoTo, dirname(__FILE__)) : "";
|
|
$UpdateQuery->redirect($UpdateGoTo);
|