"; // var_dump($catsDeBase); // var_dump($catRows); // echo ""; // die(); foreach($catsDeBase as $sourceChamp=>$libelle): if(empty($catRows[$sourceChamp])) continue; //$nomCat = $row['categorie']; //$champs = $row['champs']; echo '

'.$libelle.'

'; if($sourceChamp == 'champs_formulaires'){ if(!empty($catRows[$sourceChamp]) && !empty($catRows[$sourceChamp]['formulaires'])){ $campagnes = $catRows[$sourceChamp]['campagnes']; foreach($campagnes as $idCampagne=>$campagne){ $colapseId = $view == 'Push' ? 'push_'.$idCampagne : $idCampagne; ?>

categorie; $idCat = $row->id; $colapseId2 = $view == 'Push' ? 'push_'.$idCat : $idCat; $champs = !empty($row->champs) ? $row->champs : array(); if(empty($champs))continue; ?>
$champObj): $champName = $champObj->champName; $libelle = $champObj->libelle ? $champObj->libelle : $allChamps[$champName]; $idCssInput = 'id-mail'; if($champObj->idChamp) $idCssInput .= '-'.$champObj->idChamp; $idCssInput .= '-'.$champName; $title = $libelle ? $libelle.' ('.$champName.')' : $champName; ?>
"; // var_dump($subRows); // echo ""; // die(); foreach($subRows as $row){ // var_dump($row['champs']);die(); if (is_object($row)) { $nomCat = $row->categorie; $idCat = $row->id; $champs = !empty($row->champs) ? $row->champs : array(); } else { $nomCat = $row['categorie']; $idCat = $row['id']; $champs = !empty($row['champs']) ? $row['champs'] : array(); } // print_r($champs); if(empty($champs))continue; ?>

$champObj): if($idCat == -1)$ii++; $champName = $champObj->champName; //$libelle = $allChamps[$champName]; $libelle = $champObj->libelle ? $champObj->libelle : $allChamps[$champName]; $idCssInput = 'id-mail'; if($champObj->idChamp) $idCssInput .= '-'.$champObj->idChamp; $idCssInput .= '-'.$champName; $title = $libelle ? $libelle.' ('.$champName.')' : $champName; ?> " id="id-mail-dateNow" class="mail-champs btn btn-fields btn-primary margin col-sm-12" name="dateNow" />