Add location information to the demo

This commit is contained in:
jordi fita mas 2024-01-10 19:22:27 +01:00
parent 07223f64d2
commit 9a7d7bf0de
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ values (52, 42, 'employee')
select setup_redsys(52, '361716962', '1', 'test', 'redirect', 'sq7HjrUOBfKmC576ILgskD5srU870gJ7'); select setup_redsys(52, '361716962', '1', 'test', 'redirect', 'sq7HjrUOBfKmC576ILgskD5srU870gJ7');
select setup_location(52, '<div><h3>On som</h3><p>Ctra. de Sadernes, km 2, 17855 MONTAGUT i OIX</p></div>', '<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d44661.89614700166!2d2.57381383167473!3d42.24000148364468!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x12bab79ff3b0f007%3A0x65b7563a5d1548e6!2sCamping%20Montagut!5e0!3m2!1sca!2sus!4v1703225042845!5m2!1sca!2sus" width="100%" height="600" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>', '<div><p><strong>Càmping i Safari tents:</strong><br />de 08/04 a 09/10</p><p><strong>Cabanes i Bungalows:</strong><br />de 08/04 a 11/12</p><p><strong>ACSI</strong>:<br />de 08/04 a 11/12</p></div>');
select translate_location(52, 'en', '<div><h3>Where are we</h3><p>Ctra. de Sadernes, km. 2, 17855 MONTAGUT and OIX</p></div>', '<div><p><strong>Camping and Safari tents:</strong><br />from 08/04 to 09/10</p><p><strong>Wooden lodges and Bungalows:</strong><br />from 08/04 to 11/12</p><p><strong>ACSI</strong>:<br />from 08/04 to 11/12</p></div>');
select translate_location(52, 'es', '<div><h3>Dónde estamos</h3><p>Ctra. de Sadernes, km 2, 17855 MONTAGUT y OIX</p></div>', '<div><p><strong>Cámping y Safari tents:</strong><br />de 08/04 a 09/10</p><p><strong>Cabañas y Bungalows:</strong><br />de 08/04 a 11/12</p><p><strong>ACSI</strong>:<br />de 08/04 a 11/12</p></div>');
select translate_location(52, 'fr', '<div><h3>Où nous trouver?</h3><p>Ctra. de Sadernes, km 2, 17855 MONTAGUT et OIX</p></div>', '<div><p><strong>Camping et Safari tents:</strong><br />de 08/04 à 09/10</p><p><strong>Cabines et Bungalows:</strong><br />de 08/04 à 11/12</p><p><strong>ACSI</strong>:<br />de 08/04 à 11/12</p></div>');
alter table media alter column media_id restart with 62; alter table media alter column media_id restart with 62;
select add_media(52, 'plots.avif', 'image/avif', decode('m4_esyscmd([[base64 -w0 demo/plots.avif]])', 'base64')); select add_media(52, 'plots.avif', 'image/avif', decode('m4_esyscmd([[base64 -w0 demo/plots.avif]])', 'base64'));
select add_media(52, 'safari_tents.avif', 'image/avif', decode('m4_esyscmd([[base64 -w0 demo/safari_tents.avif]])', 'base64')); select add_media(52, 'safari_tents.avif', 'image/avif', decode('m4_esyscmd([[base64 -w0 demo/safari_tents.avif]])', 'base64'));