(209,38,'_service_download','','download','','','<?php\n\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\ninclude_once DOL_DOCUMENT_ROOT.\'/ecm/class/ecmfiles.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/security2.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/date.lib.php\';\n\n$type = GETPOST(\'t\', \'alpha\');\n$order_ref = GETPOST(\'r\', \'alpha\');\n$id_produit = GETPOST(\'p\', \'alpha\');\n$user_id = GETPOST(\'u\', \'alpha\');\n\n// Link for paied modules \nif ($type == \"paied\") {\n    if (!empty($order_ref) && !empty($id_produit) && !empty($user_id)) {\n    \n        // Get Account ID.\n        $customer_account = new SocieteAccount($db);\n        $result = $customer_account->fetch($user_id);\n        $customer_id = $customer_account->fk_soc;\n    \n        // Check given informations\n        $sql_find_order = \"SELECT c.rowid, c.ref, c.fk_statut, c.fk_soc, c.date_creation, c.module_source \";\n        $sql_find_order .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n        $sql_find_order .= \"WHERE c.fk_soc = \" . ((int) $customer_id) . \" and c.ref = \'\" . $db->escape($order_ref) . \"\' and c.fk_statut= 1 and (c.facture = 1 OR c.ref_ext IS NOT NULL) and c.module_source = \'marketplace\' \";\n        $sql_find_order .= \"LIMIT 1\";\n        $find_order = $db->query($sql_find_order);\n        $obj_order = $db->fetch_object($find_order);\n        \n        if (empty($obj_order)) {\n            http_response_code(404);\n            echo $weblangs->trans(\"unfoundedOrder\");\n            exit;\n        }\n    \n        $order_ref = $obj_order->ref;\n        $order_object = new Commande($db);\n        $result = $order_object->fetch(\'\', $order_ref);\n        if ($result < 0) {\n            http_response_code(404);\n            echo $weblangs->trans(\"unfoundedOrder\");\n            exit;\n        }\n    \n        $one_year_ago = dol_time_plus_duree(dol_now(), -1, \'y\');\n        if ($order_object->date < $one_year_ago) {\n            http_response_code(410);\n            echo $weblangs->trans(\"invalidLink\");\n            exit;\n        }\n    \n        $lines = $order_object->lines;\n        $check_product = false;\n        foreach ($lines as $line) {\n            if ($line->fk_product == $id_produit) {\n                $check_product = true;\n                break;\n            }\n        }\n    \n        if (!$check_product) {\n            http_response_code(403);\n            echo $weblangs->trans(\"productNotFoundInOrder\");\n            exit;\n        }\n\n        // Looking for credit notes for the main invoice. It can be more then one\n        // Check if qty in order mince qty in credit note (if existe) is grather than 0\n        $order_object->fetchObjectLinked();\n        if (!empty($order_object->linkedObjects[\'facture\'])) {\n            $linked_invoices = $order_object->linkedObjects[\'facture\'];\n            /*$last_invoice_object = $linked_invoices[reset(array_keys($linked_invoices))];\n            if ($last_invoice_object instanceof Facture) {\n                $invoice_object = $last_invoice_object;\n            }*/\n            // Extract only regular invoices \n            $regular_invoices = array_filter($linked_invoices, function ($invoice) {\n                return ($invoice instanceof Facture) && ($invoice->type == 0);\n            });\n        \n            // Get first regular invoice if exist\n            if (!empty($regular_invoices)) {\n                $first_regular_invoice = reset($regular_invoices);\n                $invoice_object = $first_regular_invoice;\n            }\n\n    		$linked_credits = [];\n            foreach ($linked_invoices as $linked_invoice) {\n                if ($linked_invoice instanceof Facture && $linked_invoice->fk_facture_source == $invoice_object->id && $linked_invoice->type == Facture::TYPE_CREDIT_NOTE && $linked_invoice->paye == 1) {\n                    $linked_credits[] = $linked_invoice->ref;\n                }\n            }\n            \n            if (!empty($linked_credits)) {\n                $credit_note_refs_placeholder = implode(\',\', array_map(function($ref) use ($db) {\n                    return \"\'\" . $db->escape($ref) . \"\'\";\n                }, $linked_credits));\n            }\n            \n            $sum_qty_returned = \"SELECT SUM(fd.qty) AS return_qty \";\n            $sum_qty_returned .= \"FROM \" . MAIN_DB_PREFIX . \"facture AS f, \" . MAIN_DB_PREFIX . \"facturedet AS fd \";\n            $sum_qty_returned .= \"WHERE f.rowid = fd.fk_facture \";\n            $sum_qty_returned .= \"AND fd.fk_product = \" . ((int) $line->fk_product) . \" \";\n            $sum_qty_returned .= \"AND f.ref IN (\" . $credit_note_refs_placeholder . \")\";\n            \n            $resql = $db->query($sum_qty_returned);\n            if ($resql) {\n                $row = $db->fetch_object($resql);\n                $total_return_qty = $row->return_qty ?? 0;\n            }\n            \n            if (($line->qty - $total_return_qty) < 1) {\n                http_response_code(410);\n                echo $weblangs->trans(\"Refunded\");\n                exit;\n            }\n        }\n    \n        $product = new Product($db);\n        $ret = $product->fetch($line->fk_product);\n\n        $sql_file = \"SELECT rowid, ref, share, filename, filepath, cover, position\";\n    	$sql_file .= \" FROM \".MAIN_DB_PREFIX.\"ecm_files\";\n    	$sql_file .= \" WHERE entity IN (\".getEntity($product->element).\")\";\n    	$sql_file .= \" AND src_object_type = \'\".$db->escape($product->element).\"\' AND src_object_id = \".((int) $product->id).\" AND position = 100 \";\n    	$sql_file .= $db->order(\"date_c\", \"DESC\");\n    	$sql_file .= $db->plimit(1);\n    	$fileQuery = $db->query($sql_file);\n        $fileDetails = $db->fetch_object($fileQuery);\n        $file_path = DOL_DATA_ROOT . \"/\" . $fileDetails->filepath . \"/\" .$fileDetails->filename;\n    \n        if (!empty($file_path)) {\n            $type = dol_mimetype($fileDetails->filename);\n            header(\'Content-Type: \'.$type);\n            header(\'Content-Description: File Transfer\');\n            header(\'Content-Disposition: attachment; filename=\"\' . $fileDetails->filename . \'\"\');\n            readfile($file_path);\n            exit;\n        }\n        else {\n            http_response_code(404);\n            echo $weblangs->trans(\"FileNotFound\");\n            exit;\n        }\n    }\n}\n\n// Link for free modules \nif ($type == \"free\") {\n    if (!empty ($id_produit)) {\n        $product = new Product($db);\n        $ret = $product->fetch($id_produit);\n        \n        if ($product->price_ttc == 0) {\n            $sql_file = \"SELECT rowid, ref, share, filename, filepath, cover, position\";\n        	$sql_file .= \" FROM \".MAIN_DB_PREFIX.\"ecm_files\";\n        	$sql_file .= \" WHERE entity IN (\".getEntity($product->element).\")\";\n        	// TODO Why position=100 ?\n        	$sql_file .= \" AND src_object_type = \'\".$db->escape($product->element).\"\' AND src_object_id = \".((int) $product->id).\" AND position = 100 \";\n        	$sql_file .= $db->order(\"date_c\", \"DESC\");\n        	$sql_file .= $db->plimit(1);\n        	$fileQuery = $db->query($sql_file);\n            $fileDetails = $db->fetch_object($fileQuery);\n            $file_path = DOL_DATA_ROOT . \"/\" . $fileDetails->filepath . \"/\" .$fileDetails->filename;\n            \n            if (!empty($file_path)) {\n                $type = dol_mimetype($fileDetails->filename);\n                header(\'Content-Type: \'.$type);\n                header(\'Content-Description: File Transfer\');\n                header(\'Content-Disposition: attachment; filename=\"\' . $fileDetails->filename . \'\"\');\n                header(\'Cache-Control: no-cache\');\n                readfile($file_path);\n                exit;\n            }\n            else {\n                http_response_code(404);\n                echo $weblangs->trans(\"FileNotFound\");\n                exit;\n            }\n        } else {\n            echo $weblangs->trans(\"paiedProduct\");\n        }\n    }\n}\n\n?>\n',1,'2025-01-08 16:43:53',NULL,'2025-01-24 10:34:14',NULL,NULL,'service','',NULL,'','',NULL,'','',0,NULL,NULL),
(210,38,'_service_page_ajax','','ajax','','','<?php\n/* Copyright (C) 2008-2011  Laurent Destailleur\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n * or see https://www.gnu.org/\n */\n\n//session_set_cookie_params([\'lifetime\' => 0, \'path\' => \'/\', \'domain\' => \'\', \'secure\' => true, \'httponly\' => true, \'samesite\' => \'Lax\');\nsession_start(); // start session\n\n/*print \'<pre>\';\nprint_r($website);\nprint \'</pre>\';\nexit;*/\n//require \"../../master.inc.php\";\ninclude_once DOL_DOCUMENT_ROOT.\'/product/class/product.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/website/class/website.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/website.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/files.lib.php\';\nincludeContainer(\'_library_page_lib.php\', 1);\nsetSessionLang();\n\n$website_id = getDolGlobalInt(\"MARKETPLACE_WEBSITE_ID\");\n\n$weblangs->load(\"marketplace@marketplace\");\n\n$website_object = new Website($db);\n$this_website = $website_object->fetch($website_id);\nif (!defined(\'USEDOLIBARRSERVER\')) {\n	$order_page_url = \"order.php\";\n} else {\n	$order_page_url = \"index.php?website=\".$website->ref.\"&pageref=order\";\n}\n\n$product_id = GETPOSTINT(\'product_id\');\n$product_thumb = GETPOST(\'product_thumb\');\n$product_qty = GETPOSTINT(\'product_quantity\');\n\n\n// Addition of a product into basket\nif ($product_id && $product_qty) {\n\n	$object = new Product($db);\n	$get_product = $object->fetch($product_id);\n	\n	// TODO Check that the product is inside the category of marketplace + Check product is open to sales\n	// ...\n	\n	// check discount and calculate discounted price\n    $discount = marketplace_check_discount($object->id);\n    $discounted_price = marketplace_calculate_discounted_price($object->price_ttc, $discount);\n    \n    if ($discounted_price != $object->price_ttc) {\n        $price_to_display = $discounted_price;\n    } else {\n        $price_to_display = $object->price_ttc;\n    }\n\n    $new_product[\'product_id\'] = $object->id;\n    $new_product[\'product_thumb\'] = $product_thumb;\n    $new_product[\'product_name\'] = $object->label;\n    $new_product[\'product_ref\'] = $object->ref;\n    $new_product[\'product_price\'] = $price_to_display;\n    $new_product[\'product_qty\'] = $product_qty;\n\n    if (isset($_SESSION[\'products\'])) {  //if session var already exist\n        if (isset($_SESSION[\'products\'][$new_product[\'product_id\']])) { //check item exist in products array\n            unset($_SESSION[\'products\'][$new_product[\'product_id\']]); //unset old item\n        }\n    }\n\n    $_SESSION[\'products\'][$new_product[\'product_id\']] = $new_product;	//update products with new item array\n\n    $total_items = count($_SESSION[\'products\']); //count total items\n\n    $popup_product_html = \'\n        <span class=\"cross\" title=\"Close window\"></span>\n        <h2>\n            <i class=\"icon-ok\"></i>\'.$weblangs->trans(\"ProductAddedSuccessfully\").\'\n        </h2>\n        <div class=\"product-image-container layer_cart_img\">\n            <img class=\"layer_cart_img img-responsive\" src=\"\'.$product_thumb.\'\" alt=\"\'.$object->label.\'\" title=\"\'.$object->label.\'\">\n        </div>\n        <div id=\"layer_cart_product_info\">\n            <span id=\"layer_cart_product_title\" class=\"product-name\">\'.$object->label.\'</span>\n            <span id=\"layer_cart_product_attributes\"></span>\n            <div>\n            <strong class=\"dark\">\'.$weblangs->trans(\"Quantity\").\' : </strong>\n            <span id=\"layer_cart_product_quantity\">\'.$product_qty.\'</span>\n            </div>\n            <div>\n            <strong class=\"dark\">\'.$weblangs->trans(\"Total\").\' : </strong>\n            <span id=\"layer_cart_product_price\">(\'.($product_qty * $price_to_display).\' €)</span>\n            </div>\n        </div>\';\n\n    header(\"Content-type: application/json\");\n    die(json_encode(array(\'items\'=>$total_items,\'popup_product_html\'=>$popup_product_html))); //output json\n}\n\nif (GETPOST(\'load_cart\') && GETPOST(\'load_cart\') == 1) {\n    if (isset($_SESSION[\'products\']) && count($_SESSION[\'products\']) > 0) { //if we have session variable\n    \n    \n        $cart_box = \'\n        <p class=\"cart-buttons\">\n            <a id=\"button_order_cart\" class=\"btn btn-default button button-small\" href=\"\' . $order_page_url . \'\" title=\"Check out\" rel=\"nofollow\">\n                <span> \'.$weblangs->trans(\"cartCheckout\").\' <i class=\"icon-chevron-right right\"></i>\n                </span>\n            </a>\n        </p>\n        \';\n        \n        $total = 0;\n        foreach($_SESSION[\'products\'] as $cart_product){ //loop though items and prepare html content\n\n            $cart_box .= \"<dl class=\\\"products\\\">\n                <dt class=\\\"item\\\" data-id=\\\"cart_block_product_\" . $cart_product[\'product_id\'] . \"\\\" style=\\\"display: block;\\\">\n                    <a class=\\\"cart-images\\\" href=\\\"product.php?id=\" . $cart_product[\'product_id\'] . \"\\\" title=\\\"\" . $cart_product[\'product_name\'] . \"\\\"><img src=\\\"\" . $cart_product[\'product_thumb\'] . \"\\\" alt=\\\"\" . $cart_product[\'product_name\'] . \"\\\"></a>\n                    <div class=\\\"cart-info\\\">\n                        <div class=\\\"product-name\\\"><span class=\\\"quantity-formated\\\"><span class=\\\"quantity\\\">\" . $cart_product[\'product_qty\'] . \"</span>&nbsp;x&nbsp;</span><a href=\\\"product.php?id=\" . $cart_product[\'product_id\'] . \"\\\" title=\\\"\" . $cart_product[\'product_name\'] . \"\\\" class=\\\"cart_block_product_name truncate3\\\">\" . $cart_product[\'product_name\'] . \"</a></div>\n                        <span class=\\\"price\\\">\" . price($cart_product[\'product_price\']) . \" €</span>\n                    </div>\n                    <span class=\\\"remove_link\\\"><a rel=\\\"nofollow\\\" class=\\\"ajax_cart_block_remove_link\\\" href=\\\"\\\" data-code=\\\"\" . $cart_product[\'product_id\'] . \"\\\"> </a></span>\n                </dt>\n            </dl>\";\n\n            $subtotal = ($cart_product[\'product_price\'] * $cart_product[\'product_qty\']);\n            $total = ($total + $subtotal);\n        }\n        $cart_box .= \'\n        <div class=\"cart-prices\">\n            <div class=\"cart-prices-line first-line last-line\">\n                <span class=\"price cart_block_total ajax_block_cart_total\">\' . $total . \' €</span>\n                <span>\'.$weblangs->trans(\"Total\").\'</span>\n            </div>\n            <p> \'.$weblangs->trans(\"priceDependCountry\").\' </p>\n        </div>\n        \';\n        die($cart_box); //exit and output content\n    }else{\n        die(\"<p class=\'cart_block_no_products\'> No products </p>\"); //we have empty cart\n    }\n}\n\nif (GETPOST(\'load_popup_products_html\') && GETPOST(\'load_popup_products_html\') == 1) {\n    if(isset($_SESSION[\'products\']) && count($_SESSION[\'products\'])>0){ //if we have session variable\n        $total = 0;\n        foreach($_SESSION[\'products\'] as $cart_product){ //loop though items and prepare html content\n            $subtotal = ($cart_product[\'product_price\'] * $cart_product[\'product_qty\']);\n            $total = ($total + $subtotal);\n        }\n        if(count($_SESSION[\'products\']) == 1){\n            $title = \'<span class=\"ajax_cart_product_txt\"> \'.$weblangs->trans(\"OneItemInCart\").\' </span>\';\n        }else{\n            $title = \'<span class=\"ajax_cart_product_txt_s\"> \'.$weblangs->trans(\"NbreProductsInCart\", count($_SESSION[\"products\"])).\' </span>\';\n        }\n        $popup_products_html = \'\n        <h2>\'.$title.\'</h2>\n        <div class=\"layer_cart_row\">\n            <strong class=\"dark\"> \'.$weblangs->trans(\"TotalProductsInCart\").\' </strong>\n            <span class=\"ajax_block_products_total\">\'.$total.\' €</span>\n        </div>\n        <div class=\"button-container\">\n            <span class=\"continue btn btn-default button exclusive-medium\" title=\"\'.$weblangs->trans(\"ContinueShopping\").\'\">\n            <span>\n                <i class=\"icon-chevron-left left\"></i>\'.$weblangs->trans(\"ContinueShopping\").\' </span>\n            </span>\n            <a class=\"btn btn-default button button-medium\" href=\"\' . $order_page_url . \'\" title=\"\'.$weblangs->trans(\"ProceedToCheckout\").\'\" rel=\"nofollow\">\n            <span> \'.$weblangs->trans(\"ProceedToCheckout\").\' <i class=\"icon-chevron-right right\"></i>\n            </span>\n            </a>\n        </div>\';\n\n        die($popup_products_html); //exit and output content\n    }\n}\n\n\n// Remove item from shopping cart\nif (GETPOST(\'remove_code\') && isset($_SESSION[\'products\'])) {\n    $product_code   = GETPOST(\'remove_code\'); //get the product code to remove\n\n    if(isset($_SESSION[\'products\'][$product_code]))\n    {\n        unset($_SESSION[\'products\'][$product_code]);\n    }\n\n    $total_items = count($_SESSION[\'products\']);\n\n    header(\"Content-type: application/json\");\n    die(json_encode(array(\'items\'=>$total_items)));\n}\n\nif (GETPOST(\'action\') && GETPOST(\'action\') == \"update_order\" && GETPOST(\'order\')) {\n    include_once DOL_DOCUMENT_ROOT . \'/ecm/class/ecmfiles.class.php\';\n    $error = 0;\n    foreach (GETPOST(\'order\') as $id_image => $position_image) {\n        $ecmfile = new EcmFiles($db);\n        $result_get_ecmfile = $ecmfile->fetch($id_image);\n        $ecmfile->position = $db->escape($position_image);\n        $result_update_ecmfile = $ecmfile->update($user);\n        if ($result_update_ecmfile < 0) {\n		    $error++;\n    	}\n    }    \n    if ($error > 0) {\n        header(\"Content-type: application/json\");\n        die(json_encode(array(\'success\' => false, \'message\' => $weblangs->trans(\'errorOccurred\'))));\n	} else {\n        header(\"Content-type: application/json\");\n		die(json_encode(array(\'success\' => true, \'message\' => $weblangs->trans(\'orderChanged\'))));\n	}\n\n}\n\nif ($_SERVER[\'REQUEST_METHOD\'] == \'POST\' && GETPOST(\'action\') == \'add_product_image\' && GETPOST(\'position\') && GETPOST(\'product_id\') && isset($_FILES[\'file\'][\'name\'])) {\n    $error = 0;\n    $error_messages = \'\';\n    $product = new Product($db);\n	$ret = $product->fetch(GETPOST(\'product_id\', \'int\'));\n	if ($ret < 0) {\n		$error++;\n	}\n    \n    if ($error == 0) {\n        $checkImage = checkImage($_FILES[\'file\']);\n        if ($checkImage != false) {\n            $error++;\n    	    $error_messages = $checkImage;\n        }\n    }\n    \n    if ($error == 0){\n        $upload_dir = $conf->product->multidir_output[1] . \'/\' . get_exdir(0, 0, 0, 1, $product, \'product\');\n        $img = $upload_dir . \'/\' . $product->ref . \'-image_\' . GETPOST(\'position\', \'int\') . \'.jpg\';\n        if (move_uploaded_file($_FILES[\'file\'][\'tmp_name\'], $img) != true){\n            $error++;\n            $error_messages = $weblangs->trans(\'fileCopyError\');\n        } else {\n            // Add thumb\n            $product->addThumbs($img);\n\n            // Add index to db\n            $filename = basename($product->ref . \'-image_\' . GETPOST(\'position\', \'int\')  . \'.jpg\');\n    		addFileIntoDatabaseIndex($upload_dir, $filename, \'MARKETPLACE\', \'uploaded\', 1, $product);\n    \n    		// Update index to put position\n    		$rel_dir = preg_replace(\'/^\' . preg_quote(DOL_DATA_ROOT, \'/\') . \'/\', \'\', $upload_dir);\n    		$rel_dir = preg_replace(\'/^[\\\\/]/\', \'\', $rel_dir);\n    		$ref = dol_hash($rel_dir . \'/\' . $filename, 3);\n    \n    		$ecmfile = new EcmFiles($db);\n    		$result_get_ecmfile = $ecmfile->fetch(\'\', $ref);\n    \n    		$ecmfile->position = GETPOST(\'position\', \'int\');\n    		\n    		$result_update_ecmfile = $ecmfile->update($user);\n    \n    		if ($result_update_ecmfile < 0) {\n    			$error++;\n    		    $error_messages = $weblangs->trans(\'fileCopyError\');\n    	    }\n    	}\n    }\n    \n    if ($error > 0) {\n        header(\"Content-type: application/json\");\n        die(json_encode(array(\'success\' => false, \'message\' => $error_messages)));\n	} else {\n        header(\"Content-type: application/json\");\n		die(json_encode(array(\'success\' => true, \'message\' => $weblangs->trans(\'imageAdded\'))));\n	}\n}\n\nif (GETPOST(\'action\') == \"delete_image\" && GETPOST(\'id_image\')) {\n    include_once DOL_DOCUMENT_ROOT . \'/ecm/class/ecmfiles.class.php\';\n    $id_image = GETPOSTINT(\'id_image\');\n    $error = 0;\n    $ecmfile = new EcmFiles($db);\n    $result_get_ecmfile = $ecmfile->fetch($id_image);\n    $result_delete_ecmfile = $ecmfile->delete($user);\n    if ($result_delete_ecmfile < 0) {\n	    $error++;\n	}\n	\n    if ($error > 0) {\n        header(\"Content-type: application/json\");\n        die(json_encode(array(\'success\' => false, \'message\' => $weblangs->trans(\'errorOccurred\'))));\n	} else {\n        header(\"Content-type: application/json\");\n		die(json_encode(array(\'success\' => true, \'message\' => $weblangs->trans(\'imageDeleted\'))));\n	}\n\n}\n\n// Generate CVS of sells history\nif (GETPOST(\'sells_history\') && GETPOST(\'sells_history\') == 1) {\n\n    // Get Account ID.\n    include_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\n    $user_id = $_SESSION[\'user\'][\'id_user\'];\n    $customer_account = new SocieteAccount($db);\n    $result = $customer_account->fetch($user_id);\n    $customer_id = $customer_account->fk_soc;\n    \n    // Render a CSV of another customer\n    if (!empty(GETPOST(\'id_customer\')) && GETPOST(\'id_customer\') != $customer_id) {\n        // Only for members with a specific role\n        require_once DOL_DOCUMENT_ROOT.\"/adherents/class/adherent.class.php\";\n        $membre = new Adherent($db);\n        $result = $membre->fetch(\'\', 0, $customer_id);\n        \n        $adminsCat = new Categorie($db);\n    	$adminsCat->fetch(1);\n    	\n    	$result = $adminsCat->containsObject(\'member\', $membre->id);\n    	if ($result > 0) {\n            $customer_id = GETPOST(\'id_customer\');\n    	}\n    }\n\n\n    // Get liste of products\n    $products_ids = array();\n    $sql = \'SELECT fk_product, MIN(datec) AS first_date FROM \'.MAIN_DB_PREFIX.\"product_fournisseur_price WHERE fk_soc = \".((int) $customer_id). \" GROUP BY fk_product ORDER BY first_date DESC\";\n    if ($result_products = $db->query($sql)) {\n    	while ($product_id = $result_products->fetch_object()) {\n            $products_ids[] = $product_id->fk_product;\n    	}\n    }\n    $products_ids_str = implode(\',\', $products_ids);\n    \n\n    /*$data_for_csv = \"SELECT s.nom as customer, c.date_commande as registred_on, sp.email, sc.label as country, c.date_commande, p.rowid as product_id ,p.label ,p.ref, d.total_ht as total_earned, d.total_ht as total_origin, c.fk_statut \";\n    $data_for_csv .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d , \".MAIN_DB_PREFIX.\"product as p , \".MAIN_DB_PREFIX.\"societe as s , \".MAIN_DB_PREFIX.\"socpeople as sp , \".MAIN_DB_PREFIX.\"c_country as sc \";\n    $data_for_csv .= \"WHERE p.rowid = d.fk_product AND s.rowid = c.fk_soc AND sp.fk_soc = s.rowid AND sp.fk_pays = sc.rowid AND c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and d.total_ht != 0 and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $data_for_csv .= \"ORDER BY c.date_commande DESC\";*/\n    \n    $data_for_csv = \"SELECT c.rowid as c_id, d.rowid as d_id, s.nom as customer, s.datec as registred_on, sp.email, sc.label as country, c.date_commande, \";\n    $data_for_csv .= \"p.rowid as product_id, p.label, p.ref, d.total_ht as total_earned, d.total_ht as total_origin, c.fk_statut \";\n    $data_for_csv .= \"FROM \".MAIN_DB_PREFIX.\"commande as c \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"commandedet as d ON c.rowid = d.fk_commande \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"product as p ON p.rowid = d.fk_product \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"societe as s ON s.rowid = c.fk_soc \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"societe_account as sa ON s.rowid = sa.fk_soc \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"socpeople as sp ON sp.fk_soc = s.rowid  AND sp.ref_ext = sa.rowid \";\n    $data_for_csv .= \"JOIN \".MAIN_DB_PREFIX.\"c_country as sc ON sp.fk_pays = sc.rowid \";\n    $data_for_csv .= \"WHERE d.fk_product IN (\" . $products_ids_str . \") \";\n    $data_for_csv .= \"AND d.total_ht != 0 \";\n    $data_for_csv .= \"AND c.fk_statut IN (1,3) \";\n    $data_for_csv .= \"AND (c.facture = 1 OR c.ref_ext IS NOT NULL) \";\n    $data_for_csv .= \"AND c.module_source = \'Marketplace\' \";\n    $data_for_csv .= \"ORDER BY c.date_commande DESC\";\n    //print $data_for_csv;\n    \n    //print $data_for_csv;\n\n    if ($result_data_for_csv = $db->query($data_for_csv)) {\n        $row_no = 1;\n        $data = [\n            [\'#\', \'Customer\', \'Customer date creation\', \'Customer email\', \'Customer country\', \'Date sell\', \'Product id\', \'Product label\', \'Product ref\', \'Amount earned\', \'Amount origin\', \'Note\']\n        ];\n        $current_date = new DateTime();\n        while ($row = $result_data_for_csv->fetch_object()) {\n\n            $date_commande = new DateTime($row->date_commande);\n        \n            $interval = $current_date->diff($date_commande);\n            $days_diff = $interval->days;\n            \n            if ($days_diff > 30) {\n                $status = \'validated\';\n            } else {\n                $status = \'\';\n            }\n            \n            $data[] = [\n                $row_no++,\n                $row->customer,\n                $row->registred_on,\n                $row->email,\n                $row->country,\n                $row->date_commande,\n                $row->product_id,\n                $row->label,\n                $row->ref,\n                /*price($row->total_earned),\n                price($row->total_origin),*/\n                number_format($row->total_earned, 2, \'.\', \'\'),\n                number_format($row->total_origin, 2, \'.\', \'\'),\n                $status\n            ];\n        }\n    }\n\n    $filepath = \'export_\' . date(\'Ymd\') . \'.csv\';\n\n    $fp = fopen($filepath, \'w\');\n\n    foreach ($data as $row) {\n        fputcsv($fp, $row, \';\');\n    }\n\n    fclose($fp);\n    \n    \n    header(\"Content-type: application/json\");\n    print json_encode([\'filepath\' => $filepath]);\n    exit();\n}\n\n\nif (GETPOST(\'filepath\') && GETPOST(\'action\') === \'remove_csv\') {\n    $filepath = GETPOST(\'filepath\');\n    if (file_exists($filepath)) {\n        unlink($filepath);\n        header(\"Content-type: application/json\");\n        echo json_encode([\'status\' => \'success\', \'message\' => \'File deleted\']);\n    } else {\n        header(\"Content-type: application/json\");\n        echo json_encode([\'status\' => \'error\', \'message\' => \'file not found\']);\n    }\n}\n\n\n?>\n',1,'2024-05-22 11:20:07',NULL,'2025-01-18 13:39:43',NULL,NULL,'service','',NULL,'','',NULL,'','',0,NULL,NULL),
(211,39,'index','','index','','','<div class=\"site-mobile-menu site-navbar-target\">\n  <div class=\"site-mobile-menu-header\">\n    <div class=\"site-mobile-menu-close mt-3\">\n      <span class=\"icon-close2 js-menu-toggle\"></span>\n    </div>\n  </div>\n  <div class=\"site-mobile-menu-body\"></div>\n</div>\n\n\n<header class=\"site-navbar js-sticky-header site-navbar-target\" role=\"banner\">\n\n  <div class=\"container\">\n    <div class=\"row align-items-center\">\n      \n      <div class=\"col-6 col-xl-2\">\n        <h1 class=\"mb-0 site-logo\"><a href=\"index.html\">DoliAsso<span class=\"text-secondary-color\">.</span> </a></h1>\n      </div>\n\n      <div class=\"col-12 col-md-10 d-none d-xl-block\">\n        <nav class=\"site-navigation position-relative text-right\" role=\"navigation\">\n\n          <ul class=\"site-menu main-menu js-clone-nav mr-auto d-none d-lg-block\">\n              <li class=\"has-children\">\n                <a href=\"#presentation-section\" class=\"nav-link\">Présentation</a>\n                <ul class=\"dropdown\">\n                  <li><a href=\"#mission-vision-section\" class=\"nav-link\">Mission et Vision</a></li>\n                  <li><a href=\"#equipe-section\" class=\"nav-link\">Annuaire des adherents</a></li>\n                </ul>\n              </li>\n              <li class=\"has-children\">\n                <a href=\"#actualites-section\" class=\"nav-link\">Actualités & Événements</a>\n                <ul class=\"dropdown\">\n                  <li><a href=\"#actualites-page\" class=\"nav-link\">Actualités</a></li>\n                  <li><a href=\"#actions-evenements-page\" class=\"nav-link\">Actions & Événements</a></li>\n                </ul>\n              </li>\n              <li class=\"has-children\">\n                <a href=\"#engagement-section\" class=\"nav-link\">Engagement & Soutien</a>\n                <ul class=\"dropdown\">\n                  <li><a href=\"#devenir-membre-link\" class=\"nav-link\">Devenir Membre</a></li>\n                  <li><a href=\"#faire-don-link\" class=\"nav-link\">Faire un Don</a></li>\n                </ul>\n              </li>\n              <li class=\"has-children\">\n                <a href=\"#rgpd-section\" class=\"nav-link\">RGPD</a> <!--  & Mentions Légales -->\n                <ul class=\"dropdown\">\n                  <li><a href=\"#politique-confidentialite-page\" class=\"nav-link\">Politique de Confidentialité</a></li>\n                  <li><a href=\"#gestion-donnees-page\" class=\"nav-link\">Gestion des Données</a></li>\n                  <li><a href=\"#droits-utilisateurs-page\" class=\"nav-link\">Droits des Utilisateurs</a></li>\n                </ul>\n              </li>\n              <li>\n                <a href=\"#contact-section\" class=\"nav-link\">Contact</a>\n                <!--<ul class=\"dropdown\">\n                  <li><a href=\"#formulaire-contact-page\" class=\"nav-link\">Formulaire de Contact</a></li>\n                  <li><a href=\"#ou-nous-trouver-page\" class=\"nav-link\">Où Nous Trouver</a></li>\n                  <li><a href=\"#reseaux-sociaux-links\" class=\"nav-link\">Réseaux Sociaux</a></li>\n                </ul>-->\n              </li>\n              <li>\n                <a href=\"#espace-membre-section\" class=\"nav-link\"><i class=\"fa-solid fa-user\"></i> Espace Membre</a>\n                <!--<ul class=\"dropdown\">\n                  <li><a href=\"#connexion-inscription-page\" class=\"nav-link\">Connexion & Inscription</a></li>\n                  <li><a href=\"#espace-personnel-page\" class=\"nav-link\">Espace Personnel</a></li>\n                </ul>-->\n              </li>\n              \n                <li class=\"social\"><a href=\"#contact-section\" class=\"nav-link\"><i class=\"fa-brands fa-facebook-f\"></i></a></li>\n                <li class=\"social\"><a href=\"#contact-section\" class=\"nav-link\"><i class=\"fa-brands fa-x-twitter\"></i></a></li>\n            </ul>\n        </nav>\n      </div>\n\n\n      <div class=\"col-6 d-inline-block d-xl-none ml-md-0 py-3\" style=\"position: relative; top: 3px;\">\n        <a href=\"#\" class=\"site-menu-toggle js-menu-toggle float-right\">\n            <i class=\"fas fa-bars\"></i>\n        </a>\n      </div>\n\n    </div>\n  </div>\n  \n</header>\n\n\n<section class=\"slogan has-section-divider\">\n  \n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 460px;\">\n        <div class=\"col-lg-8 text-center\">\n            <h1 class=\"mb-3\">Association de soutien aux enfants défavorisés</h1>\n            <p class=\"lead\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam auctor, nunc nec ultricies.</p>\n            <p><a href=\"#devenir-membre-link\" class=\"btn flat-button\">Devenir Membre</a></p>\n        </div>\n    </div>\n  \n  \n  <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"var(--light-secondary-color)\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n\n\n\n<!-- Volunteers Start -->\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n                \n                <div class=\"section-title\">\n                  <div class=\"line left-line\"></div>\n                  <h1>Mission & Vision</h1>\n                  <div class=\"line right-line\"></div>\n                </div>\n                \n                <p class=\"mb-4\">Notre mission est de soutenir les enfants défavorisés en leur offrant des opportunités éducatives, sociales et culturelles. Nous croyons fermement que chaque enfant mérite une chance égale de réussir dans la vie.</p>\n                <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promouvoir l\'accès à l\'éducation pour tous.</p>\n                <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourager l\'engagement communautaire et la solidarité.</p>\n                <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Offrir un soutien moral et matériel aux familles dans le besoin.</p>\n                <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Créer un environnement propice à l\'épanouissement des enfants.</p>\n                <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Collaborer avec des partenaires locaux et internationaux pour maximiser notre impact.</p>\n                \n                <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Rejoignez-nous</a>\n            </div>\n            \n            <div class=\"col-lg-3 stats section\" id=\"stats\">\n                \n                <div class=\"section-title\">\n                  <div class=\"line left-line\"></div>\n                  <h1>Chiffres</h1>\n                  <div class=\"line right-line\"></div>\n                </div>\n                \n                \n                \n                \n                <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\" data-aos-delay=\"100\">\n\n                    <div class=\"row gy-4\">\n                \n                      <div class=\"col-lg-12 d-flex flex-column align-items-center\">\n                        <i class=\"fas fa-user fa-4x text-white\"></i>\n                        <div class=\"stats-item\">\n                          <span data-purecounter-start=\"0\" data-purecounter-end=\"232\" data-purecounter-duration=\"0\" class=\"purecounter\">232</span>\n                          <p>Volunteer</p>\n                        </div>\n                      </div><!-- End Stats Item -->\n                \n                      <div class=\"col-lg-12 d-flex flex-column align-items-center\">\n                        <i class=\"fas fa-file-invoice-dollar fa-4x text-white\"></i>\n                        <div class=\"stats-item\">\n                          <span data-purecounter-start=\"0\" data-purecounter-end=\"521\" data-purecounter-duration=\"0\" class=\"purecounter\">521</span>\n                          <p>Funds Collected</p>\n                        </div>\n                      </div><!-- End Stats Item -->\n                \n                      <div class=\"col-lg-12 d-flex flex-column align-items-center\">\n                        <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n                        <div class=\"stats-item\">\n                          <span data-purecounter-start=\"0\" data-purecounter-end=\"1463\" data-purecounter-duration=\"0\" class=\"purecounter\">1 463</span>\n                          <p>Actions</p>\n                        </div>\n                      </div><!-- End Stats Item -->\n                \n                    </div>\n                \n                  </div>\n  \n  \n  \n  \n  \n\n            </div>\n        </div>\n    </div>\n</div>\n<!-- Volunteers End -->\n\n\n\n<!-- Causes Start -->\n<div class=\"container-fluid causes py-5\">\n    <div class=\"container py-5\">\n        <div class=\"section-title\">\n          <div class=\"line left-line\"></div>\n          <h1>Actualités & Actions</h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n            <div class=\"col-lg-6 col-xl-3\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <img src=\"medias/image/test2/1.jpg\" class=\"img-fluid w-100\" alt=\"Image\">\n\n                    </div>\n                    <div class=\"progress\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\"><i class=\"fas fa-calendar-alt me-2\"></i>10 Feb, 2023</span>\n                        <h4>First environments activity of</h4>\n                        <hr>\n                        <p class=\"mb-4\">Help today because tomorrow you may be the one who needs more helping!</p>\n                        <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Read More</a>\n                    </div>\n                </div>\n            </div>\n            <div class=\"col-lg-6 col-xl-3\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <img src=\"medias/image/test2/2.jpg\" class=\"img-fluid w-100\" alt=\"Image\">\n                        <div class=\"causes-link pb-2 px-3\">\n                            <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i>Goal: $3600</small>\n                            <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i>Raised: $4000</small>\n                        </div>\n                        <div class=\"causes-dination p-2\">\n                            <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Donate Now</a>\n                        </div>\n                    </div>\n                    <div class=\"progress\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 65%;\" aria-valuenow=\"65\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                        <span>65%</span>\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\"><i class=\"fas fa-calendar-alt me-2\"></i>10 Feb, 2023</span>\n                        <h4>First environments activity of</h4>\n                        <hr>\n                        <p class=\"mb-4\">Help today because tomorrow you may be the one who needs more helping!</p>\n                        <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Read More</a>\n                    </div>\n                </div>\n            </div>\n            <div class=\"col-lg-6 col-xl-3\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <img src=\"medias/image/test2/3.jpg\" class=\"img-fluid w-100\" alt=\"Image\">\n                        <div class=\"causes-link pb-2 px-3\">\n                            <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i>Goal: $3600</small>\n                            <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i>Raised: $4000</small>\n                        </div>\n                        <div class=\"causes-dination p-2\">\n                            <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Donate Now</a>\n                        </div>\n                    </div>\n                    <div class=\"progress\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 65%;\" aria-valuenow=\"65\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                        <span>65%</span>\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\"><i class=\"fas fa-calendar-alt me-2\"></i>10 Feb, 2023</span>\n                        <h4>First environments activity of</h4>\n                        <hr>\n                        <p class=\"mb-4\">Help today because tomorrow you may be the one who needs more helping!</p>\n                        <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Read More</a>\n                    </div>\n                </div>\n            </div>\n            <div class=\"col-lg-6 col-xl-3\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <img src=\"medias/image/test2/4.jpg\" class=\"img-fluid w-100\" alt=\"Image\">\n                        <div class=\"causes-link pb-2 px-3\">\n                            <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i>Goal: $3600</small>\n                            <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i>Raised: $4000</small>\n                        </div>\n                        <div class=\"causes-dination p-2\">\n                            <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Donate Now</a>\n                        </div>\n                    </div>\n                    <div class=\"progress\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 65%;\" aria-valuenow=\"65\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                        <span>65%</span>\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\"><i class=\"fas fa-calendar-alt me-2\"></i>10 Feb, 2023</span>\n                        <h4>First environments activity of</h4>\n                        <hr>\n                        <p class=\"mb-4\">Help today because tomorrow you may be the one who needs more helping!</p>\n                        <a href=\"#\" class=\"btn flat-button text-white py-2 px-3\">Read More</a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<!-- Causes End -->\n\n\n\n<!-- Contact Start -->\n<div class=\"container-fluid\">\n    <div class=\"container\">\n        \n        <div class=\"container-fluid contact py-5\">\n            <div class=\"row g-4\">\n                <div class=\"col-xl-5\">\n                    \n                    <div class=\"section-title\">\n                      <div class=\"line left-line\"></div>\n                      <h1>Get in touch</h1>\n                      <div class=\"line right-line\"></div>\n                    </div>\n        \n                    <p class=\"mb-4\">Nous sommes là pour répondre à toutes vos questions et vous aider. N\'hésitez pas à nous contacter pour toute information ou assistance.</p>\n                    <form>\n                        <div class=\"row gx-4 gy-3\">\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"Your First Name\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"email\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"Your Email\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"Your Phone\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"Subject\">\n                            </div>\n                            <div class=\"col-12\">\n                                <textarea class=\"form-control bg-white border-0 py-3 px-4\" rows=\"7\" cols=\"10\" placeholder=\"Your Message\"></textarea>\n                            </div>\n                            <div class=\"col-12\">\n                                <a href=\"#\" class=\"btn flat-button text-white py-2 px-3 float-end\" type=\"submit\">Submit</a>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n                <div class=\"col-xl-7\">\n                    <div>\n                        <div class=\"row g-4\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-map-marker-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4>Address</h4>\n                                    <p class=\"mb-0\">123 street New York</p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-envelope fa-2x secondary-color mb-2\"></i>\n                                    <h4>Mail Us</h4>\n                                    <p class=\"mb-0\">info@example.com</p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fa fa-phone-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4>Telephone</h4>\n                                    <p class=\"mb-0\">(+012) 3456 7890 123</p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <iframe class=\"w-100\" style=\"height: 412px; margin-bottom: -6px;\" src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d387191.33750346623!2d-73.97968099999999!3d40.6974881!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c24fa5d33f083b%3A0xc80b8f06e177fe62!2sNew%20York%2C%20NY%2C%20USA!5e0!3m2!1sen!2sbd!4v1694259649153!5m2!1sen!2sbd\" \n                                    loading=\"lazy\" referrerpolicy=\"no-referrer-when-downgrade\"></iframe>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<!-- Contact End -->\n\n\n<!-- Footer Start -->\n<div class=\"container-fluid\" style=\"margin:0; padding:0;\">\n        <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"#5d5b6a\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</div>\n<div class=\"container-fluid footer text-body\">\n    \n    <div class=\"container py-5\">\n        <div class=\"row g-5\">\n            \n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">Présentation</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Mission et Vision</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Actualités</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Actions & Événements</a>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">Volunteer</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Espace Membre</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Annuaire des adherents</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Devenir Membre</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Faire un Don</a>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">RGPD</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Politique de Confidentialité</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Gestion des Données</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Droits des Utilisateurs</a>\n\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item\">\n                    <h4 class=\"mb-4 text-white\">Reseau sociaux</h4>\n                    <div>\n                        <a href=\"#\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fab fa-facebook-f\"></i></a>\n                        <a href=\"#\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fab fa-twitter\"></i></a>\n                        <a href=\"#\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fab fa-instagram\"></i></a>\n                        <a href=\"#\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fab fa-pinterest\"></i></a>\n                        <a href=\"#\" class=\"btn-hover-color btn-square text-white me-0\"><i class=\"fab fa-linkedin-in\"></i></a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<!-- Footer End -->\n\n',0,'2025-03-21 15:58:56',NULL,'2025-03-26 17:52:29',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(212,35,'blog','','Blog','Blog','blog','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">The latest news...</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionnews\" contenteditable=\"true\" class=\"section-50 section-md-50 section-md-bottom-50\">\n            <div><br><div class=\"text-align: center\">\n            <!--<h2>The latest news...</h2><br><br><br> -->\n            <?php \n            $weblangs->load(\"main\");\n            $fuser = new User($db);\n            $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 5, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null,\'.$websitepage->lang));\n            foreach($arrayofblogs as $blog)\n            {\n                print \'<div class=\"row justify-content-sm-center row-40\">\';\n                print \'<div class=\"container blog-box d-xl-inline-block margin-lr-30\" style=\"padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;\">\';\n                            print \'<a class=\"centpercent\" href=\"\'.$blog->pageurl.\'.php\">\';\n                            print \'<div class=\"post-boxed-img-wrap\"><img src=\"\'.($blog->image ? \'viewimage.php?modulepart=medias&file=\'.str_replace(\'template-corporate\', $website->ref, $blog->image) : \'medias/image/\'.$website->ref.\'/calendar.svg\"\').\'\" alt=\"\" width=\"120\"></div>\';\n                            print \'<div class=\"post-boxed-caption\">\';\n                            print \'<div class=\"post-boxed-title font-weight-bold\">\'.$blog->title.\'</div>\';\n                            print \'<ul class=\"list-inline list-inline-dashed text-uppercase\">\';\n                            print \'<li>\'.dol_print_date($blog->date_creation, \'daytext\', \'tzserver\', $weblangs).\'</li>\';\n                            $fuser->fetch($blog->fk_user_creat);\n                            print \'<li><span>by<span> <span class=\"text-primary\">\'.$fuser->firstname.\'</span></span></li>\';\n                            print \'</ul>\';\n                            print \'<span class=\"nohover\">\'.$blog->description.\'</span>\';\n                            print \'</div>\';\n                            //includeContainer($blog->pageurl);\n                            print \'</a>\';\n                print \'</div>\';\n                print \'</div>\';\n            }\n            ?>\n            </div></div>\n        </section>\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(213,35,'blog-our-company-is-now-on-dolibarr','','Our company is now on Dolibarr ERP CRM','Our company has moved on Dolibarr ERP CRM. This is an important step in improving all of our services.','','<?php includeContainer(\'header\'); ?>\n\n      <?php print getStructuredData(\'blogpost\', $websitepage); ?>\n      \n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\" style=\"font-size: 2em\"><?php echo $websitepage->title; ?></span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n        <div class=\"container\" contenteditable=\"true\">\n            <br><br><br>\n            Like several thousands of companies, our company (<?php echo $mysoc->name ?>) has moved all its information system to <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM</a>. More than 20 applications have been replaced by only one, easier to use and fully integrated.\n            This is an important step in improving all of our services.\n            \n            <br><br><br>\n            \n            <figure>\n            <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/background_dolibarr.webp\">\n            <br><br>\n            <figcaption style=\"opacity: 0.5; text-align: center;\">Screenshot of our new Open Source solution</figcaption>\n            </figure>\n            \n            \n            \n            <br><br><br><br><br><br>\n        </div>\n\n\n<?php includeContainer(\'footer\'); ?>\n\n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'blogpost','en',NULL,'','',NULL,'image/template-corporate/background_dolibarr.jpg','',0,NULL,NULL),
(214,35,'blog-our-new-web-site-has-been-launched','','Our new web site has been launched','Our new website, based on Dolibarr CMS, has been launched. Modern and directly integrated with the internal management tools of the company, many new online services for our customers will be able to see the day...','','<?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\" style=\"font-size: 2em\"><?php echo $websitepage->title; ?></span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n        <div class=\"container\">\n            <br><br><br><br><br><br>\n\n\n            Our new website, based on Dolibarr CMS, has been launched. <br>\n            Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers...\n\n            \n                        <br><br><br>\n            \n            <figure>\n            <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/background_rough-horn.webp\">\n            <br><br>\n            <figcaption style=\"opacity: 0.5; text-align: center;\">Theme of our new web site</figcaption>\n            </figure>\n            \n\n            <br><br><br><br><br><br>\n        </div>\n\n\n<?php includeContainer(\'footer\'); ?>\n\n\n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'blogpost','en',NULL,'','',NULL,'image/template-corporate/background_rough-horn.jpg','',0,NULL,NULL),
(215,35,'careers','','Careers','Our job opportunities','career','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Job opportunities</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px\"><div class=\"text-align: center\">\n            <br>\n\n            <h2 style=\"margin-left: 10px; margin-right: 10px\">We are recruiting the following profiles...</h2><br><br> \n            \n            <section id=\"sectionnews\" contenteditable=\"false\" class=\"section-50 section-md-50 section-md-bottom-50\">\n            <?php\n            include_once DOL_DOCUMENT_ROOT.\'/recruitment/class/recruitmentjobposition.class.php\';\n            $jobposition = new RecruitmentJobPosition($db);\n            $fuser = new User($db);\n            $arrayofrecord = $jobposition->fetchAll(\'DESC\', \'date_creation\', 5, 0, array(\'status\'=>\'1,3,9\'));\n            $weblangs->load(\"main\");\n            foreach($arrayofrecord as $jobrecord)\n            {\n                print \'<div class=\"row justify-content-sm-center row-40\">\';\n                print \'<div class=\"container blog-box d-xl-inline-block\" style=\"box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;\">\';\n                            //print \'<a href=\"/public/recruitment/view.php?id=\'.$jobrecord->id.\'.php\">\';\n                            //print \'<div class=\"post-boxed-img-wrap\"><img src=\"\'.($blog->image ? \'viewimage.php?modulepart=medias&file=\'.$blog->image : \'medias/image/\'.$website->ref.\'/calendar.svg\"\').\'\" alt=\"\" width=\"120\"></div>\';\n                            print \'<div class=\"post-boxed-caption\">\';\n                            print \'<div class=\"post-boxed-title font-weight-bold\">\'.$jobrecord->label.\'</div>\';\n                            print \'<ul class=\"list-inline list-inline-dashed\">\';\n                            print \'<li><span class=\"text-primary\">\'.dol_print_date($jobrecord->date_creation, \'daytext\', \'tzserver\', $weblangs).\'</span></li>\';\n                            //$fuser->fetch($jobrecord->fk_user_recruitment);\n                            //print \'<li><span>par<span> <span class=\"text-primary\">\'.$fuser->firstname.\'</span></span></li>\';\n                            //print \'<li><span>Contact:<span> <span class=\"text-primary\">Laurent Destailleur - job@nltechno.com</span></span></li>\';\n                            print \'</ul>\';\n                            print \'</div>\';\n\n                            print \'<div class=\"left\" style=\"line-height: 1.5em; margin-top: 30px; margin-left: 20px; margin-right: 20px\">\';\n                            //includeContainer($blog->pageurl);\n                            \n                            if ($jobrecord->status == RecruitmentJobPosition::STATUS_RECRUITED) {\n                                $langs->load(\'recruitment\');\n                            	print info_admin($langs->trans(\"JobClosedTextCandidateFound\"), 0, 0, 0, \'warning\');\n                            	print \'<br>\';\n                            }\n                            if ($jobrecord->status == RecruitmentJobPosition::STATUS_CANCELED) {\n                                $langs->load(\'recruitment\');\n	                            print info_admin($langs->trans(\"JobClosedTextCanceled\"), 0, 0, 0, \'warning\');\n	                            print \'<br>\';\n                            }\n\n\n                            print \'<span class=\"nohover\">\'.$jobrecord->description.\'</span>\';\n                            \n                            print \'<br><br><span>Contact:<span> <span class=\"text-primary\">Laurent Destailleur - \'.$jobrecord->email_recruiter.\'</span></span>\';\n                            \n                            print \'</div>\';\n                            //print \'</a>\';\n                print \'</div>\';\n                print \'</div>\';\n            }\n            ?>\n            </section>\n            </div></div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(216,35,'carriere','','Carrière','Nos opportunités professionnelles','career','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Offres d\'emploi</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px\"><div class=\"text-align: center\">\n<br>\n<br>\n<br>\nNous n\'avons pas d\'offres d\'emploi ouvertes en ce moment...<br>\n<br>\n<br>\n<br>\n<br>\n            </div></div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','fr',NULL,'','',NULL,'','',0,NULL,NULL),
(217,35,'clients-testimonials','','Clients Testimonials','Client Testimonials','testimonials, use cases, success story','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Testimonials</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n      <div class=\"center\">\n      <br><br>\n      <h1 class=\"text-center\">What they say <span class=\"text-thin\">about us</span></h1>\n      <br><br><br><br>\n      Send us your testimonial (by email to <a href=\"mailto:<?php echo $mysoc->email; ?>\"><?php echo $mysoc->email; ?></a>)\n      <br><br><br><br>\n      <br><br>\n      </div>\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(218,35,'contact','','Contact','Privacy Policies','Contact','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Contact</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px; text-align: center\">\n<h2>Contact us:</h2> <br> <br> \n<span class=\"fa fa-envelope-o\"></span> <?php echo $mysoc->email ?><br>\n<span class=\"fa fa-address-card-o\"></span> <?php echo $mysoc->getFullAddress() ?><br>\n            </div>\n        </section>\n\n\n        <!-- Google MAPS -->\n        <center><div class=\"mapouter\"><div class=\"gmap_canvas\"><iframe width=\"600\" height=\"500\" id=\"gmap_canvas\" src=\"https://maps.google.com/maps?q=<?php echo urlencode($mysoc->getFullAddress()); ?>&t=&z=13&ie=UTF8&iwloc=&output=embed\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"></iframe>\n        </div>\n        <style>.mapouter{text-align:right;height:500px;width:600px;}.gmap_canvas {overflow:hidden;background:none!important;height:500px;width:600px;}</style>\n        </div></center>\n\n    <br><br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(219,35,'faq','','FAQ','Frequently Asked Questions','faq','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">FAQs</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div class=\"container\">\n<div class=\"text-align: center\"><br><br><h2>Frequently Asked Questions</h2></div>\n<br>\n<br>\n<br>\n<h4>How can I contact you ?</h4><br>\nYou can contact us by using <a href=\"contact.php\">this page</a>.\n<br>\n<br>\n<br>\n<h4>What is your privacy policy ?</h4><br>\nYou may find information about our privacy policy on <a href=\"privacy-policies.php\">this page</a>.\n\n\n<br><br><br><br>\n\n            </div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(220,35,'footer','','Footer','Footer','','<!-- At least 2 div required to avoid ckeditor to insert a p -->\n<div class=\"dolcontenteditable\" contenteditable=\"true\">      \n\n    <footer class=\"page-foot bg-cape-cod context-dark\">\n        <section id=\"sectionfooter\" contenteditable=\"true\" class=\"section-40\">\n          <div class=\"container\">\n            <div class=\"row justify-content-sm-center\">\n              <div class=\"col-sm-9 col-md-12 col-xl-12\">\n                <div class=\"row row-50\">\n                  \n                  <div class=\"col-md-6 col-lg-4 col-xl-4\">\n                    <h4 class=\"text-small-16 text-uppercase footer-title\">Product and Services</h4>\n                    <div class=\"row\" style=\"padding-right: 20px\">\n                      <div class=\"col-6\">\n                        <ul class=\"list-marked-variant-2\">\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"product-p.php\">Product P</a></li>\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"service-s.php\">Service S</a></li>\n                        </ul>\n                      </div>\n                      <div class=\"col-6\">\n                        <ul class=\"list-marked-variant-2\">\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"pricing.php\">Prices</a></li>\n                        </ul>\n                      </div>\n                    </div>\n                  </div>\n\n                  <div class=\"col-md-6 col-lg-4 col-xl-4\">\n                    <h4 class=\"text-small-16 text-uppercase footer-title\">Quick links</h4>\n                    <div class=\"row\" style=\"padding-right: 20px\">\n                      <div class=\"col-6\">\n                        <ul class=\"list-marked-variant-2\">\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"home.php\">Home</a></li>\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"blog.php\">Blog</a></li>\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"search.php\">Search</a></li>\n                        </ul>\n                      </div>\n                      <div class=\"col-6\">\n                        <ul class=\"list-marked-variant-2\">\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"contact.php\">Contacts</a></li>\n                          <li><span class=\"fa fa-chevron-right marginrightonly\"></span><a href=\"privacy-policies.php\">Privacy policies</a></li>\n                        </ul>\n                        <?php // echo $website->componentSelectLang(\'auto\', $weblangs, \'margin-top-10\'); ?>\n                      </div>\n                    </div>\n                  </div>\n                  \n                  <div class=\"col-md-6 col-lg-4 col-xl-4\">\n                    <h4 class=\"text-small-16 text-uppercase footer-title\">Contact us</h4>\n                    <address class=\"contact-info text-left\">\n                      <div class=\"unit unit-horizontal unit-spacing-md align-items-center\">\n                        <div class=\"unit-left\"><span class=\"icon text-white fa fa-phone\"></span></div>\n                        <div class=\"unit-body\"><a class=\"link-white\" href=\"callto:<?php echo $mysoc->phone; ?>\"><?php echo $mysoc->phone; ?></a></div>\n                      </div>\n                      <div class=\"unit unit-horizontal unit-spacing-md align-items-center\">\n                        <div class=\"unit-left\"><span class=\"icon text-white fa fa-envelope-o\"></span></div>\n                        <div class=\"unit-body\"><a class=\"link-white\" href=\"mailto:<?php echo $mysoc->email; ?>\"><?php echo $mysoc->email; ?></a></div>\n                      </div>\n                      <div class=\"unit unit-horizontal unit-spacing-md\">\n                        <div class=\"unit-left\"><span class=\"icon text-white fa fa-address-card-o\"></span></div>\n                        <div class=\"unit-body\"><span class=\"link-white\"><?php echo $mysoc->getFullAddress(1, \'<br>\', 1); ?></span></div>\n                      </div>\n                    </address>\n                    <div class=\"group-sm group-middle\">\n                      <p class=\"font-italic text-white\">Follow Us:</p>\n                      <ul class=\"list-inline\">\n                          <?php foreach($mysoc->socialnetworks as $key => $value) {\n                            print \'<li><a class=\"icon icon-xxs-smallest\" href=\"\'.(preg_match(\'/^http/\', $value) ? $value : \'https://www.\'.$key.\'.com/\'.$value).\'\"><span class=\"fab fa-\'.$key.\'\" style=\"margin-left: 5px; font-size: 1.6em\"></span></a></li>\';\n                          } ?>\n                      </ul>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </section>\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div class=\"center\">\n            Website generated and powered by <a href=\"https://www.dolibarr.org\" target=\"CRM and ERP for freelances, association and companies\">Dolibarr ERP & CRM</a>\n            </div>\n        </section>\n        \n      </footer>\n      \n      <!--<a href=\"#\" id=\"ui-to-top\" class=\"ui-to-top\"><span class=\"fa fa-angle-up\" style=\"color: #fff; font-size: 1.9em;\"></span></a>-->\n\n</div>\n\n\n<script src=\"/document.php?modulepart=medias&file=js/ccc/script.js\"></script>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-06 21:50:25',NULL,NULL,'other','en',NULL,'','',NULL,'','',0,NULL,NULL),
(221,35,'header','','Header and Top Menu','Header with menu','','<!-- JQuery + Other js libs -->\n<script src=\"/document.php?modulepart=medias&file=js/ccc/extlib.min.js\"></script>\n\n\n<div class=\"dolcontenteditable dolsticky\" contenteditable=\"true\"><div class=\"div-page-head\">\n      <header class=\"page-head\">\n        <div class=\"rd-navbar-wrap\" style=\"height: 106px;\">\n          <nav class=\"rd-navbar rd-navbar-corporate-dark rd-navbar-original rd-navbar-static\" \n                data-layout=\"rd-navbar-fixed\" data-sm-layout=\"rd-navbar-fixed\" data-md-device-layout=\"rd-navbar-fixed\" \n                data-md-layout=\"rd-navbar-static\" data-lg-layout=\"rd-navbar-static\" data-xl-layout=\"rd-navbar-static\" data-xxl-layout=\"rd-navbar-static\"\n                data-lg-device-layout=\"rd-navbar-static\" data-xl-device-layout=\"rd-navbar-static\" data-xxl-device-layout=\"rd-navbar-static\"\n                data-stick-up-clone=\"false\" data-md-stick-up-offset=\"53px\" data-lg-stick-up-offset=\"53px\" data-md-stick-up=\"true\" data-lg-stick-up=\"true\">\n            <div class=\"rd-navbar-inner\">\n              \n              <div class=\"rd-navbar-group rd-navbar-search-wrap toggle-original-elements\">\n                <div class=\"rd-navbar-panel\">\n                  <button class=\"rd-navbar-toggle\" data-custom-toggle=\".rd-navbar-nav-wrap\" data-custom-toggle-disable-on-blur=\"true\"><span></span></button><a class=\"rd-navbar-brand brand\" href=\"home.php\">\n                      <img src=\"/viewimage.php?modulepart=mycompany&file=logos/<?php echo getImageFileNameForSize($mysoc->logo_squarred ? $mysoc->logo_squarred : $mysoc->logo, \'_small\') ?>\" alt=\"\" height=\"34\"></a>\n                </div>\n                <div class=\"rd-navbar-nav-wrap\">\n                  <div class=\"rd-navbar-nav-inner\">\n                    <div class=\"rd-navbar-search toggle-original-elements\">\n                      <form class=\"rd-search\" action=\"search.php\" method=\"POST\" data-search-live=\"rd-search-results-live\">\n                        <input type=\"hidden\" name=\"token\" value=\"<?php echo newToken(); ?>\" />\n                        <div class=\"form-wrap\">\n                          <input class=\"form-input\" id=\"rd-search-form-input\" type=\"text\" name=\"s\" autocomplete=\"off\" placeholder=\"Search...\">\n                          <div class=\"rd-search-results-live cleared\" id=\"rd-search-results-live\"></div>\n                        </div>\n                        <button class=\"rd-search-submit buttonwithnoborder\" type=\"submit\"><span class=\"icon icon-xs icon-dusty-gray fa fa-search\"></span></button>\n                      </form>\n                      <button class=\"buttonwithnoborder\" data-rd-navbar-toggle=\".rd-navbar-search, .rd-navbar-search-wrap\">\n                          <span class=\"icon icon-xs icon-dusty-gray fa fa-search\"></span>\n                      </button>\n                    </div>\n                    \n                    <!-- Tree with menu -->\n                    <ul class=\"rd-navbar-nav\">\n                      <li class=\"active\"><a href=\"/\">Home</a></li>\n                      <li class=\"rd-navbar--has-megamenu rd-navbar-submenu\"><a href=\"#\">Products | Services</a>\n                        <ul class=\"rd-navbar-megamenu rd-navbar-open-right\">\n                          <li>\n                            <h4 class=\"rd-megamenu-header\">Products and Services</h4>\n                            <ul class=\"rd-navbar-list\">\n                              <li><a href=\"product-p.php\">Product P</a></li>\n                              <li><a href=\"service-s.php\">Service S</a></li>\n                            </ul>\n                          </li>\n                          <li>\n                            <h4 class=\"rd-megamenu-header\">Pricing</h4>\n                            <ul class=\"rd-navbar-list\">\n                              <li><a href=\"pricing.php\">Pricing</a></li>\n                            </ul>\n                          </li>\n                        </ul>\n                      </li>\n                      <li><a href=\"blog.php\">Blog</a></li>\n                      <li class=\"rd-navbar--has-megamenu rd-navbar-submenu\"><a href=\"#\">Our company</a>\n                        <ul class=\"rd-navbar-megamenu rd-navbar-open-right\">\n                          <li>\n                            <h4 class=\"rd-megamenu-header\">Our business</h4>\n                            <ul class=\"rd-navbar-list\">\n                              <li><a href=\"clients-testimonials.php\">Clients testimonials</a></li>\n                              <li><a href=\"partners.php\">Partners</a></li>\n                            </ul>\n                          </li>\n                          <li>\n                            <h4 class=\"rd-megamenu-header\">Human Resources</h4>\n                            <ul class=\"rd-navbar-list\">\n                              <li><a href=\"our-team.php\">Our team</a></li>\n                              <li><a href=\"careers.php\">Careers</a></li>\n                            </ul>\n                          </li>\n                          <li>\n                            <h4 class=\"rd-megamenu-header\">Other</h4>\n                            <ul class=\"rd-navbar-list\">\n                              <li><a href=\"faq.php\">FAQ</a></li>\n                              <li><a href=\"search.php\">Search</a></li>\n                              <li><a href=\"contact.php\">Contact us</a></li>\n                              <li><a href=\"privacy-policies.php\">Privacy policies</a></li>\n                            </ul>\n                          </li>\n                        </ul>\n                      </li>\n                      <li><a href=\"contact.php\">Contacts</a></li>\n                    </ul>\n                    \n                  </div>\n                </div>\n              </div>\n            </div>\n          </nav>\n        </div>\n      </header>\n</div></div>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-06 21:50:25',NULL,NULL,'other','en',NULL,'','',NULL,'','',0,NULL,NULL),
(222,35,'home','','Home','Welcome','','<div class=\"page\">\n        \n    <?php includeContainer(\'header\'); ?>\n        \n\n      <!-- top images -->\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"swiper-container swiper-slider swiper-variant-1 bg-black swiper-container-horizontal\" data-loop=\"false\" data-autoplay=\"5500\" data-swipe=\"true\" data-simulate-touch=\"true\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" data-slide-bg=\"medias/image/ccc/background_rough-horn.webp\" style=\"background-image: url(\'medias/image/ccc/background_rough-horn.webp\'); background-size: cover; width: 1905px;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\"><span class=\"text-thin\">Boost your business</span>\n                      </div>\n                      <div data-caption-animate=\"fadeInUp\" data-caption-delay=\"450s\" class=\"fadeInUp animated\">\n                        <p class=\"text-big-19 text-white d-none d-md-inline-block\">We provide powerful solutions for all businesses</p>\n                      </div>\n                      <div class=\"button-block fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"550s\"><a class=\"btn btn-primary maincolorbisbackground\" href=\"contact.php\">Contact us</a></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class=\"swiper-slide swiper-slide-next\" data-slide-bg=\"medias/image/ccc/background_sunset.webp\" style=\"background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover; width: 1905px;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10 col-xl-12\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern not-animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">&nbsp;Best prices on the market&nbsp;\n                      </div>\n                      <div data-caption-animate=\"fadeInUp\" data-caption-delay=\"450s\" class=\"not-animated\">\n                        <p class=\"text-big-19 text-white d-none d-md-inline-block\">Our optimized processes allows us to provide you very competitive prices</p>\n                      </div>\n                      <div class=\"button-block not-animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"550s\"><a class=\"btn btn-primary\" href=\"contact.php\">Contact us</a></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n          <div class=\"swiper-scrollbar d-xl-none\"><div class=\"swiper-scrollbar-drag\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms; width: 0px;\"></div></div>\n          <div class=\"swiper-nav-wrap d-none d-xl-block\">\n            <div class=\"swiper-button-prev swiper-button-disabled\"><span class=\"icon text-white fa fa-chevron-right fa-2x\"></span></div>\n            <div class=\"swiper-button-next\"><span class=\"icon text-white fa fa-chevron-right fa-2x\"></span></div>\n          </div>\n        </div>\n      </section>\n\n<!--<script>\nCKEDITOR.disableAutoInline = true;\nCKEDITOR.inline( \'sectionimage\' , { toolbar: [\'Bold\',\'Italic\'] } );\n</script>\n-->\n\n      <!--Products box-->\n      <section id=\"sectioniconbox\" contenteditable=\"true\">\n        <div class=\"row no-gutters justify-content-sm-center justify-content-md-start row-40 row-sm-0\">\n          <div class=\"col-sm-10 col-md-6 height-fill\">\n            <div class=\"icon-box icon-box-top-line icon-box-hover\">\n              <div class=\"box-top\">\n                <div class=\"box-icon\"><img width=\"50px\" src=\"medias/image/ccc/briefcase.png\"></div>\n                <div class=\"box-header\">\n                  <h3><a href=\"our-team.php\">A competent team</a></h3>\n                </div>\n              </div>\n              <div class=\"box-body\">\n                <p class=\"text-black\">Our sales representative are also technicians.</p>\n              </div>\n            </div>\n          </div>\n          <div class=\"col-sm-10 col-md-6 height-fill\">\n            <div class=\"icon-box icon-box-top-line icon-box-hover\">\n              <div class=\"box-top\">\n                <div class=\"box-icon\"><img width=\"50px\" src=\"medias/image/ccc/package.png\"></div>\n                <div class=\"box-header\">\n                  <h3><a href=\"pricing.php\">The best prices of market</a></h3>\n                </div>\n              </div>\n              <div class=\"box-body\">\n                <p class=\"text-black\">Take a look at our offers...</p>\n              </div>\n            </div>\n          </div>\n          <div class=\"col-sm-10 col-md-6 height-fill\">\n            <div class=\"icon-box icon-box-hover\">\n              <div class=\"box-top\">\n                <div class=\"box-icon\"><img width=\"50px\" src=\"medias/image/ccc/light-bulb.png\"></div>\n                <div class=\"box-header\">\n                  <h3><a href=\"clients-testimonials.php\">A high level of satisfaction</a></h3>\n                </div>\n              </div>\n              <div class=\"box-body\">\n                <p class=\"text-black\">Our customer-supplier relationship is very appreciated by our customers</p>\n              </div>\n            </div>\n          </div>\n          <div class=\"col-sm-10 col-md-6 height-fill\">\n            <div class=\"icon-box icon-box-hover\">\n              <div class=\"box-top\">\n                <div class=\"box-icon\"><img width=\"50px\" src=\"medias/image/ccc/organization.png\"></div>\n                <div class=\"box-header\">\n                  <h3><a href=\"/contact.php\">After Sale service</a></h3>\n                </div>\n              </div>\n              <div class=\"box-body\">\n                <p class=\"text-black\">We continue to follow and assist you after the sale. Contact us at any time.</p>\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n\n\n      <!-- Looking for our sevices -->\n      <section id=\"sectionfirstclass\" contenteditable=\"true\" class=\"section-with-counters bg-accent text-center\">\n        <div class=\"container bg-cape-cod context-dark section-60 section-lg-90\">\n          <h2 class=\"text-rolling-stone font-weight-bold text-uppercase\">Looking for</h2>\n          <h1 class=\"section-title\"><span class=\"text-thin\">a high quality</span> service?</h1>\n          <p class=\"text-black\">With a lot of experience, hiring us is a security for your business!</p>\n          <div class=\"row list-md-dashed row-40\">\n            <div class=\"col-md-4\">\n              <div class=\"h1 small counter-bold counter maincolorbis\">11</div>\n              <div class=\"counter-title text-black font-weight-bold text-uppercase\">Years of Experience</div>\n            </div>\n            <div class=\"col-md-4\">\n              <div class=\"h1 small counter-bold counter maincolorbis\">\n                  <?php $sql = \"SELECT COUNT(*) as nb FROM \".MAIN_DB_PREFIX.\"user where statut = 1\"; $resql = $db->query($sql); $obj = $db->fetch_object($resql); print $obj->nb; ?>\n              </div>\n              <div class=\"counter-title text-black font-weight-bold text-uppercase\">Experts</div>\n            </div>\n            <div class=\"col-md-4\">\n              <div class=\"h1 small counter-bold counter maincolorbis\">\n                  <?php $sql = \"SELECT COUNT(*) as nb FROM \".MAIN_DB_PREFIX.\"societe where client in (1,3)\"; $resql = $db->query($sql); $obj = $db->fetch_object($resql); print $obj->nb; ?>\n              </div>\n              <div class=\"counter-title text-black font-weight-bold text-uppercase\">Trusted Clients</div>\n            </div>\n          </div>\n          <div class=\"button-block inset-sm-left-60 inset-sm-right-60\">\n            <div class=\"d-md-flex justify-content-md-center align-items-md-center\"><a class=\"btn btn-rect btn-primary d-block d-md-inline-block\" href=\"contact.php\">Contact us</a>\n            <span class=\"font-italic text-black inset-md-left-20 inset-md-right-20 d-block d-md-inline-block text-big-18\">&nbsp; or &nbsp;</span>\n            <a class=\"btn btn-rect btn-white-outline d-block d-md-inline-block maincolorbisbackground\" href=\"pricing.php\" style=\"min-width:236px;\">See our pricing</a></div>\n          </div>\n        </div>\n      </section>\n\n      \n      \n      <!-- Our plans -->\n      <section id=\"sectionplans\" contenteditable=\"true\" class=\"section-67 section-md-top-75 section-md-bottom-75\">\n        <div class=\"container\">\n            <div id=\"carousel-plans-month\" class=\"\" data-interval=\"0\" style=\"margin-top:50px\">\n                    <!-- begin .carousel-inner -->\n                    <div class=\"pricing-plan-slider\" role=\"listbox\">\n                        <!-- begin .item -->\n                        <div class=\"item active\">\n                            <!-- begin .container -->\n                            <div class=\"container\">\n                                <h1 class=\"text-center\">our <span class=\"text-thin\">plans</span></h1>\n\n                                <!-- begin .row -->\n                                <div class=\"plan-list flex-box row spacer-bottom-sm flexwrap_inherit\">\n                                    <!-- begin .plan-item -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box\">\n                                            <div class=\"plan-tile\"> \n                                                <div class=\"plan-box-header\"></div>\n                                                <div class=\"plan-title\">FREE</div>\n                                                <div class=\"plan-tag\">The best choice for personal use</div>\n                                                <div class=\"plan-feat\"><span class=\"summaryplan\">The service 1 for free</div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price\" id=\"monthly_plan_37\"><span><sup></sup>0<sup>€</sup></span>/ month</span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>                                                                                                        </span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i>\n                                                            Service 1                                                            \n                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"plan-a.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block\" id=\"plana\">Subcribe</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- end .plan-item -->\n                                    \n                                    <!-- begin .plan-item -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box \">                      \n                                            <div class=\"plan-tile\"> \n                                                <div class=\"plan-box-header\"></div>\n                                                <div class=\"plan-title\">STARTER</div>\n                                                <div class=\"plan-tag\">For small companiess</div>\n                                                <div class=\"plan-feat\">The service 1 and product 1 at low price</div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price\" id=\"starter\"><span><sup></sup>29<sup>€</sup></span>/ month</span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>                                                                                                        </span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i>\n                                                            Service 1\n                                                        </li>\n                                                        <li>\n                                                        	<i class=\"fa fa-check\"></i>\n                                                        	Product 1\n                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"plan-b.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block\" id=\"planb\">Subscribe</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- end .plan-item -->\n                                    \n                                    <!-- Most popular plan box -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box most-popular-plan-box2 most-popular-plan-box \">                  \n                                        <div class=\"plan-tile\">\n                                            <div class=\"plan-box-header\" id=\"default\"></div> \n                                                <div class=\"plan-title\">PREMIUM</div>\n                                                <div class=\"plan-tag\">For large companies</div>\n                                                <div class=\"plan-feat\">The full option package for a one shot price\n                                                </div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price planPremiumPrice\" id=\"premium\"><span><sup></sup>2499<sup>€</sup></span></span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Service 1                                                        </li>\n                                                        <li id=\"higherFeature\" class=\"hide\">\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Service 2                                                        </li>\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Product 1                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"planc.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block maincolorbisbackground\" id=\"planc\">Buy</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- Ends // Most Popular Plan Box --> \n                                </div>\n                                <!-- end .row -->\n                            </div>\n                            <!-- end .container -->\n                        </div>\n                        <!-- end .item -->\n                    </div>\n                    <!-- end .row -->\n                <!-- end .carousel -->          \n            </div>\n        </div>\n      </section>\n      \n      \n      <!-- Our team -->\n      <section id=\"sectionteam\" contenteditable=\"true\" class=\"section-66 section-md-top-100 section-md-bottom-75\">\n        <div class=\"container\">\n          <h1 class=\"text-center\">our <span class=\"text-thin\">team</span></h1>\n          <div class=\"row justify-content-sm-center\">\n            <div class=\"col-md-8 col-xl-12\">\n              <div class=\"owl-carousel owl-carousel-center owl-nav-modern owl-style-minimal owl-style-minimal-inverse text-center\" data-items=\"1\" data-md-items=\"2\" data-xl-items=\"3\" data-stage-padding=\"15\" data-loop=\"false\" data-margin=\"15\" data-mouse-drag=\"false\" data-nav=\"true\" data-dots=\"true\">\n                <div class=\"owl-item text-center\">\n                  <div class=\"thumbnail-variant-5\">\n                    <div class=\"thumbnail-variant-5-img-wrap\"><img class=\"img-circle\" src=\"medias/image/ccc/alberteinstein.jpg\" width=\"129\" height=\"129\" alt=\"\"></div>\n                    <h2>Albert Einstein</h2>\n                    <div>CEO</div>\n                    <div class=\"divider-fullwidth bg-porcelain\"></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-phone\"></span><a class=\"link-black\" href=\"callto:#\">+555 123 456</a></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-envelope-o\"></span><a class=\"link-black\" href=\"mailto:#\">email@example.com</a></div>\n                  </div>\n                </div>\n                <div class=\"owl-item text-center\">\n                  <div class=\"thumbnail-variant-5\">\n                    <div class=\"thumbnail-variant-5-img-wrap\"><img class=\"img-circle\" src=\"medias/image/ccc/pierrecurie.jpg\" width=\"129\" height=\"129\" alt=\"\"></div>\n                    <h2>Pierre Curie</h2>\n                    <div>CTO</div>\n                    <div class=\"divider-fullwidth bg-porcelain\"></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-phone\"></span><a class=\"link-black\" href=\"callto:#\">+555 123 456</a></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-envelope-o\"></span><a class=\"link-black\" href=\"mailto:#\">email@example.com</a></div>\n                  </div>\n                </div>\n                <div class=\"owl-item text-center\">\n                  <div class=\"thumbnail-variant-5\">\n                    <div class=\"thumbnail-variant-5-img-wrap\"><img class=\"img-circle\" src=\"medias/image/ccc/mariecurie.jpg\" width=\"129\" height=\"129\" alt=\"\"></div>\n                    <h2>Marie Curie</h2>\n                    <div>Bookkeeper</div>\n                    <div class=\"divider-fullwidth bg-porcelain\"></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-phone\"></span><a class=\"link-black\" href=\"callto:#\">+555 123 456</a></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-envelope-o\"></span><a class=\"link-black\" href=\"mailto:#\">email@example.com</a></div>\n                  </div>\n                </div>\n                <div class=\"owl-item text-center\">\n                  <div class=\"thumbnail-variant-5\">\n                    <div class=\"thumbnail-variant-5-img-wrap\"><img class=\"img-circle\" src=\"medias/image/ccc/daviddoe.png\" width=\"129\" height=\"129\" alt=\"\"></div>\n                    <h2>John Doe</h2>\n                    <div>Project leader</div>\n                    <div class=\"divider-fullwidth bg-porcelain\"></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-phone\"></span><a class=\"link-black\" href=\"callto:#\">+555 123 456</a></div>\n                    <div class=\"link-group\"><span class=\"icon icon-xxs icon-primary fa fa-envelope-o\"></span><a class=\"link-black\" href=\"mailto:#\">email@example.com</a></div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n\n\n      <!-- Contact form -->\n      <section id=\"sectionformcontact\" contenteditable=\"true\" class=\"section-67 section-md-top-50 section-md-bottom-50 section-md-bottom-100 section-with-counters\">\n        <div class=\"container\">\n          <div class=\"row justify-content-sm-center\">\n            <div class=\"col-md-10 col-lg-10 col-xl-12\">\n              <div class=\"panel bg-accent bg-default-outline-btn text-center\" style=\"padding: 50px 15px;\">\n                <h1>Request <span class=\"text-thin\">a callback</span></h1>\n                <form class=\"formcontact\" method=\"POST\" action=\"request-callback.php\">\n                  <div class=\"inline-block valignmiddle\">\n                    <input class=\"form-input\" placeholder=\"Name\" id=\"index-request-name\" type=\"text\" name=\"name\" required>\n                  </div>\n                  <div class=\"inline-block valignmiddle\">\n                    <input class=\"form-input\" placeholder=\"Phone Number\" id=\"index-request-phone\" type=\"text\" name=\"phone\" required>\n                  </div>\n                  <div class=\"inline-block valignmiddle\">\n                    <input class=\"form-input\" placeholder=\"Email\" id=\"index-request-email\" type=\"text\" name=\"email\" required>\n                  </div>\n                  <div class=\"inline-block valignmiddle\">\n                    <button class=\"btn btn-rect btn-primary d-block d-md-inline-block maincolorbisbackground\" type=\"submit\">Submit</button>\n                  </div>\n                </form>\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n      \n      \n      <!-- Testimonies -->\n      <section id=\"sectiontestimonies\" contenteditable=\"true\" class=\"maincolorbackground context-dark\">\n        <div class=\"container\">\n          <div class=\"row justify-content-sm-center justify-content-lg-start\">\n            <div class=\"col-sm-10 col-lg-12 text-left section-60 section-md-60\">\n              <div>\n                <h1 class=\"text-center text-lg-left\">successful <span class=\"text-thin\">cases</span></h1>\n                <div class=\"carousel-testimonials-home\">\n                  <div class=\"inset-xl-right-50\">\n                    <div class=\"slick-slider slick-slider slick-carousel-round-image slick-images\" id=\"child-carousel\" data-for=\".carousel-parent\" data-arrows=\"false\" data-loop=\"false\"\n                       data-dots=\"false\" data-swipe=\"true\" data-items=\"1\" data-sm-items=\"3\" data-md-items=\"3\" data-lg-items=\"3\" data-xl-items=\"4\" data-slide-to-scroll=\"1\" data-center-mode=\"false\" data-center-padding=\"0\">\n                      <div class=\"itemphotouser\">\n                        <div class=\"imp-wrap\"><img class=\"photouser\" src=\"medias/image/ccc/alberteinstein.jpg\" alt=\"\" width=\"99\" height=\"99\"/>\n                        </div>\n                      </div>\n                      <div class=\"itemphotouser\">\n                        <div class=\"imp-wrap\"><img class=\"photouser\" src=\"medias/image/ccc/pierrecurie.jpg\" alt=\"\" width=\"99\" height=\"99\"/>\n                        </div>\n                      </div>\n                      <div class=\"itemphotouser\">\n                        <div class=\"imp-wrap\"><img class=\"photouser\" src=\"medias/image/ccc/mariecurie.jpg\" alt=\"\" width=\"99\" height=\"99\"/>\n                        </div>\n                      </div>\n                      <div class=\"itemphotouser\">\n                        <div class=\"imp-wrap\"><img class=\"photouser\" src=\"medias/image/ccc/daviddoe.png\" alt=\"\" width=\"99\" height=\"99\"/>\n                        </div>\n                      </div>\n                    </div>\n                  </div>\n                  <div class=\"slick-slider carousel-parent slick-dots-variant-1\" data-arrows=\"false\" data-loop=\"false\" data-dots=\"true\"\n                  data-swipe=\"true\" data-child=\"#child-carousel\" data-for=\"#child-carousel\" data-items=\"1\" data-sm-items=\"1\" data-md-items=\"1\" data-lg-items=\"1\" data-xl-items=\"1\" data-slide-to-scroll=\"1\" data-center-mode=\"false\">\n                    <div class=\"inset-left-10 inset-right-10 inset-\">\n                      <div class=\"inset-xl-right-85\">\n                        <blockquote class=\"quote-left\">\n                          <div class=\"row align-items-sm-end row-20\">\n                            <div class=\"col-sm-6\">\n                              <div class=\"quote-name\">\n                                <cite>Albert Einstein</cite>\n                              </div>\n                              <div class=\"text-dusty-gray\">Scientist, www.emc2.org</div>\n                            </div>\n                            <div class=\"col-sm-6 text-center\">\n                              <div class=\"quote-desc row d-flex\">\n                                <div class=\"col-sm-6\">\n                                  <div class=\"quote-desc-text maincolorbis\">-20%</div>\n                                  <div class=\"text-medium text-dusty-gray text-uppercase\">Expenses</div>\n                                </div>\n                              </div>\n                            </div>\n                          </div>\n                          <div class=\"divider-fullwidth\"></div>\n                          <div>\n                            <span class=\"fa fa-quote-left\"><!-- Keep this comment --></span>\n                            <q>They did everything, with almost no time or effort for me. The best part was that I could trust their team to represent our company professionally with our clients.</q>\n                            <span class=\"fa fa-quote-right\"><!-- Keep this comment --></span>\n                          </div>\n                        </blockquote>\n                      </div>\n                    </div>\n                    <div class=\"inset-left-10 inset-right-10 inset-\">\n                      <div class=\"inset-xl-right-85\">\n                        <blockquote class=\"quote-left\">\n                          <div class=\"row row-20\">\n                            <div class=\"col-sm-6\">\n                              <div class=\"quote-name\">\n                                <cite>Pierre Curie</cite>\n                              </div>\n                              <div class=\"text-dusty-gray\">CEO “Cyclonic”</div>\n                            </div>\n                            <div class=\"col-sm-6 text-center\">\n                              <div class=\"quote-desc row d-flex\">\n                                <div class=\"col-sm-6\">\n                                  <div class=\"quote-desc-text maincolorbis\">-30%</div>\n                                  <div class=\"text-medium text-dusty-gray text-uppercase\">Expenses</div>\n                                </div>\n                              </div>\n                            </div>\n                          </div>\n                          <div class=\"divider-fullwidth\"></div>\n                          <div>\n                            <span class=\"fa fa-quote-left\"><!-- Keep this comment --></span>\n                            <q>Their course gave me the confidence to implement new techniques in my work. I learn “how” to write – “what” and “why” also became much clearer.</q>\n                            <span class=\"fa fa-quote-right\"><!-- Keep this comment --></span>\n                          </div>\n                        </blockquote>\n                      </div>\n                    </div>\n                    <div class=\"inset-left-10 inset-right-10 inset-\">\n                      <div class=\"inset-xl-right-85\">\n                        <blockquote class=\"quote-left\">\n                          <div class=\"row row-20\">\n                            <div class=\"col-sm-6\">\n                              <div class=\"quote-name\">\n                                <cite>Marie Curie</cite>\n                              </div>\n                              <div class=\"text-dusty-gray\">CTO \"Cyclonic\"</div>\n                            </div>\n                            <div class=\"col-sm-6 text-center\">\n                              <div class=\"quote-desc row d-flex\">\n                                <div class=\"col-sm-6\">\n                                  <div class=\"quote-desc-text maincolorbis\">+22%</div>\n                                  <div class=\"text-medium text-dusty-gray text-uppercase\">Turnover</div>\n                                </div>\n                              </div>\n                            </div>\n                          </div>\n                          <div class=\"divider-fullwidth\"></div>\n                          <div>\n                            <span class=\"fa fa-quote-left\"><!-- Keep this comment --></span>\n                            <q>We were skeptical to work with a consultant to optimize our sales emails, but they were highly recommended by many other startups we knew. They helped us to reach our objective of 20% turnover increase, in 4 monthes.</q>\n                            <span class=\"fa fa-quote-right\"><!-- Keep this comment --></span>\n                          </div>\n                        </blockquote>\n                      </div>\n                    </div>\n                    <div class=\"inset-left-10 inset-right-10 inset-\">\n                      <div class=\"inset-xl-right-85\">\n                        <blockquote class=\"quote-left\">\n                          <div class=\"row row-20\">\n                            <div class=\"col-sm-6\">\n                              <div class=\"quote-name\">\n                                <cite>John Doe</cite>\n                              </div>\n                              <div class=\"text-dusty-gray\">Sale representative</div>\n                            </div>\n                            <div class=\"col-sm-6 text-center\">\n                              <div class=\"quote-desc row d-flex\">\n                                <div class=\"col-sm-6\">\n                                  <div class=\"quote-desc-text maincolorbis\">+40%</div>\n                                  <div class=\"text-medium text-dusty-gray text-uppercase\">Quotes</div>\n                                </div>\n                              </div>\n                            </div>\n                          </div>\n                          <div class=\"divider-fullwidth\"></div>\n                          <div>\n                            <span class=\"fa fa-quote-left\"><!-- Keep this comment --></span>\n                            <q>Their work on our website and Internet marketing has made a significant different to our business. We’ve seen a +40% increase in quote requests from our website.</q>\n                            <span class=\"fa fa-quote-right\"><!-- Keep this comment --></span>\n                          </div>\n                        </blockquote>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </section>\n      \n\n      <!-- News -->\n      <section id=\"sectionnews\" contenteditable=\"true\" class=\"section-50 section-md-90 section-md-bottom-100\">\n        <div class=\"container text-center\">\n          <h1>Latest <span class=\"text-thin\">News</span></h1>\n          <div class=\"row justify-content-sm-center row-40\">\n            <?php \n            $MAXNEWS = 3;\n            $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null,\'.$websitepage->lang));\n            foreach($arrayofblogs as $blog)\n            {\n                ?>\n                <div class=\"col-sm-8 col-md-7 col-lg-4\">\n                  <div class=\"post-boxed d-xl-inline-block\">\n                    <a href=\"<?php echo $blog->pageurl ?>.php\">\n                    <div class=\"post-boxed-img-wrap\"><img src=\"<?php echo ($blog->image ? \'viewimage.php?modulepart=medias&file=\'.str_replace(\'template-corporate\', $website->ref, $blog->image) : \'medias/image/\'.$website->ref.\'/calendar.png\"\'); ?>\" alt=\"\" height=\"80\"></div>\n                    <div class=\"post-boxed-caption\">\n                      <div class=\"post-boxed-title font-weight-bold\"><?php echo $blog->title ?></div>\n                      <ul class=\"list-inline list-inline-dashed text-uppercase\">\n                        <li><?php $weblangs->load(\"main\"); echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?></li>\n                        <li><span>by<span> <span class=\"text-primary\"><?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span></span></li>\n                      </ul>\n                    </div>\n                    </a>\n                  </div>\n                </div>\n                <?php \n            }\n            ?>\n \n          </div>\n        </div>\n      </section>\n\n\n    <?php includeContainer(\'footer\'); ?>\n\n\n</div>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(223,35,'our-team','','Our team','Our team','team','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Our team</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionteam\" contenteditable=\"true\" class=\"section-50 section-md-50 section-md-bottom-50\">\n            <div class=\"container\"><div class=\"text-align: center\"><br>\n            <h2>The crew...</h2><br> <br><br> \n            <?php \n            include_once DOL_DOCUMENT_ROOT.\'/core/class/html.form.class.php\';\n            $websitepage = new WebsitePage($db);\n            $fuser = new User($db);\n            $arrayofusers = array();\n            $MAXNB=10;\n            $sql=\'SELECT rowid FROM \'.MAIN_DB_PREFIX.\'user WHERE statut = 1 and fk_soc IS NULL ORDER BY fk_user DESC LIMIT \'.$MAXNB;\n            $resql = $db->query($sql);\n            if (! $resql) dol_print_error($db);\n            while ($obj = $db->fetch_object($resql))\n            {\n                $arrayofusers[]=$obj->rowid;\n            }\n           \n            print \'<div class=\"row justify-content-sm-center row-40\">\';\n            foreach($arrayofusers as $id)\n            {\n                $fuser->fetch($id);\n\n                print \'<div class=\"col-sm-8 col-md-7 col-lg-4\">\';\n                print \'<div class=\"container blog-box d-xl-inline-block\" style=\"padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;\">\';\n                print \'<div class=\"post-boxed-img-wrap\" style=\"height: 164px\">\';\n                if ($fuser->photo) print Form::showphoto(\'userphoto\', $fuser, 100, 0, 0, \'photowithmargin\', \'\', 0);\n                //print \'<img class=\"img-circle\" src=\"/viewimage.php?modulepart=userphoto&amp;file=\'.$fuser->photo.\'\" width=\"129\" height=\"129\" alt=\"\">\';\n                else print \'<img class=\"img-circle\" src=\"/viewimage.php?modulepart=medias&amp;file=image/ccc/daviddoe.png\" width=\"129\" height=\"129\" alt=\"\">\';\n                print \'</div>\';\n                print \'<div class=\"post-boxed-caption\">\';\n                print \'<div class=\"post-boxed-title font-weight-bold\">\'.$fuser->firstname.\'</div>\';\n                print \'<ul class=\"list-inline list-inline-dashed text-uppercase\">\';\n                //print \'<li>September 24, 2018</li>\';\n                if ($fuser->job) print \'<li><span class=\"text-primary\">\'.$fuser->job.\'</span></li>\';\n                else print \'<li></li>\';\n                print \'</ul>\';\n                print \'</div>\';\n                print \'</div>\';\n                print \'</div>\';\n            }\n            print \'</div>\';\n\n            ?>\n            </div></div>\n        </section>\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(224,35,'partners','','Partners','Partners','partners','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Partners</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px\"><div class=\"text-align: center\">\n<br><h2>Our partners...</h2>\n<br>\n<br>\n<br>\n<div class=\"row justify-content-sm-center row-40\">\n    <div class=\"col-sm-8 col-md-2 col-lg-2\">\n        <div>\n            <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/dolibarr_256x256.png\" height=\"64px\"><br>\n            <div class=\"floatatbottom\"><a href=\"https://www.dolibarr.org\" target=\"_new\">Dolibarr ERP CRM</a></div>\n        </div>\n    </div>\n    <div class=\"col-sm-4 col-md-2 col-lg-2\">\n         <div>\n        <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/php.png\" height=\"64px\"><br>\n        <div class=\"floatatbottom\"><a href=\"http://www.php.net\" target=\"_new\">PHP</a></div>\n        </div>\n    </div>\n    <div class=\"col-sm-4 col-md-2 col-lg-2\">\n         <div>\n        <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/apache.png\" height=\"64px\"><br>\n        <div class=\"floatatbottom\"><a href=\"https://www.apache.org\" target=\"_new\">Apache</a></div>\n        </div>\n    </div>\n    <div class=\"col-sm-4 col-md-2 col-lg-2\">\n         <div>\n        <img src=\"/viewimage.php?modulepart=medias&file=image/ccc/mariadb.png\" height=\"64px\"><br>\n        <div class=\"floatatbottom\"><a href=\"https://www.mariadb.org\" target=\"_new\">MariaDB</a></div>\n        </div>\n    </div>\n</div>\n<br>\n<br>\n<br>\n<br>\n            </div></div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(225,35,'pricing','','Pricing','All the prices of our offers','pricing','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Our plans</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n\n\n      <!-- Our plans -->\n      <section id=\"sectionplans\" contenteditable=\"true\" class=\"section-67 section-md-top-50 section-md-bottom-75\">\n        <div class=\"container\">\n            <div id=\"carousel-plans-month\" class=\"\" data-interval=\"0\" style=\"margin-top:50px\">\n                    <!-- begin .carousel-inner -->\n                    <div class=\"pricing-plan-slider\" role=\"listbox\">\n                        <!-- begin .item -->\n                        <div class=\"item active\">\n                            <!-- begin .container -->\n                            <div class=\"container\">\n\n                                <!-- begin .row -->\n                                <div class=\"plan-list flex-box row spacer-bottom-sm flexwrap_inherit\">\n                                    <!-- begin .plan-item -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box\">\n                                            <div class=\"plan-tile\"> \n                                                <div class=\"plan-box-header\"></div>\n                                                <div class=\"plan-title\">FREE</div>\n                                                <div class=\"plan-tag\">The best choice for personal use</div>\n                                                <div class=\"plan-feat\"><span class=\"summaryplan\">The service 1 for free</div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price\" id=\"monthly_plan_37\"><span><sup></sup>0<sup>€</sup></span>/ month</span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>                                                                                                        </span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i>\n                                                            Service 1                                                            \n                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"plan-a.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block\" id=\"plana\">Subcribe</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- end .plan-item -->\n                                    \n                                    <!-- begin .plan-item -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box \">                      \n                                            <div class=\"plan-tile\"> \n                                                <div class=\"plan-box-header\"></div>\n                                                <div class=\"plan-title\">STARTER</div>\n                                                <div class=\"plan-tag\">For small companiess</div>\n                                                <div class=\"plan-feat\">The service 1 and product 1 at low price</div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price\" id=\"starter\"><span><sup></sup>29<sup>€</sup></span>/ month</span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>                                                                                                        </span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i>\n                                                            Service 1\n                                                        </li>\n                                                        <li>\n                                                        	<i class=\"fa fa-check\"></i>\n                                                        	Product 1\n                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"plan-b.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block\" id=\"planb\">Subscribe</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- end .plan-item -->\n                                    \n                                    <!-- Most popular plan box -->\n                                    <div class=\"col-lg-15 col-md-4 col-sm-6 col-xs-12 box most-popular-plan-box2 most-popular-plan-box \">                  \n                                        <div class=\"plan-tile\">\n                                            <div class=\"plan-box-header\" id=\"default\"></div> \n                                                <div class=\"plan-title\">PREMIUM</div>\n                                                <div class=\"plan-tag\">For large companies</div>\n                                                <div class=\"plan-feat\">The full option package for a one shot price\n                                                </div>\n                                                <div class=\"plan-pricer\">\n                                                    <span class=\"plan-price planPremiumPrice\" id=\"premium\"><span><sup></sup>2499<sup>€</sup></span></span>\n                                                </div>\n                                                <div class=\"plan-features\">\n                                                    <span class=\"plan-features-title\">Available features are :</span>\n                                                    <ul class=\"list-unstyled\">\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Service 1                                                        </li>\n                                                        <li id=\"higherFeature\" class=\"hide\">\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Service 2                                                        </li>\n                                                        <li>\n                                                            <i class=\"fa fa-check\"></i> \n                                                            Product 1                                                        </li>\n                                                    </ul>\n                                                </div>\n                                                <div class=\"plan-btn plan-picker\">\n                                                    <a href=\"planc.php\" class=\"btn btn-rect btn-primary d-block d-md-inline-block maincolorbisbackground\" id=\"planc\">Buy</a>\n                                                </div>\n                                            </div>  \n                                    </div>\n                                    <!-- Ends // Most Popular Plan Box --> \n                                </div>\n                                <!-- end .row -->\n                            </div>\n                            <!-- end .container -->\n                        </div>\n                        <!-- end .item -->\n                    </div>\n                    <!-- end .row -->\n                <!-- end .carousel -->          \n            </div>\n        </div>\n      </section>\n      \n      \n        \n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(226,35,'privacy-policies','','Privacy Policies','Privacy Policies','Privacy policies, GDPR','<div class=\"page\">\n          \n    \n        <?php includeContainer(\'header\'); ?>\n\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Privacy Policy</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n<br><br><br>\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\" style=\"margin-top: 50px\">\n            <div class=\"container\">\n<p style = \"text-align: justify;\"> <h2> Information collected and used </h2> <br> </p>\n<p style = \"text-align: justify;\"> * Your customer information (email, phone, business name, first and last name of contact, address, postal code, country and VAT number) are stored when you become a customer. This information allows us to bill you. </ P>\n<p style = \"text-align: justify;\"> * If you paid using our online service, we also store the last 4 digits of your card. The full details of your credit card is stored by our payment provider Stripe (the world leader in online payment).</p>\n<p style = \"text-align: justify;\"> * You have the option to request the deletion of your data and the above information at any time (except data required y fiscal tracking rules, like your invoices). </p>\n<p style = \"text-align: justify;\"> * The Privacy Policies and GDPR referral contact for our services is: <?php echo $conf->global->MAIN_INFO_GDPR; ?> </p>\n<p style = \"text-align: justify;\"> <br> </p>\n<p style = \"text-align: justify;\"> <h2> Data Storage and Backups </h2> <br> </p>\n<p style = \"text-align: justify;\"> * The storage of collected data (see \'Information collected and used\') is done in a database. </p>\n<p style = \"text-align: justify;\"> * We made one backup every week. Only 4 weeks are kept. <br> </p>\n<p style = \"text-align: justify;\"> <br> </p>\n<p style = \"text-align: justify;\"> <h2> Subcontractor </h2> <br> </p>\n<p style = \"text-align: justify;\"> * Our services relies on the following subcontractors and service: <br>\n** The host of computer servers, which is ABC company. These servers are hosted in US. No customer information is communicated to this subcontractor who only provides the hardware and network layer, the installation and operation being carried out by us directly. <br>\n** The online payment service <a href=\"https://www.stripe.com\">Stripe</a>, which is used, to ensure regular payment of subscription or your invoices paid online. </p>\n<p style = \"text-align: justify;\"> <br> </p>\n<p style = \"text-align: justify;\"> <h2> Software Protection </h2> <br> </p>\n<p style = \"text-align: justify;\"> * Our services runs on Linux Ubuntu systems and software. They benefit from regular security updates when the operating system editor (Ubuntu Canonical) publishes them. <br> </p>\n<p style = \"text-align: justify;\"> * Our services are accessible in HTTPS (HTTP encrypted) only, encrypted with SHA256 certificates.<br> </p>\n<p style = \"text-align: justify;\"> * Our technical platform are protected by various solutions. <br> </p>\n<p style = \"text-align: justify;\"> <br> </p>\n<p style = \"text-align: justify;\"> <h2> Data theft </h2> <br> </p>\n<p style = \"text-align: justify;\"> * In case of suspicion of a theft of the data we have collected (see first point \'Information collected and used\'), customers will be informed by email, at email corresponding to their customer account <br> </p>\n<p style=\"text-align: justify;\"> </p>\n            </div>\n        </section>\n\n\n      <?php includeContainer(\'footer\'); ?>\n      \n      \n</div>\n    \n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(227,35,'product-p','','Product P','Product P','','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Product P</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px\"><div class=\"text-align: center\">\n<br>\n<br>\n<br>\nThis is a description page of our product P...<br>\n<br>\n<br>\n<br>\n<br>\n            </div></div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n    \n\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(228,35,'search','','Search Page','Search Page','','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Search</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n<br><br><br>\n\n<center>\n     \n    <div style=\"width: 60%\">\n    <form class=\"rd-search\" action=\"search.php\" method=\"POST\">\n        <input type=\"hidden\" name=\"token\" value=\"<?php echo newToken(); ?>\" />\n        <div class=\"form-wrap\">\n                  <input class=\"form-input\" id=\"rd-search-form-input\" type=\"text\" name=\"s\" autocomplete=\"off\" placeholder=\"Search...\" value=\"<?php echo dol_escape_htmltag(GETPOST(\'s\', \'alphanohtml\')); ?>\">\n                  <div class=\"rd-search-results-live cleared\" id=\"rd-search-results-live\"></div>\n        </div>\n        <button class=\"rd-search-submit buttonwithnoborder\" type=\"submit\"><span class=\"icon icon-xs icon-dusty-gray fa fa-search\"></span></button>\n    </form>\n    </div>\n    <br>\n                      \n     <?php\n     $weblangs->load(\"main\");\n     \n     if (function_exists(\'getPagesFromSearchCriterias\'))\n     {\n         if (GETPOSTISSET(\'s\'))\n         {\n             $listofpages = getPagesFromSearchCriterias(\'page\', \'meta\', GETPOST(\'s\', \'alphanohtml\'));\n             if ($listofpages[\'code\'] == \'OK\')\n             {\n                 foreach($listofpages[\'list\'] as $websitepagefound)\n                 {\n                    print \'<div class=\"rowsearchresult\"><a href=\"\'.$websitepagefound->ref.\'.php\">\'.$websitepagefound->title.\'</a> - \'.$websitepagefound->description.\'</div>\';\n                 }\n             }\n             else\n             {\n                 // If error, show message\n                 print $listofpages[\'message\'];\n             }\n         }\n     }\n     else\n     {\n         print $weblangs->trans(\"FeatureNotYetAvailable\");\n     }\n     ?>\n                      \n<br><br><br><br><br><br>\n</center>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(229,35,'service-s','','Service S','Service S','','<div class=\"page\">\n\n    <?php includeContainer(\'header\'); ?>\n\n      <section id=\"sectionimage\" contenteditable=\"true\">\n        <div class=\"\">\n          <div class=\"swiper-wrapper text-center\" style=\"transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;\">\n            <div class=\"swiper-slide swiper-slide-active\" style=\"height: 200px; background-image: url(\'medias/image/ccc/background_sunset.webp\'); background-size: cover;\">\n              <div class=\"swiper-slide-caption\">\n                <div class=\"container\">\n                  <div class=\"row justify-content-sm-center\">\n                    <div class=\"col-md-11 col-lg-10\">\n                      <div class=\"text-white text-uppercase jumbotron-custom border-modern fadeInUp animated\" data-caption-animate=\"fadeInUp\" data-caption-delay=\"0s\">Service S</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n        </div>\n      </section>\n\n\n        <section id=\"sectionfooterdolibarr\" contenteditable=\"true\" class=\"footerdolibarr\">\n            <div style=\"margin: 50px\"><div class=\"text-align: center\">\n<br>\n<br>\n<br>\nThis is a description page of our service S...<br>\n<br>\n<br>\n<br>\n<br>\n            </div></div>\n        </section>\n\n\n    <br><br>\n\n    <?php includeContainer(\'footer\'); ?>\n\n</div>\n',1,'2020-10-07 13:13:26',NULL,'2022-07-12 09:17:55',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(230,40,'config','','config','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$message = \'\';\nif (!isModEnabled(\'eventorganization\') || !isModEnabled(\'member\') || !isModEnabled(\'don\') || !isModEnabled(\'webportal\')) {\n    $message = $langs->trans(\"TEMPLATE_MODULES_NOTICE\") .\"<br><br>\";\n}\n\nrequire_once DOL_DOCUMENT_ROOT.\'/core/class/html.formsetup.class.php\';\n$formSetup = new FormSetup($db);\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')->setAsYesNo();\n$item->nameText = $langs->trans(\"USE_TEXT_LOGO\");\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\');\n$item->nameText = $langs->trans(\"CUSTOM_SLOGAN\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\');\n$item->nameText = $langs->trans(\"CUSTOM_DESCRIPTION\");\n$item->cssClass = \'minwidth500\';\n\n// Get available langs for the website\n$TField = array();\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\nforeach ($available_langs as $key => $value) {\n    $TField[$key] = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]);\n}\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\');\n$item->nameText = $langs->trans(\"SUPPORTED_LANGS\");\n$item->setAsMultiSelect($TField);\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'MAIN_COLOR\');\n$item->nameText = $langs->trans(\"MAIN_COLOR\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SECONDARY_COLOR\');\n$item->nameText = $langs->trans(\"SECONDARY_COLOR\");\n$item->cssClass = \'minwidth500\';\n\nif (isModEnabled(\'member\')) {\n    $formSetup->newItem(\'membersArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_REGISTRATION_PAGE\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_LIST_PAGE\");\n    \n    if (isModEnabled(\'webportal\')) {\n        $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')->setAsYesNo();\n        $item->nameText = $langs->trans(\"ENABLE_MEMBER_AREA_PAGE\");\n    }\n}\n\nif (isModEnabled(\'eventorganization\')) {\n    $formSetup->newItem(\'eventsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_EVENTS_SECTION\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_EVENTS_SECTION\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"SHOW_EVENT_PARTICIPATE_LINK\");\n}\n\nif (isModEnabled(\'don\')) {\n    $formSetup->newItem(\'DonationsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_DONATION_PAGE\");\n}\n\n\n/*=============================================================\n============NEXT PART WILL BE INTEGRATED IN CORE===============\n=============================================================*/\n\n\n/*\n * Actions\n */\n\n$websitetemplateconf = GETPOSTINT(\'websitetemplateconf\');\ninclude DOL_DOCUMENT_ROOT.\'/core/actions_setmoduleoptions.inc.php\';\n\n\n/*\n * View\n */\n\nprint load_fiche_titre($langs->trans(\'SetupAndProperties\'), \'\', \'title_setup\');\n\nif ($message) {\n    print $message;\n}\n\nif (!empty($formSetup->items)) {\n\n	\n    $out2 = \'\';\n	$out2.= \'<form action=\"config.php\" method=\"POST\" >\';\n	// generate hidden values from $formSetup->formHiddenInputs\n	if (!empty($formSetup->formHiddenInputs) && is_array($formSetup->formHiddenInputs)) {\n		foreach ($formSetup->formHiddenInputs as $hiddenKey => $hiddenValue) {\n			$out2.= \'<input type=\"hidden\" name=\"\'.dol_escape_htmltag($hiddenKey).\'\" value=\"\' . dol_escape_htmltag($hiddenValue) . \'\">\';\n		}\n	}\n\n    // generate output table\n    $out2 .= $formSetup->generateTableOutput(true);\n\n    // Submit button\n    $out2 .= \'<input type=\"hidden\" name=\"action\" value=\"\">\';\n    $out2 .= \'<input type=\"hidden\" name=\"websitetemplateconf\" value=\"1\">\';\n	$out2 .= \'<br>\';\n	$out2 .= \'<div class=\"form-setup-button-container center\">\';\n	$out2 .= \'<input class=\"button button-submit\" type=\"submit\" href=\"\">\';\n	$out2 .= \'</div>\';\n\n	$out2 .= \'</form>\';\n    print $out2;\n}\n\n\n/*\n * Style\n */\n\n?>\n<style>\n.bodywebpage-config {\n    max-width: 70%;\n    margin: auto;\n    margin-top: 50px;\n}\n</style>\n<?php\n\n\n?>',0,'2025-04-30 09:05:35',NULL,'2025-05-06 12:41:45',0,12,'setup',NULL,NULL,'','',NULL,'','',0,'',''),
(231,40,'contact','','contact','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (GETPOST(\'action\') == \'sendmail\') {\n    include_once DOL_DOCUMENT_ROOT.\'/core/class/CMailFile.class.php\';\n    \n    // Set message language\n	$emaillang = new Translate(\'\', $conf);\n	if ($mysoc->default_lang) {\n	    $emaillang->setDefaultLang($mysoc->default_lang);\n	    $emaillang->loadLangs(array(\"main\", \"website\"));\n	}\n	\n\n    $from = GETPOST(\'email\', \'alpha\');\n    $to = $mysoc->email;\n    $subject = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref));\n\n    $firstname = GETPOST(\'firstname\', \'alpha\');\n    $phone = GETPOST(\'phone\', \'alpha\');\n    $usersubject = GETPOST(\'subject\', \'alpha\');\n    $messageContent = GETPOST(\'message\', \'alpha\');\n\n    $message = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref)) . \"\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormName\")) . \": $firstname\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormEmail\")) . \": $from\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormPhone\")) . \": \" . (!empty($phone) ? $phone : \"N/A\") . \"\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormSubjectEntered\")) . \": $usersubject\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormMessageLabel\")) . \":\\n$messageContent\\n\";\n\n    $cmail = new CMailFile($subject, $to, $from, $message);\n\n    if ($cmail->sendfile()) {\n        ?>\n        <script>\n            alert(\"<?php echo html_entity_decode ($emaillang->trans(\"contactFormSuccessAlert\")); ?>\");\n        </script>\n        <?php\n    } else {\n        echo html_entity_decode ($langs->trans(\"ErrorFailedToSendMail\", $from, $to)) . \'. \' . $cmail->error;\n    }\n}\n\n\n\n?>\n<div class=\"container-fluid\">\n    <div class=\"container py-5\">\n        \n        <div class=\"container-fluid contact py-5\">\n            <div class=\"row g-4\">\n                <div class=\"col-xl-5\">\n                    \n                    <div class=\"section-title\" id=\"section-contact\" style=\"scroll-margin-top: 130px;\">\n                      <div class=\"line left-line\"></div>\n                      <h1><?php echo $weblangs->trans(\"contactTitle\"); ?></h1>\n                      <div class=\"line right-line\"></div>\n                    </div>\n        \n                    <p class=\"mb-4\"><?php echo $weblangs->trans(\"contactMessage\"); ?></p>\n                    <form method=\"post\" action=\"#\">\n                        <div class=\"row gx-4 gy-3\">\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"firstname\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelFirstName\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"email\" name=\"email\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelEmail\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"phone\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelPhone\"); ?>\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"subject\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelSubject\"); ?>\" required>\n                            </div>\n                            <div class=\"col-12\">\n                                <textarea name=\"message\" class=\"form-control bg-white border-0 py-3 px-4\" rows=\"7\" cols=\"10\" placeholder=\"<?php echo $weblangs->trans(\"labelMessage\"); ?>\" required></textarea>\n                            </div>\n                            <div class=\"col-12\">\n                                <button class=\"btn flat-button text-white py-2 px-3 float-end\" type=\"submit\" name=\"action\" value=\"sendmail\"><?php echo $weblangs->trans(\"submit\"); ?></button>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n                <div class=\"col-xl-7\">\n                    <div>\n                        <div class=\"row g-4\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-map-marker-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelAddress\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'address\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-envelope fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelEmail\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'email\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fa fa-phone-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelPhone\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'phone\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <iframe class=\"w-100\" style=\"height: 412px; margin-bottom: -6px;\" src=\"https://maps.google.com/maps?q=<?php echo urlencode($mysoc->getFullAddress()); ?>&t=&z=13&ie=UTF8&iwloc=&output=embed\" \n                                    loading=\"lazy\" referrerpolicy=\"no-referrer-when-downgrade\"></iframe>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:35:43',NULL,'2025-04-30 15:55:11',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(232,40,'donation-list','','donation-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$data = array();\n\n$sql = \"SELECT d.rowid, d.datedon as datec, s.nom as societe, d.firstname, d.lastname, p.title, d.amount\";\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"don as d LEFT JOIN \".MAIN_DB_PREFIX.\"projet AS p\";\n$sql .= \" ON p.rowid = d.fk_projet\";\n$sql .= \" LEFT JOIN \" . MAIN_DB_PREFIX . \"societe AS s ON s.rowid = d.fk_soc\";\n$sql .= \" WHERE d.entity IN (\". getEntity(\'donation\') . \")\";\n$sql .= \" AND d.fk_statut IN (2)\";\n$sql .= \" AND d.paid = 1\";\n$sql .= \" AND d.public = 1\";\n$sql .= \" AND p.public = 1\";\n$sql .= $db->order(\"datedon\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n			\'project\' => $obj->title,\n			\'amount\' => $obj->amount,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"listOfPublicDonations\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Date\"); ?></th>\n                \n                <th><?php echo $weblangs->trans(\"project\"); ?></th>\n                <th><?php echo $weblangs->trans(\"amount\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo !empty($row[\'firstname\']) ? htmlspecialchars($row[\'firstname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'lastname\']) ? htmlspecialchars($row[\'lastname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'societe\']) ? htmlspecialchars($row[\'societe\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'project\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo price(price2num($row[\'amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 17:00:33',NULL,'2025-04-30 08:53:51',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(233,40,'events','','events','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')) {\n    $showDonationLink = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n?>\n<div class=\"container-fluid causes\">\n    <div class=\"container\">\n        <div class=\"section-title\" id=\"section-events\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"actionsEvents\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n\n            <?php \n            $maxevents = GETPOSTINT(\'maxevents\') ? GETPOSTINT(\'maxevents\') : 3;\n            $countofevents = 0;\n            $sqlCount = \"SELECT count(p.rowid) as countofevents \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \";\n            $resqlCount = $db->query($sqlCount);\n            if ($resqlCount) {\n                $objCount = $db->fetch_object($resqlCount);\n                $countofevents = $objCount->countofevents ? $objCount->countofevents : 0;\n            }\n        \n            $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \n                    LIMIT \".$maxevents;\n            $resql = $db->query($sql);\n            if ($resql) {\n                $countofblogs = $db->num_rows($resql);\n                $i=1;\n                while ($obj = $db->fetch_object($resql)) {\n                    ?>\n                    <div class=\"col-lg-6 col-xl-4 event-item\" id=\"event-<?php echo $i; ?>\">\n                        <div class=\"causes-item\">\n                            <div class=\"causes-img\">\n                                <?php\n                                    $urlforimage = getImageFromHtmlContent($obj->description ? $obj->description : \"\");\n                                    if (empty($urlforimage)) {\n                                        $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                    }\n                                ?>\n                                <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                                <div class=\"causes-link pb-2 px-3\">\n                                    <?php\n                                        $progress = 100;\n                                        if ($obj->budget_amount > 0 && $showDonationLink) {\n                                            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                                                             FROM \".MAIN_DB_PREFIX.\"don \n                                                             WHERE fk_projet = \".$obj->rowid;\n                                            $resqlCollected = $db->query($sqlCollected);\n                                            $collected = 0;\n                                            if ($resqlCollected) {\n                                                $objCollected = $db->fetch_object($resqlCollected);\n                                                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n                                            }\n                                            $progress = round(($collected / $obj->budget_amount) * 100, 2);\n                                        }\n                                    ?>\n                                    <?php if ($showDonationLink) { ?>\n                                        <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($obj->budget_amount, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                        <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($collected, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                    <?php } ?>    \n                                </div>\n                                <div class=\"causes-dination p-2\">\n                                    <?php if ($showDonationLink) { ?>\n                                        <?php if (getDolGlobalInt(\'WS_\' . strtoupper($website->ref) . \'_PAYMENT_IN_FRAME\')) { ?>\n                                            <a href=\"page.php?donation=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } else { ?>\n                                            <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } ?>\n                                    <?php } ?>\n                                    \n                                    <?php if ($showParticipateLink) { ?>\n                                        <?php $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\'); ?>\n                                        <a href=\"<?php echo $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"Participate\"); ?></a>\n                                    <?php } ?>\n                                </div>\n                            </div>\n                            \n                            \n                            <div class=\"progress\">\n                              <div class=\"progress-bar\" role=\"progressbar\" style=\"width: <?php echo $progress; ?>%;\" aria-valuenow=\"<?php echo $progress; ?>\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                                <?php if ($showDonationLink) { ?>\n                                <span><?php echo $progress; ?>%</span>\n                                <?php } ?>\n                              </div>\n                            </div>\n\n                            \n                            <div class=\"causes-content p-4\">\n                                <span class=\"text-body\">\n                                    <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($obj->datec, \'daytext\', \'tzuser\', $weblangs); ?>\n                                </span>\n                                <h4 class=\"py-3\"><?php echo $obj->title; ?></h4>\n\n                                <a href=\"page.php?id=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                            </div>\n                        </div>\n                    </div>\n                    <?php\n                    $i++;\n                }\n            }\n            ?>\n        </div>\n        \n        <?php if ($maxevents <= $countofevents) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreEventsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?> (<?php echo $maxevents; ?>/<?php echo $countofevents; ?>)</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreEventsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxEventsParam = <?php echo $maxevents; ?>;\n            const newMaxEvents = parseInt(maxEventsParam) + 3;\n            currentUrl.searchParams.set(\'maxevents\', newMaxEvents);\n            currentUrl.hash = \'#event-\' + (parseInt(maxEventsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n    </div>\n</div>',0,'2025-04-14 14:16:40',NULL,'2025-05-05 14:13:07',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(234,40,'footer','','footer','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid\" style=\"margin:0; padding:0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"<?php print getDolGlobalString(\'WS_\' . strtoupper($website->ref) . \'_MAIN_COLOR\') ?: \'#5d5b6a\'; ?>\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</div>\n<div class=\"container-fluid footer text-body\">\n    \n    <div class=\"container py-5\">\n        <div class=\"row g-5\">\n            \n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"presentation\"); ?></h4>\n                    <a href=\"/index#section-overview\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"missionVision\"); ?></a>\n                    <a href=\"rgpd.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"rgpd\"); ?></a>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"newsEvents\"); ?></h4>\n                    <a href=\"index#section-news\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"news\"); ?></a>\n                    <?php if (isModEnabled(\'eventorganization\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_EVENTS_SECTION\')): ?>\n                        <a href=\"index#section-events\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"actionsEvents\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"volunteer\"); ?></h4>\n                        <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n                          <?php\n                          if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                            $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n                          } else {\n                            if (isModEnabled(\'multicompany\')) {\n                              $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                            } else {\n                              $entity_qr = \'\';\n                            }\n            \n                            $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                            $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                            $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n                          }\n                          ?>\n                          <a href=\"<?php echo $url; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n                        <?php endif; ?>\n                        \n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <a href=\"members-list.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"directory\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                        <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"becomeMember\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')): ?>\n                        <a href=\"<?php print $socInfo[\'link_donation\']; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"makeDonation\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"socials\"); ?></h4>\n                    <div>\n                        <?php\n                            $socialIcons = [\n                              \'facebook\' => \'fa-facebook-f\',\n                              \'twitter\' => \'fa-x-twitter\',\n                              \'linkedin\' => \'fa-linkedin-in\',\n                              \'instagram\' => \'fa-instagram\',\n                              \'youtube\' => \'fa-youtube\',\n                              \'skype\' => \'fa-skype\',\n                              \'whatsapp\' => \'fa-whatsapp\',\n                              \'snapchat\' => \'fa-snapchat-ghost\',\n                            ];\n                \n                            foreach ($socialIcons as $key => $icon) {\n                              if (!empty($socInfo[$key])) {\n                                echo \'<a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fa-brands \' . $icon . \'\"></i></a>\';\n                              }\n                            }\n                        ?>\n                    </div>\n                </div>\n            </div>\n            <!--<div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">RGPD</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Politique de Confidentialité</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Gestion des Données</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Droits des Utilisateurs</a>\n\n                </div>\n            </div>-->\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:37:00',NULL,'2025-05-05 15:50:29',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(235,40,'highlights','','highlights','','','<div class=\"col-lg-3 stats section\" id=\"stats\">\n                \n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php echo $weblangs->trans(\"highlights\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n\n    <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\" data-aos-delay=\"100\">\n\n        <div class=\"row gy-4\">\n            \n            <!--<div class=\"col-lg-12 counter-box\">\n                <i class=\"fas fa-users fa-4x text-white\"></i>\n                <div class=\"stats-item\">\n                  <span data-purecounter-start=\"0\" data-purecounter-end=\"232\" data-purecounter-duration=\"0\" class=\"purecounter\">000</span>\n                  <p><?php echo $weblangs->trans(\"volunteer\"); ?></p>\n                </div>\n            </div><!-- End Stats Item -->\n            \n            <?php if (isModEnabled(\'member\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-user-friends fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                      $sql = \"SELECT COUNT(rowid) as total_members FROM llx_adherent WHERE statut = 1 AND public = 1\";\n                      $resql = $db->query($sql);\n                      $total_members = 0;\n                      if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_members = $obj->total_members;\n                        }\n                      }\n                      ?>\n                      <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_members; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_members; ?></span>\n                      <p><?php echo $weblangs->trans(\"member\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'eventorganization\')): ?>\n            <div class=\"col-lg-12 counter-box\">\n              <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n              <div class=\"stats-item\">\n              <?php\n                $sql = \"SELECT COUNT(rowid) as total_events FROM \".MAIN_DB_PREFIX.\"projet as p WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1)\";\n              $resql = $db->query($sql);\n              $total_events = 0;\n              if ($resql) {\n                $obj = $db->fetch_object($resql);\n                if ($obj) {\n                $total_events = $obj->total_events;\n                }\n              }\n              ?>\n              <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_events; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_events; ?></span>\n              <p><?php echo $weblangs->trans(\"actions\"); ?></p>\n              </div>\n            </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'don\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT count(amount) as count_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $count_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $count_funds = $obj->count_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $count_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print $count_funds; ?></span>\n                        <p><?php echo $weblangs->trans(\"Donation\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'don\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-file-invoice-dollar fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT SUM(amount) as total_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $total_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_funds = $obj->total_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print intval($total_funds); ?> €</span>\n                        <p><?php echo $weblangs->trans(\"fundsCollected\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n\n        </div>\n    \n      </div>\n</div>',0,'2025-04-14 10:49:38',NULL,'2025-05-05 09:49:14',NULL,NULL,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(236,40,'index','','index','','','<?php includeContainer(\'navbar\'); ?>\n\n<?php includeContainer(\'slider\'); ?>\n\n<?php \nif ($_SESSION[\'lang\'][\'shortcode\'] != \"en\" && array_key_exists($_SESSION[\'lang\'][\'shortcode\'], getAvailableLangs()[\'langs\'])) {\n    includeContainer(\'overview-\'.$_SESSION[\'lang\'][\'shortcode\']);\n} else {\n    includeContainer(\'overview\');\n}\n?>\n\n<?php includeContainer(\'news\'); ?>\n\n<?php\nif (getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_EVENTS_SECTION\') && isModEnabled(\'eventorganization\')) {\n    includeContainer(\'events\'); \n}\n?>\n\n<?php includeContainer(\'contact\'); ?>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-03-21 15:58:56',NULL,'2025-05-05 12:31:54',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(237,40,'members-list','','members-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (!getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')) {\n    redirectToContainer(\'index\');\n}\n\n$data = array();\n$sql = \"SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo, datec\";\n\n$sqlfields = $sql;\n\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"adherent\";\n$sql .= \" WHERE entity = 1\";\n$sql .= \" AND statut = 1\";\n$sql .= \" AND public = 1\";\n$sql .= $db->order(\"datec\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"ListOfValidatedPublicMembers\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"DateSubscription\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'firstname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'lastname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'societe\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 15:02:20',NULL,'2025-04-30 15:29:36',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(238,40,'navbar','','navbar','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n// Get available langs for the website\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\nif (getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\')) {\n    $used_langs = explode(\',\', getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\'));\n    foreach ($available_langs as $key => $value) {\n        if (!in_array($key, $used_langs)) {\n            unset($available_langs[$key]);\n        }\n    }\n}\n\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n//$weblangs->load(\"website\", \"languages\");\n//$langs->load(\"website\", \"languages\");\n?>\n<div class=\"site-mobile-menu site-navbar-target\">\n  <div class=\"site-mobile-menu-header\">\n    <div class=\"site-mobile-menu-close mt-3\">\n      <span class=\"icon-close2 js-menu-toggle\"></span>\n    </div>\n  </div>\n  <div class=\"site-mobile-menu-body\"></div>\n</div>\n\n<header class=\"site-navbar js-sticky-header js-sticky-header-blog site-navbar-target\" role=\"banner\">\n\n  <div class=\"container\">\n    <div class=\"row align-items-center\">\n      \n      <div class=\"col-6 col-xl-2\">\n        <?php\n            if(getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')) {\n                $html_logo = $mysoc->name . \'<span class=\"text-secondary-color\">.</span>\';\n            } else {\n                $path = getImageFileNameForSize($mysoc->logo_squarred ? $mysoc->logo_squarred : $mysoc->logo, \'_small\');\n                $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" height=\"42\" src=\"\' . DOL_URL_ROOT . \'/viewimage.php?modulepart=mycompany&file=\'.urlencode(\'logos/\'.$path).\'\">\'; \n            }\n          \n            \n        ?>\n        <h1 class=\"mb-0 site-logo\"><a href=\"/index\"><?php print $html_logo; ?> </a></h1>\n      </div>\n\n      <div class=\"col-12 col-md-10 d-none d-xl-block\">\n        <nav class=\"site-navigation position-relative text-right\" role=\"navigation\">\n\n        <ul class=\"site-menu main-menu js-clone-nav mr-auto d-none d-lg-block\" style=\"float: right;\">\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"presentation\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"/index#section-overview\" class=\"nav-link\"><?php echo $weblangs->trans(\"missionVision\"); ?></a></li>\n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <li><a href=\"members-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"directory\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"newsEvents\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"index#section-news\" class=\"nav-link\"><?php echo $weblangs->trans(\"news\"); ?></a></li>\n                    <?php if (isModEnabled(\'eventorganization\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_EVENTS_SECTION\')): ?>\n                        <li><a href=\"index#section-events\" class=\"nav-link\"><?php echo $weblangs->trans(\"actionsEvents\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"commitmentSupport\"); ?></a>\n                <ul class=\"dropdown\">\n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"becomeMember\"); ?></a></li>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'link_donation\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"makeDonation\"); ?></a></li>\n                        <li><a href=\"donation-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"listOfPublicDonations\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li>\n                <a href=\"index#section-contact\" class=\"nav-link\"><?php echo $weblangs->trans(\"contact\"); ?></a>\n            </li>\n            \n            <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n              <?php\n              if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n              } else {\n                if (isModEnabled(\'multicompany\')) {\n                  $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                } else {\n                  $entity_qr = \'\';\n                }\n\n                $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n              }\n              ?>\n              <li>\n                <a href=\"<?php echo $url; ?>\" target=\"new\" class=\"nav-link\"><i class=\"fa-solid fa-user\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n              </li>\n            <?php endif; ?>\n            \n            <?php\n                $socialIcons = [\n                  \'facebook\' => \'fa-facebook-f\',\n                  \'twitter\' => \'fa-x-twitter\',\n                  \'linkedin\' => \'fa-linkedin-in\',\n                  \'instagram\' => \'fa-instagram\',\n                  \'youtube\' => \'fa-youtube\',\n                  \'skype\' => \'fa-skype\',\n                  \'whatsapp\' => \'fa-whatsapp\',\n                  \'snapchat\' => \'fa-snapchat-ghost\',\n                ];\n    \n                foreach ($socialIcons as $key => $icon) {\n                  if (!empty($socInfo[$key])) {\n                    echo \'<li class=\"social\"><a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"nav-link\"><i class=\"fa-brands \' . $icon . \'\"></i></a></li>\';\n                  }\n                }\n            ?>\n            \n            <li class=\"has-children\">\n                <a href=\"#language-section\" class=\"nav-link\"><?php print trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$_SESSION[\'lang\'][\'shortcode\']]))[0]); ?></a>\n                <ul class=\"dropdown lang-menu\">\n                    <?php if (count($available_langs) > 1): ?>\n                        <?php foreach ($available_langs as $key => $value) : ?>\n                            <?php $value = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]); ?>\n                            <?php if ($key != $_SESSION[\'lang\'][\'shortcode\']): ?>\n                        		<li>\n                                  <form id=\"languageForm-<?php print $key; ?>\" method=\"post\" action=\"#\">\n                                    <input type=\"hidden\" name=\"l\" value=\"<?php print $key; ?>\">\n                                    <a href=\"#\" class=\"nav-link\" title=\"<?php print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"\n                                           const form = document.getElementById(\'languageForm-<?php print $key; ?>\');\n                                           const parser = document.createElement(\'a\');\n                                           parser.href = form.action || window.location.href;\n                                           const params = new URLSearchParams(parser.search);\n                                           params.delete(\'l\');\n                                           parser.search = params.toString();\n                                           form.action = parser.href;\n                                           form.submit();\n                                           return false;\n                                       \">    \n                                      <?php print $value ; ?>\n                                    </a>\n                                  </form>\n                                </li>\n                        	<?php endif ?>\n                        <?php endforeach ?>\n                    <?php endif ?>\n                </ul>\n            </li>\n            \n        </ul>\n        </nav>\n      </div>\n\n\n      <div class=\"col-6 d-inline-block d-xl-none ml-md-0 py-3\" style=\"position: relative; top: 3px;\">\n        <a href=\"#\" class=\"site-menu-toggle js-menu-toggle float-right\">\n            <i class=\"fas fa-bars\"></i>\n        </a>\n      </div>\n\n    </div>\n  </div>\n  \n</header>',0,'2025-04-08 14:20:56',NULL,'2025-05-05 15:10:21',NULL,NULL,'menu','',NULL,'','',NULL,'','',0,NULL,NULL),
(239,40,'news','','news','','','<div class=\"container-fluid causes\">\n    <div class=\"container py-5\">\n        <div class=\"section-title\" id=\"section-news\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"news\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n        <?php \n        $MAXNEWS = GETPOSTINT(\'maxnews\') ? GETPOSTINT(\'maxnews\') : 3;\n        $allblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 0, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null,\'.$_SESSION[\'lang\'][\'shortcode\']));\n        $countofblogs = count($allblogs);\n        $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \'.$_SESSION[\'lang\'][\'shortcode\']));\n        $i=1;\n        foreach($arrayofblogs as $blog)\n        {\n        ?>\n            <div class=\"col-lg-6 col-xl-4 blog-item\" id=\"blog-<?php echo $i; ?>\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <?php\n                            $urlforimage = getImageFromHtmlContent($blog->content);\n                            if (empty($urlforimage)) {\n                                $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                            }\n                        ?>\n                        <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                    </div>\n                    <div class=\"progress progress-news\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\">\n                            <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?>\n                            <span class=\"author-span\"><i class=\"fas fa-user me-2\"></i> <?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span>\n                        </span>\n                        <h4 class=\"py-3\"><?php echo $blog->title; ?></h4>\n                        <hr>\n                        <p class=\"mb-4 truncate3\"><?php echo $blog->description; ?></p>\n                        <a href=\"page.php?ref=<?php print $blog->pageurl; ?>&blog=<?php print $blog->id; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                    </div>\n                </div>\n            </div>\n            <?php \n            $i++;\n        }\n        ?>\n        </div>\n        \n        <?php if ($MAXNEWS <= $countofblogs) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreNewsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?>...</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreNewsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxNewsParam = <?php echo $MAXNEWS; ?>;\n            const newMaxNews = parseInt(maxNewsParam) + 3;\n            currentUrl.searchParams.set(\'maxnews\', newMaxNews);\n            currentUrl.hash = \'#blog-\' + (parseInt(maxNewsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n            \n            \n    </div>\n</div>',0,'2025-04-14 14:16:15',NULL,'2025-05-05 11:05:25',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(240,40,'our-company-is-now-on-dolibarr-erp-crm','','Our company is now on Dolibarr ERP CRM','Like several thousands of companies, our company (DMNA) has moved all its information system to Dolibarr ERP CRM. More than 20 applications have been replaced by only one.','','<article>\n	<article>\n		<p>Explorez la beauté de la nature à travers cet article captivant. Découvrez des paysages époustouflants et des merveilles naturelles qui vous laisseront sans voix.</p>\n		<img src=\"/dolibarr18/dolibarr/htdocs/viewimage.php?modulepart=medias&file=image/test3/3.jpg\" alt=\"Paysage naturel\" class=\"img-fluid mb-3\">\n		<p>La nature offre une diversité incroyable de faune et de flore. Chaque coin de notre planète regorge de trésors à découvrir.</p>\n		<img src=\"/dolibarr18/dolibarr/htdocs/viewimage.php?modulepart=medias&file=image/test3/4.jpg\" alt=\"Forêt luxuriante\" class=\"img-fluid mb-3\">\n		<p>Que ce soit une promenade en forêt, une randonnée en montagne ou une simple observation des étoiles, la nature a le pouvoir de nous reconnecter à l\'essentiel.</p>\n	</article>\n</article>',1,'2025-04-14 15:39:29',NULL,'2025-04-16 18:13:54',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(241,40,'our-new-web-site-has-been-launched','','Our new web site has been launched','Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers','','<article>\n	<p>Explorez la beauté de la nature à travers cet article captivant. Découvrez des paysages époustouflants et des merveilles naturelles qui vous laisseront sans voix.</p>\n	<img src=\"/dolibarr18/dolibarr/htdocs/viewimage.php?modulepart=medias&file=image/test3/3.jpg\" alt=\"Paysage naturel\" class=\"img-fluid mb-3\">\n	<p>La nature offre une diversité incroyable de faune et de flore. Chaque coin de notre planète regorge de trésors à découvrir.</p>\n	<img src=\"/dolibarr18/dolibarr/htdocs/viewimage.php?modulepart=medias&file=image/test3/4.jpg\" alt=\"Forêt luxuriante\" class=\"img-fluid mb-3\">\n	<p>Que ce soit une promenade en forêt, une randonnée en montagne ou une simple observation des étoiles, la nature a le pouvoir de nous reconnecter à l\'essentiel.</p>\n</article>',1,'2025-04-08 14:18:29',NULL,'2025-04-16 18:15:25',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(242,40,'overview','','overview','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Our association is committed to making a positive impact by supporting initiatives that contribute to collective well-being and a sustainable future. We emphasize collaboration and shared values to move forward together toward common goals.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Foster cooperation and solidarity among members.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourage responsible and sustainable practices.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Support projects that have a positive impact on society.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promote inclusion and equal opportunities.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Raise awareness about social, environmental, or cultural issues.</p>\n              \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:30:11',NULL,'2025-05-05 09:25:08',NULL,NULL,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(243,40,'overview-de','','overview-de','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Unser Verein setzt sich dafür ein, einen positiven Beitrag zu leisten, indem er Initiativen unterstützt, die zum gemeinsamen Wohl und zu einer nachhaltigen Zukunft beitragen. Wir legen Wert auf Zusammenarbeit und gemeinsame Werte, um gemeinsam auf gemeinsame Ziele hinzuarbeiten.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Zusammenarbeit und Solidarität unter den Mitgliedern.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Ermutigung zu verantwortungsbewusstem und nachhaltigem Handeln.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Unterstützung von Projekten mit positivem Einfluss auf die Gesellschaft.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Inklusion und Chancengleichheit.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilisierung für soziale, ökologische und kulturelle Themen.</p>\n            \n              <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\">Tritt uns bei</a>\n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:27:14',NULL,'2025-05-05 09:23:57',NULL,NULL,'page','de',242,'','',NULL,'','',0,NULL,NULL),
(244,40,'overview-es','','overview-es','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Misión y Visión</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Nuestra asociación está comprometida con generar un impacto positivo apoyando iniciativas que contribuyan al bienestar colectivo y a un futuro sostenible. Damos prioridad a la colaboración y a los valores compartidos para avanzar juntos hacia objetivos comunes.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Fomentar la cooperación y la solidaridad entre los miembros.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover prácticas responsables y sostenibles.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Apoyar proyectos que generen un impacto positivo en la sociedad.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover la inclusión y la igualdad de oportunidades.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Concienciar sobre cuestiones sociales, medioambientales y culturales.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:30:19',NULL,'2025-05-05 09:24:15',NULL,NULL,'page','es',242,'','',NULL,'','',0,NULL,NULL),
(245,40,'overview-fr','','overview-fr','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Notre association s\'engage à avoir un impact positif en soutenant des initiatives qui contribuent au bien-être collectif et à un avenir durable. Nous mettons l\'accent sur la collaboration et les valeurs partagées pour avancer ensemble vers des objectifs communs.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Favoriser la coopération et la solidarité entre les membres.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourager des pratiques responsables et durables.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Soutenir des projets ayant un impact positif sur la société.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promouvoir l\'inclusion et l\'égalité des chances.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibiliser aux enjeux sociaux, environnementaux ou culturels.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:06:31',NULL,'2025-05-05 09:24:31',NULL,NULL,'page','fr',242,'','',NULL,'','',0,NULL,NULL),
(246,40,'overview-it','','overview-it','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Missione e Visione</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                La nostra associazione si impegna a generare un impatto positivo sostenendo iniziative che contribuiscano al benessere collettivo e a un futuro sostenibile. Diamo importanza alla collaborazione e ai valori condivisi per avanzare insieme verso obiettivi comuni.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere la cooperazione e la solidarietà tra i membri.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Incentivare pratiche responsabili e sostenibili.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Sostenere progetti con un impatto positivo sulla società.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere l\'inclusione e le pari opportunità.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilizzare su temi sociali, ambientali e culturali.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:31:59',NULL,'2025-05-05 09:24:45',NULL,NULL,'page','it',242,'','',NULL,'','',0,NULL,NULL),
(247,40,'page','','page','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$pageId = GETPOSTINT(\'blog\');\n$eventId = GETPOSTINT(\'id\');\n$donationForId = GETPOSTINT(\'donation\');\n\nif ((!$pageId && !$eventId && !$donationForId) || ($pageId && $eventId)) {\n    redirectToContainer(\'index\');\n}\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')) {\n    $showDonationLink = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n\n$data = array();\nif ($pageId) {\n    $type = \"blogpage\";\n    $blog = $websitepage->fetch($pageId);\n    if ($blog < 0) {\n        redirectToContainer(\'index\');\n    } else {\n        $data[\'date_creation\'] = $websitepage->date_creation;\n        $data[\'author_alias\'] = ($websitepage->author_alias ? $websitepage->author_alias : \'\');\n        $data[\'title\'] = $websitepage->title;\n        $data[\'content\'] = $websitepage->content;\n        $data[\'budget_amount\'] = 0;\n        $data[\'collected\'] = 0;\n        $data[\'type\'] = $type;\n    }\n}\n\nif ($eventId) {\n    if (!isModEnabled(\'eventorganization\') || !getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_EVENTS_SECTION\')) {\n        redirectToContainer(\'index\');\n    }\n    $type = \"eventpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $eventId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = $obj->description;\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\nif ($donationForId) {\n    $type = \"donationpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $donationForId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = \'<div id=\"iframe-container\"><iframe id=\"donationFrame\" frameborder=\"0\" style=\"overflow:hidden;width:100%;height:100%;\" src=\"\' . $socInfo[\'link_donation\'] . \'?project_id=\' . urlencode($donationForId) . \'&ws=\' . urlencode($website->id) . \'\"\n></iframe></div>\';\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 190px;\">\n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 190px;\">\n        <div class=\"col-lg-12 text-center breadcrumb-box\">\n            \n            <ol class=\"breadcrumb justify-content-center mb-3 lead\">\n				<li class=\"breadcrumb-item\"><a href=\"/\" class=\"text-decoration-none\"><?php echo $weblangs->trans(\"home\"); ?></a></li>\n				<li class=\"breadcrumb-item\">\n				    <a href=\"/events\" class=\"text-decoration-none\">\n				        <?php echo $weblangs->trans($data[\'type\'] === \"blogpage\" ? \"news\" : \"actionsEvents\"); ?>\n				    </a>\n				</li>\n			</ol>\n			\n            <h1 class=\"mb-3\"><?php print $data[\'title\']; ?></h1>\n            <span>\n                <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($data[\'date_creation\'], \'daytext\', \'tzuser\', $weblangs); ?>\n                \n                <?php if ($data[\'type\'] == \"blogpage\") { ?>\n                    <span class=\"author-span ms-3\"><i class=\"fas fa-user me-2\"></i> \n                        <?php \n                            if ($data[\'author_alias\']) { \n                                echo $data[\'author_alias\']; \n                            } else { \n                                echo $weblangs->trans(\"anonymous\");\n                            } \n                        ?> \n                    </span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showDonationLink) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($data[\'budget_amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showDonationLink) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($data[\'collected\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n            </span>\n        </div>\n    </div>\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		<div class=\"<?php echo $data[\'type\'] === \'donationpage\' ? \'col-md-12\' : \'col-md-8\'; ?>\" style=\"min-height:1200px;\">\n			<article id=\"content\">\n				<?php print html_entity_decode($data[\'content\']); ?>\n			</article>\n		</div>\n		\n		<?php if ($data[\'type\'] !== \"donationpage\") { ?>\n		    <?php includeContainer(\'sidebar\'); ?>\n		<?php } ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-16 10:10:24',NULL,'2025-05-05 14:14:20',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(248,40,'rgpd','','rgpd','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n\n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 190px;\">\n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 190px;\">\n        <div class=\"col-lg-12 text-center breadcrumb-box\">\n            \n            <ol class=\"breadcrumb justify-content-center mb-3 lead\">\n				<li class=\"breadcrumb-item\"><a href=\"/\" class=\"text-decoration-none\"><?php echo $weblangs->trans(\"home\"); ?></a></li>\n				<li class=\"breadcrumb-item\">\n				    <a href=\"/events\" class=\"text-decoration-none\">\n				        <?php echo $weblangs->trans(\"RGPD\"); ?>\n				    </a>\n				</li>\n			</ol>\n			\n            <h1 class=\"mb-3\"><?php echo $weblangs->trans(\"RGPD\"); ?></h1>\n        </div>\n    </div>\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n		<div class=\"col-md-12\" style=\"min-height:1200px;\">\n			<p>\n              We are committed to respecting your privacy and protecting any personal information you choose to share with us.  \n              Your data is handled responsibly, securely, and in accordance with applicable data protection laws.  \n              We believe in transparency, accountability, and safeguarding your rights at every step.\n            </p>\n		</div>\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-05-05 13:44:30',NULL,'2025-05-05 13:51:36',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(249,40,'sidebar','','sidebar','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$pageId = GETPOSTINT(\'blog\');\n$eventId = GETPOSTINT(\'id\');\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_DONATION_PAGE\')) {\n    $showDonationLink = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n\n$link_participation = \'\';\n\nif ($eventId) {\n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $eventId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\');\n        $link_participation = $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey);\n    }\n}\n\n?>\n<div class=\"col-md-4\">\n\n	\n	<div class=\"container-fluid causes sidebar-joinus\">\n        <div class=\"container\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"joinUs\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n                <?php if ($showDonationLink) { ?>\n                    <?php if ($eventId) { ?>\n                        <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-donate\"></i> <?php echo $weblangs->trans(\"donateNow\"); ?> </a>\n                    <?php } else { ?>\n                        <a href=\"<?php echo $socInfo[\'link_donation\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-donate\"></i> <?php echo $weblangs->trans(\"donateNow\"); ?> </a>\n                    <?php } ?>\n                    \n                <?php } ?>\n                <?php if ($link_participation && $showParticipateLink) { ?>\n                    <a href=\"<?php echo $link_participation; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-user-plus\"></i> <?php echo $weblangs->trans(\"Participate\"); ?> </a>\n                <?php } ?>\n            </div>\n        </div>\n    </div>\n	\n	<div class=\"container-fluid causes\">\n        <div class=\"container py-5\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"news\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n            <?php \n            $MAXNEWS = 2;\n            $allblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 0, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null,\'.$_SESSION[\'lang\'][\'shortcode\']));\n            $countofblogs = count($allblogs);\n            $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null,\'.$_SESSION[\'lang\'][\'shortcode\']));\n            foreach($arrayofblogs as $blog)\n            {\n            ?>\n                <div class=\"col-12-12\">\n                    <div class=\"causes-item\">\n                        <div class=\"causes-img\">\n                            <?php\n                                $urlforimage = getImageFromHtmlContent($blog->content);\n                                if (empty($urlforimage)) {\n                                    $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                }\n                            ?>\n                            <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                        </div>\n                        <div class=\"progress progress-news\">\n                          <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                          </div>\n                        </div>\n                        <div class=\"causes-content p-4\">\n                            <span class=\"text-body\">\n                                <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?>\n                                <span class=\"author-span\"><i class=\"fas fa-user me-2\"></i> <?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span>\n                            </span>\n                            <h4 class=\"py-3\"><?php echo $blog->title; ?></h4>\n                            <hr>\n                            <p class=\"mb-4 truncate3\"><?php echo $blog->description; ?></p>\n                            <a href=\"page.php?ref=<?php print $blog->pageurl; ?>&blog=<?php print $blog->id; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                        </div>\n                    </div>\n                </div>\n                <?php \n            }\n            ?>\n            </div>\n                \n        </div>\n    </div>\n    \n    \n    <div class=\"container-fluid causes\">\n        <div class=\"container\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"actions\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n    \n                <?php \n                $maxevents = 2;\n                $countofevents = 0;\n                $sqlCount = \"SELECT count(p.rowid) as countofevents \n                        FROM \".MAIN_DB_PREFIX.\"projet as p \n                        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                        ORDER BY p.datec DESC \";\n                $resqlCount = $db->query($sqlCount);\n                if ($resqlCount) {\n                    $objCount = $db->fetch_object($resqlCount);\n                    $countofevents = $objCount->countofevents ? $objCount->countofevents : 0;\n                }\n            \n                $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n                        FROM \".MAIN_DB_PREFIX.\"projet as p \n                        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                        ORDER BY p.datec DESC \n                        LIMIT \".$maxevents;\n                $resql = $db->query($sql);\n                if ($resql) {\n                    $countofblogs = $db->num_rows($resql);\n                    while ($obj = $db->fetch_object($resql)) {\n                        ?>\n                        <div class=\"col-xs-12\">\n                            <div class=\"causes-item\">\n                                <div class=\"causes-img\">\n                                    <?php\n                                        $urlforimage = getImageFromHtmlContent($obj->description ? $obj->description : \"\");\n                                        if (empty($urlforimage)) {\n                                            $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                        }\n                                    ?>\n                                    <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                                    <div class=\"causes-link pb-2 px-3\">\n                                        <?php\n                                            $progress = 100;\n                                            if ($obj->budget_amount > 0 && $showDonationLink) {\n                                                $sqlCollected = \"SELECT SUM(amount) as total_collected \n                                                                 FROM \".MAIN_DB_PREFIX.\"don \n                                                                 WHERE fk_projet = \".$obj->rowid;\n                                                $resqlCollected = $db->query($sqlCollected);\n                                                $collected = 0;\n                                                if ($resqlCollected) {\n                                                    $objCollected = $db->fetch_object($resqlCollected);\n                                                    $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n                                                }\n                                                $progress = round(($collected / $obj->budget_amount) * 100, 2);\n                                            }\n                                        ?>\n                                        \n                                        <?php if ($showDonationLink) { ?>\n                                            <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($obj->budget_amount, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                            <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($collected, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                        <?php } ?>  \n                                    </div>\n                                    <div class=\"causes-dination p-2\">\n                                        <?php if ($showDonationLink) { ?>\n                                            <?php if (getDolGlobalInt(\'WS_\' . strtoupper($website->ref) . \'_PAYMENT_IN_FRAME\')) { ?>\n                                                <a href=\"page.php?donation=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                            <?php } else { ?>\n                                                <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                            <?php } ?>\n                                        <?php } ?>\n                                        \n                                        <?php if ($showParticipateLink) { ?>\n                                            <?php $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\'); ?>\n                                            <a href=\"<?php echo $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"Participate\"); ?></a>\n                                        <?php } ?>\n\n                                    </div>\n                                </div>\n                                \n                                <div class=\"progress\">\n                                  <div class=\"progress-bar\" role=\"progressbar\" style=\"width: <?php echo $progress; ?>%;\" aria-valuenow=\"<?php echo $progress; ?>\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                                    <?php if ($showDonationLink) { ?>\n                                    <span><?php echo $progress; ?>%</span>\n                                    <?php } ?>\n                                  </div>\n                                </div>\n                                <div class=\"causes-content p-4\">\n                                    <span class=\"text-body\">\n                                        <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($obj->datec, \'daytext\', \'tzuser\', $weblangs); ?>\n                                    </span>\n                                    <h4 class=\"py-3\"><?php echo $obj->title; ?></h4>\n    \n                                    <a href=\"page.php?id=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                                </div>\n                            </div>\n                        </div>\n                        <?php\n                    }\n                }\n                ?>\n            </div>\n\n        </div>\n    </div>\n	\n</div>',0,'2025-04-16 11:08:11',NULL,'2025-05-05 15:03:50',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(250,40,'slider','','slider','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\n//setSessionLang();\n$socInfo = getSocInfo();\n?>\n\n<section class=\"slogan has-section-divider\">\n  \n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 460px;\">\n        <div class=\"col-lg-8 text-center\">\n            <h1 class=\"mb-3\"><?php print $socInfo[\'slogan\']; ?></h1>\n            <p class=\"lead\"><?php print $socInfo[\'description\']; ?></p>\n            <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_REGISTRATION_PAGE\')): ?>\n                <p><a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button\">Devenir Membre</a></p>\n            <?php endif; ?>\n        </div>\n    </div>\n  \n  \n  <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"var(--light-secondary-color)\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>',0,'2025-04-08 14:25:00',NULL,'2025-05-02 08:37:16',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(251,40,'_library_lib','','lib','','','<?php\n/**\n * Set session language based on:\n * - Cookie \'lang\' (if exists)\n * - Browser language (if not present among website languages, use website main language)\n * - Form field \'language\' (if present)\n *\n * The function also updates the product labels of the products in the session\n * to match the current language.\n *\n * @return bool\n */\nfunction setSessionLang() {\n   global $langs, $website, $weblangs, $db;\n    // Get available langs for the website\n    $website_langs = getAvailableLangs();\n    $available_langs = $website_langs[\'langs\'];\n    $langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n    // If no language is set or if a new language is selected (via form field)\n    if (!isset($_COOKIE[\'lang\']) || GETPOST(\'l\', \'alpha\')) {\n        // Get browser language\n        $browser_lang = $weblangs->getDefaultLang(1);\n\n        // Change used lang\n        $new_lang = GETPOST(\'l\', \'alpha\');\n        if ($new_lang && array_key_exists ($new_lang, $available_langs)) {\n            setcookie(\'lang\', $new_lang, time() + (86400 * 30), \'/\');\n            $session_lang = $new_lang;\n        }\n\n        // If no language is set in cookie and browser language is not present among available languages\n        // use website main language as default\n        if (!isset($_COOKIE[\'lang\'])) {\n            if (array_key_exists ($browser_lang, $available_langs)){\n                // The browser language is present among the available languages\n                setcookie(\'lang\', $browser_lang, time() + (86400 * 30), \'/\');\n                $session_lang = $browser_lang;\n            } else {\n                // The browser language is not present among the available languages\n                setcookie(\'lang\', $website->lang, time() + (86400 * 30), \'/\');\n                $session_lang = $website->lang;\n            }\n        }\n\n        // Set session lang\n        if (!empty($session_lang)) {\n            $_SESSION[\'lang\'][\'shortcode\'] = $session_lang;\n            $_SESSION[\'lang\'][\'code\'] = $langs_code_shortcode[$session_lang];\n        }\n\n    }\n\n    // If session language is not set, use cookie language\n    if (empty($_SESSION[\'lang\'][\'shortcode\']) || empty($_SESSION[\'lang\'][\'code\'])) {\n        $_SESSION[\'lang\'][\'shortcode\'] = $_COOKIE[\'lang\'];\n        $_SESSION[\'lang\'][\'code\'] = $langs_code_shortcode[$_COOKIE[\'lang\']];\n    }\n\n    // Set Dolibarr default language\n    $langs->setDefaultLang($_SESSION[\'lang\'][\'code\']);\n    $weblangs->setDefaultLang($_SESSION[\'lang\'][\'code\']);\n    $langs->loadLangs(array(\"main\", \"website\", \"languages\", \"members\", \"admin\", \"donations\", \"companies\"));\n    $weblangs->loadLangs(array(\"main\", \"website\", \"languages\", \"members\", \"admin\", \"donations\", \"companies\"));\n\n    return true;\n}\n\n/**\n * The function loops through the languages of the website configuration and\n * checks if they exist in the list of supported languages. If they do, they\n * are added to the $available_langs array, along with their corresponding\n * shortcode in the $langs_code_shortcode array.\n *\n * The function returns an array with two keys: \'langs\' containing the list\n * of available languages and \'langs_code_shortcode\' containing the list\n * of corresponding shortcodes.\n *\n * @return array\n */\nfunction getAvailableLangs() {\n    global $website, $weblangs;\n\n    $available_langs = array();\n    $langs_code_shortcode = array();\n    $ws_langs_list = explode(\',\', $website->lang.\',\'.$website->otherlang);\n    $dol_available_langs = $weblangs->get_available_languages(DOL_DOCUMENT_ROOT, 1, 2, 1);\n    foreach ($ws_langs_list as $lang) {\n        foreach ($dol_available_langs as $key => $value) {\n            if (strpos($key, $lang) === 0) {\n                $available_langs[$lang] = $value;\n                $langs_code_shortcode[$lang] = $key;\n                break;\n            }\n        }\n    }\n    \n    return array(\'langs\' => $available_langs, \'langs_code_shortcode\' => $langs_code_shortcode);\n}\n\n/**\n * Get societe information from Dolibarr configuration.\n *\n * This function retrieves the societe information from the global $conf object\n * and returns it as an associative array.\n *\n * @return array\n */\nfunction getSocInfo() {\n    global $conf, $mysoc, $weblangs, $website;\n    $weblangs->load(\"admin\");\n\n    $societe_info = array(\n        \'name\' => !empty($mysoc->name) ? html_entity_decode($mysoc->name) : \'\',\n        \'address\' => !empty($mysoc->getFullAddress(1)) ? html_entity_decode($mysoc->getFullAddress(1)) : \'\',\n        \'zip\' => !empty($mysoc->zip) ? html_entity_decode($mysoc->zip) : \'\',\n        \'town\' => !empty($mysoc->town) ? html_entity_decode($mysoc->town) : \'\',\n        \'country\' => !empty($mysoc->country) ? html_entity_decode($mysoc->country) : \'\',\n        \'phone\' => !empty($mysoc->phone) ? html_entity_decode($mysoc->phone) : \'\',\n        \'fax\' => !empty($mysoc->fax) ? html_entity_decode($mysoc->fax) : \'\',\n        \'email\' => !empty($mysoc->email) ? html_entity_decode($mysoc->email) : \'\',\n        \'slogan\' => getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\') \n                ? html_entity_decode(getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\')) \n                : (!empty($mysoc->name) \n                    ? html_entity_decode($mysoc->name) \n                    : html_entity_decode($weblangs->trans(\"noCompanyInfoSlogan\"))),\n        \'description\' => getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\') \n                ? html_entity_decode(getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\')) \n                : (!empty($mysoc->socialobject) \n                    ? html_entity_decode($mysoc->socialobject) \n                    : html_entity_decode($weblangs->trans(\"noCompanyInfoDescription\", $weblangs->trans(\"CompanyObject\"))))\n    );\n\n    // Add social networks if they are set\n    foreach($mysoc->socialnetworks as $key => $value) {\n        if (!empty($value)) {\n            $societe_info[$key] = preg_match(\'/^http/\', $value) ? $value : \'https://www.\'.$key.\'.com/\'.$value;\n        }\n    }\n    \n    // Add link to subscription\n    if (isModEnabled(\'multicompany\')) {\n      $entity_qr = \'?entity=\' . ((int) $conf->entity);\n    } else {\n      $entity_qr = \'\';\n    }\n    $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n    $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n    $societe_info[\'subscription_link\'] = $urlwithroot . \'/public/members/new.php\'.$entity_qr;\n    \n    // Add participation link\n    $link_participation = $urlwithroot.\'/public/eventorganization/attendee_new.php?type=global\';\n	$societe_info[\'link_participation\'] = $link_participation;\n	\n	// Add donation link\n    $link_donation = $urlwithroot.\'/public/donations/new.php\';\n	$societe_info[\'link_donation\'] = $link_donation;\n\n    return $societe_info;\n}',0,'2025-04-11 10:57:25',NULL,'2025-05-02 12:11:20',NULL,NULL,'library','',NULL,'','',NULL,'','',0,NULL,NULL),
(252,41,'config','','config','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$message = \'\';\nif (!isModEnabled(\'eventorganization\') || !isModEnabled(\'member\') || !isModEnabled(\'don\') || !isModEnabled(\'webportal\')) {\n    $message = $langs->trans(\"TEMPLATE_MODULES_NOTICE\") .\"<br><br>\";\n}\n\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')->setAsYesNo();\n$item->nameText = $langs->trans(\"USE_TEXT_LOGO\");\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\');\n$item->nameText = $langs->trans(\"CUSTOM_SLOGAN\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\');\n$item->nameText = $langs->trans(\"CUSTOM_DESCRIPTION\");\n$item->cssClass = \'minwidth500\';\n\n// Get available langs for the website\n$TField = array();\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\nforeach ($available_langs as $key => $value) {\n    $TField[$key] = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]);\n}\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\');\n$item->nameText = $langs->trans(\"SUPPORTED_LANGS\");\n$item->setAsMultiSelect($TField);\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'MAIN_COLOR\');\n$item->nameText = $langs->trans(\"MAIN_COLOR\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SECONDARY_COLOR\');\n$item->nameText = $langs->trans(\"SECONDARY_COLOR\");\n$item->cssClass = \'minwidth500\';\n\nif (isModEnabled(\'member\')) {\n    $formSetup->newItem(\'membersArea\')->setAsTitle();\n    \n    $item = $formSetup->newItem(\'MEMBER_ENABLE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_REGISTRATION_PAGE\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_LIST_PAGE\");\n    \n    if (isModEnabled(\'webportal\')) {\n        $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')->setAsYesNo();\n        $item->nameText = $langs->trans(\"ENABLE_MEMBER_AREA_PAGE\");\n    }\n}\n\nif (isModEnabled(\'eventorganization\')) {\n    $formSetup->newItem(\'eventsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"DISABLE_EVENTS_SECTION\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"SHOW_EVENT_PARTICIPATE_LINK\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"SHOW_EVENT_GOAL_RAISED_AMOUNTS\");\n}\n\nif (isModEnabled(\'don\')) {\n    $formSetup->newItem(\'DonationsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'DONATION_ENABLE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_DONATION_PAGE\");\n    \n    $item = $formSetup->newItem(\'DONATION_COUNTERS_ARE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"DONATION_COUNTERS_ARE_PUBLIC\");\n}\n\n?>\n',0,'2025-04-30 09:05:35',NULL,'2025-05-07 10:37:57',NULL,NULL,'setup','',NULL,'','',NULL,'','',0,NULL,NULL),
(253,41,'contact','','contact','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (GETPOST(\'action\') == \'sendmail\') {\n    include_once DOL_DOCUMENT_ROOT.\'/core/class/CMailFile.class.php\';\n    \n    // Set message language\n	$emaillang = new Translate(\'\', $conf);\n	if ($mysoc->default_lang) {\n	    $emaillang->setDefaultLang($mysoc->default_lang);\n	    $emaillang->loadLangs(array(\"main\", \"website\"));\n	}\n	\n\n    $from = GETPOST(\'email\', \'alpha\');\n    $to = $mysoc->email;\n    $subject = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref));\n\n    $firstname = GETPOST(\'firstname\', \'alpha\');\n    $phone = GETPOST(\'phone\', \'alpha\');\n    $usersubject = GETPOST(\'subject\', \'alpha\');\n    $messageContent = GETPOST(\'message\', \'alpha\');\n\n    $message = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref)) . \"\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormName\")) . \": $firstname\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormEmail\")) . \": $from\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormPhone\")) . \": \" . (!empty($phone) ? $phone : \"N/A\") . \"\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormSubjectEntered\")) . \": $usersubject\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormMessageLabel\")) . \":\\n$messageContent\\n\";\n\n    $cmail = new CMailFile($subject, $to, $from, $message);\n\n    if ($cmail->sendfile()) {\n        ?>\n        <script>\n            alert(\"<?php echo html_entity_decode ($emaillang->trans(\"contactFormSuccessAlert\")); ?>\");\n        </script>\n        <?php\n    } else {\n        echo html_entity_decode ($langs->trans(\"ErrorFailedToSendMail\", $from, $to)) . \'. \' . $cmail->error;\n    }\n}\n\n\n\n?>\n<div class=\"container-fluid\">\n    <div class=\"container py-5\">\n        \n        <div class=\"container-fluid contact py-5\">\n            <div class=\"row g-4\">\n                <div class=\"col-xl-5\">\n                    \n                    <div class=\"section-title\" id=\"section-contact\" style=\"scroll-margin-top: 130px;\">\n                      <div class=\"line left-line\"></div>\n                      <h1><?php echo $weblangs->trans(\"contactTitle\"); ?></h1>\n                      <div class=\"line right-line\"></div>\n                    </div>\n        \n                    <p class=\"mb-4\"><?php echo $weblangs->trans(\"contactMessage\"); ?></p>\n                    <form method=\"post\" action=\"#\">\n                        <div class=\"row gx-4 gy-3\">\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"firstname\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelFirstName\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"email\" name=\"email\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelEmail\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"phone\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelPhone\"); ?>\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"subject\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelSubject\"); ?>\" required>\n                            </div>\n                            <div class=\"col-12\">\n                                <textarea name=\"message\" class=\"form-control bg-white border-0 py-3 px-4\" rows=\"7\" cols=\"10\" placeholder=\"<?php echo $weblangs->trans(\"labelMessage\"); ?>\" required></textarea>\n                            </div>\n                            <div class=\"col-12\">\n                                <button class=\"btn flat-button text-white py-2 px-3 float-end\" type=\"submit\" name=\"action\" value=\"sendmail\"><?php echo $weblangs->trans(\"submit\"); ?></button>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n                <div class=\"col-xl-7\">\n                    <div>\n                        <div class=\"row g-4\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-map-marker-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelAddress\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'address\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-envelope fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelEmail\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'email\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fa fa-phone-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelPhone\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'phone\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <iframe class=\"w-100\" style=\"height: 412px; margin-bottom: -6px;\" src=\"https://maps.google.com/maps?q=<?php echo urlencode($mysoc->getFullAddress()); ?>&t=&z=13&ie=UTF8&iwloc=&output=embed\" \n                                    loading=\"lazy\" referrerpolicy=\"no-referrer-when-downgrade\"></iframe>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',1,'2025-04-08 14:35:43',NULL,'2025-05-16 09:47:35',NULL,12,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(254,41,'donation-list','','donation-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (!isModEnabled(\'don\') || !getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') || !getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')) {\n    redirectToContainer(\'index\');\n}\n\n\n$data = array();\n\n$sql = \"SELECT d.rowid, d.datedon as datec, s.nom as societe, d.firstname, d.lastname, p.title, d.amount\";\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"don as d LEFT JOIN \".MAIN_DB_PREFIX.\"projet AS p\";\n$sql .= \" ON p.rowid = d.fk_projet\";\n$sql .= \" LEFT JOIN \" . MAIN_DB_PREFIX . \"societe AS s ON s.rowid = d.fk_soc\";\n$sql .= \" WHERE d.entity IN (\". getEntity(\'donation\') . \")\";\n$sql .= \" AND d.fk_statut IN (2)\";\n$sql .= \" AND d.paid = 1\";\n$sql .= \" AND d.public = 1\";\n$sql .= \" AND p.public = 1\";\n$sql .= $db->order(\"datedon\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n			\'project\' => $obj->title,\n			\'amount\' => $obj->amount,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $weblangs->trans(\"listOfPublicDonations\")); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"listOfPublicDonations\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Date\"); ?></th>\n                \n                <th><?php echo $weblangs->trans(\"project\"); ?></th>\n                <th><?php echo $weblangs->trans(\"amount\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo !empty($row[\'firstname\']) ? htmlspecialchars($row[\'firstname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'lastname\']) ? htmlspecialchars($row[\'lastname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'societe\']) ? htmlspecialchars($row[\'societe\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'project\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo price(price2num($row[\'amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 17:00:33',NULL,'2025-05-07 08:33:20',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(255,41,'events','','events','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\')) {\n    $showDonationLink = 1;\n}\n\n$showEventGoalRaised = 0;\nif (isModEnabled(\'don\') && isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')) {\n    $showEventGoalRaised = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n?>\n<div class=\"container-fluid causes\">\n    <div class=\"container\">\n        <div class=\"section-title\" id=\"section-events\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"actionsEvents\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n\n            <?php \n            $maxevents = GETPOSTINT(\'maxevents\') ? GETPOSTINT(\'maxevents\') : 3;\n            $countofevents = 0;\n            $sqlCount = \"SELECT count(p.rowid) as countofevents \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \";\n            $resqlCount = $db->query($sqlCount);\n            if ($resqlCount) {\n                $objCount = $db->fetch_object($resqlCount);\n                $countofevents = $objCount->countofevents ? $objCount->countofevents : 0;\n            }\n        \n            $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \n                    LIMIT \".$maxevents;\n            $resql = $db->query($sql);\n            if ($resql) {\n                $countofblogs = $db->num_rows($resql);\n                $i=1;\n                while ($obj = $db->fetch_object($resql)) {\n                    ?>\n                    <div class=\"col-lg-6 col-xl-4 event-item\" id=\"event-<?php echo $i; ?>\">\n                        <div class=\"causes-item\">\n                            <div class=\"causes-img\">\n                                <?php\n                                    $urlforimage = getImageFromHtmlContent($obj->description ? $obj->description : \"\");\n                                    if (empty($urlforimage)) {\n                                        $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                    }\n                                ?>\n                                <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                                <div class=\"causes-link pb-2 px-3\">\n                                    <?php\n                                        $progress = 100;\n                                        if ($obj->budget_amount > 0 && $showEventGoalRaised) {\n                                            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                                                             FROM \".MAIN_DB_PREFIX.\"don \n                                                             WHERE fk_projet = \".$obj->rowid;\n                                            $resqlCollected = $db->query($sqlCollected);\n                                            $collected = 0;\n                                            if ($resqlCollected) {\n                                                $objCollected = $db->fetch_object($resqlCollected);\n                                                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n                                            }\n                                            $progress = round(($collected / $obj->budget_amount) * 100, 2);\n                                        }\n                                    ?>\n                                    <?php if ($showEventGoalRaised) { ?>\n                                        <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($obj->budget_amount, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                        <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($collected, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                    <?php } ?>    \n                                </div>\n                                <div class=\"causes-dination p-2\">\n                                    <?php if ($showDonationLink) { ?>\n                                        <?php if (getDolGlobalInt(\'WS_\' . strtoupper($website->ref) . \'_PAYMENT_IN_FRAME\')) { ?>\n                                            <a href=\"page.php?donation=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } else { ?>\n                                            <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } ?>\n                                    <?php } ?>\n                                    \n                                    <?php if ($showParticipateLink) { ?>\n                                        <?php $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\'); ?>\n                                        <a href=\"<?php echo $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"Participate\"); ?></a>\n                                    <?php } ?>\n                                </div>\n                            </div>\n                            \n                            \n                            <div class=\"progress\">\n                              <div class=\"progress-bar\" role=\"progressbar\" style=\"width: <?php echo $progress; ?>%;\" aria-valuenow=\"<?php echo $progress; ?>\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                                <?php if ($showEventGoalRaised) { ?>\n                                <span><?php echo $progress; ?>%</span>\n                                <?php } ?>\n                              </div>\n                            </div>\n\n                            \n                            <div class=\"causes-content p-4\">\n                                <span class=\"text-body\">\n                                    <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($obj->datec, \'daytext\', \'tzuser\', $weblangs); ?>\n                                </span>\n                                <h4 class=\"py-3\"><?php echo $obj->title; ?></h4>\n\n                                <a href=\"page.php?id=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                            </div>\n                        </div>\n                    </div>\n                    <?php\n                    $i++;\n                }\n            }\n            ?>\n        </div>\n        \n        <?php if ($maxevents <= $countofevents) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreEventsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?> (<?php echo $maxevents; ?>/<?php echo $countofevents; ?>)</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreEventsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxEventsParam = <?php echo $maxevents; ?>;\n            const newMaxEvents = parseInt(maxEventsParam) + 3;\n            currentUrl.searchParams.set(\'maxevents\', newMaxEvents);\n            currentUrl.hash = \'#event-\' + (parseInt(maxEventsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n    </div>\n</div>',1,'2025-04-14 14:16:40',NULL,'2025-05-16 09:47:37',NULL,12,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(256,41,'footer','','footer','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid\" style=\"margin:0; padding:0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"<?php print getDolGlobalString(\'WS_\' . strtoupper($website->ref) . \'_MAIN_COLOR\') ?: \'#5d5b6a\'; ?>\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</div>\n<div class=\"container-fluid footer text-body\">\n    \n    <div class=\"container py-5\">\n        <div class=\"row g-5\">\n            \n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"presentation\"); ?></h4>\n                    <a href=\"/index#section-overview\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"missionVision\"); ?></a>\n                    <a href=\"rgpd.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"rgpd\"); ?></a>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"newsEvents\"); ?></h4>\n                    <a href=\"index#section-news\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"news\"); ?></a>\n                    <?php if (isModEnabled(\'eventorganization\') && !getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')): ?>\n                        <a href=\"index#section-events\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"actionsEvents\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"volunteer\"); ?></h4>\n                        <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n                          <?php\n                          if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                            $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n                          } else {\n                            if (isModEnabled(\'multicompany\')) {\n                              $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                            } else {\n                              $entity_qr = \'\';\n                            }\n            \n                            $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                            $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                            $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n                          }\n                          ?>\n                          <a href=\"<?php echo $url; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n                        <?php endif; ?>\n                        \n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <a href=\"members-list.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"directory\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                        <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"becomeMember\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\')): ?>\n                        <a href=\"<?php print $socInfo[\'link_donation\']; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"makeDonation\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"socials\"); ?></h4>\n                    <div class=\"social\">\n                        <?php\n                            $socialIcons = [\n                              \'facebook\' => \'fa-facebook-f\',\n                              \'twitter\' => \'fa-x-twitter\',\n                              \'linkedin\' => \'fa-linkedin-in\',\n                              \'instagram\' => \'fa-instagram\',\n                              \'youtube\' => \'fa-youtube\',\n                              \'skype\' => \'fa-skype\',\n                              \'whatsapp\' => \'fa-whatsapp\',\n                              \'snapchat\' => \'fa-snapchat-ghost\',\n                            ];\n                \n                            foreach ($socialIcons as $key => $icon) {\n                              if (!empty($socInfo[$key])) {\n                                echo \'<a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fa-brands \' . $icon . \'\"></i></a>\';\n                              }\n                            }\n                        ?>\n                    </div>\n                </div>\n            </div>\n            <!--<div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">RGPD</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Politique de Confidentialité</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Gestion des Données</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Droits des Utilisateurs</a>\n\n                </div>\n            </div>-->\n        </div>\n    </div>\n</div>',1,'2025-04-08 14:37:00',NULL,'2025-05-16 09:47:39',NULL,12,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(257,41,'highlights','','highlights','','','<div class=\"col-lg-3 stats section\" id=\"stats\">\n                \n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php echo $weblangs->trans(\"highlights\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n\n    <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\" data-aos-delay=\"100\">\n\n        <div class=\"row gy-4\">\n            \n            <!--<div class=\"col-lg-12 counter-box\">\n                <i class=\"fas fa-users fa-4x text-white\"></i>\n                <div class=\"stats-item\">\n                  <span data-purecounter-start=\"0\" data-purecounter-end=\"232\" data-purecounter-duration=\"0\" class=\"purecounter\">000</span>\n                  <p><?php echo $weblangs->trans(\"volunteer\"); ?></p>\n                </div>\n            </div><!-- End Stats Item -->\n            \n            <?php if (isModEnabled(\'member\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-user-friends fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                      $sql = \"SELECT COUNT(rowid) as total_members FROM llx_adherent WHERE statut = 1 AND public = 1\";\n                      $resql = $db->query($sql);\n                      $total_members = 0;\n                      if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_members = $obj->total_members;\n                        }\n                      }\n                      ?>\n                      <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_members; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_members; ?></span>\n                      <p><?php echo $weblangs->trans(\"member\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'eventorganization\')): ?>\n            <div class=\"col-lg-12 counter-box\">\n              <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n              <div class=\"stats-item\">\n              <?php\n                $sql = \"SELECT COUNT(rowid) as total_events FROM \".MAIN_DB_PREFIX.\"projet as p WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1)\";\n              $resql = $db->query($sql);\n              $total_events = 0;\n              if ($resql) {\n                $obj = $db->fetch_object($resql);\n                if ($obj) {\n                $total_events = $obj->total_events;\n                }\n              }\n              ?>\n              <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_events; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_events; ?></span>\n              <p><?php echo $weblangs->trans(\"actions\"); ?></p>\n              </div>\n            </div><!-- End Stats Item -->\n            <?php endif; ?>\n\n            <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') && getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT count(amount) as count_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $count_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $count_funds = $obj->count_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $count_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print $count_funds; ?></span>\n                        <p><?php echo $weblangs->trans(\"Donation\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') && getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-file-invoice-dollar fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT SUM(amount) as total_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $total_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_funds = $obj->total_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print intval($total_funds); ?> €</span>\n                        <p><?php echo $weblangs->trans(\"fundsCollected\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n\n        </div>\n    \n      </div>\n</div>',1,'2025-04-14 10:49:38',NULL,'2025-05-16 09:47:41',NULL,12,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(258,41,'index','','Index','','','<?php includeContainer(\'navbar\'); ?>\n\n<?php includeContainer(\'slider\'); ?>\n\n<?php \nif ($_SESSION[\'lang\'][\'shortcode\'] != \"en\" && array_key_exists($_SESSION[\'lang\'][\'shortcode\'], getAvailableLangs()[\'langs\'])) {\n    includeContainer(\'overview-\'.$_SESSION[\'lang\'][\'shortcode\']);\n} else {\n    includeContainer(\'overview\');\n}\n?>\n\n<?php includeContainer(\'news\'); ?>\n\n<?php\nif (!getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\') && isModEnabled(\'eventorganization\')) {\n    includeContainer(\'events\'); \n}\n?>\n\n<?php includeContainer(\'contact\'); ?>\n\n<?php includeContainer(\'footer\'); ?>',1,'2025-03-21 15:58:56',NULL,'2025-05-16 09:47:31',NULL,12,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(259,41,'members-list','','members-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (!getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')) {\n    redirectToContainer(\'index\');\n}\n\n$data = array();\n$sql = \"SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo, datec\";\n\n$sqlfields = $sql;\n\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"adherent\";\n$sql .= \" WHERE entity = 1\";\n$sql .= \" AND statut = 1\";\n$sql .= \" AND public = 1\";\n$sql .= $db->order(\"datec\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $weblangs->trans(\"ListOfValidatedPublicMembers\")); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"ListOfValidatedPublicMembers\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"DateSubscription\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'firstname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'lastname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'societe\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 15:02:20',NULL,'2025-05-07 08:33:57',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(260,41,'navbar','','navbar','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n// Get available langs for the website\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\nif (getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\')) {\n    $used_langs = explode(\',\', getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\'));\n    foreach ($available_langs as $key => $value) {\n        if (!in_array($key, $used_langs)) {\n            unset($available_langs[$key]);\n        }\n    }\n}\n\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n//$weblangs->load(\"website\", \"languages\");\n//$langs->load(\"website\", \"languages\");\n?>\n<div class=\"site-mobile-menu site-navbar-target\">\n  <div class=\"site-mobile-menu-header\">\n    <div class=\"site-mobile-menu-close mt-3\">\n      <span class=\"icon-close2 js-menu-toggle\"></span>\n    </div>\n  </div>\n  <div class=\"site-mobile-menu-body\"></div>\n</div>\n\n<header class=\"site-navbar js-sticky-header js-sticky-header-blog site-navbar-target\" role=\"banner\">\n\n  <div class=\"container\">\n    <div class=\"row align-items-center\">\n      \n      <div class=\"col-6 col-xl-2\">\n        <?php\n            if(getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')) {\n                $html_logo = $mysoc->name . \'<span class=\"text-secondary-color\">.</span>\';\n            } else {\n                $path = getImageFileNameForSize($mysoc->logo_squarred ? $mysoc->logo_squarred : $mysoc->logo, \'_small\');\n                $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" height=\"42\" src=\"\' . DOL_URL_ROOT . \'/viewimage.php?modulepart=mycompany&file=\'.urlencode(\'logos/\'.$path).\'\">\'; \n            }\n          \n            \n        ?>\n        <h1 class=\"mb-0 site-logo\"><a href=\"/index\"><?php print $html_logo; ?> </a></h1>\n      </div>\n\n      <div class=\"col-12 col-md-10 d-none d-xl-block\">\n        <nav class=\"site-navigation position-relative text-right\" role=\"navigation\">\n\n        <ul class=\"site-menu main-menu js-clone-nav mr-auto d-none d-lg-block\" style=\"float: right;\">\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"presentation\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"/index#section-overview\" class=\"nav-link\"><?php echo $weblangs->trans(\"missionVision\"); ?></a></li>\n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <li><a href=\"members-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"directory\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"newsEvents\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"index#section-news\" class=\"nav-link\"><?php echo $weblangs->trans(\"news\"); ?></a></li>\n                    <?php if (isModEnabled(\'eventorganization\') && !getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')): ?>\n                        <li><a href=\"index#section-events\" class=\"nav-link\"><?php echo $weblangs->trans(\"actionsEvents\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"commitmentSupport\"); ?></a>\n                <ul class=\"dropdown\">\n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"becomeMember\"); ?></a></li>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'link_donation\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"makeDonation\"); ?></a></li>\n                        <?php if (getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                            <li><a href=\"donation-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"listOfPublicDonations\"); ?></a></li>\n                        <?php endif; ?>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li>\n                <a href=\"index#section-contact\" class=\"nav-link\"><?php echo $weblangs->trans(\"contact\"); ?></a>\n            </li>\n            \n            <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n              <?php\n              if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n              } else {\n                if (isModEnabled(\'multicompany\')) {\n                  $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                } else {\n                  $entity_qr = \'\';\n                }\n\n                $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n              }\n              ?>\n              <li>\n                <a href=\"<?php echo $url; ?>\" target=\"new\" class=\"nav-link\"><i class=\"fa-solid fa-user\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n              </li>\n            <?php endif; ?>\n            \n            <?php\n                $socialIcons = [\n                  \'facebook\' => \'fa-facebook-f\',\n                  \'twitter\' => \'fa-x-twitter\',\n                  \'linkedin\' => \'fa-linkedin-in\',\n                  \'instagram\' => \'fa-instagram\',\n                  \'youtube\' => \'fa-youtube\',\n                  \'skype\' => \'fa-skype\',\n                  \'whatsapp\' => \'fa-whatsapp\',\n                  \'snapchat\' => \'fa-snapchat-ghost\',\n                ];\n    \n                foreach ($socialIcons as $key => $icon) {\n                  if (!empty($socInfo[$key])) {\n                    echo \'<li class=\"social\"><a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"nav-link\"><i class=\"fa-brands \' . $icon . \'\"></i></a></li>\';\n                  }\n                }\n            ?>\n            \n            <li class=\"has-children\">\n                <a href=\"#language-section\" class=\"nav-link\"><?php print trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$_SESSION[\'lang\'][\'shortcode\']]))[0]); ?></a>\n                <!--<a href=\"#language-section\" class=\"nav-link\"><?php print $_SESSION[\'lang\'][\'shortcode\']; ?></a>-->\n                <ul class=\"dropdown lang-menu\">\n                    <?php if (count($available_langs) > 1): ?>\n                        <?php foreach ($available_langs as $key => $value) : ?>\n                            <?php $value = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]); ?>\n                            <?php if ($key != $_SESSION[\'lang\'][\'shortcode\']): ?>\n                        		<li>\n                                  <form id=\"languageForm-<?php print $key; ?>\" method=\"post\" action=\"#\">\n                                    <input type=\"hidden\" name=\"l\" value=\"<?php print $key; ?>\">\n                                    <a href=\"#\" class=\"nav-link\" title=\"<?php print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"\n                                           const form = document.getElementById(\'languageForm-<?php print $key; ?>\');\n                                           const parser = document.createElement(\'a\');\n                                           parser.href = form.action || window.location.href;\n                                           const params = new URLSearchParams(parser.search);\n                                           params.delete(\'l\');\n                                           parser.search = params.toString();\n                                           form.action = parser.href;\n                                           form.submit();\n                                           return false;\n                                       \">    \n                                      <?php print $value ; ?>\n                                    </a>\n                                  </form>\n                                </li>\n                        	<?php endif ?>\n                        <?php endforeach ?>\n                    <?php endif ?>\n                </ul>\n            </li>\n            \n        </ul>\n        </nav>\n      </div>\n\n\n      <div class=\"col-6 d-inline-block d-xl-none ml-md-0 py-3\" style=\"position: relative; top: 3px;\">\n        <a href=\"#\" class=\"site-menu-toggle js-menu-toggle float-right\">\n            <i class=\"fas fa-bars\"></i>\n        </a>\n      </div>\n\n    </div>\n  </div>\n  \n</header>',0,'2025-04-08 14:20:56',NULL,'2025-05-15 13:06:32',NULL,NULL,'menu','',NULL,'','',NULL,'','',0,NULL,NULL),
(261,41,'news','','news','','','<div class=\"container-fluid causes\">\n    <div class=\"container py-5\">\n        <div class=\"section-title\" id=\"section-news\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"news\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n        <?php \n        $MAXNEWS = GETPOSTINT(\'maxnews\') ? GETPOSTINT(\'maxnews\') : 3;\n        $allblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 0, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n        $countofblogs = count($allblogs);\n        $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n        $i=1;\n        foreach($arrayofblogs as $blog)\n        {\n        ?>\n            <div class=\"col-lg-6 col-xl-4 blog-item\" id=\"blog-<?php echo $i; ?>\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <?php\n                            $urlforimage = getImageFromHtmlContent($blog->content);\n                            if (empty($urlforimage)) {\n                                $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                            }\n                        ?>\n                        <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                    </div>\n                    <div class=\"progress progress-news\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\">\n                            <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?>\n                            <span class=\"author-span\"><i class=\"fas fa-user me-2\"></i> <?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span>\n                        </span>\n                        <h4 class=\"py-3\"><?php echo $blog->title; ?></h4>\n                        <hr>\n                        <p class=\"mb-4 truncate3\"><?php echo $blog->description; ?></p>\n                        <a href=\"page.php?ref=<?php print $blog->pageurl; ?>&blog=<?php print $blog->id; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                    </div>\n                </div>\n            </div>\n            <?php \n            $i++;\n        }\n        ?>\n        </div>\n        \n        <?php if ($MAXNEWS <= $countofblogs) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreNewsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?>...</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreNewsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxNewsParam = <?php echo $MAXNEWS; ?>;\n            const newMaxNews = parseInt(maxNewsParam) + 3;\n            currentUrl.searchParams.set(\'maxnews\', newMaxNews);\n            currentUrl.hash = \'#blog-\' + (parseInt(maxNewsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n            \n            \n    </div>\n</div>',1,'2025-04-14 14:16:15',NULL,'2025-05-16 09:47:46',NULL,12,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(262,41,'our-company-is-now-on-dolibarr-erp-crm','','Our company is now on Dolibarr ERP CRM','Like several thousands of companies, our company (DMNA) has moved all its information system to Dolibarr ERP CRM. More than 20 applications have been replaced by only one.','','<article>\n    <div id=\"article\" contenteditable=\"true\">\n        Like several thousands of companies, our company (<?php echo $mysoc->name ?>) has moved all its information system to <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM</a>. More than 20 applications have been replaced by only one, easier to use and fully integrated.\n        This is an important step in improving all of our services.\n        \n        <br><br><br>\n        \n        <figure>\n        <img src=\"/viewimage.php?modulepart=medias&file=image/exemple/background_dolibarr.webp\">\n        <br><br>\n        <figcaption style=\"opacity: 0.5; text-align: center;\">Screenshot of our new Open Source solution</figcaption>\n        </figure>\n    </div>\n</article>',1,'2025-04-14 15:39:29',NULL,'2025-05-07 08:24:39',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(263,41,'our-new-web-site-has-been-launched','','Our new web site has been launched','Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers','','<article>\n    <div id=\"article\" contenteditable=\"true\">\n            Our new website, based on Dolibarr CMS, has been launched. <br>\n            Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers...\n            <br><br>\n            <figure>\n            <img src=\"/viewimage.php?modulepart=medias&file=image/test4/5.jpg\">\n            <br><br>\n            <figcaption style=\"opacity: 0.5; text-align: center;\">Theme of our new web site</figcaption>\n            </figure>\n    </div>\n</article>',1,'2025-04-08 14:18:29',NULL,'2025-05-07 08:25:04',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(264,41,'overview','','overview','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Our association is committed to making a positive impact by supporting initiatives that contribute to collective well-being and a sustainable future. We emphasize collaboration and shared values to move forward together toward common goals.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Foster cooperation and solidarity among members.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourage responsible and sustainable practices.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Support projects that have a positive impact on society.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promote inclusion and equal opportunities.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Raise awareness about social, environmental, or cultural issues.</p>\n              \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:30:11',NULL,'2025-05-06 14:35:02',NULL,NULL,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(265,41,'overview-de','','overview-de','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Unser Verein setzt sich dafür ein, einen positiven Beitrag zu leisten, indem er Initiativen unterstützt, die zum gemeinsamen Wohl und zu einer nachhaltigen Zukunft beitragen. Wir legen Wert auf Zusammenarbeit und gemeinsame Werte, um gemeinsam auf gemeinsame Ziele hinzuarbeiten.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Zusammenarbeit und Solidarität unter den Mitgliedern.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Ermutigung zu verantwortungsbewusstem und nachhaltigem Handeln.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Unterstützung von Projekten mit positivem Einfluss auf die Gesellschaft.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Inklusion und Chancengleichheit.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilisierung für soziale, ökologische und kulturelle Themen.</p>\n            \n              <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\">Tritt uns bei</a>\n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:27:14',NULL,'2025-05-06 14:35:29',NULL,NULL,'page','de',264,'','',NULL,'','',0,NULL,NULL),
(266,41,'overview-es','','overview-es','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Misión y Visión</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Nuestra asociación está comprometida con generar un impacto positivo apoyando iniciativas que contribuyan al bienestar colectivo y a un futuro sostenible. Damos prioridad a la colaboración y a los valores compartidos para avanzar juntos hacia objetivos comunes.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Fomentar la cooperación y la solidaridad entre los miembros.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover prácticas responsables y sostenibles.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Apoyar proyectos que generen un impacto positivo en la sociedad.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover la inclusión y la igualdad de oportunidades.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Concienciar sobre cuestiones sociales, medioambientales y culturales.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:30:19',NULL,'2025-05-06 14:36:01',NULL,NULL,'page','es',264,'','',NULL,'','',0,NULL,NULL),
(267,41,'overview-fr','','overview-fr','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Notre association s\'engage à avoir un impact positif en soutenant des initiatives qui contribuent au bien-être collectif et à un avenir durable. Nous mettons l\'accent sur la collaboration et les valeurs partagées pour avancer ensemble vers des objectifs communs.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Favoriser la coopération et la solidarité entre les membres.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourager des pratiques responsables et durables.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Soutenir des projets ayant un impact positif sur la société.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promouvoir l\'inclusion et l\'égalité des chances.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibiliser aux enjeux sociaux, environnementaux ou culturels.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:06:31',NULL,'2025-05-06 14:36:27',NULL,NULL,'page','fr',264,'','',NULL,'','',0,NULL,NULL),
(268,41,'overview-it','','overview-it','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Missione e Visione</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                La nostra associazione si impegna a generare un impatto positivo sostenendo iniziative che contribuiscano al benessere collettivo e a un futuro sostenibile. Diamo importanza alla collaborazione e ai valori condivisi per avanzare insieme verso obiettivi comuni.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere la cooperazione e la solidarietà tra i membri.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Incentivare pratiche responsabili e sostenibili.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Sostenere progetti con un impatto positivo sulla società.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere l\'inclusione e le pari opportunità.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilizzare su temi sociali, ambientali e culturali.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:31:59',NULL,'2025-05-06 14:36:50',NULL,NULL,'page','it',264,'','',NULL,'','',0,NULL,NULL),
(269,41,'page','','page','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$pageId = GETPOSTINT(\'blog\');\n$eventId = GETPOSTINT(\'id\');\n$donationForId = GETPOSTINT(\'donation\');\n\nif ((!$pageId && !$eventId && !$donationForId) || ($pageId && $eventId)) {\n    redirectToContainer(\'index\');\n}\n\n$showEventGoalRaised = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\') && isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')) {\n    $showEventGoalRaised = 1;\n}\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\')) {\n    $showDonationLink = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n\n$data = array();\nif ($pageId) {\n    $type = \"blogpage\";\n    $blog = $websitepage->fetch($pageId);\n    if ($blog < 0) {\n        redirectToContainer(\'index\');\n    } else {\n        $data[\'date_creation\'] = $websitepage->date_creation;\n        $data[\'author_alias\'] = ($websitepage->author_alias ? $websitepage->author_alias : \'\');\n        $data[\'title\'] = $websitepage->title;\n        $data[\'content\'] = $websitepage->content;\n        $data[\'budget_amount\'] = 0;\n        $data[\'collected\'] = 0;\n        $data[\'type\'] = $type;\n    }\n}\n\nif ($eventId) {\n    if (!isModEnabled(\'eventorganization\') || getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')) {\n        redirectToContainer(\'index\');\n    }\n    $type = \"eventpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $eventId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = $obj->description;\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\nif ($donationForId) {\n    $type = \"donationpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $donationForId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = \'<div id=\"iframe-container\"><iframe id=\"donationFrame\" frameborder=\"0\" style=\"overflow:hidden;width:100%;height:100%;\" src=\"\' . $socInfo[\'link_donation\'] . \'?project_id=\' . urlencode($donationForId) . \'&ws=\' . urlencode($website->id) . \'\"\n></iframe></div>\';\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $data[\'title\']); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 190px;\">\n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 190px;\">\n        <div class=\"col-lg-12 text-center breadcrumb-box\">\n            \n            <ol class=\"breadcrumb justify-content-center mb-3 lead\">\n				<li class=\"breadcrumb-item\"><a href=\"/\" class=\"text-decoration-none\"><?php echo $weblangs->trans(\"home\"); ?></a></li>\n				<li class=\"breadcrumb-item\">\n				    <a href=\"/events\" class=\"text-decoration-none\">\n				        <?php echo $weblangs->trans($data[\'type\'] === \"blogpage\" ? \"news\" : \"actionsEvents\"); ?>\n				    </a>\n				</li>\n			</ol>\n			\n            <h1 class=\"mb-3\"><?php print $data[\'title\']; ?></h1>\n            <span>\n                <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($data[\'date_creation\'], \'daytext\', \'tzuser\', $weblangs); ?>\n                \n                <?php if ($data[\'type\'] == \"blogpage\") { ?>\n                    <span class=\"author-span ms-3\"><i class=\"fas fa-user me-2\"></i> \n                        <?php \n                            if ($data[\'author_alias\']) { \n                                echo $data[\'author_alias\']; \n                            } else { \n                                echo $weblangs->trans(\"anonymous\");\n                            } \n                        ?> \n                    </span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showEventGoalRaised) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($data[\'budget_amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showEventGoalRaised) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($data[\'collected\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n            </span>\n        </div>\n    </div>\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		<div class=\"<?php echo $data[\'type\'] === \'donationpage\' ? \'col-md-12\' : \'col-md-8\'; ?>\" style=\"min-height:1200px;\">\n			<article id=\"content\">\n				<?php print html_entity_decode($data[\'content\']); ?>\n			</article>\n		</div>\n		\n		<?php if ($data[\'type\'] !== \"donationpage\") { ?>\n		    <?php includeContainer(\'sidebar\'); ?>\n		<?php } ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-16 10:10:24',NULL,'2025-05-07 08:31:33',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(270,41,'rgpd','','rgpd','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n\ndefine(\"__SEO_PAGE_TITLE__\", $weblangs->trans(\"RGPD\")); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 190px;\">\n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 190px;\">\n        <div class=\"col-lg-12 text-center breadcrumb-box\">\n            \n            <ol class=\"breadcrumb justify-content-center mb-3 lead\">\n				<li class=\"breadcrumb-item\"><a href=\"/\" class=\"text-decoration-none\"><?php echo $weblangs->trans(\"home\"); ?></a></li>\n				<li class=\"breadcrumb-item\">\n				    <a href=\"/events\" class=\"text-decoration-none\">\n				        <?php echo $weblangs->trans(\"RGPD\"); ?>\n				    </a>\n				</li>\n			</ol>\n			\n            <h1 class=\"mb-3\"><?php echo $weblangs->trans(\"RGPD\"); ?></h1>\n        </div>\n    </div>\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n		<div class=\"col-md-12\" style=\"min-height:1200px;\">\n			<p>\n              We are committed to respecting your privacy and protecting any personal information you choose to share with us.  \n              Your data is handled responsibly, securely, and in accordance with applicable data protection laws.  \n              We believe in transparency, accountability, and safeguarding your rights at every step.\n            </p>\n		</div>\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-05-05 13:44:30',NULL,'2025-05-07 08:35:08',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(271,41,'sidebar','','sidebar','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$pageId = GETPOSTINT(\'blog\');\n$eventId = GETPOSTINT(\'id\');\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\')) {\n    $showDonationLink = 1;\n}\n\n$showEventGoalRaised = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\') && isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')) {\n    $showEventGoalRaised = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n\n$link_participation = \'\';\n\nif ($eventId) {\n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $eventId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\');\n        $link_participation = $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey);\n    }\n}\n\n?>\n<div class=\"col-md-4\">\n\n	\n	<div class=\"container-fluid causes sidebar-joinus\">\n        <div class=\"container\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"joinUs\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n                <?php if ($showDonationLink) { ?>\n                    <?php if ($eventId) { ?>\n                        <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-donate\"></i> <?php echo $weblangs->trans(\"donateNow\"); ?> </a>\n                    <?php } else { ?>\n                        <a href=\"<?php echo $socInfo[\'link_donation\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-donate\"></i> <?php echo $weblangs->trans(\"donateNow\"); ?> </a>\n                    <?php } ?>\n                    \n                <?php } ?>\n                <?php if ($link_participation && $showParticipateLink) { ?>\n                    <a href=\"<?php echo $link_participation; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><i class=\"fas fa-user-plus\"></i> <?php echo $weblangs->trans(\"Participate\"); ?> </a>\n                <?php } ?>\n            </div>\n        </div>\n    </div>\n	\n	<div class=\"container-fluid causes\">\n        <div class=\"container py-5\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"news\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n            <?php \n            $MAXNEWS = 2;\n            $allblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 0, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n            $countofblogs = count($allblogs);\n            $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n            foreach($arrayofblogs as $blog)\n            {\n            ?>\n                <div class=\"col-12-12\">\n                    <div class=\"causes-item\">\n                        <div class=\"causes-img\">\n                            <?php\n                                $urlforimage = getImageFromHtmlContent($blog->content);\n                                if (empty($urlforimage)) {\n                                    $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                }\n                            ?>\n                            <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                        </div>\n                        <div class=\"progress progress-news\">\n                          <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                          </div>\n                        </div>\n                        <div class=\"causes-content p-4\">\n                            <span class=\"text-body\">\n                                <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?>\n                                <span class=\"author-span\"><i class=\"fas fa-user me-2\"></i> <?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span>\n                            </span>\n                            <h4 class=\"py-3\"><?php echo $blog->title; ?></h4>\n                            <hr>\n                            <p class=\"mb-4 truncate3\"><?php echo $blog->description; ?></p>\n                            <a href=\"page.php?ref=<?php print $blog->pageurl; ?>&blog=<?php print $blog->id; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                        </div>\n                    </div>\n                </div>\n                <?php \n            }\n            ?>\n            </div>\n                \n        </div>\n    </div>\n    \n    \n    <div class=\"container-fluid causes\">\n        <div class=\"container\">\n            <div class=\"section-title\">\n              <div class=\"line left-line\"></div>\n              <h1><?php echo $weblangs->trans(\"actions\"); ?></h1>\n              <div class=\"line right-line\"></div>\n            </div>\n            <div class=\"row g-4\">\n    \n                <?php \n                $maxevents = 2;\n                $countofevents = 0;\n                $sqlCount = \"SELECT count(p.rowid) as countofevents \n                        FROM \".MAIN_DB_PREFIX.\"projet as p \n                        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                        ORDER BY p.datec DESC \";\n                $resqlCount = $db->query($sqlCount);\n                if ($resqlCount) {\n                    $objCount = $db->fetch_object($resqlCount);\n                    $countofevents = $objCount->countofevents ? $objCount->countofevents : 0;\n                }\n            \n                $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n                        FROM \".MAIN_DB_PREFIX.\"projet as p \n                        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                        ORDER BY p.datec DESC \n                        LIMIT \".$maxevents;\n                $resql = $db->query($sql);\n                if ($resql) {\n                    $countofblogs = $db->num_rows($resql);\n                    while ($obj = $db->fetch_object($resql)) {\n                        ?>\n                        <div class=\"col-xs-12\">\n                            <div class=\"causes-item\">\n                                <div class=\"causes-img\">\n                                    <?php\n                                        $urlforimage = getImageFromHtmlContent($obj->description ? $obj->description : \"\");\n                                        if (empty($urlforimage)) {\n                                            $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                        }\n                                    ?>\n                                    <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                                    <div class=\"causes-link pb-2 px-3\">\n                                        <?php\n                                            $progress = 100;\n                                            if ($obj->budget_amount > 0 && $showEventGoalRaised) {\n                                                $sqlCollected = \"SELECT SUM(amount) as total_collected \n                                                                 FROM \".MAIN_DB_PREFIX.\"don \n                                                                 WHERE fk_projet = \".$obj->rowid;\n                                                $resqlCollected = $db->query($sqlCollected);\n                                                $collected = 0;\n                                                if ($resqlCollected) {\n                                                    $objCollected = $db->fetch_object($resqlCollected);\n                                                    $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n                                                }\n                                                $progress = round(($collected / $obj->budget_amount) * 100, 2);\n                                            }\n                                        ?>\n                                        \n                                        <?php if ($showEventGoalRaised) { ?>\n                                            <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($obj->budget_amount, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                            <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($collected, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                        <?php } ?>  \n                                    </div>\n                                    <div class=\"causes-dination p-2\">\n                                        <?php if ($showDonationLink) { ?>\n                                            <?php if (getDolGlobalInt(\'WS_\' . strtoupper($website->ref) . \'_PAYMENT_IN_FRAME\')) { ?>\n                                                <a href=\"page.php?donation=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                            <?php } else { ?>\n                                                <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                            <?php } ?>\n                                        <?php } ?>\n                                        \n                                        <?php if ($showParticipateLink) { ?>\n                                            <?php $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\'); ?>\n                                            <a href=\"<?php echo $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"Participate\"); ?></a>\n                                        <?php } ?>\n\n                                    </div>\n                                </div>\n                                \n                                <div class=\"progress\">\n                                  <div class=\"progress-bar\" role=\"progressbar\" style=\"width: <?php echo $progress; ?>%;\" aria-valuenow=\"<?php echo $progress; ?>\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                                    <?php if ($showEventGoalRaised) { ?>\n                                    <span><?php echo $progress; ?>%</span>\n                                    <?php } ?>\n                                  </div>\n                                </div>\n                                <div class=\"causes-content p-4\">\n                                    <span class=\"text-body\">\n                                        <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($obj->datec, \'daytext\', \'tzuser\', $weblangs); ?>\n                                    </span>\n                                    <h4 class=\"py-3\"><?php echo $obj->title; ?></h4>\n    \n                                    <a href=\"page.php?id=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                                </div>\n                            </div>\n                        </div>\n                        <?php\n                    }\n                }\n                ?>\n            </div>\n\n        </div>\n    </div>\n	\n</div>',0,'2025-04-16 11:08:11',NULL,'2025-05-15 16:04:21',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(272,41,'slider','','slider','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\n//setSessionLang();\n$socInfo = getSocInfo();\n?>\n\n<section class=\"slogan has-section-divider\">\n  \n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 460px;\">\n        <div class=\"col-lg-8 text-center\">\n            <h1 class=\"mb-3\"><?php print $socInfo[\'slogan\']; ?></h1>\n            <p class=\"lead\"><?php print $socInfo[\'description\']; ?></p>\n            <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                <p><a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button\">Devenir Membre</a></p>\n            <?php endif; ?>\n        </div>\n    </div>\n  \n  \n  <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"var(--light-secondary-color)\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>',0,'2025-04-08 14:25:00',NULL,'2025-05-07 12:59:21',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(273,41,'_library_lib','','lib','','','<?php\n/**\n * Set session language based on:\n * - Cookie \'lang\' (if exists)\n * - Browser language (if not present among website languages, use website main language)\n * - Form field \'language\' (if present)\n *\n * The function also updates the product labels of the products in the session\n * to match the current language.\n *\n * @return bool\n */\nfunction setSessionLang() {\n   global $langs, $website, $weblangs, $db;\n    // Get available langs for the website\n    $website_langs = getAvailableLangs();\n    $available_langs = $website_langs[\'langs\'];\n    $langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n    // If no language is set or if a new language is selected (via form field)\n    if (!isset($_COOKIE[\'lang\']) || GETPOST(\'l\', \'alpha\')) {\n        // Get browser language\n        $browser_lang = $weblangs->getDefaultLang(1);\n\n        // Change used lang\n        $new_lang = GETPOST(\'l\', \'alpha\');\n        if ($new_lang && array_key_exists ($new_lang, $available_langs)) {\n            setcookie(\'lang\', $new_lang, time() + (86400 * 30), \'/\');\n            $session_lang = $new_lang;\n        }\n\n        // If no language is set in cookie and browser language is not present among available languages\n        // use website main language as default\n        if (!isset($_COOKIE[\'lang\'])) {\n            if (array_key_exists ($browser_lang, $available_langs)){\n                // The browser language is present among the available languages\n                setcookie(\'lang\', $browser_lang, time() + (86400 * 30), \'/\');\n                $session_lang = $browser_lang;\n            } else {\n                // The browser language is not present among the available languages\n                setcookie(\'lang\', $website->lang, time() + (86400 * 30), \'/\');\n                $session_lang = $website->lang;\n            }\n        }\n\n        // Set session lang\n        if (!empty($session_lang)) {\n            $_SESSION[\'lang\'][\'shortcode\'] = $session_lang;\n            $_SESSION[\'lang\'][\'code\'] = $langs_code_shortcode[$session_lang];\n        }\n\n    }\n\n    // If session language is not set, use cookie language\n    if (empty($_SESSION[\'lang\'][\'shortcode\']) || empty($_SESSION[\'lang\'][\'code\'])) {\n        $_SESSION[\'lang\'][\'shortcode\'] = $_COOKIE[\'lang\'];\n        $_SESSION[\'lang\'][\'code\'] = $langs_code_shortcode[$_COOKIE[\'lang\']];\n    }\n\n    // Set Dolibarr default language\n    $langs->setDefaultLang($_SESSION[\'lang\'][\'code\']);\n    $weblangs->setDefaultLang($_SESSION[\'lang\'][\'code\']);\n    $langs->loadLangs(array(\"main\", \"website\", \"languages\", \"members\", \"admin\", \"donations\", \"companies\"));\n    $weblangs->loadLangs(array(\"main\", \"website\", \"languages\", \"members\", \"admin\", \"donations\", \"companies\"));\n\n    return true;\n}\n\n/**\n * The function loops through the languages of the website configuration and\n * checks if they exist in the list of supported languages. If they do, they\n * are added to the $available_langs array, along with their corresponding\n * shortcode in the $langs_code_shortcode array.\n *\n * The function returns an array with two keys: \'langs\' containing the list\n * of available languages and \'langs_code_shortcode\' containing the list\n * of corresponding shortcodes.\n *\n * @return array\n */\nfunction getAvailableLangs() {\n    global $website, $weblangs;\n\n    $available_langs = array();\n    $langs_code_shortcode = array();\n    $ws_langs_list = explode(\',\', $website->lang.\',\'.$website->otherlang);\n    $dol_available_langs = $weblangs->get_available_languages(DOL_DOCUMENT_ROOT, 1, 2, 1);\n    foreach ($ws_langs_list as $lang) {\n        foreach ($dol_available_langs as $key => $value) {\n            if (strpos($key, $lang) === 0) {\n                $available_langs[$lang] = $value;\n                $langs_code_shortcode[$lang] = $key;\n                break;\n            }\n        }\n    }\n    \n    return array(\'langs\' => $available_langs, \'langs_code_shortcode\' => $langs_code_shortcode);\n}\n\n/**\n * Get societe information from Dolibarr configuration.\n *\n * This function retrieves the societe information from the global $conf object\n * and returns it as an associative array.\n *\n * @return array\n */\nfunction getSocInfo() {\n    global $conf, $mysoc, $weblangs, $website;\n    $weblangs->load(\"admin\");\n\n    $societe_info = array(\n        \'name\' => !empty($mysoc->name) ? html_entity_decode($mysoc->name) : \'\',\n        \'address\' => !empty($mysoc->getFullAddress(1)) ? html_entity_decode($mysoc->getFullAddress(1)) : \'\',\n        \'zip\' => !empty($mysoc->zip) ? html_entity_decode($mysoc->zip) : \'\',\n        \'town\' => !empty($mysoc->town) ? html_entity_decode($mysoc->town) : \'\',\n        \'country\' => !empty($mysoc->country) ? html_entity_decode($mysoc->country) : \'\',\n        \'phone\' => !empty($mysoc->phone) ? html_entity_decode($mysoc->phone) : \'\',\n        \'fax\' => !empty($mysoc->fax) ? html_entity_decode($mysoc->fax) : \'\',\n        \'email\' => !empty($mysoc->email) ? html_entity_decode($mysoc->email) : \'\',\n        \'slogan\' => getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\') \n                ? html_entity_decode(getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\')) \n                : (!empty($mysoc->name) \n                    ? html_entity_decode($mysoc->name) \n                    : html_entity_decode($weblangs->trans(\"noCompanyInfoSlogan\"))),\n        \'description\' => getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\') \n                ? html_entity_decode(getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\')) \n                : (!empty($mysoc->socialobject) \n                    ? html_entity_decode($mysoc->socialobject) \n                    : html_entity_decode($weblangs->trans(\"noCompanyInfoDescription\", $weblangs->trans(\"CompanyObject\"))))\n    );\n\n    // Add social networks if they are set\n    foreach($mysoc->socialnetworks as $key => $value) {\n        if (!empty($value)) {\n            $societe_info[$key] = preg_match(\'/^http/\', $value) ? $value : \'https://www.\'.$key.\'.com/\'.$value;\n        }\n    }\n    \n    // Add link to subscription\n    if (isModEnabled(\'multicompany\')) {\n      $entity_qr = \'?entity=\' . ((int) $conf->entity);\n    } else {\n      $entity_qr = \'\';\n    }\n    $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n    $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n    $societe_info[\'subscription_link\'] = $urlwithroot . \'/public/members/new.php\'.$entity_qr;\n    \n    // Add participation link\n    $link_participation = $urlwithroot.\'/public/eventorganization/attendee_new.php?type=global\';\n	$societe_info[\'link_participation\'] = $link_participation;\n	\n	// Add donation link\n    $link_donation = $urlwithroot.\'/public/donations/new.php\';\n	$societe_info[\'link_donation\'] = $link_donation;\n\n    return $societe_info;\n}',0,'2025-04-11 10:57:25',NULL,'2025-05-02 12:11:20',NULL,NULL,'library','',NULL,'','',NULL,'','',0,NULL,NULL),
(274,42,'config','','config','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$message = \'\';\nif (!isModEnabled(\'eventorganization\') || !isModEnabled(\'member\') || !isModEnabled(\'don\') || !isModEnabled(\'webportal\')) {\n    $message = $langs->trans(\"TEMPLATE_MODULES_NOTICE\") .\"<br><br>\";\n}\n\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')->setAsYesNo();\n$item->nameText = $langs->trans(\"USE_TEXT_LOGO\");\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_SLOGAN\');\n$item->nameText = $langs->trans(\"CUSTOM_SLOGAN\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'CUSTOM_DESCRIPTION\');\n$item->nameText = $langs->trans(\"CUSTOM_DESCRIPTION\");\n$item->cssClass = \'minwidth500\';\n\n// Get available langs for the website\n$TField = array();\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\nforeach ($available_langs as $key => $value) {\n    $TField[$key] = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]);\n}\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\');\n$item->nameText = $langs->trans(\"SUPPORTED_LANGS\");\n$item->setAsMultiSelect($TField);\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'MAIN_COLOR\');\n$item->nameText = $langs->trans(\"MAIN_COLOR\");\n$item->cssClass = \'minwidth500\';\n\n$item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SECONDARY_COLOR\');\n$item->nameText = $langs->trans(\"SECONDARY_COLOR\");\n$item->cssClass = \'minwidth500\';\n\nif (isModEnabled(\'member\')) {\n    $formSetup->newItem(\'membersArea\')->setAsTitle();\n    \n    $item = $formSetup->newItem(\'MEMBER_ENABLE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_REGISTRATION_PAGE\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_MEMBER_LIST_PAGE\");\n    \n    if (isModEnabled(\'webportal\')) {\n        $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')->setAsYesNo();\n        $item->nameText = $langs->trans(\"ENABLE_MEMBER_AREA_PAGE\");\n    }\n}\n\nif (isModEnabled(\'eventorganization\')) {\n    $formSetup->newItem(\'eventsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"DISABLE_EVENTS_SECTION\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"SHOW_EVENT_PARTICIPATE_LINK\");\n    \n    $item = $formSetup->newItem(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"SHOW_EVENT_GOAL_RAISED_AMOUNTS\");\n}\n\nif (isModEnabled(\'don\')) {\n    $formSetup->newItem(\'DonationsArea\')->setAsTitle();\n    $item = $formSetup->newItem(\'DONATION_ENABLE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"ENABLE_DONATION_PAGE\");\n    \n    $item = $formSetup->newItem(\'DONATION_COUNTERS_ARE_PUBLIC\')->setAsYesNo();\n    $item->nameText = $langs->trans(\"DONATION_COUNTERS_ARE_PUBLIC\");\n}\n\n?>\n',0,'2025-04-30 09:05:35',NULL,'2025-05-07 10:37:57',NULL,NULL,'setup','',NULL,'','',NULL,'','',0,NULL,NULL),
(275,42,'contact','','contact','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (GETPOST(\'action\') == \'sendmail\') {\n    include_once DOL_DOCUMENT_ROOT.\'/core/class/CMailFile.class.php\';\n    \n    // Set message language\n	$emaillang = new Translate(\'\', $conf);\n	if ($mysoc->default_lang) {\n	    $emaillang->setDefaultLang($mysoc->default_lang);\n	    $emaillang->loadLangs(array(\"main\", \"website\"));\n	}\n	\n\n    $from = GETPOST(\'email\', \'alpha\');\n    $to = $mysoc->email;\n    $subject = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref));\n\n    $firstname = GETPOST(\'firstname\', \'alpha\');\n    $phone = GETPOST(\'phone\', \'alpha\');\n    $usersubject = GETPOST(\'subject\', \'alpha\');\n    $messageContent = GETPOST(\'message\', \'alpha\');\n\n    $message = html_entity_decode ($emaillang->trans(\"contactFormReceived\", $website->ref)) . \"\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormName\")) . \": $firstname\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormEmail\")) . \": $from\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormPhone\")) . \": \" . (!empty($phone) ? $phone : \"N/A\") . \"\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormSubjectEntered\")) . \": $usersubject\\n\\n\";\n    $message .= html_entity_decode ($emaillang->trans(\"contactFormMessageLabel\")) . \":\\n$messageContent\\n\";\n\n    $cmail = new CMailFile($subject, $to, $from, $message);\n\n    if ($cmail->sendfile()) {\n        ?>\n        <script>\n            alert(\"<?php echo html_entity_decode ($emaillang->trans(\"contactFormSuccessAlert\")); ?>\");\n        </script>\n        <?php\n    } else {\n        echo html_entity_decode ($langs->trans(\"ErrorFailedToSendMail\", $from, $to)) . \'. \' . $cmail->error;\n    }\n}\n\n\n\n?>\n<div class=\"container-fluid\">\n    <div class=\"container py-5\">\n        \n        <div class=\"container-fluid contact py-5\">\n            <div class=\"row g-4\">\n                <div class=\"col-xl-5\">\n                    \n                    <div class=\"section-title\" id=\"section-contact\" style=\"scroll-margin-top: 130px;\">\n                      <div class=\"line left-line\"></div>\n                      <h1><?php echo $weblangs->trans(\"contactTitle\"); ?></h1>\n                      <div class=\"line right-line\"></div>\n                    </div>\n        \n                    <p class=\"mb-4\"><?php echo $weblangs->trans(\"contactMessage\"); ?></p>\n                    <form method=\"post\" action=\"#\">\n                        <div class=\"row gx-4 gy-3\">\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"firstname\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelFirstName\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"email\" name=\"email\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelEmail\"); ?>\" required>\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"phone\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelPhone\"); ?>\">\n                            </div>\n                            <div class=\"col-xl-6\">\n                                <input type=\"text\" name=\"subject\" class=\"form-control bg-white border-0 py-3 px-4\" placeholder=\"<?php echo $weblangs->trans(\"labelSubject\"); ?>\" required>\n                            </div>\n                            <div class=\"col-12\">\n                                <textarea name=\"message\" class=\"form-control bg-white border-0 py-3 px-4\" rows=\"7\" cols=\"10\" placeholder=\"<?php echo $weblangs->trans(\"labelMessage\"); ?>\" required></textarea>\n                            </div>\n                            <div class=\"col-12\">\n                                <button class=\"btn flat-button text-white py-2 px-3 float-end\" type=\"submit\" name=\"action\" value=\"sendmail\"><?php echo $weblangs->trans(\"submit\"); ?></button>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n                <div class=\"col-xl-7\">\n                    <div>\n                        <div class=\"row g-4\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-map-marker-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelAddress\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'address\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fas fa-envelope fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelEmail\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'email\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"bg-white p-2 text-center\">\n                                    <i class=\"fa fa-phone-alt fa-2x secondary-color mb-2\"></i>\n                                    <h4><?php echo $weblangs->trans(\"labelPhone\"); ?></h4>\n                                    <p class=\"mb-0\"><?php echo $socInfo[\'phone\']; ?></p>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <iframe class=\"w-100\" style=\"height: 412px; margin-bottom: -6px;\" src=\"https://maps.google.com/maps?q=<?php echo urlencode($mysoc->getFullAddress()); ?>&t=&z=13&ie=UTF8&iwloc=&output=embed\" \n                                    loading=\"lazy\" referrerpolicy=\"no-referrer-when-downgrade\"></iframe>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:35:43',NULL,'2025-04-30 15:55:11',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(276,42,'donation-list','','donation-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (!isModEnabled(\'don\') || !getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') || !getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')) {\n    redirectToContainer(\'index\');\n}\n\n\n$data = array();\n\n$sql = \"SELECT d.rowid, d.datedon as datec, s.nom as societe, d.firstname, d.lastname, p.title, d.amount\";\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"don as d LEFT JOIN \".MAIN_DB_PREFIX.\"projet AS p\";\n$sql .= \" ON p.rowid = d.fk_projet\";\n$sql .= \" LEFT JOIN \" . MAIN_DB_PREFIX . \"societe AS s ON s.rowid = d.fk_soc\";\n$sql .= \" WHERE d.entity IN (\". getEntity(\'donation\') . \")\";\n$sql .= \" AND d.fk_statut IN (2)\";\n$sql .= \" AND d.paid = 1\";\n$sql .= \" AND d.public = 1\";\n$sql .= \" AND p.public = 1\";\n$sql .= $db->order(\"datedon\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n			\'project\' => $obj->title,\n			\'amount\' => $obj->amount,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $weblangs->trans(\"listOfPublicDonations\")); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"listOfPublicDonations\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Date\"); ?></th>\n                \n                <th><?php echo $weblangs->trans(\"project\"); ?></th>\n                <th><?php echo $weblangs->trans(\"amount\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo !empty($row[\'firstname\']) ? htmlspecialchars($row[\'firstname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'lastname\']) ? htmlspecialchars($row[\'lastname\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo !empty($row[\'societe\']) ? htmlspecialchars($row[\'societe\'], ENT_QUOTES, \'UTF-8\') : \'-\'; ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'project\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo price(price2num($row[\'amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 17:00:33',NULL,'2025-05-07 08:33:20',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(277,42,'events','','events','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\')) {\n    $showDonationLink = 1;\n}\n\n$showEventGoalRaised = 0;\nif (isModEnabled(\'don\') && isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')) {\n    $showEventGoalRaised = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n?>\n<div class=\"container-fluid causes\">\n    <div class=\"container\">\n        <div class=\"section-title\" id=\"section-events\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"actionsEvents\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n\n            <?php \n            $maxevents = GETPOSTINT(\'maxevents\') ? GETPOSTINT(\'maxevents\') : 3;\n            $countofevents = 0;\n            $sqlCount = \"SELECT count(p.rowid) as countofevents \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \";\n            $resqlCount = $db->query($sqlCount);\n            if ($resqlCount) {\n                $objCount = $db->fetch_object($resqlCount);\n                $countofevents = $objCount->countofevents ? $objCount->countofevents : 0;\n            }\n        \n            $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n                    FROM \".MAIN_DB_PREFIX.\"projet as p \n                    WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) \n                    ORDER BY p.datec DESC \n                    LIMIT \".$maxevents;\n            $resql = $db->query($sql);\n            if ($resql) {\n                $countofblogs = $db->num_rows($resql);\n                $i=1;\n                while ($obj = $db->fetch_object($resql)) {\n                    ?>\n                    <div class=\"col-lg-6 col-xl-4 event-item\" id=\"event-<?php echo $i; ?>\">\n                        <div class=\"causes-item\">\n                            <div class=\"causes-img\">\n                                <?php\n                                    $urlforimage = getImageFromHtmlContent($obj->description ? $obj->description : \"\");\n                                    if (empty($urlforimage)) {\n                                        $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                                    }\n                                ?>\n                                <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                                <div class=\"causes-link pb-2 px-3\">\n                                    <?php\n                                        $progress = 100;\n                                        if ($obj->budget_amount > 0 && $showEventGoalRaised) {\n                                            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                                                             FROM \".MAIN_DB_PREFIX.\"don \n                                                             WHERE fk_projet = \".$obj->rowid;\n                                            $resqlCollected = $db->query($sqlCollected);\n                                            $collected = 0;\n                                            if ($resqlCollected) {\n                                                $objCollected = $db->fetch_object($resqlCollected);\n                                                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n                                            }\n                                            $progress = round(($collected / $obj->budget_amount) * 100, 2);\n                                        }\n                                    ?>\n                                    <?php if ($showEventGoalRaised) { ?>\n                                        <small class=\"text-white\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($obj->budget_amount, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                        <small class=\"text-white\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($collected, \'MT\'), 1, \'\', 1, -1); ?> €</small>\n                                    <?php } ?>    \n                                </div>\n                                <div class=\"causes-dination p-2\">\n                                    <?php if ($showDonationLink) { ?>\n                                        <?php if (getDolGlobalInt(\'WS_\' . strtoupper($website->ref) . \'_PAYMENT_IN_FRAME\')) { ?>\n                                            <a href=\"page.php?donation=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } else { ?>\n                                            <a href=\"<?php echo $socInfo[\'link_donation\'] . \'?project_id=\'.urlencode($obj->rowid); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"donateNow\"); ?></a>\n                                        <?php } ?>\n                                    <?php } ?>\n                                    \n                                    <?php if ($showParticipateLink) { ?>\n                                        <?php $encodedsecurekey = dol_hash(getDolGlobalString(\'EVENTORGANIZATION_SECUREKEY\').\'conferenceorbooth\'.((int) $obj->rowid), \'md5\'); ?>\n                                        <a href=\"<?php echo $socInfo[\'link_participation\'] . \'&id=\'.urlencode($obj->rowid).\'&securekey=\'.urlencode($encodedsecurekey); ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"Participate\"); ?></a>\n                                    <?php } ?>\n                                </div>\n                            </div>\n                            \n                            \n                            <div class=\"progress\">\n                              <div class=\"progress-bar\" role=\"progressbar\" style=\"width: <?php echo $progress; ?>%;\" aria-valuenow=\"<?php echo $progress; ?>\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                                <?php if ($showEventGoalRaised) { ?>\n                                <span><?php echo $progress; ?>%</span>\n                                <?php } ?>\n                              </div>\n                            </div>\n\n                            \n                            <div class=\"causes-content p-4\">\n                                <span class=\"text-body\">\n                                    <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($obj->datec, \'daytext\', \'tzuser\', $weblangs); ?>\n                                </span>\n                                <h4 class=\"py-3\"><?php echo $obj->title; ?></h4>\n\n                                <a href=\"page.php?id=<?php echo $obj->rowid; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                            </div>\n                        </div>\n                    </div>\n                    <?php\n                    $i++;\n                }\n            }\n            ?>\n        </div>\n        \n        <?php if ($maxevents <= $countofevents) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreEventsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?> (<?php echo $maxevents; ?>/<?php echo $countofevents; ?>)</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreEventsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxEventsParam = <?php echo $maxevents; ?>;\n            const newMaxEvents = parseInt(maxEventsParam) + 3;\n            currentUrl.searchParams.set(\'maxevents\', newMaxEvents);\n            currentUrl.hash = \'#event-\' + (parseInt(maxEventsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n    </div>\n</div>',0,'2025-04-14 14:16:40',NULL,'2025-05-06 16:10:57',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(278,42,'footer','','footer','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid\" style=\"margin:0; padding:0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"<?php print getDolGlobalString(\'WS_\' . strtoupper($website->ref) . \'_MAIN_COLOR\') ?: \'#5d5b6a\'; ?>\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</div>\n<div class=\"container-fluid footer text-body\">\n    \n    <div class=\"container py-5\">\n        <div class=\"row g-5\">\n            \n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"presentation\"); ?></h4>\n                    <a href=\"/index#section-overview\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"missionVision\"); ?></a>\n                    <a href=\"rgpd.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"rgpd\"); ?></a>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"newsEvents\"); ?></h4>\n                    <a href=\"index#section-news\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"news\"); ?></a>\n                    <?php if (isModEnabled(\'eventorganization\') && !getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')): ?>\n                        <a href=\"index#section-events\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"actionsEvents\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"volunteer\"); ?></h4>\n                        <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n                          <?php\n                          if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                            $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n                          } else {\n                            if (isModEnabled(\'multicompany\')) {\n                              $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                            } else {\n                              $entity_qr = \'\';\n                            }\n            \n                            $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                            $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                            $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n                          }\n                          ?>\n                          <a href=\"<?php echo $url; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n                        <?php endif; ?>\n                        \n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <a href=\"members-list.php\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"directory\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                        <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"becomeMember\"); ?></a>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\')): ?>\n                        <a href=\"<?php print $socInfo[\'link_donation\']; ?>\"><i class=\"fas fa-angle-right me-2\"></i> <?php echo $weblangs->trans(\"makeDonation\"); ?></a>\n                    <?php endif; ?>\n                </div>\n            </div>\n            <div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item\">\n                    <h4 class=\"mb-4 text-white\"><?php echo $weblangs->trans(\"socials\"); ?></h4>\n                    <div class=\"social\">\n                        <?php\n                            $socialIcons = [\n                              \'facebook\' => \'fa-facebook-f\',\n                              \'twitter\' => \'fa-x-twitter\',\n                              \'linkedin\' => \'fa-linkedin-in\',\n                              \'instagram\' => \'fa-instagram\',\n                              \'youtube\' => \'fa-youtube\',\n                              \'skype\' => \'fa-skype\',\n                              \'whatsapp\' => \'fa-whatsapp\',\n                              \'snapchat\' => \'fa-snapchat-ghost\',\n                            ];\n                \n                            foreach ($socialIcons as $key => $icon) {\n                              if (!empty($socInfo[$key])) {\n                                echo \'<a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"btn-hover-color btn-square text-white me-2\"><i class=\"fa-brands \' . $icon . \'\"></i></a>\';\n                              }\n                            }\n                        ?>\n                    </div>\n                </div>\n            </div>\n            <!--<div class=\"col-md-6 col-lg-6 col-xl-3\">\n                <div class=\"footer-item d-flex flex-column\">\n                    <h4 class=\"mb-4 text-white\">RGPD</h4>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Politique de Confidentialité</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Gestion des Données</a>\n                    <a href=\"\"><i class=\"fas fa-angle-right me-2\"></i> Droits des Utilisateurs</a>\n\n                </div>\n            </div>-->\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:37:00',NULL,'2025-05-15 13:24:35',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(279,42,'highlights','','highlights','','','<div class=\"col-lg-3 stats section\" id=\"stats\">\n                \n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php echo $weblangs->trans(\"highlights\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n\n    <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\" data-aos-delay=\"100\">\n\n        <div class=\"row gy-4\">\n            \n            <!--<div class=\"col-lg-12 counter-box\">\n                <i class=\"fas fa-users fa-4x text-white\"></i>\n                <div class=\"stats-item\">\n                  <span data-purecounter-start=\"0\" data-purecounter-end=\"232\" data-purecounter-duration=\"0\" class=\"purecounter\">000</span>\n                  <p><?php echo $weblangs->trans(\"volunteer\"); ?></p>\n                </div>\n            </div><!-- End Stats Item -->\n            \n            <?php if (isModEnabled(\'member\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-user-friends fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                      $sql = \"SELECT COUNT(rowid) as total_members FROM llx_adherent WHERE statut = 1 AND public = 1\";\n                      $resql = $db->query($sql);\n                      $total_members = 0;\n                      if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_members = $obj->total_members;\n                        }\n                      }\n                      ?>\n                      <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_members; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_members; ?></span>\n                      <p><?php echo $weblangs->trans(\"member\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'eventorganization\')): ?>\n            <div class=\"col-lg-12 counter-box\">\n              <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n              <div class=\"stats-item\">\n              <?php\n                $sql = \"SELECT COUNT(rowid) as total_events FROM \".MAIN_DB_PREFIX.\"projet as p WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1)\";\n              $resql = $db->query($sql);\n              $total_events = 0;\n              if ($resql) {\n                $obj = $db->fetch_object($resql);\n                if ($obj) {\n                $total_events = $obj->total_events;\n                }\n              }\n              ?>\n              <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_events; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php echo $total_events; ?></span>\n              <p><?php echo $weblangs->trans(\"actions\"); ?></p>\n              </div>\n            </div><!-- End Stats Item -->\n            <?php endif; ?>\n\n            <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') && getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-hands-helping fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT count(amount) as count_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $count_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $count_funds = $obj->count_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $count_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print $count_funds; ?></span>\n                        <p><?php echo $weblangs->trans(\"Donation\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n            \n            <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\') && getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                <div class=\"col-lg-12 counter-box\">\n                    <i class=\"fas fa-file-invoice-dollar fa-4x text-white\"></i>\n                    <div class=\"stats-item\">\n                      <?php\n                        $sql = \"SELECT SUM(amount) as total_funds FROM llx_don WHERE paid = 1\";\n                        $resql = $db->query($sql);\n                        $total_funds = 0;\n                        if ($resql) {\n                        $obj = $db->fetch_object($resql);\n                        if ($obj) {\n                          $total_funds = $obj->total_funds;\n                        }\n                        }\n                        ?>\n                        <span data-purecounter-start=\"0\" data-purecounter-end=\"<?php echo $total_funds; ?>\" data-purecounter-duration=\"0\" class=\"purecounter\"><?php print intval($total_funds); ?> €</span>\n                        <p><?php echo $weblangs->trans(\"fundsCollected\"); ?></p>\n                    </div>\n                </div><!-- End Stats Item -->\n            <?php endif; ?>\n\n        </div>\n    \n      </div>\n</div>',0,'2025-04-14 10:49:38',NULL,'2025-05-06 16:23:42',NULL,NULL,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(280,42,'index','','Index','','','<?php includeContainer(\'navbar\'); ?>\n\n<?php includeContainer(\'slider\'); ?>\n\n<?php \nif ($_SESSION[\'lang\'][\'shortcode\'] != \"en\" && array_key_exists($_SESSION[\'lang\'][\'shortcode\'], getAvailableLangs()[\'langs\'])) {\n    includeContainer(\'overview-\'.$_SESSION[\'lang\'][\'shortcode\']);\n} else {\n    includeContainer(\'overview\');\n}\n?>\n\n<?php includeContainer(\'news\'); ?>\n\n<?php\nif (!getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\') && isModEnabled(\'eventorganization\')) {\n    includeContainer(\'events\'); \n}\n?>\n\n<?php includeContainer(\'contact\'); ?>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-03-21 15:58:56',NULL,'2025-05-07 12:57:29',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(281,42,'members-list','','members-list','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\nif (!getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')) {\n    redirectToContainer(\'index\');\n}\n\n$data = array();\n$sql = \"SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo, datec\";\n\n$sqlfields = $sql;\n\n$sql .= \" FROM \".MAIN_DB_PREFIX.\"adherent\";\n$sql .= \" WHERE entity = 1\";\n$sql .= \" AND statut = 1\";\n$sql .= \" AND public = 1\";\n$sql .= $db->order(\"datec\", \"DESC\");\n    \n$resql = $db->query($sql);\nif ($resql) {\n    while ($obj = $db->fetch_object($resql)) {\n        $data[] = array(\n			\'firstname\' => $obj->firstname,\n			\'lastname\' => $obj->lastname,\n			\'societe\' => $obj->societe,\n			\'datec\' => $obj->datec,\n		);\n    }\n}\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $weblangs->trans(\"ListOfValidatedPublicMembers\")); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 0;\">\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		\n\n<div class=\"col-md-8\">\n    <div class=\"section-title\">\n      <div class=\"line left-line\"></div>\n      <h1><?php print $weblangs->trans(\"ListOfValidatedPublicMembers\"); ?></h1>\n      <div class=\"line right-line\"></div>\n    </div>\n            \n    <table id=\"membersTable\" class=\"table table-striped\">\n        <thead>\n            <tr>\n                <th>#</th>\n                <th><?php echo $weblangs->trans(\"Firstname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Lastname\"); ?></th>\n                <th><?php echo $weblangs->trans(\"Company\"); ?></th>\n                <th><?php echo $weblangs->trans(\"DateSubscription\"); ?></th>\n            </tr>\n        </thead>\n        <tbody>\n            <?php if (!empty($data) && is_array($data)): ?>\n                <?php foreach ($data as $index => $row): ?>\n                    <tr>\n                        <td><?php echo (int)($index + 1); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'firstname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'lastname\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo htmlspecialchars($row[\'societe\'] ?? \'\', ENT_QUOTES, \'UTF-8\'); ?></td>\n                        <td><?php echo dol_print_date($row[\'datec\'], \'daytext\', \'tzuser\', $weblangs); ?></td>\n                    </tr>\n                <?php endforeach; ?>\n            <?php endif; ?>\n        </tbody>\n    </table>\n    <script>\n        $(document).ready(function() {\n            $(\'#membersTable\').DataTable({\n                language: {\n                    url: \"https://cdn.datatables.net/plug-ins/1.13.6/i18n/<?php print str_replace(\'_\', \'-\', $_SESSION[\'lang\'][\'code\']); ?>.json\"\n                }\n            });\n        });\n    </script>\n</div>\n\n\n\n	    <?php includeContainer(\'sidebar\'); ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-29 15:02:20',NULL,'2025-05-07 08:33:57',NULL,NULL,'page','',NULL,'','<!-- DataTables CSS/JS -->\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css\">\n<script src=\"https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js\"></script>',NULL,'','',0,NULL,NULL),
(282,42,'navbar','','navbar','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n// Get available langs for the website\n$website_langs = getAvailableLangs();\n$available_langs = $website_langs[\'langs\'];\nif (getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\')) {\n    $used_langs = explode(\',\', getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SUPPORTED_LANGS\'));\n    foreach ($available_langs as $key => $value) {\n        if (!in_array($key, $used_langs)) {\n            unset($available_langs[$key]);\n        }\n    }\n}\n\n$langs_code_shortcode = $website_langs[\'langs_code_shortcode\'];\n\n//$weblangs->load(\"website\", \"languages\");\n//$langs->load(\"website\", \"languages\");\n?>\n<div class=\"site-mobile-menu site-navbar-target\">\n  <div class=\"site-mobile-menu-header\">\n    <div class=\"site-mobile-menu-close mt-3\">\n      <span class=\"icon-close2 js-menu-toggle\"></span>\n    </div>\n  </div>\n  <div class=\"site-mobile-menu-body\"></div>\n</div>\n\n<header class=\"site-navbar js-sticky-header js-sticky-header-blog site-navbar-target\" role=\"banner\">\n\n  <div class=\"container\">\n    <div class=\"row align-items-center\">\n      \n      <div class=\"col-6 col-xl-2\">\n        <?php\n            if(getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'USE_TEXT_LOGO\')) {\n                $html_logo = $mysoc->name . \'<span class=\"text-secondary-color\">.</span>\';\n            } else {\n                $path = getImageFileNameForSize($mysoc->logo_squarred ? $mysoc->logo_squarred : $mysoc->logo, \'_small\');\n                $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" height=\"42\" src=\"\' . DOL_URL_ROOT . \'/viewimage.php?modulepart=mycompany&file=\'.urlencode(\'logos/\'.$path).\'\">\'; \n            }\n          \n            \n        ?>\n        <h1 class=\"mb-0 site-logo\"><a href=\"/index\"><?php print $html_logo; ?> </a></h1>\n      </div>\n\n      <div class=\"col-12 col-md-10 d-none d-xl-block\">\n        <nav class=\"site-navigation position-relative text-right\" role=\"navigation\">\n\n        <ul class=\"site-menu main-menu js-clone-nav mr-auto d-none d-lg-block\" style=\"float: right;\">\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"presentation\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"/index#section-overview\" class=\"nav-link\"><?php echo $weblangs->trans(\"missionVision\"); ?></a></li>\n                    <?php if (getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_LIST_PAGE\')): ?>\n                        <li><a href=\"members-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"directory\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"newsEvents\"); ?></a>\n                <ul class=\"dropdown\">\n                    <li><a href=\"index#section-news\" class=\"nav-link\"><?php echo $weblangs->trans(\"news\"); ?></a></li>\n                    <?php if (isModEnabled(\'eventorganization\') && !getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')): ?>\n                        <li><a href=\"index#section-events\" class=\"nav-link\"><?php echo $weblangs->trans(\"actionsEvents\"); ?></a></li>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li class=\"has-children\">\n                <a class=\"nav-link\"><?php echo $weblangs->trans(\"commitmentSupport\"); ?></a>\n                <ul class=\"dropdown\">\n                    <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"becomeMember\"); ?></a></li>\n                    <?php endif; ?>\n                    \n                    <?php if (isModEnabled(\'don\') && getDolGlobalInt(\'DONATION_ENABLE_PUBLIC\')): ?>\n                        <li><a href=\"<?php print $socInfo[\'link_donation\']; ?>\" target=\"new\" class=\"nav-link\"><?php echo $weblangs->trans(\"makeDonation\"); ?></a></li>\n                        <?php if (getDolGlobalInt(\'DONATION_COUNTERS_ARE_PUBLIC\')): ?>\n                            <li><a href=\"donation-list.php\" class=\"nav-link\"><?php echo $weblangs->trans(\"listOfPublicDonations\"); ?></a></li>\n                        <?php endif; ?>\n                    <?php endif; ?>\n                </ul>\n            </li>\n            <li>\n                <a href=\"index#section-contact\" class=\"nav-link\"><?php echo $weblangs->trans(\"contact\"); ?></a>\n            </li>\n            \n            <?php if (isModEnabled(\'webportal\') && getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'ENABLE_MEMBER_AREA_PAGE\')): ?>\n              <?php\n              if (getDolGlobalString(\'WEBPORTAL_ROOT_URL\')) {\n                $url = getDolGlobalString(\'WEBPORTAL_ROOT_URL\');\n              } else {\n                if (isModEnabled(\'multicompany\')) {\n                  $entity_qr = \'?entity=\' . ((int) $conf->entity);\n                } else {\n                  $entity_qr = \'\';\n                }\n\n                $urlwithouturlroot = preg_replace(\'/\' . preg_quote(DOL_URL_ROOT, \'/\') . \'$/i\', \'\', trim($conf->file->dol_main_url_root));\n                $urlwithroot = $urlwithouturlroot . DOL_URL_ROOT;\n                $url = $urlwithroot . \'/public/webportal/index.php\' . $entity_qr;\n              }\n              ?>\n              <li>\n                <a href=\"<?php echo $url; ?>\" target=\"new\" class=\"nav-link\"><i class=\"fa-solid fa-user\"></i> <?php echo $weblangs->trans(\"memberArea\"); ?></a>\n              </li>\n            <?php endif; ?>\n            \n            <?php\n                $socialIcons = [\n                  \'facebook\' => \'fa-facebook-f\',\n                  \'twitter\' => \'fa-x-twitter\',\n                  \'linkedin\' => \'fa-linkedin-in\',\n                  \'instagram\' => \'fa-instagram\',\n                  \'youtube\' => \'fa-youtube\',\n                  \'skype\' => \'fa-skype\',\n                  \'whatsapp\' => \'fa-whatsapp\',\n                  \'snapchat\' => \'fa-snapchat-ghost\',\n                ];\n    \n                foreach ($socialIcons as $key => $icon) {\n                  if (!empty($socInfo[$key])) {\n                    echo \'<li class=\"social\"><a href=\"\' . htmlspecialchars($socInfo[$key]) . \'\" target=\"_blank\" class=\"nav-link\"><i class=\"fa-brands \' . $icon . \'\"></i></a></li>\';\n                  }\n                }\n            ?>\n            \n            <li class=\"has-children\">\n                <a href=\"#language-section\" class=\"nav-link\"><?php print trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$_SESSION[\'lang\'][\'shortcode\']]))[0]); ?></a>\n                <!--<a href=\"#language-section\" class=\"nav-link\"><?php print $_SESSION[\'lang\'][\'shortcode\']; ?></a>-->\n                <ul class=\"dropdown lang-menu\">\n                    <?php if (count($available_langs) > 1): ?>\n                        <?php foreach ($available_langs as $key => $value) : ?>\n                            <?php $value = trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$key]))[0]); ?>\n                            <?php if ($key != $_SESSION[\'lang\'][\'shortcode\']): ?>\n                        		<li>\n                                  <form id=\"languageForm-<?php print $key; ?>\" method=\"post\" action=\"#\">\n                                    <input type=\"hidden\" name=\"l\" value=\"<?php print $key; ?>\">\n                                    <a href=\"#\" class=\"nav-link\" title=\"<?php print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"\n                                           const form = document.getElementById(\'languageForm-<?php print $key; ?>\');\n                                           const parser = document.createElement(\'a\');\n                                           parser.href = form.action || window.location.href;\n                                           const params = new URLSearchParams(parser.search);\n                                           params.delete(\'l\');\n                                           parser.search = params.toString();\n                                           form.action = parser.href;\n                                           form.submit();\n                                           return false;\n                                       \">    \n                                      <?php print $value ; ?>\n                                    </a>\n                                  </form>\n                                </li>\n                        	<?php endif ?>\n                        <?php endforeach ?>\n                    <?php endif ?>\n                </ul>\n            </li>\n            \n        </ul>\n        </nav>\n      </div>\n\n\n      <div class=\"col-6 d-inline-block d-xl-none ml-md-0 py-3\" style=\"position: relative; top: 3px;\">\n        <a href=\"#\" class=\"site-menu-toggle js-menu-toggle float-right\">\n            <i class=\"fas fa-bars\"></i>\n        </a>\n      </div>\n\n    </div>\n  </div>\n  \n</header>',0,'2025-04-08 14:20:56',NULL,'2025-05-15 13:06:32',NULL,NULL,'menu','',NULL,'','',NULL,'','',0,NULL,NULL),
(283,42,'news','','news','','','<div class=\"container-fluid causes\">\n    <div class=\"container py-5\">\n        <div class=\"section-title\" id=\"section-news\" style=\"scroll-margin-top: 100px;\">\n          <div class=\"line left-line\"></div>\n          <h1><?php echo $weblangs->trans(\"news\"); ?></h1>\n          <div class=\"line right-line\"></div>\n        </div>\n        <div class=\"row g-4\">\n        <?php \n        $MAXNEWS = GETPOSTINT(\'maxnews\') ? GETPOSTINT(\'maxnews\') : 3;\n        $allblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', 0, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n        $countofblogs = count($allblogs);\n        $arrayofblogs = $websitepage->fetchAll($website->id, \'DESC\', \'date_creation\', $MAXNEWS, 0, array(\'type_container\'=>\'blogpost\', \'status\'=>1, \'lang\'=>\'null, \"\" \'.$_SESSION[\'lang\'][\'shortcode\']));\n        $i=1;\n        foreach($arrayofblogs as $blog)\n        {\n        ?>\n            <div class=\"col-lg-6 col-xl-4 blog-item\" id=\"blog-<?php echo $i; ?>\">\n                <div class=\"causes-item\">\n                    <div class=\"causes-img\">\n                        <?php\n                            $urlforimage = getImageFromHtmlContent($blog->content);\n                            if (empty($urlforimage)) {\n                                $urlforimage = \'medias/image/\'.$website->ref.\'/noimage.jpg\';\n                            }\n                        ?>\n                        <img src=\"<?php echo $urlforimage; ?>\" class=\"img-fluid w-100\" style=\"height: 275px; object-fit: cover;\" alt=\"Image\">\n                    </div>\n                    <div class=\"progress progress-news\">\n                      <div class=\"progress-bar\" role=\"progressbar\" style=\"width: 100%;\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n                      </div>\n                    </div>\n                    <div class=\"causes-content p-4\">\n                        <span class=\"text-body\">\n                            <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($blog->date_creation, \'daytext\', \'tzuser\', $weblangs); ?>\n                            <span class=\"author-span\"><i class=\"fas fa-user me-2\"></i> <?php echo ($blog->author_alias ? $blog->author_alias : \'anonymous\'); ?></span>\n                        </span>\n                        <h4 class=\"py-3\"><?php echo $blog->title; ?></h4>\n                        <hr>\n                        <p class=\"mb-4 truncate3\"><?php echo $blog->description; ?></p>\n                        <a href=\"page.php?ref=<?php print $blog->pageurl; ?>&blog=<?php print $blog->id; ?>\" class=\"btn flat-button text-white py-2 px-3 float-end\"><?php echo $weblangs->trans(\"readMore\"); ?></a>\n                    </div>\n                </div>\n            </div>\n            <?php \n            $i++;\n        }\n        ?>\n        </div>\n        \n        <?php if ($MAXNEWS <= $countofblogs) { ?>\n            <div class=\"row\">\n                <div class=\"col-lg-7 text-center py-5 section-title\">\n                    <div class=\"line left-line left-gradient\"></div>\n                    <a href=\"javascript:void(0);\" class=\"btn flat-button text-white bgmaincolor\" id=\"loadMoreNewsBtn\"><?php echo $weblangs->trans(\"loadMore\"); ?>...</a>\n                    <div class=\"line right-line right-gradient\"></div>\n                </div>\n            </div>\n        <?php } ?>\n        <script>\n            document.getElementById(\'loadMoreNewsBtn\').addEventListener(\'click\', function() {\n            const currentUrl = new URL(window.location.href);\n            const maxNewsParam = <?php echo $MAXNEWS; ?>;\n            const newMaxNews = parseInt(maxNewsParam) + 3;\n            currentUrl.searchParams.set(\'maxnews\', newMaxNews);\n            currentUrl.hash = \'#blog-\' + (parseInt(maxNewsParam) + 1).toString();\n            window.location.href = currentUrl.toString();\n            });\n        </script>\n            \n            \n    </div>\n</div>',0,'2025-04-14 14:16:15',NULL,'2025-05-15 16:03:52',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(284,42,'our-company-is-now-on-dolibarr-erp-crm','','Our company is now on Dolibarr ERP CRM','Like several thousands of companies, our company (DMNA) has moved all its information system to Dolibarr ERP CRM. More than 20 applications have been replaced by only one.','','<article>\n    <div id=\"article\" contenteditable=\"true\">\n        Like several thousands of companies, our company (<?php echo $mysoc->name ?>) has moved all its information system to <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM</a>. More than 20 applications have been replaced by only one, easier to use and fully integrated.\n        This is an important step in improving all of our services.\n        \n        <br><br><br>\n        \n        <figure>\n        <img src=\"/viewimage.php?modulepart=medias&file=image/exemple/background_dolibarr.webp\">\n        <br><br>\n        <figcaption style=\"opacity: 0.5; text-align: center;\">Screenshot of our new Open Source solution</figcaption>\n        </figure>\n    </div>\n</article>',1,'2025-04-14 15:39:29',NULL,'2025-05-07 08:24:39',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(285,42,'our-new-web-site-has-been-launched','','Our new web site has been launched','Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers','','<article>\n    <div id=\"article\" contenteditable=\"true\">\n            Our new website, based on Dolibarr CMS, has been launched. <br>\n            Now it is modern and directly integrated with the internal management tools of the company. Many new online services will be available for our customers...\n            <br><br>\n            <figure>\n            <img src=\"/viewimage.php?modulepart=medias&file=image/test5/5.jpg\">\n            <br><br>\n            <figcaption style=\"opacity: 0.5; text-align: center;\">Theme of our new web site</figcaption>\n            </figure>\n    </div>\n</article>',1,'2025-04-08 14:18:29',NULL,'2025-05-07 08:25:04',NULL,NULL,'blogpost','',NULL,'','',NULL,'','',0,NULL,NULL),
(286,42,'overview','','overview','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Our association is committed to making a positive impact by supporting initiatives that contribute to collective well-being and a sustainable future. We emphasize collaboration and shared values to move forward together toward common goals.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Foster cooperation and solidarity among members.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourage responsible and sustainable practices.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Support projects that have a positive impact on society.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promote inclusion and equal opportunities.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Raise awareness about social, environmental, or cultural issues.</p>\n              \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-08 14:30:11',NULL,'2025-05-06 14:35:02',NULL,NULL,'banner','en',NULL,'','',NULL,'','',0,NULL,NULL),
(287,42,'overview-de','','overview-de','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Unser Verein setzt sich dafür ein, einen positiven Beitrag zu leisten, indem er Initiativen unterstützt, die zum gemeinsamen Wohl und zu einer nachhaltigen Zukunft beitragen. Wir legen Wert auf Zusammenarbeit und gemeinsame Werte, um gemeinsam auf gemeinsame Ziele hinzuarbeiten.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Zusammenarbeit und Solidarität unter den Mitgliedern.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Ermutigung zu verantwortungsbewusstem und nachhaltigem Handeln.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Unterstützung von Projekten mit positivem Einfluss auf die Gesellschaft.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Förderung von Inklusion und Chancengleichheit.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilisierung für soziale, ökologische und kulturelle Themen.</p>\n            \n              <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\">Tritt uns bei</a>\n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:27:14',NULL,'2025-05-06 14:35:29',NULL,NULL,'page','de',286,'','',NULL,'','',0,NULL,NULL),
(288,42,'overview-es','','overview-es','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Misión y Visión</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Nuestra asociación está comprometida con generar un impacto positivo apoyando iniciativas que contribuyan al bienestar colectivo y a un futuro sostenible. Damos prioridad a la colaboración y a los valores compartidos para avanzar juntos hacia objetivos comunes.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Fomentar la cooperación y la solidaridad entre los miembros.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover prácticas responsables y sostenibles.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Apoyar proyectos que generen un impacto positivo en la sociedad.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promover la inclusión y la igualdad de oportunidades.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Concienciar sobre cuestiones sociales, medioambientales y culturales.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:30:19',NULL,'2025-05-06 14:36:01',NULL,NULL,'page','es',286,'','',NULL,'','',0,NULL,NULL),
(289,42,'overview-fr','','overview-fr','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Mission & Vision</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                Notre association s\'engage à avoir un impact positif en soutenant des initiatives qui contribuent au bien-être collectif et à un avenir durable. Nous mettons l\'accent sur la collaboration et les valeurs partagées pour avancer ensemble vers des objectifs communs.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Favoriser la coopération et la solidarité entre les membres.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Encourager des pratiques responsables et durables.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Soutenir des projets ayant un impact positif sur la société.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promouvoir l\'inclusion et l\'égalité des chances.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibiliser aux enjeux sociaux, environnementaux ou culturels.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:06:31',NULL,'2025-05-06 14:36:27',NULL,NULL,'page','fr',286,'','',NULL,'','',0,NULL,NULL),
(290,42,'overview-it','','overview-it','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n?>\n<div class=\"container-fluid volunteer\">\n    <div class=\"container py-5\">\n\n        <div class=\"row g-5\">\n            \n            <div class=\"col-lg-9\">\n\n              <div class=\"section-title\" id=\"section-overview\" style=\"scroll-margin-top: 100px;\">\n                <div class=\"line left-line\"></div>\n                <h1>Missione e Visione</h1>\n                <div class=\"line right-line\"></div>\n              </div>\n            \n              <p class=\"mb-4\">\n                La nostra associazione si impegna a generare un impatto positivo sostenendo iniziative che contribuiscano al benessere collettivo e a un futuro sostenibile. Diamo importanza alla collaborazione e ai valori condivisi per avanzare insieme verso obiettivi comuni.\n              </p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere la cooperazione e la solidarietà tra i membri.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Incentivare pratiche responsabili e sostenibili.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Sostenere progetti con un impatto positivo sulla società.</p>\n              <p class=\"text-dark\"><i class=\"fa fa-check secondary-color me-2\"></i> Promuovere l\'inclusione e le pari opportunità.</p>\n              <p class=\"text-dark mb-5\"><i class=\"fa fa-check secondary-color me-2\"></i> Sensibilizzare su temi sociali, ambientali e culturali.</p>\n            \n                <?php if (isModEnabled(\'member\') && getDolGlobalInt(\'MEMBER_ENABLE_PUBLIC\')): ?>\n                    <a href=\"<?php print $socInfo[\'subscription_link\']; ?>\" target=\"new\" class=\"btn flat-button text-white py-2 px-3\"><?php echo $weblangs->trans(\"joinUs\"); ?></a>\n                <?php endif; ?>\n            </div>\n\n\n\n\n            \n            <?php includeContainer(\'highlights\'); ?>\n        </div>\n    </div>\n</div>',0,'2025-04-14 13:31:59',NULL,'2025-05-06 14:36:50',NULL,NULL,'page','it',286,'','',NULL,'','',0,NULL,NULL),
(291,42,'page','','page','','','<?php\nincludeContainer(\'_library_lib.php\', 1);\nsetSessionLang();\n$socInfo = getSocInfo();\n\n$pageId = GETPOSTINT(\'blog\');\n$eventId = GETPOSTINT(\'id\');\n$donationForId = GETPOSTINT(\'donation\');\n\nif ((!$pageId && !$eventId && !$donationForId) || ($pageId && $eventId)) {\n    redirectToContainer(\'index\');\n}\n\n$showEventGoalRaised = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\') && isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_GOAL_RAISED_AMOUNTS\')) {\n    $showEventGoalRaised = 1;\n}\n\n$showDonationLink = 0;\nif (isModEnabled(\'don\') && getDolGlobalString(\'DONATION_ENABLE_PUBLIC\')) {\n    $showDonationLink = 1;\n}\n\n$showParticipateLink = 0;\nif (isModEnabled(\'eventorganization\') && getDolGlobalString(\'WS_\'.strtoupper($website->ref).\'_\' . \'SHOW_EVENT_PARTICIPATE_LINK\')) {\n    $showParticipateLink = 1;\n}\n\n$data = array();\nif ($pageId) {\n    $type = \"blogpage\";\n    $blog = $websitepage->fetch($pageId);\n    if ($blog < 0) {\n        redirectToContainer(\'index\');\n    } else {\n        $data[\'date_creation\'] = $websitepage->date_creation;\n        $data[\'author_alias\'] = ($websitepage->author_alias ? $websitepage->author_alias : \'\');\n        $data[\'title\'] = $websitepage->title;\n        $data[\'content\'] = $websitepage->content;\n        $data[\'budget_amount\'] = 0;\n        $data[\'collected\'] = 0;\n        $data[\'type\'] = $type;\n    }\n}\n\nif ($eventId) {\n    if (!isModEnabled(\'eventorganization\') || getDolGlobalInt(\'WS_\'.strtoupper($website->ref).\'_\' . \'DISABLE_EVENTS_SECTION\')) {\n        redirectToContainer(\'index\');\n    }\n    $type = \"eventpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $eventId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = $obj->description;\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\nif ($donationForId) {\n    $type = \"donationpage\";\n    \n    $sql = \"SELECT p.rowid, p.title, p.description, p.datec, p.dateo, p.datee, p.budget_amount, p.fk_statut \n        FROM \".MAIN_DB_PREFIX.\"projet as p \n        WHERE p.fk_statut IN (0,1) AND p.usage_organize_event IN (1) AND p.rowid = \" . $donationForId;\n        \n    $resql = $db->query($sql);\n    if ($resql) {\n        $obj = $db->fetch_object($resql);\n        $collected = 0;\n        if ($obj->budget_amount > 0) {\n            $sqlCollected = \"SELECT SUM(amount) as total_collected \n                             FROM \".MAIN_DB_PREFIX.\"don \n                             WHERE fk_projet = \".$obj->rowid;\n            $resqlCollected = $db->query($sqlCollected);\n            \n            if ($resqlCollected) {\n                $objCollected = $db->fetch_object($resqlCollected);\n                $collected = $objCollected->total_collected ? $objCollected->total_collected : 0;\n            }\n        }\n        \n        $data[\'date_creation\'] = $obj->datec;\n        $data[\'author_alias\'] = \"\";\n        $data[\'title\'] = $obj->title;\n        $data[\'content\'] = \'<div id=\"iframe-container\"><iframe id=\"donationFrame\" frameborder=\"0\" style=\"overflow:hidden;width:100%;height:100%;\" src=\"\' . $socInfo[\'link_donation\'] . \'?project_id=\' . urlencode($donationForId) . \'&ws=\' . urlencode($website->id) . \'\"\n></iframe></div>\';\n        $data[\'budget_amount\'] = $obj->budget_amount;\n        $data[\'collected\'] = $collected;\n        $data[\'type\'] = $type;\n       \n    } else {\n        redirectToContainer(\'index\');\n    }\n}\n\n/*print \"<pre>\";\nprint_r ($data);\nprint \"</pre>\";*/\ndefine(\"__SEO_PAGE_TITLE__\", $data[\'title\']); \n?>\n    \n<?php includeContainer(\'navbar\'); ?>\n\n<div class=\"js-sticky-header-blog\"></div>\n\n<section class=\"slogan has-section-divider\" style=\"min-height: 190px;\">\n    <div class=\"container d-flex justify-content-center align-items-center \" style=\"min-height: 190px;\">\n        <div class=\"col-lg-12 text-center breadcrumb-box\">\n            \n            <ol class=\"breadcrumb justify-content-center mb-3 lead\">\n				<li class=\"breadcrumb-item\"><a href=\"/\" class=\"text-decoration-none\"><?php echo $weblangs->trans(\"home\"); ?></a></li>\n				<li class=\"breadcrumb-item\">\n				    <a href=\"/events\" class=\"text-decoration-none\">\n				        <?php echo $weblangs->trans($data[\'type\'] === \"blogpage\" ? \"news\" : \"actionsEvents\"); ?>\n				    </a>\n				</li>\n			</ol>\n			\n            <h1 class=\"mb-3\"><?php print $data[\'title\']; ?></h1>\n            <span>\n                <i class=\"fas fa-calendar-alt me-2\"></i> <?php echo dol_print_date($data[\'date_creation\'], \'daytext\', \'tzuser\', $weblangs); ?>\n                \n                <?php if ($data[\'type\'] == \"blogpage\") { ?>\n                    <span class=\"author-span ms-3\"><i class=\"fas fa-user me-2\"></i> \n                        <?php \n                            if ($data[\'author_alias\']) { \n                                echo $data[\'author_alias\']; \n                            } else { \n                                echo $weblangs->trans(\"anonymous\");\n                            } \n                        ?> \n                    </span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showEventGoalRaised) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fas fa-chart-bar secondary-color me-2\"></i><?php echo $weblangs->trans(\"goal\"); ?>: <?php print price(price2num($data[\'budget_amount\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n                \n                <?php if ($data[\'budget_amount\'] && $showEventGoalRaised) { ?>\n                    <span class=\"text-white ms-3\"><i class=\"fa fa-thumbs-up secondary-color me-2\"></i><?php echo $weblangs->trans(\"raised\"); ?>: <?php print price(price2num($data[\'collected\'], \'MT\'), 1, \'\', 1, -1); ?> €</span>\n                <?php } ?>\n            </span>\n        </div>\n    </div>\n    <svg class=\"section-divider\" viewBox=\"0 0 1920 60\" aria-hidden=\"true\"><path data-theme=\"softSecondary\" fill=\"white\" d=\"M0,80.75H1920V45.833H1742.083a80.491,80.491,0,0,1,12.863-1.55c5.2-.26,17.24-.3,24.153-.24,26.69.222,54.377,1.094,79.341.96,19.287-.1,37.1-.372,53.573-.788L1920,44V34.078l-6.614.216-9.221.256c-6.252.147-12.7.249-19.265.32-13.132.14-26.739.15-40.206.125-26.935-.052-53.313-.247-74.22.168-14.367-1.4-32.582-.756-48.293-1.92-10.145.509-20.876.936-24.149,2.4-16.09-.266-37.611,2.532-50.019.479V34.684c-10.959-2.291-33.371-1.869-48.292-3.84-15.861-.512-26.214,1.347-39.671,1.92-7.032.178-5.941-.773-13.8-.481-40.751-.071-41.131,5.477-62.087,8.16-4.569-5.691-47.085-5.126-77.622-5.04-2.333-4.154-22.643-5.808-50.015-6.479-4.677-2.069-17.763-2.969-22.423-5.04-4.7-.175-3.474.477-6.9.479-11.485-2.964-40.092-2.449-63.813-3.36-23.312.6-29.4,3.589-55.195,3.841-8.3-3.783-56.5-4.561-84.513-3.361-.316-1.857-5.682-3.862-20.7-4.8-2.193-.137-6.78.122-10.352,0-16.331-.564-22.974-3.145-39.671-1.441-22.812-1.938-73.831-3.919-98.311-.719-4.315-2.2-15.369-3.462-20.7-5.521-23.122-.714-41.26-2.815-65.54-2.64-13.5,1-29.918,1.6-39.671,3.12.27,1.317-1.305,2.38-6.9,2.88-35.562-1.333-83.117-2.545-93.139,2.88-14.338-.314-8.341,2.2-22.423,1.92-5.17-.16-2.615-1.4-6.9-1.68-36.327-1.894-80.653-1.762-100.041,2.161-12.433-1.631-21.648-3.708-36.221-5.04-13.359.1-36.33-.325-48.293-1.2-32.483.6-42.463,4.331-53.471,7.92-25.227-.147-43.752,2.274-58.641,4.321-11.966-1.189-27.56-.426-39.67-1.441-19.514,1.284-40.772,2.328-53.468,4.561C301.584,31.04,294,33.888,283.7,37.8c-15.047-.774-19.865-3.5-36.221-4.321-10.453-.522-37.12-1.01-48.3-.959-10.184.046-17.188,1.062-27.595.719-18.244,2.022-31.516,4.736-46.57,7.2-3.726,2.091-9.8,3.854-17.5,5.39H4.061c-.734-1.281-1.512-2.592-2.344-3.949-.546-.09-1.13-.175-1.717-.26Z\"/></svg>\n  \n</section>\n        \n<div class=\"container mt-5\">\n	<div class=\"row\">\n\n		<div class=\"<?php echo $data[\'type\'] === \'donationpage\' ? \'col-md-12\' : \'col-md-8\'; ?>\" style=\"min-height:1200px;\">\n			<article id=\"content\">\n				<?php print html_entity_decode($data[\'content\']); ?>\n			</article>\n		</div>\n		\n		<?php if ($data[\'type\'] !== \"donationpage\") { ?>\n		    <?php includeContainer(\'sidebar\'); ?>\n		<?php } ?>\n		\n	</div>\n</div>\n\n<?php includeContainer(\'footer\'); ?>',0,'2025-04-16 10:10:24',NULL,'2025-05-07 08:31:33',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
