'haut', 'right' => 'droite', 'bottom' => 'Bas', 'left' => 'Gauche'); $borderRadius = array('top' => 'top-left', 'right' => 'top-right', 'bottom' => 'bottom-right', 'left' => 'bottom-left'); $cssArr = $css ? json_decode($css, true) : array(); $backgroundColorValue = array_key_exists('background-color', $cssArr) ? $cssArr['background-color'] : ''; $idChampsAlreadyUsed = []; $cssBlocBackup = []; $suffixIdModal = $new; if($formulaire) { $nbrCols = $formulaire->nbrCols; } else { $nbrCols = 3; } ?>
Un nouveau Cadre est en cours d'edition enregistrer ou annuler:
Haut gauche
Bas droit
";
// // var_dump(['champsCols'=> $champsCols, 'size' => $size, 'formulaire' => $formulaire, 'source' => 'champs_formulaires']);
// var_dump($champ['styleCss']);
// echo "";
$w = $nbrCols == 4 ? "col-xs-" . ($tailleColumn * 3) : "col-xs-" . ($tailleColumn * 4);
$cardChampId = "cardChamp-" . $y . "-" . $x;
if ($champ) {
$class = $champ->active ? "btn-bleu" : "btn-gris";
if ($champ->obligatoireDemande == 1) {
$class = "btn-orange";
} elseif ($champ->obligatoire == 1) {
$class = "btn-red";
}
if ($champ->tailleColumn > 1) {
$class = "btn-light-bleu";
}
$styleCss = $champ->styleCss ? explode('","', str_replace(['{', '\\', '}'], '', $champ->styleCss)) : [];
$styleCss = sizeof($styleCss) == 0 ? '' : (implode(";", $styleCss));
$styleCss = str_replace('"', '', $styleCss) . ";";
if ($styleCss !== ';' && !$skipCol) {
array_push($idChampsAlreadyUsed, $cardChampId); //for js variable
array_push($cssBlocBackup, [$cardChampId => $styleCss]); //for js variable
}
// echo "";
// // var_dump(['champsCols'=> $champsCols, 'size' => $size, 'formulaire' => $formulaire, 'source' => 'champs_formulaires']);
// var_dump($lastChamp);
// echo "";
if ($skipCol) { ?>