Coberturas y garantías adicionales
close- Responsabilidad Civil Explotación Sin sublímite
- Responsabilidad Civil Patronal (Sublímite por víctima) 150.000 €
- Procedimientos disciplinarios 5.000,00 €
- Sanciones en materia de protección de datos 60.000,00 €
- Infidelidad de Empleados 60.000,00 €
- Restitución de imagen (Post-siniestro) 15.000,00 €
- Costes de evitación o mitigación (Pre-siniestro) 15.000,00 €
- Pérdida de documentos 60.000,00 €
- Asistencia psicológica 5.000,00 €
- Persona clave / Keyman 5.000,00 €
- Derecho al olvido 5.000,00 €
Política de privacidad
close¿Deseas recibir la cotización por email?
closeRecibirás la documentación en Notice (8): Undefined variable: quote [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 254,
'ref_categorieswebsite_id' => (int) 129,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
'id' => (int) 131,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 254
$ref_categorieswebsite_id = (int) 129
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 131
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Accidentes Turismo Activo Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => 'sdfsdfsdfsdfdfdfg',
'host_id' => null,
'created' => null,
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 8
),
'Content' => array(
(int) 0 => array(
'id' => (int) 260,
'full_url' => 'galia/seguros-galia/accidentes-turismo-activo-galia',
'maintitle' => 'Accidentes Turismo Activo Galia',
'use_steps' => (int) 0,
'categorieswebsite_id' => (int) 129
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 247,
'active' => (int) 1,
'hash' => '46224192a787a417bf9b6d06f0e0fc7197eeb959',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Cómo quieres contratar tu seguro de accidentes?',
'ord' => (int) 1,
'created' => '18/09/2024 05:31:05',
'modified' => '30/10/2024 10:01:48',
'parent_field' => '',
'tooltip_title' => '¿Cómo quieres contratar tu seguro de accidentes?',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'a) Por día: Con el número máximo de participantes diarios ( "aforo" máximo de participantes en el día de más actividad). Sin límite Anual.<br />
b) Por año: Con el número de participantes que realizan actividades al cabo del año ("pax" por actividad). Sin límite diario',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 249,
'active' => (int) 1,
'hash' => 'f361a611dcaf47be52e8c332cbfbd65e7d01b7ed',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Su empresa se encuentra registrada en la comunidad autónoma de Asturias?',
'ord' => (int) 2,
'created' => '18/09/2024 05:33:59',
'modified' => '13/01/2025 10:05:54',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 248,
'active' => (int) 1,
'hash' => 'd72124b6b7bc8ac2af5a1d338c636e91d5cb196c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Tipo de Actividad',
'ord' => (int) 3,
'created' => '18/09/2024 05:32:49',
'modified' => '21/11/2025 06:46:34',
'parent_field' => '',
'tooltip_title' => 'Tipo de Actividad',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '<br />
<meta charset="utf-8" />
<p dir="ltr" role="presentation"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Por favor escoja cada tipo de actividades en el cual su negocio realiza al menos una:</b></p>
<ul dir="ltr">
<li><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">El tipo más alto que escoja es el que definirá la tarifa. A su vez serán contempladas en la cobertura las actividades incluídas a los tipos inferiores. Ej: Si escoge el tipo 3, la póliza cubrirá también los tipos 1 y 2.</b></li>
</ul>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 1</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Extraescolares y deportivas, Talleres, Viajes, excursiones y rutas, Animación, gymkanas y actividades de Teambuilding, Campamentos, Granja escuela, Paintball, airsoft y laser combat, Rutas y Paseos a Caballo/burro, Senderismo, Montañismo y Nordic Walking, Travesías y expediciones, Alpinismo y Raquetas de nieve, Escalada y Rapel, Rutas en Segway, Rutas en BTT, Tiro al blanco, con Arco y Cerbatana, Vías Ferratas, Supervivencia y Orientación, Cursos de formación de Monitores, Puentes Colgantes y parques de Aventura con Tirolinas, Observación de Flora y Fauna, Patinaje/skateboard, Actividades de ocio con personas con Discapacidad, Mushing, Raid de Aventura, Rocódromo, Banana, Hidropedales, Barca/Canoa/kayak/Piragua, Snorkel, Navegación a Vela, Rafting, Surf y Paddle Surf, Wakeboard/bodyboard, Descenso Aguas Bravas, Parques Acuáticos en el Mar, Pesca deportiva, Hydrospeed, Rutas paisajísticas en 4x4, Esquí, Espeleología, Ciclismo, Formación en primeros auxilios de Montaña, Tirolina, Coasteering, WindSurf, Esquí Náutico, Descenso de Barrancos, Flyboard, Classes de Equitación, Hípica con pupilaje de caballos, Kite surf, Submarinismo, Espeleobuceo.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 2</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Rutas 4x4, Trial y Enduro, Organización de Rutas en Quads y buggies, Karts, Motos Acuaticas, Motos de Nieve, Kards y Quads eléctricos para niños, Paseos y excursiones a Motor.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 3</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Ala Delta, Heliesquí, Puenting/salto elástico, Parapente, Vuelo en Globo, Vuelo libre, Vuelo a Motor.</b></p>
',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 250,
'active' => (int) 1,
'hash' => 'e51acc8e99d68505561de9197157bf9e45dd950c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Número de participantes',
'ord' => (int) 6,
'created' => '18/09/2024 05:34:27',
'modified' => '25/03/2025 08:16:38',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-accidentes-turismo-activo-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-accidentes-turismo-activo-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Notice (8): Trying to access array offset on value of type null [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 254,
'ref_categorieswebsite_id' => (int) 129,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
'id' => (int) 131,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 254
$ref_categorieswebsite_id = (int) 129
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 131
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Accidentes Turismo Activo Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => 'sdfsdfsdfsdfdfdfg',
'host_id' => null,
'created' => null,
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 8
),
'Content' => array(
(int) 0 => array(
'id' => (int) 260,
'full_url' => 'galia/seguros-galia/accidentes-turismo-activo-galia',
'maintitle' => 'Accidentes Turismo Activo Galia',
'use_steps' => (int) 0,
'categorieswebsite_id' => (int) 129
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 247,
'active' => (int) 1,
'hash' => '46224192a787a417bf9b6d06f0e0fc7197eeb959',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Cómo quieres contratar tu seguro de accidentes?',
'ord' => (int) 1,
'created' => '18/09/2024 05:31:05',
'modified' => '30/10/2024 10:01:48',
'parent_field' => '',
'tooltip_title' => '¿Cómo quieres contratar tu seguro de accidentes?',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'a) Por día: Con el número máximo de participantes diarios ( "aforo" máximo de participantes en el día de más actividad). Sin límite Anual.<br />
b) Por año: Con el número de participantes que realizan actividades al cabo del año ("pax" por actividad). Sin límite diario',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 249,
'active' => (int) 1,
'hash' => 'f361a611dcaf47be52e8c332cbfbd65e7d01b7ed',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Su empresa se encuentra registrada en la comunidad autónoma de Asturias?',
'ord' => (int) 2,
'created' => '18/09/2024 05:33:59',
'modified' => '13/01/2025 10:05:54',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 248,
'active' => (int) 1,
'hash' => 'd72124b6b7bc8ac2af5a1d338c636e91d5cb196c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Tipo de Actividad',
'ord' => (int) 3,
'created' => '18/09/2024 05:32:49',
'modified' => '21/11/2025 06:46:34',
'parent_field' => '',
'tooltip_title' => 'Tipo de Actividad',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '<br />
<meta charset="utf-8" />
<p dir="ltr" role="presentation"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Por favor escoja cada tipo de actividades en el cual su negocio realiza al menos una:</b></p>
<ul dir="ltr">
<li><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">El tipo más alto que escoja es el que definirá la tarifa. A su vez serán contempladas en la cobertura las actividades incluídas a los tipos inferiores. Ej: Si escoge el tipo 3, la póliza cubrirá también los tipos 1 y 2.</b></li>
</ul>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 1</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Extraescolares y deportivas, Talleres, Viajes, excursiones y rutas, Animación, gymkanas y actividades de Teambuilding, Campamentos, Granja escuela, Paintball, airsoft y laser combat, Rutas y Paseos a Caballo/burro, Senderismo, Montañismo y Nordic Walking, Travesías y expediciones, Alpinismo y Raquetas de nieve, Escalada y Rapel, Rutas en Segway, Rutas en BTT, Tiro al blanco, con Arco y Cerbatana, Vías Ferratas, Supervivencia y Orientación, Cursos de formación de Monitores, Puentes Colgantes y parques de Aventura con Tirolinas, Observación de Flora y Fauna, Patinaje/skateboard, Actividades de ocio con personas con Discapacidad, Mushing, Raid de Aventura, Rocódromo, Banana, Hidropedales, Barca/Canoa/kayak/Piragua, Snorkel, Navegación a Vela, Rafting, Surf y Paddle Surf, Wakeboard/bodyboard, Descenso Aguas Bravas, Parques Acuáticos en el Mar, Pesca deportiva, Hydrospeed, Rutas paisajísticas en 4x4, Esquí, Espeleología, Ciclismo, Formación en primeros auxilios de Montaña, Tirolina, Coasteering, WindSurf, Esquí Náutico, Descenso de Barrancos, Flyboard, Classes de Equitación, Hípica con pupilaje de caballos, Kite surf, Submarinismo, Espeleobuceo.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 2</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Rutas 4x4, Trial y Enduro, Organización de Rutas en Quads y buggies, Karts, Motos Acuaticas, Motos de Nieve, Kards y Quads eléctricos para niños, Paseos y excursiones a Motor.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 3</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Ala Delta, Heliesquí, Puenting/salto elástico, Parapente, Vuelo en Globo, Vuelo libre, Vuelo a Motor.</b></p>
',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 250,
'active' => (int) 1,
'hash' => 'e51acc8e99d68505561de9197157bf9e45dd950c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Número de participantes',
'ord' => (int) 6,
'created' => '18/09/2024 05:34:27',
'modified' => '25/03/2025 08:16:38',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-accidentes-turismo-activo-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-accidentes-turismo-activo-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
Notice (8): Trying to access array offset on value of type null [APP/View/Elements/Widgets/widget21.ctp, line 1612]
</div>
<div class="modal-body">
<p>Recibirás la documentación en <span class="text-mail"><?php echo $quote['Contact']['email']; ?></span></p>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp'
$dataForView = array(
'website_id' => '1',
'folder_img' => 'galia',
'pageContent' => array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'main_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'footer_menu' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'objectsheader' => array(
'Objectsheader' => array(
[maximum depth reached]
),
'Objectswidget' => array(
[maximum depth reached]
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
),
(int) 5 => array(
[maximum depth reached]
),
(int) 6 => array(
[maximum depth reached]
),
(int) 7 => array(
[maximum depth reached]
),
(int) 8 => array(
[maximum depth reached]
),
(int) 9 => array(
[maximum depth reached]
),
(int) 10 => array(
[maximum depth reached]
),
(int) 11 => array(
[maximum depth reached]
),
(int) 12 => array(
[maximum depth reached]
),
(int) 13 => array(
[maximum depth reached]
),
(int) 14 => array(
[maximum depth reached]
),
(int) 15 => array(
[maximum depth reached]
),
(int) 16 => array(
[maximum depth reached]
),
(int) 17 => array(
[maximum depth reached]
),
(int) 18 => array(
[maximum depth reached]
),
(int) 19 => array(
[maximum depth reached]
),
(int) 20 => array(
[maximum depth reached]
),
(int) 21 => array(
[maximum depth reached]
),
(int) 22 => array(
[maximum depth reached]
),
(int) 23 => array(
[maximum depth reached]
),
(int) 24 => array(
[maximum depth reached]
),
(int) 25 => array(
[maximum depth reached]
),
(int) 26 => array(
[maximum depth reached]
),
(int) 27 => array(
[maximum depth reached]
),
(int) 28 => array(
[maximum depth reached]
),
(int) 29 => array(
[maximum depth reached]
),
(int) 30 => array(
[maximum depth reached]
),
(int) 31 => array(
[maximum depth reached]
),
(int) 32 => array(
[maximum depth reached]
),
(int) 33 => array(
[maximum depth reached]
),
(int) 34 => array(
[maximum depth reached]
),
(int) 35 => array(
[maximum depth reached]
),
(int) 36 => array(
[maximum depth reached]
),
(int) 37 => array(
[maximum depth reached]
),
(int) 38 => array(
[maximum depth reached]
),
(int) 39 => array(
[maximum depth reached]
),
(int) 40 => array(
[maximum depth reached]
),
(int) 41 => array(
[maximum depth reached]
),
(int) 42 => array(
[maximum depth reached]
),
(int) 43 => array(
[maximum depth reached]
),
(int) 44 => array(
[maximum depth reached]
),
(int) 45 => array(
[maximum depth reached]
),
(int) 46 => array(
[maximum depth reached]
),
(int) 47 => array(
[maximum depth reached]
),
(int) 48 => array(
[maximum depth reached]
),
(int) 49 => array(
[maximum depth reached]
),
(int) 50 => array(
[maximum depth reached]
),
(int) 51 => array(
[maximum depth reached]
),
(int) 52 => array(
[maximum depth reached]
),
(int) 53 => array(
[maximum depth reached]
),
(int) 54 => array(
[maximum depth reached]
),
(int) 55 => array(
[maximum depth reached]
),
(int) 56 => array(
[maximum depth reached]
),
(int) 57 => array(
[maximum depth reached]
),
(int) 58 => array(
[maximum depth reached]
),
(int) 59 => array(
[maximum depth reached]
),
(int) 60 => array(
[maximum depth reached]
),
(int) 61 => array(
[maximum depth reached]
),
(int) 62 => array(
[maximum depth reached]
),
(int) 63 => array(
[maximum depth reached]
),
(int) 64 => array(
[maximum depth reached]
),
(int) 65 => array(
[maximum depth reached]
),
(int) 66 => array(
[maximum depth reached]
),
(int) 67 => array(
[maximum depth reached]
),
(int) 68 => array(
[maximum depth reached]
),
(int) 69 => array(
[maximum depth reached]
),
(int) 70 => array(
[maximum depth reached]
),
(int) 71 => array(
[maximum depth reached]
),
(int) 72 => array(
[maximum depth reached]
),
(int) 73 => array(
[maximum depth reached]
),
(int) 74 => array(
[maximum depth reached]
),
(int) 75 => array(
[maximum depth reached]
),
(int) 76 => array(
[maximum depth reached]
),
(int) 77 => array(
[maximum depth reached]
),
(int) 78 => array(
[maximum depth reached]
),
(int) 79 => array(
[maximum depth reached]
),
(int) 80 => array(
[maximum depth reached]
),
(int) 81 => array(
[maximum depth reached]
),
(int) 82 => array(
[maximum depth reached]
),
(int) 83 => array(
[maximum depth reached]
),
(int) 84 => array(
[maximum depth reached]
),
(int) 85 => array(
[maximum depth reached]
),
(int) 86 => array(
[maximum depth reached]
),
(int) 87 => array(
[maximum depth reached]
),
(int) 88 => array(
[maximum depth reached]
),
(int) 89 => array(
[maximum depth reached]
),
(int) 90 => array(
[maximum depth reached]
),
(int) 91 => array(
[maximum depth reached]
),
(int) 92 => array(
[maximum depth reached]
),
(int) 93 => array(
[maximum depth reached]
),
(int) 94 => array(
[maximum depth reached]
),
(int) 95 => array(
[maximum depth reached]
),
(int) 96 => array(
[maximum depth reached]
),
(int) 97 => array(
[maximum depth reached]
),
(int) 98 => array(
[maximum depth reached]
)
)
),
'widget' => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 254,
'ref_categorieswebsite_id' => (int) 129,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 254,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 129,
'class_button' => '0',
'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia',
'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia',
'canonical' => (int) 0,
'nofollow' => (int) 0,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => null,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'Category' => array(
'id' => (int) 131,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
[maximum depth reached]
),
'Objectsbox' => array([maximum depth reached]),
'Objectsboxform' => array([maximum depth reached]),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
[maximum depth reached]
)
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-accidentes-turismo-activo-galia',
'param1' => null,
'param2' => null,
'websites' => array(
(int) 0 => array(
'Website' => array(
[maximum depth reached]
)
)
),
'main_menu' => array(
(int) 0 => array(
'id' => (int) 4,
'title' => 'Productos',
'slogan' => '',
'button' => 'Productos',
'link' => 'Productos',
'n_items' => (int) 5,
'url' => 'seguros',
'color' => 'green'
)
),
'footer_menu' => array(
(int) 0 => array(
'title' => null,
'url' => null,
'n_items' => null,
'menu' => array(
[maximum depth reached]
)
)
),
'objectsheader' => array(
'Objectsheader' => array(
'id' => (int) 1,
'header_id' => (int) 1
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
)
),
'objectsfooter' => array(),
'all_categories' => array(
(int) 0 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 1 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 2 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 3 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 4 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 5 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 6 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 7 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 8 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 9 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 10 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 11 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 12 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 13 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 14 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 15 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 16 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 17 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 18 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 19 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 20 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 21 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 22 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 23 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 24 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 25 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 26 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 27 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 28 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 29 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 30 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 31 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 32 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 33 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 34 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 35 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 36 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 37 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 38 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 39 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 40 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 41 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 42 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 43 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 44 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 45 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 46 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 47 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 48 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 49 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 50 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 51 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 52 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 53 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 54 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 55 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 56 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 57 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 58 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 59 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 60 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 61 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 62 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 63 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 64 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 65 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 66 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 67 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 68 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 69 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 70 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 71 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 72 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 73 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 74 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 75 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 76 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 77 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 78 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 79 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 80 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 81 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 82 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 83 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 84 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 85 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 86 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 87 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 88 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 89 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 90 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 91 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 92 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 93 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 94 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 95 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 96 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 97 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
),
(int) 98 => array(
'content' => array(
[maximum depth reached]
),
'categorieswebsite' => array(
[maximum depth reached]
),
'categorycontent' => array(
[maximum depth reached]
)
)
)
)
$widget = array(
'id' => (int) 777,
'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e',
'main_title' => 'Necesitamos algunos datos para calcular tu seguro',
'main_title1' => '',
'sub_title' => '¿Quién va a contratar el seguro?',
'subsub_title' => 'Es obligatorio completar todos los campos',
'icon' => null,
'icon_alt' => null,
'main_text' => '',
'main_text_1' => null,
'tab_title' => '',
'tab_title_1' => '',
'tab_title_2' => '',
'tab_title_3' => '',
'tab_text' => null,
'tab_text_1' => '',
'tab_text_2' => '<ul>
<li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li>
<li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li>
<li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li>
<li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li>
<li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li>
<li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li>
</ul>
',
'tab_text_3' => null,
'main_img' => null,
'main_img_1' => null,
'main_img_alt' => '',
'main_img_1_alt' => '',
'button_label' => '',
'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/',
'main_link_2' => null,
'main_link_3' => null,
'description' => '',
'description_1' => null,
'description_2' => null,
'lon' => null,
'lat' => null,
'slogan' => null,
'author' => (int) 5,
'where_clause' => null,
'filter' => '',
'created' => '11/10/2024 03:45:12',
'modified' => '22/12/2025 07:05:51',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 254,
'main_img_2' => null,
'main_img_2_alt' => '',
'dynamic' => (int) 0,
'label0' => '',
'label1' => 'esta póliza es para ti',
'label2' => '',
'label3' => '',
'label4' => '',
'label5' => '',
'main_video' => null,
'contact' => null,
'script' => null,
'run_core' => (int) 1,
'core' => null,
'js_mobile' => (int) 0,
'js_desktop' => null,
'query_id' => null,
'quantity' => null,
'multiselect' => '129',
'msd_content_type' => null,
'dmultiselect' => null,
'label6' => null,
'label7' => null,
'label8' => null,
'mscwo_order' => null,
'objectsfooter_id' => null,
'objectsheader_id' => null,
'Widget' => array(
'hash' => 'dflisd;fjkhsdkll;sdjk ',
'name' => 'Widget for automatic form Webind',
'description' => 'Widget for automatic form Webind like widget28 but with changed steps',
'owner_id' => null,
'created' => null,
'modified' => null,
'active' => (int) 1,
'publish' => (int) 1,
'id' => (int) 21,
'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,',
'long_description' => '',
'quotelayout' => null,
'core' => '$category_id = $Category.id;
$pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id;
$step = $param1;
$pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step;
if(!empty($param2)){
$quote_hash = $param2;
}
$categorieswebsite = $this->Categorieswebsite->find('first', array(
'conditions' => array(
'Categorieswebsite.website_id' => Configure::read('Website.website_id'),
'Categorieswebsite.category_id' => $category_id
),
'contain' => array(
'Content' => array(
'fields' => array(
'id',
'full_url',
'maintitle',
'use_steps',
),
'conditions' => array(
'Content.active' => 1
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite;
if(!empty($param2)){
$quote_hash = $param2;
}
if(!empty($step)){
if($step == 1){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'category_id',
'retro_effect_id',
'retro_effect',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
// here we are creating all the questions type, what is displayed it decided in the steps
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
$this->loadModel('Item');
$item = $this->Item->find('first', array(
'fields' => array(
'id'
),
'conditions' => array(
'Item.category_id' => $quote['Quote']['category_id'],
),
'contain' => array(
'Option' => array(
'fields' => array(
'id',
'name',
),
'conditions' => array(
'Option.active' => 1,
'Option.macro_option' => 'retroattivita'
),
'order' => array(
'Option.id ASC',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item;
}elseif($step == 2){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST'
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Document8' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document8.active' => 1,
'Document8.public' => 1,
'Document8.documenttype_id' => 8,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document8.id DESC',
),
),
'Document23' => array(
'fields' => array(
'id',
'description',
'link_doc',
'path',
'extension',
),
'conditions' => array(
'Document23.active' => 1,
'Document23.public' => 1,
'Document23.documenttype_id' => 23,
),
'Documenttype' => array(
'fields' => array(
'id',
'name',
),
),
'order' => array(
'Document23.id DESC',
),
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'Optionlabel',
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'premium',
'minimum_premium',
),
),
),
));
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){
foreach($quote['Item']['Option'] as $key => $option){
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
if(!empty($quote['Quote']['value_id'])) {
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.value_id' => $quote['Quote']['value_id'],
),
'contain' => $contain,
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote;
}
}elseif($step == 3){
$this->loadModel('Quote');
$this->Quote->setDataSource('default');
$quote = $this->Quote->find('first', array(
'fields' => array(
'id',
'hash',
'last_turnover',
'maximum',
'date_effect',
'date_end',
'item_id',
),
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact' => array(
'fields' => array(
'id',
'hash',
),
),
'Item' => array(
'fields' => array(
'id',
'date_effect_limit_down',
'date_effect_limit_up',
),
),
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
}elseif($step == 4){
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
),
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
$this->loadModel('Zipcode');
$zipcodes = $this->Zipcode->list_zipcodes();
$pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes;
}elseif($step == 5){
$this->loadModel('Payment');
$payments = $this->Payment->find('all', array(
'conditions' => array(
'AND' => array(
'Payment.active' => 1,
'Payment.website_id' => Configure::read('Website.website_id'),
'Payment.type' => 2,
),
),
'order' => 'Payment.order',
));
$pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments;
$today = date('d/m/Y');
$this->loadModel('Quote');
$quote = $this->Quote->find('first', array(
'conditions' => array(
'Quote.hash' => $quote_hash
),
'contain' => array(
'Contact',
'Item' => array(
'fields' => array(
'id',
'name',
'weblabel',
'turnover_type',
'extra_option',
'gross_rate',
'taxes',
'accessories',
),
'Paymenttype' => array(
'conditions' => array(
'Paymenttype.active' => 1,
),
'order' => 'Paymenttype.default DESC NULLS LAST',
),
'Company' => array(
'fields' => array(
'id',
'surname',
'company_logo',
'company_description',
)
),
'Category' => array(
'fields' => array(
'id',
'name',
)
),
'Document' => array(
'Documenttype',
),
'Option' => array(
'fields' => array(
'id',
'name',
'macro_option',
'value',
'type_calc',
'calculation',
'default',
'description',
'description2',
),
'conditions' => array(
'Option.active' => 1,
'Option.default' => 0,
'Option.macro_option' => 'extra',
),
),
'Itemdiscount' => array(
'fields' => array(
'id',
'value',
'code',
),
'conditions' => array(
'Itemdiscount.active' => 1,
'Itemdiscount.apply_id' => 1,
'AND' => array(
'Itemdiscount.date_start <=' => $today,
'Itemdiscount.date_end >=' => $today,
),
),
'order' => array(
'Itemdiscount.id DESC',
),
),
),
'Value' => array(
'fields' => array(
'id',
'rates',
'minimum_premium',
'premium',
'deductible',
),
),
),
));
$this->loadModel('Aquestion');
$aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave');
$pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions;
if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) {
foreach($quote['Item']['Option'] as $option_key => $option) {
$opt = array();
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $option;
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Item']['Option'][$option_key]['option_value'] = $option_value;
}
}
$this->loadModel('Tempquote');
$options_count = $this->Tempquote->options_count;
$extra_count = $this->Tempquote->extra_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count;
$pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count;
$contain = array();
for ($x = 1; $x <= $options_count; $x++) {
$contain['Option' . $x] = array(
'conditions' => array(
'Option' . $x . '.active' => 1,
),
);
}
for ($x = 1; $x <= $extra_count; $x++) {
$contain['Extra' . $x] = array(
'conditions' => array(
'Extra' . $x . '.active' => 1,
),
);
}
$tempquote = $this->Tempquote->find('first', array(
'conditions' => array(
'Tempquote.value_id' => $quote['Quote']['value_id'],
'Tempquote.quote_id' => $quote['Quote']['id'],
'Tempquote.active' => '1'
),
'contain' => $contain,
'recursive' => -1
));
$quote['Quote']['Tempquote'] = $tempquote['Tempquote'];
for ($x = 1; $x <= $options_count; $x++) {
if(!empty($tempquote['Option' . $x])){
$quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Option' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value;
}
}
for ($x = 1; $x <= $extra_count; $x++) {
if(!empty($tempquote['Extra' . $x])){
$quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x];
$item['Item'] = $quote['Item'];
$value['Value'] = $quote['Value'];
$calculateitems_options = null;
$opt['Option'] = $tempquote['Extra' . $x];
$option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt);
$quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value;
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote;
}
} else {
$this->loadModel('Privacy');
$privacies = $this->Privacy->getprivacies($category_id);
$pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies;
}
$this->loadModel('Categoryform');
$forms = $this->Categoryform->find('all', array(
'conditions' => array(
'AND' => array(
'Categoryform.active' => 1,
'Categoryform.category_id' => $category_id,
'Categoryform.specialization_id is null',
'Categoryform.option is null',
),
),
'order' => array(
'Categoryform.ord'
),
));
if (!empty($forms)) {
$this->loadModel('Value');
foreach ($forms as $formkey => $form) {
if (!empty($form['Categoryform']['json_values'])) {
$forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true);
}
if (empty($form['Categoryform']['values'])) {
if ($form['Categoryform']['type_form'] == '1') {
$forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label'];
continue;
}
if ($form['Categoryform']['field'] == 'last_turnover') {
$turnovers = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.turnover',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.turnover ASC'
)
));
//$this->log('$turnovers');
//$this->log($turnovers);
//Preparo l'array dei massimali
$turnovers_formatted = array();
foreach ($turnovers as $turnover) {
$turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $turnovers_formatted;
//$this->log('$turnovers_formatted');
//$this->log($turnovers_formatted);
}
if ($form['Categoryform']['field'] == 'maximum') {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
if ($form['Categoryform']['field'] == 'specialization_id') {
$specializations = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.specialization_id',
'Specialization.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Specialization' => array(
'fields' => array(
'id',
'name',
'svg',
),
),
),
'order' => array('Specialization.name asc'),
));
//$this->log('$specializations');
//$this->log($specializations);
if (!empty($specializations)) {
foreach ($specializations as $specialization) {
$forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array(
'id' => $specialization['Specialization']['id'],
'name' => $specialization['Specialization']['name'],
'svg' => $specialization['Specialization']['svg'],
);
}
}
$specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name');
$forms[$formkey]['Categoryform']['values'] = $specializations;
}
if ($form['Categoryform']['field'] == 'option') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option',
'Valuesoption.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'option1') {
if (!empty($form['Categoryform']['specialization_id'])) {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.specialization_id' => $form['Categoryform']['specialization_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
} else {
$options = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.option_1',
'Valuesoption1.name'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'contain' => array(
'Valuesoption1' => array(
'fields' => array(
'id',
'name',
),
),
),
'order' => array(
'Valuesoption1.name ASC'
),
));
}
$options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name');
$forms[$formkey]['Categoryform']['values'] = $options;
}
if ($form['Categoryform']['field'] == 'year_loan') {
$year_contracts = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.year_contract',
'Value.year_contract'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
),
),
'order' => array(
'Value.year_contract ASC'
),
));
$year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract');
$forms[$formkey]['Categoryform']['values'] = $year_contracts;
}
if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) {
$maximums = $this->Value->find('all', array(
'fields' => array(
'DISTINCT Value.maximum',
'Value.item_id'
),
'conditions' => array(
'AND' => array(
'Value.active' => 1,
'Value.category_id' => $form['Categoryform']['category_id'],
'Value.option' => $form['Categoryform']['option'],
'Value.minimum_premium !=' => '0',
),
),
'order' => array(
'Value.maximum ASC'
)
));
//Preparo l'array dei massimali
$maximums_formatted = array();
foreach ($maximums as $maximum) {
$maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR');
}
$forms[$formkey]['Categoryform']['values'] = $maximums_formatted;
}
}
}
}
$pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms;
',
'filter' => ''
),
'Objectsbox' => array(),
'Objectsboxform' => array(),
'folder_img' => 'galia',
'param1' => '',
'param2' => '',
'apidata' => array(
'category_id' => (int) 131,
'step' => '',
'categorieswebsite' => array(
'Categorieswebsite' => array(
[maximum depth reached]
),
'Content' => array(
[maximum depth reached]
)
),
'privacies' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'forms' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 254
$ref_categorieswebsite_id = (int) 129
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 131
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 129,
'category_id' => (int) 131,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Accidentes Turismo Activo Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 121,
'content_type' => (int) 3,
'hash' => 'sdfsdfsdfsdfdfdfg',
'host_id' => null,
'created' => null,
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 8
),
'Content' => array(
(int) 0 => array(
'id' => (int) 260,
'full_url' => 'galia/seguros-galia/accidentes-turismo-activo-galia',
'maintitle' => 'Accidentes Turismo Activo Galia',
'use_steps' => (int) 0,
'categorieswebsite_id' => (int) 129
)
)
)
$privacies = array(
(int) 0 => array(
'Privacy' => array(
'id' => (int) 4,
'parent_id' => null,
'type_form' => (int) 1,
'is_parent' => null,
'name' => 'Privacy for Seguros',
'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.',
'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad',
'ord' => (int) 2,
'required' => (int) 1
)
)
)
$forms = array(
(int) 0 => array(
'Categoryform' => array(
'id' => (int) 247,
'active' => (int) 1,
'hash' => '46224192a787a417bf9b6d06f0e0fc7197eeb959',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option1',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Cómo quieres contratar tu seguro de accidentes?',
'ord' => (int) 1,
'created' => '18/09/2024 05:31:05',
'modified' => '30/10/2024 10:01:48',
'parent_field' => '',
'tooltip_title' => '¿Cómo quieres contratar tu seguro de accidentes?',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'a) Por día: Con el número máximo de participantes diarios ( "aforo" máximo de participantes en el día de más actividad). Sin límite Anual.<br />
b) Por año: Con el número de participantes que realizan actividades al cabo del año ("pax" por actividad). Sin límite diario',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 249,
'active' => (int) 1,
'hash' => 'f361a611dcaf47be52e8c332cbfbd65e7d01b7ed',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿Su empresa se encuentra registrada en la comunidad autónoma de Asturias?',
'ord' => (int) 2,
'created' => '18/09/2024 05:33:59',
'modified' => '13/01/2025 10:05:54',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null,
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 248,
'active' => (int) 1,
'hash' => 'd72124b6b7bc8ac2af5a1d338c636e91d5cb196c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'option',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Tipo de Actividad',
'ord' => (int) 3,
'created' => '18/09/2024 05:32:49',
'modified' => '21/11/2025 06:46:34',
'parent_field' => '',
'tooltip_title' => 'Tipo de Actividad',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '<br />
<meta charset="utf-8" />
<p dir="ltr" role="presentation"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Por favor escoja cada tipo de actividades en el cual su negocio realiza al menos una:</b></p>
<ul dir="ltr">
<li><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">El tipo más alto que escoja es el que definirá la tarifa. A su vez serán contempladas en la cobertura las actividades incluídas a los tipos inferiores. Ej: Si escoge el tipo 3, la póliza cubrirá también los tipos 1 y 2.</b></li>
</ul>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 1</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Extraescolares y deportivas, Talleres, Viajes, excursiones y rutas, Animación, gymkanas y actividades de Teambuilding, Campamentos, Granja escuela, Paintball, airsoft y laser combat, Rutas y Paseos a Caballo/burro, Senderismo, Montañismo y Nordic Walking, Travesías y expediciones, Alpinismo y Raquetas de nieve, Escalada y Rapel, Rutas en Segway, Rutas en BTT, Tiro al blanco, con Arco y Cerbatana, Vías Ferratas, Supervivencia y Orientación, Cursos de formación de Monitores, Puentes Colgantes y parques de Aventura con Tirolinas, Observación de Flora y Fauna, Patinaje/skateboard, Actividades de ocio con personas con Discapacidad, Mushing, Raid de Aventura, Rocódromo, Banana, Hidropedales, Barca/Canoa/kayak/Piragua, Snorkel, Navegación a Vela, Rafting, Surf y Paddle Surf, Wakeboard/bodyboard, Descenso Aguas Bravas, Parques Acuáticos en el Mar, Pesca deportiva, Hydrospeed, Rutas paisajísticas en 4x4, Esquí, Espeleología, Ciclismo, Formación en primeros auxilios de Montaña, Tirolina, Coasteering, WindSurf, Esquí Náutico, Descenso de Barrancos, Flyboard, Classes de Equitación, Hípica con pupilaje de caballos, Kite surf, Submarinismo, Espeleobuceo.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 2</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Rutas 4x4, Trial y Enduro, Organización de Rutas en Quads y buggies, Karts, Motos Acuaticas, Motos de Nieve, Kards y Quads eléctricos para niños, Paseos y excursiones a Motor.</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 3</b></p>
<p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Ala Delta, Heliesquí, Puenting/salto elástico, Parapente, Vuelo en Globo, Vuelo libre, Vuelo a Motor.</b></p>
',
'item_id' => null,
'values' => array(
[maximum depth reached]
)
)
),
(int) 3 => array(
'Categoryform' => array(
'id' => (int) 250,
'active' => (int) 1,
'hash' => 'e51acc8e99d68505561de9197157bf9e45dd950c',
'category_id' => (int) 131,
'specialization_id' => null,
'option' => null,
'field' => 'nr_people',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Número de participantes',
'ord' => (int) 6,
'created' => '18/09/2024 05:34:27',
'modified' => '25/03/2025 08:16:38',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'item_id' => null
)
)
)
$user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = null
$current_url = 'galia/seguros-galia/calcular-seguro-accidentes-turismo-activo-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-accidentes-turismo-activo-galia'
)
$step_title = ''
$steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1612
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Pages/content.ctp, line 33
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
¿Confirmas que quieres realizar el pago a través de domiciliación bancaria?
La póliza será emitida automáticamente, pero no estará activa hasta que el pago no este confirmado y los documentos firmados.
Datos de tu cuenta
- Nombre
- IBAN
Verifica tu información personal.
En caso de cambios escríbenos a info@galia.es
Redsys
closeNotice (8): Undefined variable: objectsboxkey [APP/View/Elements/Widgets/widget21.ctp, line 1662]Code Context<div class="jcf-scrollable"><div class="hold-text hold-text-rules"><?php echo $this->element('Boxes/box12', array('box' => $widget['Objectsbox'][$objectsboxkey])); ?>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp' $dataForView = array( 'website_id' => '1', 'folder_img' => 'galia', 'pageContent' => array( 'Content' => array( 'id' => (int) 254, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 129, 'class_button' => '0', 'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'canonical' => (int) 0, 'nofollow' => (int) 0, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-accidentes-turismo-activo-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( [maximum depth reached] ) ), 'main_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'footer_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'objectsheader' => array( 'Objectsheader' => array( [maximum depth reached] ), 'Objectswidget' => array( [maximum depth reached] ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ), (int) 27 => array( [maximum depth reached] ), (int) 28 => array( [maximum depth reached] ), (int) 29 => array( [maximum depth reached] ), (int) 30 => array( [maximum depth reached] ), (int) 31 => array( [maximum depth reached] ), (int) 32 => array( [maximum depth reached] ), (int) 33 => array( [maximum depth reached] ), (int) 34 => array( [maximum depth reached] ), (int) 35 => array( [maximum depth reached] ), (int) 36 => array( [maximum depth reached] ), (int) 37 => array( [maximum depth reached] ), (int) 38 => array( [maximum depth reached] ), (int) 39 => array( [maximum depth reached] ), (int) 40 => array( [maximum depth reached] ), (int) 41 => array( [maximum depth reached] ), (int) 42 => array( [maximum depth reached] ), (int) 43 => array( [maximum depth reached] ), (int) 44 => array( [maximum depth reached] ), (int) 45 => array( [maximum depth reached] ), (int) 46 => array( [maximum depth reached] ), (int) 47 => array( [maximum depth reached] ), (int) 48 => array( [maximum depth reached] ), (int) 49 => array( [maximum depth reached] ), (int) 50 => array( [maximum depth reached] ), (int) 51 => array( [maximum depth reached] ), (int) 52 => array( [maximum depth reached] ), (int) 53 => array( [maximum depth reached] ), (int) 54 => array( [maximum depth reached] ), (int) 55 => array( [maximum depth reached] ), (int) 56 => array( [maximum depth reached] ), (int) 57 => array( [maximum depth reached] ), (int) 58 => array( [maximum depth reached] ), (int) 59 => array( [maximum depth reached] ), (int) 60 => array( [maximum depth reached] ), (int) 61 => array( [maximum depth reached] ), (int) 62 => array( [maximum depth reached] ), (int) 63 => array( [maximum depth reached] ), (int) 64 => array( [maximum depth reached] ), (int) 65 => array( [maximum depth reached] ), (int) 66 => array( [maximum depth reached] ), (int) 67 => array( [maximum depth reached] ), (int) 68 => array( [maximum depth reached] ), (int) 69 => array( [maximum depth reached] ), (int) 70 => array( [maximum depth reached] ), (int) 71 => array( [maximum depth reached] ), (int) 72 => array( [maximum depth reached] ), (int) 73 => array( [maximum depth reached] ), (int) 74 => array( [maximum depth reached] ), (int) 75 => array( [maximum depth reached] ), (int) 76 => array( [maximum depth reached] ), (int) 77 => array( [maximum depth reached] ), (int) 78 => array( [maximum depth reached] ), (int) 79 => array( [maximum depth reached] ), (int) 80 => array( [maximum depth reached] ), (int) 81 => array( [maximum depth reached] ), (int) 82 => array( [maximum depth reached] ), (int) 83 => array( [maximum depth reached] ), (int) 84 => array( [maximum depth reached] ), (int) 85 => array( [maximum depth reached] ), (int) 86 => array( [maximum depth reached] ), (int) 87 => array( [maximum depth reached] ), (int) 88 => array( [maximum depth reached] ), (int) 89 => array( [maximum depth reached] ), (int) 90 => array( [maximum depth reached] ), (int) 91 => array( [maximum depth reached] ), (int) 92 => array( [maximum depth reached] ), (int) 93 => array( [maximum depth reached] ), (int) 94 => array( [maximum depth reached] ), (int) 95 => array( [maximum depth reached] ), (int) 96 => array( [maximum depth reached] ), (int) 97 => array( [maximum depth reached] ), (int) 98 => array( [maximum depth reached] ) ) ), 'widget' => array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 131, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 254, 'ref_categorieswebsite_id' => (int) 129, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 254, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 129, 'class_button' => '0', 'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'canonical' => (int) 0, 'nofollow' => (int) 0, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'Category' => array( 'id' => (int) 131, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( [maximum depth reached] ), 'Objectsbox' => array([maximum depth reached]), 'Objectsboxform' => array([maximum depth reached]), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( [maximum depth reached] ) ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-accidentes-turismo-activo-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( 'Website' => array( [maximum depth reached] ) ) ), 'main_menu' => array( (int) 0 => array( 'id' => (int) 4, 'title' => 'Productos', 'slogan' => '', 'button' => 'Productos', 'link' => 'Productos', 'n_items' => (int) 5, 'url' => 'seguros', 'color' => 'green' ) ), 'footer_menu' => array( (int) 0 => array( 'title' => null, 'url' => null, 'n_items' => null, 'menu' => array( [maximum depth reached] ) ) ), 'objectsheader' => array( 'Objectsheader' => array( 'id' => (int) 1, 'header_id' => (int) 1 ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 1 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 2 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 3 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 4 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 5 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 6 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 7 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 8 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 9 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 10 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 11 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 12 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 13 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 14 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 15 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 16 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 17 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 18 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 19 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 20 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 21 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 22 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 23 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 24 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 25 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 26 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 27 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 28 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 29 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 30 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 31 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 32 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 33 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 34 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 35 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 36 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 37 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 38 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 39 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 40 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 41 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 42 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 43 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 44 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 45 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 46 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 47 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 48 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 49 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 50 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 51 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 52 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 53 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 54 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 55 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 56 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 57 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 58 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 59 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 60 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 61 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 62 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 63 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 64 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 65 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 66 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 67 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 68 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 69 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 70 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 71 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 72 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 73 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 74 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 75 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 76 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 77 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 78 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 79 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 80 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 81 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 82 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 83 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 84 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 85 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 86 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 87 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 88 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 89 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 90 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 91 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 92 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 93 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 94 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 95 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 96 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 97 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 98 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ) ) ) $widget = array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 131, 'step' => '', 'categorieswebsite' => array( 'Categorieswebsite' => array( [maximum depth reached] ), 'Content' => array( [maximum depth reached] ) ), 'privacies' => array( (int) 0 => array( [maximum depth reached] ) ), 'forms' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 254 $ref_categorieswebsite_id = (int) 129 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 131 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Accidentes Turismo Activo Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 121, 'content_type' => (int) 3, 'hash' => 'sdfsdfsdfsdfdfdfg', 'host_id' => null, 'created' => null, 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 8 ), 'Content' => array( (int) 0 => array( 'id' => (int) 260, 'full_url' => 'galia/seguros-galia/accidentes-turismo-activo-galia', 'maintitle' => 'Accidentes Turismo Activo Galia', 'use_steps' => (int) 0, 'categorieswebsite_id' => (int) 129 ) ) ) $privacies = array( (int) 0 => array( 'Privacy' => array( 'id' => (int) 4, 'parent_id' => null, 'type_form' => (int) 1, 'is_parent' => null, 'name' => 'Privacy for Seguros', 'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.', 'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad', 'ord' => (int) 2, 'required' => (int) 1 ) ) ) $forms = array( (int) 0 => array( 'Categoryform' => array( 'id' => (int) 247, 'active' => (int) 1, 'hash' => '46224192a787a417bf9b6d06f0e0fc7197eeb959', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'option1', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿Cómo quieres contratar tu seguro de accidentes?', 'ord' => (int) 1, 'created' => '18/09/2024 05:31:05', 'modified' => '30/10/2024 10:01:48', 'parent_field' => '', 'tooltip_title' => '¿Cómo quieres contratar tu seguro de accidentes?', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => 'a) Por día: Con el número máximo de participantes diarios ( "aforo" máximo de participantes en el día de más actividad). Sin límite Anual.<br /> b) Por año: Con el número de participantes que realizan actividades al cabo del año ("pax" por actividad). Sin límite diario', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 249, 'active' => (int) 1, 'hash' => 'f361a611dcaf47be52e8c332cbfbd65e7d01b7ed', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'specialization_id', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿Su empresa se encuentra registrada en la comunidad autónoma de Asturias?', 'ord' => (int) 2, 'created' => '18/09/2024 05:33:59', 'modified' => '13/01/2025 10:05:54', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'value' => array( [maximum depth reached] ), 'values' => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 248, 'active' => (int) 1, 'hash' => 'd72124b6b7bc8ac2af5a1d338c636e91d5cb196c', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'option', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Tipo de Actividad', 'ord' => (int) 3, 'created' => '18/09/2024 05:32:49', 'modified' => '21/11/2025 06:46:34', 'parent_field' => '', 'tooltip_title' => 'Tipo de Actividad', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '<br /> <meta charset="utf-8" /> <p dir="ltr" role="presentation"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Por favor escoja cada tipo de actividades en el cual su negocio realiza al menos una:</b></p> <ul dir="ltr"> <li><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">El tipo más alto que escoja es el que definirá la tarifa. A su vez serán contempladas en la cobertura las actividades incluídas a los tipos inferiores. Ej: Si escoge el tipo 3, la póliza cubrirá también los tipos 1 y 2.</b></li> </ul> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 1</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Extraescolares y deportivas, Talleres, Viajes, excursiones y rutas, Animación, gymkanas y actividades de Teambuilding, Campamentos, Granja escuela, Paintball, airsoft y laser combat, Rutas y Paseos a Caballo/burro, Senderismo, Montañismo y Nordic Walking, Travesías y expediciones, Alpinismo y Raquetas de nieve, Escalada y Rapel, Rutas en Segway, Rutas en BTT, Tiro al blanco, con Arco y Cerbatana, Vías Ferratas, Supervivencia y Orientación, Cursos de formación de Monitores, Puentes Colgantes y parques de Aventura con Tirolinas, Observación de Flora y Fauna, Patinaje/skateboard, Actividades de ocio con personas con Discapacidad, Mushing, Raid de Aventura, Rocódromo, Banana, Hidropedales, Barca/Canoa/kayak/Piragua, Snorkel, Navegación a Vela, Rafting, Surf y Paddle Surf, Wakeboard/bodyboard, Descenso Aguas Bravas, Parques Acuáticos en el Mar, Pesca deportiva, Hydrospeed, Rutas paisajísticas en 4x4, Esquí, Espeleología, Ciclismo, Formación en primeros auxilios de Montaña, Tirolina, Coasteering, WindSurf, Esquí Náutico, Descenso de Barrancos, Flyboard, Classes de Equitación, Hípica con pupilaje de caballos, Kite surf, Submarinismo, Espeleobuceo.</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 2</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Rutas 4x4, Trial y Enduro, Organización de Rutas en Quads y buggies, Karts, Motos Acuaticas, Motos de Nieve, Kards y Quads eléctricos para niños, Paseos y excursiones a Motor.</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 3</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Ala Delta, Heliesquí, Puenting/salto elástico, Parapente, Vuelo en Globo, Vuelo libre, Vuelo a Motor.</b></p> ', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Categoryform' => array( 'id' => (int) 250, 'active' => (int) 1, 'hash' => 'e51acc8e99d68505561de9197157bf9e45dd950c', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'nr_people', 'type_form' => (int) 6, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Número de participantes', 'ord' => (int) 6, 'created' => '18/09/2024 05:34:27', 'modified' => '25/03/2025 08:16:38', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null ) ) ) $user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = null $current_url = 'galia/seguros-galia/calcular-seguro-accidentes-turismo-activo-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-accidentes-turismo-activo-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1662 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::_renderElement() - CORE/Cake/View/View.php, line 1224 View::element() - CORE/Cake/View/View.php, line 418 include - APP/View/Pages/content.ctp, line 33 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 107
Notice (8): Undefined index: [APP/View/Elements/Widgets/widget21.ctp, line 1662]Code Context<div class="jcf-scrollable"><div class="hold-text hold-text-rules"><?php echo $this->element('Boxes/box12', array('box' => $widget['Objectsbox'][$objectsboxkey])); ?>$viewFile = '/var/www/www.galia.qbind.eu/app/View/Elements/Widgets/widget21.ctp' $dataForView = array( 'website_id' => '1', 'folder_img' => 'galia', 'pageContent' => array( 'Content' => array( 'id' => (int) 254, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 129, 'class_button' => '0', 'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'canonical' => (int) 0, 'nofollow' => (int) 0, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-accidentes-turismo-activo-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( [maximum depth reached] ) ), 'main_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'footer_menu' => array( (int) 0 => array( [maximum depth reached] ) ), 'objectsheader' => array( 'Objectsheader' => array( [maximum depth reached] ), 'Objectswidget' => array( [maximum depth reached] ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ), (int) 9 => array( [maximum depth reached] ), (int) 10 => array( [maximum depth reached] ), (int) 11 => array( [maximum depth reached] ), (int) 12 => array( [maximum depth reached] ), (int) 13 => array( [maximum depth reached] ), (int) 14 => array( [maximum depth reached] ), (int) 15 => array( [maximum depth reached] ), (int) 16 => array( [maximum depth reached] ), (int) 17 => array( [maximum depth reached] ), (int) 18 => array( [maximum depth reached] ), (int) 19 => array( [maximum depth reached] ), (int) 20 => array( [maximum depth reached] ), (int) 21 => array( [maximum depth reached] ), (int) 22 => array( [maximum depth reached] ), (int) 23 => array( [maximum depth reached] ), (int) 24 => array( [maximum depth reached] ), (int) 25 => array( [maximum depth reached] ), (int) 26 => array( [maximum depth reached] ), (int) 27 => array( [maximum depth reached] ), (int) 28 => array( [maximum depth reached] ), (int) 29 => array( [maximum depth reached] ), (int) 30 => array( [maximum depth reached] ), (int) 31 => array( [maximum depth reached] ), (int) 32 => array( [maximum depth reached] ), (int) 33 => array( [maximum depth reached] ), (int) 34 => array( [maximum depth reached] ), (int) 35 => array( [maximum depth reached] ), (int) 36 => array( [maximum depth reached] ), (int) 37 => array( [maximum depth reached] ), (int) 38 => array( [maximum depth reached] ), (int) 39 => array( [maximum depth reached] ), (int) 40 => array( [maximum depth reached] ), (int) 41 => array( [maximum depth reached] ), (int) 42 => array( [maximum depth reached] ), (int) 43 => array( [maximum depth reached] ), (int) 44 => array( [maximum depth reached] ), (int) 45 => array( [maximum depth reached] ), (int) 46 => array( [maximum depth reached] ), (int) 47 => array( [maximum depth reached] ), (int) 48 => array( [maximum depth reached] ), (int) 49 => array( [maximum depth reached] ), (int) 50 => array( [maximum depth reached] ), (int) 51 => array( [maximum depth reached] ), (int) 52 => array( [maximum depth reached] ), (int) 53 => array( [maximum depth reached] ), (int) 54 => array( [maximum depth reached] ), (int) 55 => array( [maximum depth reached] ), (int) 56 => array( [maximum depth reached] ), (int) 57 => array( [maximum depth reached] ), (int) 58 => array( [maximum depth reached] ), (int) 59 => array( [maximum depth reached] ), (int) 60 => array( [maximum depth reached] ), (int) 61 => array( [maximum depth reached] ), (int) 62 => array( [maximum depth reached] ), (int) 63 => array( [maximum depth reached] ), (int) 64 => array( [maximum depth reached] ), (int) 65 => array( [maximum depth reached] ), (int) 66 => array( [maximum depth reached] ), (int) 67 => array( [maximum depth reached] ), (int) 68 => array( [maximum depth reached] ), (int) 69 => array( [maximum depth reached] ), (int) 70 => array( [maximum depth reached] ), (int) 71 => array( [maximum depth reached] ), (int) 72 => array( [maximum depth reached] ), (int) 73 => array( [maximum depth reached] ), (int) 74 => array( [maximum depth reached] ), (int) 75 => array( [maximum depth reached] ), (int) 76 => array( [maximum depth reached] ), (int) 77 => array( [maximum depth reached] ), (int) 78 => array( [maximum depth reached] ), (int) 79 => array( [maximum depth reached] ), (int) 80 => array( [maximum depth reached] ), (int) 81 => array( [maximum depth reached] ), (int) 82 => array( [maximum depth reached] ), (int) 83 => array( [maximum depth reached] ), (int) 84 => array( [maximum depth reached] ), (int) 85 => array( [maximum depth reached] ), (int) 86 => array( [maximum depth reached] ), (int) 87 => array( [maximum depth reached] ), (int) 88 => array( [maximum depth reached] ), (int) 89 => array( [maximum depth reached] ), (int) 90 => array( [maximum depth reached] ), (int) 91 => array( [maximum depth reached] ), (int) 92 => array( [maximum depth reached] ), (int) 93 => array( [maximum depth reached] ), (int) 94 => array( [maximum depth reached] ), (int) 95 => array( [maximum depth reached] ), (int) 96 => array( [maximum depth reached] ), (int) 97 => array( [maximum depth reached] ), (int) 98 => array( [maximum depth reached] ) ) ), 'widget' => array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 131, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 254, 'ref_categorieswebsite_id' => (int) 129, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 254, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 129, 'class_button' => '0', 'maintitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'subtitle' => '06 Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_title' => 'Calcular Seguro para Accidentes Turismo Activo Galia', 'meta_key' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'meta_desc' => 'cotizar-seguro-de-accidente-turismo-activo-galia', 'canonical' => (int) 0, 'nofollow' => (int) 0, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => null, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'Category' => array( 'id' => (int) 131, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( [maximum depth reached] ), 'Objectsbox' => array([maximum depth reached]), 'Objectsboxform' => array([maximum depth reached]), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( [maximum depth reached] ) ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-accidentes-turismo-activo-galia', 'param1' => null, 'param2' => null, 'websites' => array( (int) 0 => array( 'Website' => array( [maximum depth reached] ) ) ), 'main_menu' => array( (int) 0 => array( 'id' => (int) 4, 'title' => 'Productos', 'slogan' => '', 'button' => 'Productos', 'link' => 'Productos', 'n_items' => (int) 5, 'url' => 'seguros', 'color' => 'green' ) ), 'footer_menu' => array( (int) 0 => array( 'title' => null, 'url' => null, 'n_items' => null, 'menu' => array( [maximum depth reached] ) ) ), 'objectsheader' => array( 'Objectsheader' => array( 'id' => (int) 1, 'header_id' => (int) 1 ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ) ), 'objectsfooter' => array(), 'all_categories' => array( (int) 0 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 1 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 2 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 3 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 4 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 5 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 6 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 7 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 8 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 9 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 10 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 11 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 12 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 13 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 14 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 15 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 16 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 17 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 18 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 19 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 20 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 21 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 22 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 23 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 24 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 25 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 26 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 27 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 28 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 29 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 30 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 31 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 32 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 33 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 34 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 35 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 36 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 37 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 38 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 39 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 40 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 41 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 42 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 43 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 44 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 45 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 46 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 47 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 48 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 49 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 50 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 51 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 52 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 53 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 54 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 55 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 56 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 57 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 58 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 59 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 60 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 61 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 62 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 63 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 64 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 65 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 66 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 67 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 68 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 69 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 70 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 71 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 72 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 73 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 74 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 75 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 76 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 77 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 78 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 79 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 80 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 81 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 82 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 83 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 84 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 85 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 86 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 87 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 88 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 89 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 90 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 91 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 92 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 93 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 94 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 95 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 96 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 97 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ), (int) 98 => array( 'content' => array( [maximum depth reached] ), 'categorieswebsite' => array( [maximum depth reached] ), 'categorycontent' => array( [maximum depth reached] ) ) ) ) $widget = array( 'id' => (int) 777, 'hash' => '4d17da392340302e1ac4b1dd142df4f665c1093e', 'main_title' => 'Necesitamos algunos datos para calcular tu seguro', 'main_title1' => '', 'sub_title' => '¿Quién va a contratar el seguro?', 'subsub_title' => 'Es obligatorio completar todos los campos', 'icon' => null, 'icon_alt' => null, 'main_text' => '', 'main_text_1' => null, 'tab_title' => '', 'tab_title_1' => '', 'tab_title_2' => '', 'tab_title_3' => '', 'tab_text' => null, 'tab_text_1' => '', 'tab_text_2' => '<ul> <li><span class="text">Responsabilidad Civil Explotación</span> <span class="text-number">Sin sublímite</span></li> <li><span class="text">Responsabilidad Civil Patronal (Sublímite por víctima) </span><span class="text-number">150.000 €</span></li> <li><span class="text">Procedimientos disciplinarios</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Sanciones en materia de protección de datos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Infidelidad de Empleados</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Restitución de imagen (Post-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Costes de evitación o mitigación (Pre-siniestro)</span> <span class="text-number">15.000,00 €</span></li> <li><span class="text">Pérdida de documentos</span> <span class="text-number">60.000,00 €</span></li> <li><span class="text">Asistencia psicológica</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Persona clave / Keyman</span> <span class="text-number">5.000,00 €</span></li> <li><span class="text">Derecho al olvido</span> <span class="text-number">5.000,00 €</span></li> </ul> ', 'tab_text_3' => null, 'main_img' => null, 'main_img_1' => null, 'main_img_alt' => '', 'main_img_1_alt' => '', 'button_label' => '', 'main_link_1' => 'https://galia.es/especialidades/empresas-y-asociaciones-de-turismo-activo-y-aventura/', 'main_link_2' => null, 'main_link_3' => null, 'description' => '', 'description_1' => null, 'description_2' => null, 'lon' => null, 'lat' => null, 'slogan' => null, 'author' => (int) 5, 'where_clause' => null, 'filter' => '', 'created' => '11/10/2024 03:45:12', 'modified' => '22/12/2025 07:05:51', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 254, 'main_img_2' => null, 'main_img_2_alt' => '', 'dynamic' => (int) 0, 'label0' => '', 'label1' => 'esta póliza es para ti', 'label2' => '', 'label3' => '', 'label4' => '', 'label5' => '', 'main_video' => null, 'contact' => null, 'script' => null, 'run_core' => (int) 1, 'core' => null, 'js_mobile' => (int) 0, 'js_desktop' => null, 'query_id' => null, 'quantity' => null, 'multiselect' => '129', 'msd_content_type' => null, 'dmultiselect' => null, 'label6' => null, 'label7' => null, 'label8' => null, 'mscwo_order' => null, 'objectsfooter_id' => null, 'objectsheader_id' => null, 'Widget' => array( 'hash' => 'dflisd;fjkhsdkll;sdjk ', 'name' => 'Widget for automatic form Webind', 'description' => 'Widget for automatic form Webind like widget28 but with changed steps', 'owner_id' => null, 'created' => null, 'modified' => null, 'active' => (int) 1, 'publish' => (int) 1, 'id' => (int) 21, 'formlayout' => 'rco,mt,mt1,st,sst,mtxt,tt,tt1,tt2,tt3,ttxt1,ttxt2,mi,mi1,mi2,mia,mia1,mia2,bl,ml1,desc,ms,la0,la1,la2,la3,la4,la5,jm,', 'long_description' => '', 'quotelayout' => null, 'core' => '$category_id = $Category.id; $pageContent['Objectswidget'][$widgetkey]['apidata']['category_id'] = $category_id; $step = $param1; $pageContent['Objectswidget'][$widgetkey]['apidata']['step'] = $step; if(!empty($param2)){ $quote_hash = $param2; } $categorieswebsite = $this->Categorieswebsite->find('first', array( 'conditions' => array( 'Categorieswebsite.website_id' => Configure::read('Website.website_id'), 'Categorieswebsite.category_id' => $category_id ), 'contain' => array( 'Content' => array( 'fields' => array( 'id', 'full_url', 'maintitle', 'use_steps', ), 'conditions' => array( 'Content.active' => 1 ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['categorieswebsite'] = $categorieswebsite; if(!empty($param2)){ $quote_hash = $param2; } if(!empty($step)){ if($step == 1){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'category_id', 'retro_effect_id', 'retro_effect', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); // here we are creating all the questions type, what is displayed it decided in the steps $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1, 2, 3, 9), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; $this->loadModel('Item'); $item = $this->Item->find('first', array( 'fields' => array( 'id' ), 'conditions' => array( 'Item.category_id' => $quote['Quote']['category_id'], ), 'contain' => array( 'Option' => array( 'fields' => array( 'id', 'name', ), 'conditions' => array( 'Option.active' => 1, 'Option.macro_option' => 'retroattivita' ), 'order' => array( 'Option.id ASC', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['item'] = $item; }elseif($step == 2){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST' ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Document8' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document8.active' => 1, 'Document8.public' => 1, 'Document8.documenttype_id' => 8, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document8.id DESC', ), ), 'Document23' => array( 'fields' => array( 'id', 'description', 'link_doc', 'path', 'extension', ), 'conditions' => array( 'Document23.active' => 1, 'Document23.public' => 1, 'Document23.documenttype_id' => 23, ), 'Documenttype' => array( 'fields' => array( 'id', 'name', ), ), 'order' => array( 'Document23.id DESC', ), ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'Optionlabel', ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'premium', 'minimum_premium', ), ), ), )); if(!empty($quote['Item']['Option']) && !empty($quote['Value'])){ foreach($quote['Item']['Option'] as $key => $option){ $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; if(!empty($quote['Quote']['value_id'])) { $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.value_id' => $quote['Quote']['value_id'], ), 'contain' => $contain, )); $pageContent['Objectswidget'][$widgetkey]['apidata']['tempquote'] = $tempquote; } }elseif($step == 3){ $this->loadModel('Quote'); $this->Quote->setDataSource('default'); $quote = $this->Quote->find('first', array( 'fields' => array( 'id', 'hash', 'last_turnover', 'maximum', 'date_effect', 'date_end', 'item_id', ), 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact' => array( 'fields' => array( 'id', 'hash', ), ), 'Item' => array( 'fields' => array( 'id', 'date_effect_limit_down', 'date_effect_limit_up', ), ), ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(1), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; }elseif($step == 4){ $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', ), )); $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; $this->loadModel('Zipcode'); $zipcodes = $this->Zipcode->list_zipcodes(); $pageContent['Objectswidget'][$widgetkey]['apidata']['zipcodes'] = $zipcodes; }elseif($step == 5){ $this->loadModel('Payment'); $payments = $this->Payment->find('all', array( 'conditions' => array( 'AND' => array( 'Payment.active' => 1, 'Payment.website_id' => Configure::read('Website.website_id'), 'Payment.type' => 2, ), ), 'order' => 'Payment.order', )); $pageContent['Objectswidget'][$widgetkey]['apidata']['payments'] = $payments; $today = date('d/m/Y'); $this->loadModel('Quote'); $quote = $this->Quote->find('first', array( 'conditions' => array( 'Quote.hash' => $quote_hash ), 'contain' => array( 'Contact', 'Item' => array( 'fields' => array( 'id', 'name', 'weblabel', 'turnover_type', 'extra_option', 'gross_rate', 'taxes', 'accessories', ), 'Paymenttype' => array( 'conditions' => array( 'Paymenttype.active' => 1, ), 'order' => 'Paymenttype.default DESC NULLS LAST', ), 'Company' => array( 'fields' => array( 'id', 'surname', 'company_logo', 'company_description', ) ), 'Category' => array( 'fields' => array( 'id', 'name', ) ), 'Document' => array( 'Documenttype', ), 'Option' => array( 'fields' => array( 'id', 'name', 'macro_option', 'value', 'type_calc', 'calculation', 'default', 'description', 'description2', ), 'conditions' => array( 'Option.active' => 1, 'Option.default' => 0, 'Option.macro_option' => 'extra', ), ), 'Itemdiscount' => array( 'fields' => array( 'id', 'value', 'code', ), 'conditions' => array( 'Itemdiscount.active' => 1, 'Itemdiscount.apply_id' => 1, 'AND' => array( 'Itemdiscount.date_start <=' => $today, 'Itemdiscount.date_end >=' => $today, ), ), 'order' => array( 'Itemdiscount.id DESC', ), ), ), 'Value' => array( 'fields' => array( 'id', 'rates', 'minimum_premium', 'premium', 'deductible', ), ), ), )); $this->loadModel('Aquestion'); $aquestions = $this->Aquestion->get_aquestions(14, $quote['Quote']['id'], array(2), 1, 'slave'); $pageContent['Objectswidget'][$widgetkey]['apidata']['aquestions'] = $aquestions; if(!empty($quote['Item']['Option']) && !empty($quote['Value'])) { foreach($quote['Item']['Option'] as $option_key => $option) { $opt = array(); $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $option; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Item']['Option'][$option_key]['option_value'] = $option_value; } } $this->loadModel('Tempquote'); $options_count = $this->Tempquote->options_count; $extra_count = $this->Tempquote->extra_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['options_count'] = $options_count; $pageContent['Objectswidget'][$widgetkey]['apidata']['extra_count'] = $extra_count; $contain = array(); for ($x = 1; $x <= $options_count; $x++) { $contain['Option' . $x] = array( 'conditions' => array( 'Option' . $x . '.active' => 1, ), ); } for ($x = 1; $x <= $extra_count; $x++) { $contain['Extra' . $x] = array( 'conditions' => array( 'Extra' . $x . '.active' => 1, ), ); } $tempquote = $this->Tempquote->find('first', array( 'conditions' => array( 'Tempquote.value_id' => $quote['Quote']['value_id'], 'Tempquote.quote_id' => $quote['Quote']['id'], 'Tempquote.active' => '1' ), 'contain' => $contain, 'recursive' => -1 )); $quote['Quote']['Tempquote'] = $tempquote['Tempquote']; for ($x = 1; $x <= $options_count; $x++) { if(!empty($tempquote['Option' . $x])){ $quote['Quote']['Tempquote']['Option' . $x] = $tempquote['Option' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Option' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Option' . $x]['option_value'] = $option_value; } } for ($x = 1; $x <= $extra_count; $x++) { if(!empty($tempquote['Extra' . $x])){ $quote['Quote']['Tempquote']['Extra' . $x] = $tempquote['Extra' . $x]; $item['Item'] = $quote['Item']; $value['Value'] = $quote['Value']; $calculateitems_options = null; $opt['Option'] = $tempquote['Extra' . $x]; $option_value = $this->Quote->calculateOption($quote, $item, $value, $calculateitems_options, $opt); $quote['Quote']['Tempquote']['Extra' . $x]['option_value'] = $option_value; } } $pageContent['Objectswidget'][$widgetkey]['apidata']['quote'] = $quote; } } else { $this->loadModel('Privacy'); $privacies = $this->Privacy->getprivacies($category_id); $pageContent['Objectswidget'][$widgetkey]['apidata']['privacies'] = $privacies; } $this->loadModel('Categoryform'); $forms = $this->Categoryform->find('all', array( 'conditions' => array( 'AND' => array( 'Categoryform.active' => 1, 'Categoryform.category_id' => $category_id, 'Categoryform.specialization_id is null', 'Categoryform.option is null', ), ), 'order' => array( 'Categoryform.ord' ), )); if (!empty($forms)) { $this->loadModel('Value'); foreach ($forms as $formkey => $form) { if (!empty($form['Categoryform']['json_values'])) { $forms[$formkey]['Categoryform']['values'] = json_decode($form['Categoryform']['json_values'], true); } if (empty($form['Categoryform']['values'])) { if ($form['Categoryform']['type_form'] == '1') { $forms[$formkey]['Categoryform']['values'] = $form['Categoryform']['label']; continue; } if ($form['Categoryform']['field'] == 'last_turnover') { $turnovers = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.turnover', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.turnover ASC' ) )); //$this->log('$turnovers'); //$this->log($turnovers); //Preparo l'array dei massimali $turnovers_formatted = array(); foreach ($turnovers as $turnover) { $turnovers_formatted[$turnover['Value']['turnover']] = CakeNumber::currency($turnover['Value']['turnover'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $turnovers_formatted; //$this->log('$turnovers_formatted'); //$this->log($turnovers_formatted); } if ($form['Categoryform']['field'] == 'maximum') { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } if ($form['Categoryform']['field'] == 'specialization_id') { $specializations = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.specialization_id', 'Specialization.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Specialization' => array( 'fields' => array( 'id', 'name', 'svg', ), ), ), 'order' => array('Specialization.name asc'), )); //$this->log('$specializations'); //$this->log($specializations); if (!empty($specializations)) { foreach ($specializations as $specialization) { $forms[$formkey]['Categoryform']['value'][$specialization['Specialization']['id']] = array( 'id' => $specialization['Specialization']['id'], 'name' => $specialization['Specialization']['name'], 'svg' => $specialization['Specialization']['svg'], ); } } $specializations = Hash::combine($specializations, '{n}.Value.specialization_id', '{n}.Specialization.name'); $forms[$formkey]['Categoryform']['values'] = $specializations; } if ($form['Categoryform']['field'] == 'option') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option', 'Valuesoption.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option', '{n}.Valuesoption.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'option1') { if (!empty($form['Categoryform']['specialization_id'])) { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.specialization_id' => $form['Categoryform']['specialization_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } else { $options = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.option_1', 'Valuesoption1.name' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'contain' => array( 'Valuesoption1' => array( 'fields' => array( 'id', 'name', ), ), ), 'order' => array( 'Valuesoption1.name ASC' ), )); } $options = Hash::combine($options, '{n}.Value.option_1', '{n}.Valuesoption1.name'); $forms[$formkey]['Categoryform']['values'] = $options; } if ($form['Categoryform']['field'] == 'year_loan') { $year_contracts = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.year_contract', 'Value.year_contract' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], ), ), 'order' => array( 'Value.year_contract ASC' ), )); $year_contracts = Hash::combine($year_contracts, '{n}.Value.year_contract', '{n}.Value.year_contract'); $forms[$formkey]['Categoryform']['values'] = $year_contracts; } if ($form['Categoryform']['field'] == 'current_turnover' && !empty($form['Categoryform']['option'])) { $maximums = $this->Value->find('all', array( 'fields' => array( 'DISTINCT Value.maximum', 'Value.item_id' ), 'conditions' => array( 'AND' => array( 'Value.active' => 1, 'Value.category_id' => $form['Categoryform']['category_id'], 'Value.option' => $form['Categoryform']['option'], 'Value.minimum_premium !=' => '0', ), ), 'order' => array( 'Value.maximum ASC' ) )); //Preparo l'array dei massimali $maximums_formatted = array(); foreach ($maximums as $maximum) { $maximums_formatted[$maximum['Value']['maximum']] = CakeNumber::currency($maximum['Value']['maximum'], 'EUR'); } $forms[$formkey]['Categoryform']['values'] = $maximums_formatted; } } } } $pageContent['Objectswidget'][$widgetkey]['apidata']['forms'] = $forms; ', 'filter' => '' ), 'Objectsbox' => array(), 'Objectsboxform' => array(), 'folder_img' => 'galia', 'param1' => '', 'param2' => '', 'apidata' => array( 'category_id' => (int) 131, 'step' => '', 'categorieswebsite' => array( 'Categorieswebsite' => array( [maximum depth reached] ), 'Content' => array( [maximum depth reached] ) ), 'privacies' => array( (int) 0 => array( [maximum depth reached] ) ), 'forms' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 254 $ref_categorieswebsite_id = (int) 129 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 131 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 129, 'category_id' => (int) 131, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Accidentes Turismo Activo Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 121, 'content_type' => (int) 3, 'hash' => 'sdfsdfsdfsdfdfdfg', 'host_id' => null, 'created' => null, 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 8 ), 'Content' => array( (int) 0 => array( 'id' => (int) 260, 'full_url' => 'galia/seguros-galia/accidentes-turismo-activo-galia', 'maintitle' => 'Accidentes Turismo Activo Galia', 'use_steps' => (int) 0, 'categorieswebsite_id' => (int) 129 ) ) ) $privacies = array( (int) 0 => array( 'Privacy' => array( 'id' => (int) 4, 'parent_id' => null, 'type_form' => (int) 1, 'is_parent' => null, 'name' => 'Privacy for Seguros', 'description' => 'He leído y acepto los términos y condiciones de <a class="link-pink" href="https://galia.es/politica-privacidad/" target="_blank">La política de privacidad</a>.', 'error_msg' => 'Por favor confirme que ha leído y aceptado los términos y condiciones de la política de privacidad', 'ord' => (int) 2, 'required' => (int) 1 ) ) ) $forms = array( (int) 0 => array( 'Categoryform' => array( 'id' => (int) 247, 'active' => (int) 1, 'hash' => '46224192a787a417bf9b6d06f0e0fc7197eeb959', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'option1', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿Cómo quieres contratar tu seguro de accidentes?', 'ord' => (int) 1, 'created' => '18/09/2024 05:31:05', 'modified' => '30/10/2024 10:01:48', 'parent_field' => '', 'tooltip_title' => '¿Cómo quieres contratar tu seguro de accidentes?', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => 'a) Por día: Con el número máximo de participantes diarios ( "aforo" máximo de participantes en el día de más actividad). Sin límite Anual.<br /> b) Por año: Con el número de participantes que realizan actividades al cabo del año ("pax" por actividad). Sin límite diario', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 249, 'active' => (int) 1, 'hash' => 'f361a611dcaf47be52e8c332cbfbd65e7d01b7ed', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'specialization_id', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿Su empresa se encuentra registrada en la comunidad autónoma de Asturias?', 'ord' => (int) 2, 'created' => '18/09/2024 05:33:59', 'modified' => '13/01/2025 10:05:54', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null, 'value' => array( [maximum depth reached] ), 'values' => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 248, 'active' => (int) 1, 'hash' => 'd72124b6b7bc8ac2af5a1d338c636e91d5cb196c', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'option', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Tipo de Actividad', 'ord' => (int) 3, 'created' => '18/09/2024 05:32:49', 'modified' => '21/11/2025 06:46:34', 'parent_field' => '', 'tooltip_title' => 'Tipo de Actividad', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '<br /> <meta charset="utf-8" /> <p dir="ltr" role="presentation"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Por favor escoja cada tipo de actividades en el cual su negocio realiza al menos una:</b></p> <ul dir="ltr"> <li><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">El tipo más alto que escoja es el que definirá la tarifa. A su vez serán contempladas en la cobertura las actividades incluídas a los tipos inferiores. Ej: Si escoge el tipo 3, la póliza cubrirá también los tipos 1 y 2.</b></li> </ul> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 1</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Extraescolares y deportivas, Talleres, Viajes, excursiones y rutas, Animación, gymkanas y actividades de Teambuilding, Campamentos, Granja escuela, Paintball, airsoft y laser combat, Rutas y Paseos a Caballo/burro, Senderismo, Montañismo y Nordic Walking, Travesías y expediciones, Alpinismo y Raquetas de nieve, Escalada y Rapel, Rutas en Segway, Rutas en BTT, Tiro al blanco, con Arco y Cerbatana, Vías Ferratas, Supervivencia y Orientación, Cursos de formación de Monitores, Puentes Colgantes y parques de Aventura con Tirolinas, Observación de Flora y Fauna, Patinaje/skateboard, Actividades de ocio con personas con Discapacidad, Mushing, Raid de Aventura, Rocódromo, Banana, Hidropedales, Barca/Canoa/kayak/Piragua, Snorkel, Navegación a Vela, Rafting, Surf y Paddle Surf, Wakeboard/bodyboard, Descenso Aguas Bravas, Parques Acuáticos en el Mar, Pesca deportiva, Hydrospeed, Rutas paisajísticas en 4x4, Esquí, Espeleología, Ciclismo, Formación en primeros auxilios de Montaña, Tirolina, Coasteering, WindSurf, Esquí Náutico, Descenso de Barrancos, Flyboard, Classes de Equitación, Hípica con pupilaje de caballos, Kite surf, Submarinismo, Espeleobuceo.</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 2</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Rutas 4x4, Trial y Enduro, Organización de Rutas en Quads y buggies, Karts, Motos Acuaticas, Motos de Nieve, Kards y Quads eléctricos para niños, Paseos y excursiones a Motor.</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Actividades tipo 3</b></p> <p dir="ltr"><b id="docs-internal-guid-af6e80fe-7fff-2a3e-92d1-5761296c274d">Ala Delta, Heliesquí, Puenting/salto elástico, Parapente, Vuelo en Globo, Vuelo libre, Vuelo a Motor.</b></p> ', 'item_id' => null, 'values' => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Categoryform' => array( 'id' => (int) 250, 'active' => (int) 1, 'hash' => 'e51acc8e99d68505561de9197157bf9e45dd950c', 'category_id' => (int) 131, 'specialization_id' => null, 'option' => null, 'field' => 'nr_people', 'type_form' => (int) 6, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Número de participantes', 'ord' => (int) 6, 'created' => '18/09/2024 05:34:27', 'modified' => '25/03/2025 08:16:38', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'item_id' => null ) ) ) $user_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = null $current_url = 'galia/seguros-galia/calcular-seguro-accidentes-turismo-activo-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-accidentes-turismo-activo-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1662 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::_renderElement() - CORE/Cake/View/View.php, line 1224 View::element() - CORE/Cake/View/View.php, line 418 include - APP/View/Pages/content.ctp, line 33 View::_evaluate() - CORE/Cake/View/View.php, line 971 View::_render() - CORE/Cake/View/View.php, line 933 View::render() - CORE/Cake/View/View.php, line 473 Controller::render() - CORE/Cake/Controller/Controller.php, line 968 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 107