Coberturas y garantías adicionales
close- Responsabilidad Civil Explotación Sin sublímite
- Responsabilidad Civil Patronal (Sublímite por víctima) 150.000,00 €
- 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 1606]
</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) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 243,
'ref_categorieswebsite_id' => (int) 117,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
'id' => (int) 118,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'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]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 243
$ref_categorieswebsite_id = (int) 117
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 118
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Arquitecto Superior Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 120,
'content_type' => (int) 3,
'hash' => '21a197d175e9f9ccf3c1b92c630c48c43c999dc0',
'host_id' => null,
'created' => '25/07/2024 09:22:50',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 2
),
'Content' => array(
(int) 0 => array(
'id' => (int) 230,
'full_url' => 'galia/seguros-galia/arquitecto-superior.html',
'maintitle' => 'Seguro de Arquitecto Superior Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 117
)
)
)
$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) 231,
'active' => (int) 1,
'hash' => '4809518dec9b58d22eb6f1d83cf65e3b6f345177',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿La facturación en edificios de más de 3 alturas, piscinas, escuelas u hospitales supera el 20%?',
'ord' => (int) 1,
'created' => '03/09/2024 09:52:21',
'modified' => '30/01/2025 05:41:59',
'parent_field' => '',
'tooltip_title' => 'Volumen de facturación',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'El volumen del total de la facturación de su empresa en el desarrollo de Edificios de viviendas de más de 3 alturas, en Piscinas y Escuelas, hospitales, edificios municipales o singulares es superior al 20 %? ',
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 228,
'active' => (int) 1,
'hash' => '81c3737da78c7d5e1ba1690b02b7f9f854872acd',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 4,
'created' => '03/09/2024 09:47:52',
'modified' => '16/01/2025 10:56:11',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 242,
'active' => (int) 1,
'hash' => 'a824cf4e935749c33aca60be341cd8cab7f7c0e2',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'current_turnover',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Facturación esperada en el año corriente',
'ord' => (int) 5,
'created' => '05/09/2024 10:56:59',
'modified' => '30/01/2025 09:48:30',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => ''
)
)
)
$user_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = (int) 0
$current_url = 'galia/seguros-galia/calcular-seguro-arquitectos-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-arquitectos-galia'
)
$step_title = ''
$steps = (int) 0
include - APP/View/Elements/Widgets/widget21.ctp, line 1606
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 1606]
</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) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 243,
'ref_categorieswebsite_id' => (int) 117,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
'id' => (int) 118,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'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]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 243
$ref_categorieswebsite_id = (int) 117
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 118
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Arquitecto Superior Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 120,
'content_type' => (int) 3,
'hash' => '21a197d175e9f9ccf3c1b92c630c48c43c999dc0',
'host_id' => null,
'created' => '25/07/2024 09:22:50',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 2
),
'Content' => array(
(int) 0 => array(
'id' => (int) 230,
'full_url' => 'galia/seguros-galia/arquitecto-superior.html',
'maintitle' => 'Seguro de Arquitecto Superior Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 117
)
)
)
$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) 231,
'active' => (int) 1,
'hash' => '4809518dec9b58d22eb6f1d83cf65e3b6f345177',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿La facturación en edificios de más de 3 alturas, piscinas, escuelas u hospitales supera el 20%?',
'ord' => (int) 1,
'created' => '03/09/2024 09:52:21',
'modified' => '30/01/2025 05:41:59',
'parent_field' => '',
'tooltip_title' => 'Volumen de facturación',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'El volumen del total de la facturación de su empresa en el desarrollo de Edificios de viviendas de más de 3 alturas, en Piscinas y Escuelas, hospitales, edificios municipales o singulares es superior al 20 %? ',
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 228,
'active' => (int) 1,
'hash' => '81c3737da78c7d5e1ba1690b02b7f9f854872acd',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 4,
'created' => '03/09/2024 09:47:52',
'modified' => '16/01/2025 10:56:11',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 242,
'active' => (int) 1,
'hash' => 'a824cf4e935749c33aca60be341cd8cab7f7c0e2',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'current_turnover',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Facturación esperada en el año corriente',
'ord' => (int) 5,
'created' => '05/09/2024 10:56:59',
'modified' => '30/01/2025 09:48:30',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => ''
)
)
)
$user_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = (int) 0
$current_url = 'galia/seguros-galia/calcular-seguro-arquitectos-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-arquitectos-galia'
)
$step_title = ''
$steps = (int) 0
include - APP/View/Elements/Widgets/widget21.ctp, line 1606
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 1606]
</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) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
[maximum depth reached]
)
),
'Objectswidget' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'one' => 'galia',
'two' => 'seguros-galia',
'tree' => 'calcular-seguro-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'step' => '',
'categorieswebsite' => array(
[maximum depth reached]
),
'privacies' => array(
[maximum depth reached]
),
'forms' => array(
[maximum depth reached]
)
)
),
'sitemaps' => '',
'meanrating' => '',
'content_id' => (int) 243,
'ref_categorieswebsite_id' => (int) 117,
'contentColor' => '0'
)
$website_id = '1'
$folder_img = 'galia'
$pageContent = array(
'Content' => array(
'id' => (int) 243,
'categorieswebsite_id' => null,
'ref_categorieswebsite_id' => (int) 117,
'class_button' => '0',
'maintitle' => '01Calcular Seguro para Arquitectos Galia',
'subtitle' => '01Calcular Seguro para Arquitectos Galia',
'meta_title' => 'Calcular Seguro para Arquitectos Galia',
'meta_key' => 'cotizar-seguro-de-arquitectos-galia',
'meta_desc' => 'cotizar-seguro-de-arquitectos-galia',
'canonical' => (int) 0,
'nofollow' => (int) 1,
'robot' => (int) 0,
'quoteview_id' => (int) 37,
'use_steps' => (int) 1,
'filter_position' => (int) 0,
'use_query' => (int) 0,
'class_color' => 'green'
),
'Categorieswebsite' => array(
'id' => null,
'category_id' => null,
'parent_id' => null
),
'Refcategorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'Category' => array(
'id' => (int) 118,
'contact_type' => (int) 2
)
),
'Objectswidget' => array(
(int) 0 => array(
'id' => (int) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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-arquitectos-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) 767,
'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677',
'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,00 €</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' => 'waiting',
'main_img_1_alt' => '',
'button_label' => 'SIGUIENTE',
'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/',
'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' => '01/10/2024 04:16:03',
'modified' => '03/06/2025 04:11:10',
'widgetorder' => (int) 1,
'website_id' => (int) 1,
'template_id' => (int) 1,
'widget_id' => (int) 21,
'publish' => (int) 1,
'active' => (int) 1,
'content_id' => (int) 243,
'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' => '10',
'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');
$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) 118,
'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]
)
)
)
)
$sitemaps = ''
$meanrating = ''
$content_id = (int) 243
$ref_categorieswebsite_id = (int) 117
$contentColor = '0'
$quoteview_id = (int) 37
$category_id = (int) 118
$step = (int) 0
$use_steps = (int) 1
$quote_url = '/quotes/steps_beforeselect'
$categorieswebsite = array(
'Categorieswebsite' => array(
'id' => (int) 117,
'category_id' => (int) 118,
'website_id' => (int) 1,
'active' => (int) 1,
'weblabel' => 'Seguro de Arquitecto Superior Galia',
'online_enable' => (int) 1,
'internal_enable' => (int) 1,
'sender_name' => 'Galia - Seguros',
'sender_email' => 'info@galia.qbind.eu',
'parent_id' => (int) 120,
'content_type' => (int) 3,
'hash' => '21a197d175e9f9ccf3c1b92c630c48c43c999dc0',
'host_id' => null,
'created' => '25/07/2024 09:22:50',
'modified' => '25/04/2025 07:42:54',
'ord' => (int) 2
),
'Content' => array(
(int) 0 => array(
'id' => (int) 230,
'full_url' => 'galia/seguros-galia/arquitecto-superior.html',
'maintitle' => 'Seguro de Arquitecto Superior Galia',
'use_steps' => null,
'categorieswebsite_id' => (int) 117
)
)
)
$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) 231,
'active' => (int) 1,
'hash' => '4809518dec9b58d22eb6f1d83cf65e3b6f345177',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'specialization_id',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => '¿La facturación en edificios de más de 3 alturas, piscinas, escuelas u hospitales supera el 20%?',
'ord' => (int) 1,
'created' => '03/09/2024 09:52:21',
'modified' => '30/01/2025 05:41:59',
'parent_field' => '',
'tooltip_title' => 'Volumen de facturación',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => 'El volumen del total de la facturación de su empresa en el desarrollo de Edificios de viviendas de más de 3 alturas, en Piscinas y Escuelas, hospitales, edificios municipales o singulares es superior al 20 %? ',
'value' => array(
[maximum depth reached]
),
'values' => array(
[maximum depth reached]
)
)
),
(int) 1 => array(
'Categoryform' => array(
'id' => (int) 228,
'active' => (int) 1,
'hash' => '81c3737da78c7d5e1ba1690b02b7f9f854872acd',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'maximum',
'type_form' => (int) 3,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Límite máximo de cobertura',
'ord' => (int) 4,
'created' => '03/09/2024 09:47:52',
'modified' => '16/01/2025 10:56:11',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => '',
'values' => array(
[maximum depth reached]
)
)
),
(int) 2 => array(
'Categoryform' => array(
'id' => (int) 242,
'active' => (int) 1,
'hash' => 'a824cf4e935749c33aca60be341cd8cab7f7c0e2',
'category_id' => (int) 118,
'specialization_id' => null,
'option' => null,
'field' => 'current_turnover',
'type_form' => (int) 6,
'conditions' => null,
'sort' => null,
'json_values' => '',
'label' => 'Facturación esperada en el año corriente',
'ord' => (int) 5,
'created' => '05/09/2024 10:56:59',
'modified' => '30/01/2025 09:48:30',
'parent_field' => '',
'tooltip_title' => '',
'tooltip_content' => '',
'host_id' => null,
'tooltip_content_modal' => ''
)
)
)
$user_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)'
$autocomplete = 'off'
$class = 'green'
$contact_type = (int) 2
$use_query = (int) 0
$current_url = 'galia/seguros-galia/calcular-seguro-arquitectos-galia'
$urls = array(
(int) 0 => 'galia',
(int) 1 => 'seguros-galia',
(int) 2 => 'calcular-seguro-arquitectos-galia'
)
$step_title = ''
$steps = (int) 0
include - APP/View/Elements/Widgets/widget21.ctp, line 1606
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 1656]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) 243, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 117, 'class_button' => '0', 'maintitle' => '01Calcular Seguro para Arquitectos Galia', 'subtitle' => '01Calcular Seguro para Arquitectos Galia', 'meta_title' => 'Calcular Seguro para Arquitectos Galia', 'meta_key' => 'cotizar-seguro-de-arquitectos-galia', 'meta_desc' => 'cotizar-seguro-de-arquitectos-galia', 'canonical' => (int) 0, 'nofollow' => (int) 1, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => (int) 0, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-arquitectos-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) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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'); $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) 118, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 243, 'ref_categorieswebsite_id' => (int) 117, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 243, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 117, 'class_button' => '0', 'maintitle' => '01Calcular Seguro para Arquitectos Galia', 'subtitle' => '01Calcular Seguro para Arquitectos Galia', 'meta_title' => 'Calcular Seguro para Arquitectos Galia', 'meta_key' => 'cotizar-seguro-de-arquitectos-galia', 'meta_desc' => 'cotizar-seguro-de-arquitectos-galia', 'canonical' => (int) 0, 'nofollow' => (int) 1, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => (int) 0, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'Category' => array( 'id' => (int) 118, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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-arquitectos-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) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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'); $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) 118, '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] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 243 $ref_categorieswebsite_id = (int) 117 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 118 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Seguro de Arquitecto Superior Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 120, 'content_type' => (int) 3, 'hash' => '21a197d175e9f9ccf3c1b92c630c48c43c999dc0', 'host_id' => null, 'created' => '25/07/2024 09:22:50', 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 2 ), 'Content' => array( (int) 0 => array( 'id' => (int) 230, 'full_url' => 'galia/seguros-galia/arquitecto-superior.html', 'maintitle' => 'Seguro de Arquitecto Superior Galia', 'use_steps' => null, 'categorieswebsite_id' => (int) 117 ) ) ) $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) 231, 'active' => (int) 1, 'hash' => '4809518dec9b58d22eb6f1d83cf65e3b6f345177', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'specialization_id', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿La facturación en edificios de más de 3 alturas, piscinas, escuelas u hospitales supera el 20%?', 'ord' => (int) 1, 'created' => '03/09/2024 09:52:21', 'modified' => '30/01/2025 05:41:59', 'parent_field' => '', 'tooltip_title' => 'Volumen de facturación', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => 'El volumen del total de la facturación de su empresa en el desarrollo de Edificios de viviendas de más de 3 alturas, en Piscinas y Escuelas, hospitales, edificios municipales o singulares es superior al 20 %? ', 'value' => array( [maximum depth reached] ), 'values' => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 228, 'active' => (int) 1, 'hash' => '81c3737da78c7d5e1ba1690b02b7f9f854872acd', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'maximum', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Límite máximo de cobertura', 'ord' => (int) 4, 'created' => '03/09/2024 09:47:52', 'modified' => '16/01/2025 10:56:11', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'values' => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 242, 'active' => (int) 1, 'hash' => 'a824cf4e935749c33aca60be341cd8cab7f7c0e2', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'current_turnover', 'type_form' => (int) 6, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Facturación esperada en el año corriente', 'ord' => (int) 5, 'created' => '05/09/2024 10:56:59', 'modified' => '30/01/2025 09:48:30', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '' ) ) ) $user_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = (int) 0 $current_url = 'galia/seguros-galia/calcular-seguro-arquitectos-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-arquitectos-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1656 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 1656]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) 243, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 117, 'class_button' => '0', 'maintitle' => '01Calcular Seguro para Arquitectos Galia', 'subtitle' => '01Calcular Seguro para Arquitectos Galia', 'meta_title' => 'Calcular Seguro para Arquitectos Galia', 'meta_key' => 'cotizar-seguro-de-arquitectos-galia', 'meta_desc' => 'cotizar-seguro-de-arquitectos-galia', 'canonical' => (int) 0, 'nofollow' => (int) 1, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => (int) 0, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'Category' => array( [maximum depth reached] ) ), 'Objectswidget' => array( (int) 0 => array( [maximum depth reached] ) ), 'one' => 'galia', 'two' => 'seguros-galia', 'tree' => 'calcular-seguro-arquitectos-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) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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'); $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) 118, 'step' => '', 'categorieswebsite' => array( [maximum depth reached] ), 'privacies' => array( [maximum depth reached] ), 'forms' => array( [maximum depth reached] ) ) ), 'sitemaps' => '', 'meanrating' => '', 'content_id' => (int) 243, 'ref_categorieswebsite_id' => (int) 117, 'contentColor' => '0' ) $website_id = '1' $folder_img = 'galia' $pageContent = array( 'Content' => array( 'id' => (int) 243, 'categorieswebsite_id' => null, 'ref_categorieswebsite_id' => (int) 117, 'class_button' => '0', 'maintitle' => '01Calcular Seguro para Arquitectos Galia', 'subtitle' => '01Calcular Seguro para Arquitectos Galia', 'meta_title' => 'Calcular Seguro para Arquitectos Galia', 'meta_key' => 'cotizar-seguro-de-arquitectos-galia', 'meta_desc' => 'cotizar-seguro-de-arquitectos-galia', 'canonical' => (int) 0, 'nofollow' => (int) 1, 'robot' => (int) 0, 'quoteview_id' => (int) 37, 'use_steps' => (int) 1, 'filter_position' => (int) 0, 'use_query' => (int) 0, 'class_color' => 'green' ), 'Categorieswebsite' => array( 'id' => null, 'category_id' => null, 'parent_id' => null ), 'Refcategorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'Category' => array( 'id' => (int) 118, 'contact_type' => (int) 2 ) ), 'Objectswidget' => array( (int) 0 => array( 'id' => (int) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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-arquitectos-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) 767, 'hash' => '85da0e09e1d4a397bf97b66901b78367d1c4f677', '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,00 €</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' => 'waiting', 'main_img_1_alt' => '', 'button_label' => 'SIGUIENTE', 'main_link_1' => 'https://www.segurosconstruccion.com/responsabilidad-civil-para-arquitectos/', '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' => '01/10/2024 04:16:03', 'modified' => '03/06/2025 04:11:10', 'widgetorder' => (int) 1, 'website_id' => (int) 1, 'template_id' => (int) 1, 'widget_id' => (int) 21, 'publish' => (int) 1, 'active' => (int) 1, 'content_id' => (int) 243, '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' => '10', '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'); $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) 118, '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] ) ) ) ) $sitemaps = '' $meanrating = '' $content_id = (int) 243 $ref_categorieswebsite_id = (int) 117 $contentColor = '0' $quoteview_id = (int) 37 $category_id = (int) 118 $step = (int) 0 $use_steps = (int) 1 $quote_url = '/quotes/steps_beforeselect' $categorieswebsite = array( 'Categorieswebsite' => array( 'id' => (int) 117, 'category_id' => (int) 118, 'website_id' => (int) 1, 'active' => (int) 1, 'weblabel' => 'Seguro de Arquitecto Superior Galia', 'online_enable' => (int) 1, 'internal_enable' => (int) 1, 'sender_name' => 'Galia - Seguros', 'sender_email' => 'info@galia.qbind.eu', 'parent_id' => (int) 120, 'content_type' => (int) 3, 'hash' => '21a197d175e9f9ccf3c1b92c630c48c43c999dc0', 'host_id' => null, 'created' => '25/07/2024 09:22:50', 'modified' => '25/04/2025 07:42:54', 'ord' => (int) 2 ), 'Content' => array( (int) 0 => array( 'id' => (int) 230, 'full_url' => 'galia/seguros-galia/arquitecto-superior.html', 'maintitle' => 'Seguro de Arquitecto Superior Galia', 'use_steps' => null, 'categorieswebsite_id' => (int) 117 ) ) ) $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) 231, 'active' => (int) 1, 'hash' => '4809518dec9b58d22eb6f1d83cf65e3b6f345177', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'specialization_id', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => '¿La facturación en edificios de más de 3 alturas, piscinas, escuelas u hospitales supera el 20%?', 'ord' => (int) 1, 'created' => '03/09/2024 09:52:21', 'modified' => '30/01/2025 05:41:59', 'parent_field' => '', 'tooltip_title' => 'Volumen de facturación', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => 'El volumen del total de la facturación de su empresa en el desarrollo de Edificios de viviendas de más de 3 alturas, en Piscinas y Escuelas, hospitales, edificios municipales o singulares es superior al 20 %? ', 'value' => array( [maximum depth reached] ), 'values' => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Categoryform' => array( 'id' => (int) 228, 'active' => (int) 1, 'hash' => '81c3737da78c7d5e1ba1690b02b7f9f854872acd', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'maximum', 'type_form' => (int) 3, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Límite máximo de cobertura', 'ord' => (int) 4, 'created' => '03/09/2024 09:47:52', 'modified' => '16/01/2025 10:56:11', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '', 'values' => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Categoryform' => array( 'id' => (int) 242, 'active' => (int) 1, 'hash' => 'a824cf4e935749c33aca60be341cd8cab7f7c0e2', 'category_id' => (int) 118, 'specialization_id' => null, 'option' => null, 'field' => 'current_turnover', 'type_form' => (int) 6, 'conditions' => null, 'sort' => null, 'json_values' => '', 'label' => 'Facturación esperada en el año corriente', 'ord' => (int) 5, 'created' => '05/09/2024 10:56:59', 'modified' => '30/01/2025 09:48:30', 'parent_field' => '', 'tooltip_title' => '', 'tooltip_content' => '', 'host_id' => null, 'tooltip_content_modal' => '' ) ) ) $user_agent = 'CCBot/2.0 (https://commoncrawl.org/faq/)' $autocomplete = 'off' $class = 'green' $contact_type = (int) 2 $use_query = (int) 0 $current_url = 'galia/seguros-galia/calcular-seguro-arquitectos-galia' $urls = array( (int) 0 => 'galia', (int) 1 => 'seguros-galia', (int) 2 => 'calcular-seguro-arquitectos-galia' ) $step_title = '' $steps = (int) 0include - APP/View/Elements/Widgets/widget21.ctp, line 1656 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