break; case "refrescarNews": $ev->checkSetup(); include_once ENVIALO_DIR . "/paginas/tablaCampanas.php"; break; //Formulario //Formulario case "vistaPreviaForm": $ev->checkSetup(); $fo = new Formularios(); echo $fo->vistaPrevia($_POST['CustomFieldsIds'], $_POST['FormID'], $_POST['ConfirmSubscriptionEmailID'], $_POST['Title'], $_POST['Name'], $_POST['LabelSubmit'], $_POST['LabelEmailAddress'], $_POST['BackgroundColor'], $_POST['Width'], $_POST['Font'], $_POST['FontSize'], $_POST['FontColor'], $_POST['SubsCallbackOK'], $_POST['SubsCallbackFail'], $_POST['ConfCallbackOK'], $_POST['ConfCallbackFail'], $_POST['CustomCSS'], $_POST['ShowPoweredBy'], $_POST['SubscribeDobleOptIN']); break; case "guardarForm": $ev->checkSetup(); $fo = new Formularios(); $respuesta = json_decode($fo->guardarForm($_POST['CustomFieldsIds'], $_POST['MailListsIds'], $_POST['FormID'], $_POST['ConfirmSubscriptionEmailID'], $_POST['Title'], $_POST['Name'], $_POST['LabelSubmit'], $_POST['LabelEmailAddress'], $_POST['BackgroundColor'], $_POST['Width'], $_POST['Font'], $_POST['FontSize'], $_POST['FontColor'], $_POST['SubsCallbackOK'], $_POST['SubsCallbackFail'], $_POST['ConfCallbackOK'], $_POST['ConfCallbackFail'], $_POST['CustomCSS'], $_POST['ShowPoweredBy'], $_POST['SubscribeDobleOptIN']), TRUE); if (!isset($respuesta['root']['ajaxResponse']['success'])) { echo json_encode($respuesta); } $json = array(); $json['form'] = $respuesta['root']['ajaxResponse']['form']; $FormID = !empty($_POST["FormID"]) ? $_POST["FormID"] : $respuesta['root']['ajaxResponse']['form']['FormID']; $respuesta = json_decode($fo->guardarRemitenteResponder($FormID, $_POST['EmailID'], $_POST['Name'], $_POST['FromName'], $_POST['FromEmail'], $_POST['ReplyToName'], $_POST['ReplyToEmail'], $_POST['Content']), TRUE); if (!isset($respuesta['root']['ajaxResponse']['success'])) { echo json_encode($respuesta); } $json['email'] = $respuesta['root']['ajaxResponse']['email']; $json['success'] = TRUE; echo json_encode($json); break; case "eliminarForm":