function postProcess() { $idSite = $this->getSubmitValue('form_site_admin'); $confPdf = new PdfConfigDb($idSite); $listChoix = $confPdf->getChoixPdf(); $paramElem = $this->getSubmitValue('param_pdf_result'); //print ("debut : ".$paramElem."<br>"); $tabLine = split("@@", $paramElem); $param = array(); $i = 0; foreach ($tabLine as $key => $info) { //print ("Get : ".$key." : int : ".$info."<br>"); $tmpLine = split("#", $info); //$param[$tmpLine[0]] = array_slice ($tmpLine, 1); $param[$i] = $tmpLine; $i++; } /* foreach ($param as $key => $info) { print ("Select : ".$key." : int : ".$info[PDF_INDEX_INT]." all : ".$info[PDF_INDEX_ALL]); if (isset($info[PDF_INDEX_AUTRE])) { print(", autre : ".$info[PDF_INDEX_AUTRE]); } print("<br>"); // print (" Result Select : ".$key." : int : ".$info."<br>"); } */ /* $param = array(); foreach ($listChoix as $key => $info) { $selCh = $this->getSubmitValue($key); $selInt = "false"; $selAll = "false"; if ($selCh == 1) { //print ("$key : $selCh<br>"); if (! isset($info["PAG"])) { if ($info["INT"] == "true") { if ($this->getSubmitValue($key."I") == 1) { $selInt = "true"; } } if ($info["ALL"] == "true") { if ($this->getSubmitValue($key."A") == 1) { $selAll = "true"; } } } $param[$key] = array ($selInt, $selAll); } } */ /* foreach ($param as $key => $info) { print ("Select : ".$key." : int : ".$info[0]." all : ".$info[1]."<br>"); } */ // add a new pdf if ($this->pdfId == -1) { $confPdf->addPdf($this->getSubmitValue('form_name'), $param, $this->getSubmitValue('form_public_pdf') == 'yes'); } else { $confPdf->updatePdf($this->getSubmitValue('form_id'), $this->getSubmitValue('form_name'), $param, $this->getSubmitValue('form_public_pdf') == 'yes'); } //$confPdf->savePdf (); }