if (isset($_GET['idplanche']) && $_GET['idplanche'] > '0') { $pnIdPlanche = $psPath = $tpsEcoule = $fileIntoImport = $bascule = $exportAsked = null; $arrayProduct = $arrayLayout = array(); $pnIdPlanche = intval($_GET['idplanche']); if (isset($_GET['exportPdf']) && $_GET['exportPdf'] != "") { $exportAsked = $_GET['exportPdf']; } include '/var/www/appli/lib/srv.php'; require_once "/var/www/appli/class/class.gang.php"; $exaprint = new smartgang(); $start = $exaprint->getmicrotime(); $exaprint->logFile(basename(__FILE__), "script", "RUN", "IDPlanche: {$pnIdPlanche} - ExportPDF: {$exportAsked}"); $deviceId = "Speedmaster 102"; $bascule = "Sheetwise"; $bleed = "2"; $params = $exaprint->getParams(); $pathMontage = $params['montage']['url']; $pathInputMxml = $params['metrix']['path']; $conDbo = $exaprint->getConDbo(); if ($exportAsked != "non") { $exec = "exec dbo.P_FluxEvenementCreation null,{$pnIdPlanche},3,687,'MetrixAutomation',0"; } else { $exec = "exec dbo.P_FluxEvenementCreation null,{$pnIdPlanche},2,687,'MetrixAutomation',0"; } $exaprint->execMsSql($exec); $info_planche = $exaprint->getInfoPlanche($pnIdPlanche); $pListeCommandes = $info_planche['pListeCommandes']; $psCodeTete = $info_planche['psCodeTete']; $psActiviteProd = $info_planche['psActiviteProd']; $pdDateCreationPlanche = $info_planche['pdDateCreationPlanche']; $psCodeatelier = $info_planche['psCodeAtelier'];