CREATE TABLE `llx_societe_remise` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT 0.000,
  `note` text DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_societe_remise`
--


--
-- Table structure for table `llx_societe_remise_except`
--

CREATE TABLE `llx_societe_remise_except` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `discount_type` int(11) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `tva_tx` double(6,3) NOT NULL DEFAULT 0.000,
  `fk_user` int(11) NOT NULL,
  `fk_facture_line` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `description` text NOT NULL,
  `multicurrency_amount_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_invoice_supplier_line` int(11) DEFAULT NULL,
  `fk_invoice_supplier` int(11) DEFAULT NULL,
  `fk_invoice_supplier_source` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  KEY `fk_soc_remise_fk_invoice_supplier_line` (`fk_invoice_supplier_line`),
  KEY `fk_societe_remise_fk_invoice_supplier_source` (`fk_invoice_supplier`),
  KEY `idx_societe_remise_except_discount_type` (`discount_type`),
  CONSTRAINT `fk_soc_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `llx_facture_fourn_det` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_societe_remise_except`
--

INSERT INTO `llx_societe_remise_except` VALUES
(2,1,19,0,'2015-03-19 09:36:15',10.00000000,1.25000000,11.25000000,12.500,1,NULL,NULL,NULL,'hfghgf',0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,'',NULL,NULL),
(14,1,17,1,'2020-01-01 22:06:30',79.16444000,9.89556000,89.06000000,12.500,12,NULL,NULL,NULL,'(CREDIT_NOTE)',0.00000000,0.00000000,0.00000000,NULL,NULL,27,'',NULL,NULL),
(15,1,19,0,'2020-01-16 02:34:47',20.50000000,0.00000000,20.50000000,0.000,12,1065,NULL,224,'(DEPOSIT)',20.50000000,0.00000000,20.50000000,NULL,NULL,NULL,'',NULL,NULL),
(16,1,1,0,'2020-01-19 14:49:41',10.00000000,1.96000000,11.96000000,19.600,12,NULL,NULL,NULL,'111',10.00000000,1.96000000,11.96000000,NULL,NULL,NULL,'',NULL,NULL),
(19,1,1,0,'2020-01-19 15:16:27',48.60000000,1.94000000,50.54000000,4.000,12,NULL,NULL,228,'(DEPOSIT)',48.60000000,1.94000000,50.54000000,NULL,NULL,NULL,'',NULL,NULL),
(21,1,10,0,'2024-12-18 14:53:53',10.00000000,0.00000000,10.00000000,0.000,12,1133,NULL,243,'(DEPOSIT)',10.00000000,0.00000000,10.00000000,NULL,NULL,NULL,'',NULL,NULL),
(22,1,33,0,'2024-12-18 15:21:37',10.00000000,0.40000000,10.40000000,4.000,12,1136,NULL,246,'(DEPOSIT)',10.00000000,0.40000000,10.40000000,NULL,NULL,NULL,'',NULL,NULL),
(23,1,1,1,'2024-12-30 19:27:16',10.00000000,0.00000000,10.00000000,0.000,12,NULL,NULL,NULL,'fsdfsd',10.00000000,0.00000000,10.00000000,NULL,NULL,NULL,'',NULL,NULL),
(27,1,2,0,'2025-04-09 17:40:46',80.00000000,0.00000000,80.00000000,0.000,12,NULL,NULL,2,'(EXCESS RECEIVED)',0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,'',NULL,NULL);

--
-- Table structure for table `llx_societe_remise_supplier`
--

CREATE TABLE `llx_societe_remise_supplier` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_supplier` double(6,3) NOT NULL DEFAULT 0.000,
  `note` mediumtext DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_societe_remise_supplier`
--

INSERT INTO `llx_societe_remise_supplier` VALUES
(1,1,1,'2018-04-06 18:21:00','2018-04-06 20:21:00',12,6.000,'llll');

--
-- Table structure for table `llx_societe_rib`
--

CREATE TABLE `llx_societe_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type` varchar(32) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(180) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(20) DEFAULT NULL,
  `bic_intermediate` varchar(11) DEFAULT NULL,
  `iban_prefix` varchar(100) DEFAULT NULL,
  `cci` varchar(100) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `default_rib` smallint(6) NOT NULL DEFAULT 0,
  `state_id` int(11) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `currency_code` varchar(3) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `rum` varchar(32) DEFAULT NULL,
  `date_rum` date DEFAULT NULL,
  `frstrecur` varchar(16) DEFAULT 'FRST',
  `import_key` varchar(14) DEFAULT NULL,
  `last_four` varchar(4) DEFAULT NULL,
  `card_type` varchar(255) DEFAULT NULL,
  `cvn` varchar(255) DEFAULT NULL,
  `exp_date_month` int(11) DEFAULT NULL,
  `exp_date_year` int(11) DEFAULT NULL,
  `country_code` varchar(10) DEFAULT NULL,
  `approved` int(11) DEFAULT 0,
  `email` varchar(255) DEFAULT NULL,
  `ending_date` date DEFAULT NULL,
  `max_total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `preapproval_key` varchar(255) DEFAULT NULL,
  `starting_date` date DEFAULT NULL,
  `total_amount_of_all_payments` double(24,8) DEFAULT NULL,
  `stripe_card_ref` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  `comment` varchar(255) DEFAULT NULL,
  `ipaddress` varchar(68) DEFAULT NULL,
  `stripe_account` varchar(128) DEFAULT NULL,
  `date_signature` datetime DEFAULT NULL,
  `online_sign_ip` varchar(48) DEFAULT NULL,
  `online_sign_name` varchar(64) DEFAULT NULL,
  `ext_payment_site` varchar(128) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_societe_rib` (`entity`,`label`,`fk_soc`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_societe_rib`
--

INSERT INTO `llx_societe_rib` VALUES
(1,1,'ban',19,'2017-02-21 15:50:32','2017-02-21 11:53:08','Morgan Bank','Morgan Bank','','','','','PSPBFIHH',NULL,'ES80 2310 0001 1800 0001 2345',NULL,'Royal via,\r\nMadrid','Mr Esposito','10 via ferrata,\r\nMadrid',1,NULL,NULL,NULL,NULL,NULL,'RUM1301-0008-0',NULL,'FRST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2,1,'ban',10,'2023-02-06 14:28:24','2025-04-08 08:59:57','NLTechno','aaaa','','','','','LIABLT2XXXX',NULL,'FR76 1223 9000 0740 4608 0100 091',NULL,'','','',1,NULL,NULL,NULL,'sepamandate','societe/10/Mandat SEPA 10-NLTechno-UMR-CU1212-0005-2-1675704504.pdf','UMR-CU1212-0005-2-1675704504',NULL,'FRST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'',1,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL),
(3,1,'ban',33,'2023-02-21 21:33:04','2023-02-22 00:33:04','aaainlux','aaa','','','','','aaa',NULL,'aaa',NULL,'','','',1,NULL,NULL,NULL,NULL,NULL,'UMR-2302212133-3-CU2212-00026',NULL,'FRST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'',1,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL),
(4,1,'card',33,'2023-02-21 22:26:00','2023-02-22 01:26:00','aa','',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,'aa',NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'',1,2032,'FR',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(5,1,'ban',1,'2023-03-08 06:41:28','2025-06-26 22:04:48','Indian SAS RIB','dfgdfgfd','','','','','LIABLT2XXXX',NULL,'dolcrypt:AES-256-CTR:6c5e3bcfba8c0873:sGWo/KYhvG8bw/oDC1uxal95cpvQLuKdzDGk86DYpdV2',NULL,'','','',1,NULL,NULL,NULL,NULL,NULL,'RUM-2303080641-5-CU1212-0007',NULL,'FRST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'',1,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL),
(6,1,'ban',39,'2025-01-03 16:11:35','2025-01-03 15:11:37','test','test','','','','','LIABLT2XXXX',NULL,'dolcrypt:AES-256-CTR:d0fbb5f8f1882d9f:QruV8ONPL6fQK4ew6aDzI4VSdBU=',NULL,'','','',1,NULL,NULL,NULL,NULL,NULL,'8ANKF3PEOTZ53TR4','2025-01-03','RCUR',NULL,NULL,'sepa_debit',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'pm_1QdCXECxfvxGwHdwPnN4agJk',0,'mandate_1QdCXECxfvxGwHdwIdo2yLTd',NULL,'cus_test@sk_test_xxx',NULL,NULL,NULL,'StripeTest',NULL),
(7,1,'ban',39,'2025-01-03 16:21:39','2025-01-03 15:21:56','Bank Testldr1','test2','','','','','',NULL,'dolcrypt:AES-256-CTR:2143648571f74d32:ohNxpDnLCHNMP97+7XVn5i7zLNc=',NULL,'','','',0,NULL,NULL,NULL,NULL,NULL,'SDB8CASXISKK0R7L','2025-01-03','FRST',NULL,NULL,'sepa_debit',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'pm_1QdChDCxfvxGwHdw57zEzGtC',1,'mandate_1QdChDCxfvxGwHdwvIt0244D',NULL,'cus_test@sk_test_xxx',NULL,NULL,NULL,'StripeTest',NULL),
(9,1,'ban',62,'2025-06-26 21:41:42','2025-06-26 21:41:42','Banque ddd','Banque ddd','','','','','aaa',NULL,'dolcrypt:AES-256-CTR:ef6a60cae760f8d1:Q8YW',NULL,'','','',1,NULL,NULL,NULL,NULL,NULL,'RUM-2506262141-9-CU2506-0003',NULL,'FRST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,'',1,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_socpeople`
--

CREATE TABLE `llx_socpeople` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` text DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `birthday` date DEFAULT NULL,
  `poste` varchar(255) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `phone_perso` varchar(30) DEFAULT NULL,
  `phone_mobile` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `socialnetworks` text DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `priv` smallint(6) NOT NULL DEFAULT 0,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `fk_stcommcontact` int(11) NOT NULL DEFAULT 0,
  `no_email` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint(4) NOT NULL DEFAULT 1,
  `role_list` varchar(255) DEFAULT NULL,
  `geolat` double(24,8) DEFAULT NULL,
  `geolong` double(24,8) DEFAULT NULL,
  `geopoint` point DEFAULT NULL,
  `georesultcode` varchar(16) DEFAULT NULL,
  `name_alias` varchar(255) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `ip` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`),
  KEY `idx_socpeople_lastname` (`lastname`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_socpeople`
--

INSERT INTO `llx_socpeople` VALUES
(1,'2012-07-08 14:26:14','2025-03-24 20:41:09',1,1,NULL,'MR','Indra','UpdatedFirstName','','','',297,117,'2012-07-08','Project leader','','','','','','[]','',0,'',0,0,1,12,'Met during a congress at Dubai','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(2,'2012-07-08 22:44:50','2019-11-28 11:52:58',NULL,1,NULL,'MR','Freeman','Public','','','',200,11,NULL,'','','','','','','[]',NULL,0,NULL,0,0,1,1,'A friend that is a free contact not linked to any company',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(3,'2012-07-08 22:59:02','2019-11-28 11:52:58',NULL,1,NULL,'MR','Mywife','Nicy','','','',NULL,11,'1980-10-03','','','','','','','[]',NULL,1,NULL,0,0,1,12,'This is a private contact','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(4,'2012-07-09 00:16:58','2019-11-28 11:52:58',6,1,NULL,'MR','Rotchield','Evan','','','',NULL,6,NULL,'Bank director','','','','','','[]',NULL,0,NULL,0,0,1,1,'The bank director',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(6,'2013-08-01 02:41:26','2025-05-05 14:48:18',17,1,NULL,'','Bookkeeper','Bob','','','',NULL,NULL,NULL,'book keeper','','','','','bbookkeeper@example.com','{\"skype\":\"skypebbookkeeper\"}','',0,'',0,0,1,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(7,'2018-07-30 16:11:06','2019-11-28 11:52:58',NULL,1,'','MR','Dad','','','','',NULL,14,'1967-09-04','','','','','','','[]','',1,NULL,0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(8,'2018-07-30 16:13:03','2019-11-28 11:52:58',NULL,1,'','MLE','Mom','','','','',NULL,14,NULL,'','','','','','','[]','',1,NULL,0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(9,'2018-07-30 16:14:41','2019-11-28 11:52:58',NULL,1,'','MR','Francky','','','89455','Virigia',NULL,205,'1980-07-09','Baker','555-98989898','','','','francky@example.com','[]','',0,NULL,0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(10,'2018-07-30 16:26:22','2025-02-10 19:26:55',10,1,NULL,'','Destailleur','Laurent','','','',NULL,NULL,'1972-10-10','Dolibarr project leader','','','','','ldestailleur@example.com','[]','ldestailleur_200x200.jpg',0,'',0,0,NULL,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(11,'2017-05-12 13:16:36','2019-11-28 11:52:58',11,1,'','MR','Smith','Laurent','45 Big road','897','Seattle',NULL,11,NULL,'Director','','','','','','[]','ldestailleur_200x200.png',0,NULL,0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(12,'2017-05-12 13:19:31','2019-11-28 11:52:58',11,1,'','MR','Einstein','','','','',NULL,11,NULL,'Genius','333444555','','','','genius@example.com','[]','Einstein.jpg',0,NULL,0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(14,'2025-03-24 20:41:09','2025-03-24 20:41:09',NULL,1,NULL,'','testRestContact','testRestContact261466044','','','',NULL,NULL,NULL,'','','','','','','null',NULL,0,'',0,0,12,12,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(15,'2025-03-24 20:42:07','2025-03-24 20:42:07',NULL,1,NULL,'','testRestContact','testRestContact1651950284','','','',NULL,NULL,NULL,'','','','','','','null',NULL,0,'',0,0,12,12,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(16,'2025-03-25 19:02:11','2025-03-25 19:02:11',3,1,NULL,'','Contact span1','','','','',NULL,4,NULL,'','','','','','','[]',NULL,0,'',0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(17,'2025-03-25 19:02:19','2025-03-25 19:02:19',3,1,NULL,'','Contact span2','','','','',NULL,4,NULL,'','','','','','','[]',NULL,0,'',0,0,12,12,'','',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL);

--
-- Table structure for table `llx_socpeople_extrafields`
--

CREATE TABLE `llx_socpeople_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `ccc` varchar(255) DEFAULT NULL,
  `ddd` datetime DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_socpeople_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_socpeople_extrafields`
--

INSERT INTO `llx_socpeople_extrafields` VALUES
(1,'2025-03-25 22:37:24',6,NULL,'aazz','2025-03-03 23:00:00');

--
-- Table structure for table `llx_stock_mouvement`
--

CREATE TABLE `llx_stock_mouvement` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(64) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_projet` int(11) NOT NULL DEFAULT 0,
  `inventorycode` varchar(128) DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_stock_mouvement`
--

INSERT INTO `llx_stock_mouvement` VALUES
(1,'2012-07-08 22:43:51','2012-07-09 00:43:51',2,2,1000,0.00000000,0,1,'Correct stock',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(3,'2012-07-10 22:56:18','2012-07-11 00:56:18',4,2,500,0.00000000,0,1,'Init',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(4,'2012-07-10 23:02:20','2012-07-11 01:02:20',4,2,500,0.00000000,0,1,'',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(5,'2012-07-11 16:49:44','2012-07-11 18:49:44',4,1,2,10.00000000,3,1,'',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(6,'2012-07-11 16:49:44','2012-07-11 18:49:44',1,1,4,0.00000000,3,1,'',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(7,'2015-01-19 17:22:48','2015-01-19 18:22:48',11,1,-1,0.00000000,2,1,'Facture cr&eacute;&eacute;e dans DoliPOS',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(8,'2015-01-19 17:22:48','2015-01-19 18:22:48',4,1,-1,5.00000000,2,1,'Facture cr&eacute;&eacute;e dans DoliPOS',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(9,'2015-01-19 17:22:48','2015-01-19 18:22:48',1,1,-2,0.00000000,2,1,'Facture cr&eacute;&eacute;e dans DoliPOS',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(10,'2015-01-19 17:31:10','2015-01-19 18:31:10',2,1,-1,0.00000000,2,1,'Facture cr&eacute;&eacute;e dans DoliPOS',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(11,'2015-01-19 17:31:58','2015-01-19 18:31:58',2,1,-1,0.00000000,2,1,'Facture cr&eacute;&eacute;e dans DoliPOS',NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),
(12,'2018-07-30 13:39:31','2018-07-30 17:39:31',10,2,50,0.00000000,0,12,'Stock correction for product COMP-XP4523',0,'',NULL,0,NULL,'5599887766452',NULL,NULL,NULL),
(13,'2018-07-30 13:40:12','2018-07-30 17:40:12',10,2,60,0.00000000,0,12,'Stock correction for product COMP-XP4523',0,'',NULL,0,NULL,'4494487766452',NULL,NULL,NULL),
(14,'2018-07-30 13:40:39','2018-07-30 17:40:39',10,2,-35,0.00000000,1,12,'Stock transfer of product COMP-XP4523 into another warehouse',0,'',NULL,0,'160730174015','5599887766452',NULL,NULL,NULL),
(15,'2018-07-30 13:40:39','2018-07-30 17:40:39',10,1,35,0.00000000,0,12,'Stock transfer of product COMP-XP4523 into another warehouse',0,'',NULL,0,'160730174015','5599887766452',NULL,NULL,NULL),
(16,'2017-02-15 23:58:08','2017-02-16 03:58:08',10,1,-1,100.00000000,2,12,'Exp&eacute;dition SH1702-0002 valid&eacute;e',3,'shipping',NULL,0,NULL,'5599887766452',NULL,NULL,NULL),
(17,'2017-02-16 00:12:09','2017-02-16 04:12:09',10,1,1,0.00000000,3,12,'Exp&eacute;dition SH1702-0002 supprim&eacute;e',0,'',NULL,0,NULL,'5599887766452',NULL,NULL,NULL),
(18,'2020-01-02 20:57:29','2020-01-03 00:57:29',25,1,50,0.00000000,0,12,'Stock correction for product POS-APPLE',0,'',NULL,0,'200103005654',NULL,NULL,NULL,NULL),
(23,'2020-01-06 01:44:30','2020-01-06 05:44:30',25,1,-12,0.00000000,2,12,'Production MO1912-0002 - 2020-01-06 05:26:49',0,'',NULL,0,'MO1912-0002_20200106052649',NULL,NULL,NULL,NULL),
(24,'2020-01-06 01:44:30','2020-01-06 05:44:30',4,2,3,0.00000000,3,12,'Production MO1912-0002 - 2020-01-06 05:26:49',0,'',NULL,0,'MO1912-0002_20200106052649',NULL,'2020-01-06',NULL,NULL),
(25,'2020-01-06 01:54:05','2020-01-06 05:54:05',25,1,-2,0.00000000,2,12,'Production MO1912-0002 - 2020-01-06 05:53:52',0,'',NULL,0,'MO1912-0002_20200106055352',NULL,NULL,NULL,NULL),
(26,'2020-01-06 01:54:05','2020-01-06 05:54:05',4,2,3,0.00000000,3,12,'Production MO1912-0002 - 2020-01-06 05:53:52',0,'',NULL,0,'MO1912-0002_20200106055352',NULL,'2020-01-06',NULL,NULL),
(27,'2020-01-06 02:44:49','2020-01-06 06:44:49',25,1,-1,0.00000000,2,12,'Production MO2001-0003 - 2020-01-06 06:44:37',0,'',NULL,0,'MO2001-0003',NULL,NULL,NULL,NULL),
(28,'2020-01-06 02:44:49','2020-01-06 06:44:49',4,1,1,0.00000000,3,12,'Production MO2001-0003 - 2020-01-06 06:44:37',0,'',NULL,0,'MO2001-0003',NULL,'2020-01-06',NULL,NULL),
(29,'2020-01-06 02:46:03','2020-01-06 06:46:03',25,1,-1,0.00000000,2,12,'Production MO2001-0003 - 2020-01-06 06:45:53',0,'',NULL,0,'MO2001-0003',NULL,NULL,NULL,NULL),
(30,'2020-01-06 02:46:03','2020-01-06 06:46:03',4,1,1,0.00000000,3,12,'Production MO2001-0003 - 2020-01-06 06:45:53',0,'',NULL,0,'MO2001-0003',NULL,'2020-01-06',NULL,NULL),
(31,'2020-01-06 02:48:22','2020-01-06 06:48:22',25,1,-1,0.00000000,2,12,'Production MO2001-0003 - 2020-01-06 06:48:11',0,'',NULL,0,'MO2001-0003',NULL,NULL,NULL,NULL),
(32,'2020-01-06 02:48:22','2020-01-06 06:48:22',4,1,1,0.00000000,3,12,'Production MO2001-0003 - 2020-01-06 06:48:11',0,'',NULL,0,'MO2001-0003',NULL,'2020-01-06',NULL,NULL),
(33,'2020-01-06 02:50:05','2020-01-06 06:50:05',25,1,-1,0.00000000,2,12,'Production MO2001-0003 - 2020-01-06 06:49:57',0,'',NULL,0,'MO2001-0003',NULL,NULL,NULL,NULL),
(34,'2020-01-06 02:50:05','2020-01-06 06:50:05',4,1,1,0.00000000,3,12,'Production MO2001-0003 - 2020-01-06 06:49:57',0,'',NULL,0,'MO2001-0003',NULL,'2020-01-06',NULL,NULL),
(35,'2020-01-07 16:25:02','2020-01-07 20:25:02',25,1,-2,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 20:24:49',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(36,'2020-01-07 16:25:02','2020-01-07 20:25:02',4,2,1,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 20:24:49',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(37,'2020-01-07 17:12:37','2020-01-07 21:12:37',25,1,0,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 21:12:26',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(38,'2020-01-07 17:12:37','2020-01-07 21:12:37',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:12:26',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(39,'2020-01-07 17:13:00','2020-01-07 21:13:00',25,1,0,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 21:12:58',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(40,'2020-01-07 17:13:00','2020-01-07 21:13:00',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:12:58',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(41,'2020-01-07 17:13:49','2020-01-07 21:13:49',25,1,0,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 21:12:58',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(42,'2020-01-07 17:13:49','2020-01-07 21:13:49',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:12:58',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(43,'2020-01-07 17:46:58','2020-01-07 21:46:58',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:46:55',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(44,'2020-01-07 17:52:34','2020-01-07 21:52:34',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:52:28',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(45,'2020-01-07 17:53:44','2020-01-07 21:53:44',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:52:37',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(46,'2020-01-07 17:53:58','2020-01-07 21:53:58',25,1,-1,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 21:53:46',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(47,'2020-01-07 17:53:58','2020-01-07 21:53:58',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:53:46',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(48,'2020-01-07 17:54:11','2020-01-07 21:54:11',25,1,-1,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 21:54:00',0,'',NULL,0,'MO1912-0002',NULL,NULL,NULL,NULL),
(49,'2020-01-07 17:54:12','2020-01-07 21:54:12',4,2,0,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 21:54:00',0,'',NULL,0,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(51,'2020-01-07 18:00:55','2020-01-07 22:00:55',25,1,-1,0.00000000,2,12,'Production MO1912-0002 - 2020-01-07 22:00:40',5,'mo',NULL,7,'MO1912-0002',NULL,NULL,NULL,NULL),
(52,'2020-01-07 18:00:55','2020-01-07 22:00:55',4,1,1,0.00000000,3,12,'Production MO1912-0002 - 2020-01-07 22:00:40',5,'mo',NULL,7,'MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(53,'2020-01-07 18:39:52','2020-01-07 22:39:52',25,1,-1,0.00000000,2,12,'Production MO2001-0003 - 2020-01-07 22:39:38',14,'mo',NULL,0,'MO2001-0003',NULL,NULL,NULL,NULL),
(54,'2020-01-07 18:39:52','2020-01-07 22:39:52',4,1,2,0.00000000,3,12,'Production MO2001-0003 - 2020-01-07 22:39:38',14,'mo',NULL,0,'MO2001-0003',NULL,'2020-01-07',NULL,NULL),
(55,'2020-01-07 19:09:04','2020-01-07 23:09:04',25,1,-2,0.00000000,2,12,'Production of MO2001-0003',14,'mo',NULL,0,'Production of MO2001-0003',NULL,NULL,NULL,NULL),
(56,'2020-01-07 19:09:04','2020-01-07 23:09:04',4,1,4,0.00000000,3,12,'Production of MO2001-0003',14,'mo',NULL,0,'Production of MO2001-0003',NULL,'2020-01-07',NULL,NULL),
(57,'2020-01-07 19:50:40','2020-01-07 23:50:40',25,1,-1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(58,'2020-01-07 19:50:40','2020-01-07 23:50:40',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(59,'2020-01-07 19:51:27','2020-01-07 23:51:27',25,1,-1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(60,'2020-01-07 19:51:27','2020-01-07 23:51:27',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-07',NULL,NULL),
(61,'2020-01-07 20:25:23','2020-01-08 00:25:23',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-08',NULL,NULL),
(62,'2020-01-07 20:25:43','2020-01-08 00:25:43',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-08',NULL,NULL),
(63,'2020-01-07 20:29:24','2020-01-08 00:29:24',25,1,-1.1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(64,'2020-01-07 20:29:24','2020-01-08 00:29:24',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-08',NULL,NULL),
(65,'2020-01-07 20:29:43','2020-01-08 00:29:43',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-08',NULL,NULL),
(66,'2020-01-07 21:09:15','2020-01-08 01:09:15',25,1,-1.1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(67,'2020-01-07 21:09:15','2020-01-08 01:09:15',4,2,0,0.00000000,3,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,'2020-01-08',NULL,NULL),
(68,'2020-01-07 21:15:02','2020-01-08 01:15:02',25,1,-1.1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(69,'2020-01-07 21:17:16','2020-01-08 01:17:16',25,1,-1.1,0.00000000,2,12,'Production of MO1912-0002',5,'mo',NULL,7,'Production of MO1912-0002',NULL,NULL,NULL,NULL),
(70,'2020-01-08 16:21:22','2020-01-08 20:21:22',25,1,-1,0.00000000,2,12,'Production of MO2001-0005',28,'mo',NULL,0,'Production of MO2001-0005',NULL,NULL,NULL,NULL),
(73,'2020-01-08 16:41:18','2020-01-08 20:41:18',1,1,-1.1,0.00000000,2,12,'Production of MO2001-0005',28,'mo',NULL,0,'Production of MO2001-0005','000000',NULL,NULL,NULL),
(74,'2020-01-08 16:41:18','2020-01-08 20:41:18',4,1,1.2,0.00000000,3,12,'Production of MO2001-0005',28,'mo',NULL,0,'Production of MO2001-0005','aaa',NULL,NULL,NULL),
(75,'2020-01-13 11:13:19','2020-01-13 15:13:19',25,1,-1,0.00000000,2,12,'Production of MO2001-0006',24,'mo',NULL,6,'Production of MO2001-0006',NULL,NULL,NULL,NULL),
(76,'2020-01-13 11:14:15','2020-01-13 15:14:15',1,1,-0.1,0.00000000,2,12,'Production of MO2001-0006',24,'mo',NULL,6,'Production of MO2001-0006','000000',NULL,NULL,NULL),
(77,'2020-01-18 19:16:58','2020-01-18 20:16:58',1,1,1,0.00000000,3,12,'string',0,'',NULL,0,'string','string',NULL,NULL,NULL),
(78,'2020-01-18 19:17:03','2020-01-18 20:17:03',1,1,1,0.00000000,3,12,'string',0,'',NULL,0,'string','string',NULL,NULL,NULL),
(79,'2021-04-15 11:40:18','2021-04-15 08:40:18',4,20,1,10.00000000,3,12,'Reception RCP2104-0001 validated',1,'reception',NULL,0,NULL,'Lot 2021-02',NULL,NULL,NULL),
(80,'2025-03-19 11:34:38','2025-03-19 11:34:38',1,1,-24,0.00000000,1,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(81,'2025-03-19 11:34:38','2025-03-19 11:34:38',1,1,24,0.00000000,0,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(82,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,2,-2014,0.00000000,1,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(83,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,2,2014,0.00000000,0,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(84,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,1,-2.4,0.00000000,1,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(85,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,1,2.4,0.00000000,0,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(86,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,20,-2,0.00000000,1,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL),
(87,'2025-03-19 11:34:39','2025-03-19 11:34:39',1,20,2,0.00000000,0,12,'Le stock par lots est transf&eacute;r&eacute; vers le stock global (le produit n\'utilise plus de lots)',0,'',NULL,0,'20250319113438',NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_stock_mouvement_extrafields`
--

CREATE TABLE `llx_stock_mouvement_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_stock_mouvement_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_stock_mouvement_extrafields`
--


--
-- Table structure for table `llx_stocktransfer_stocktransfer`
--

CREATE TABLE `llx_stocktransfer_stocktransfer` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  `fk_warehouse_source` int(11) DEFAULT NULL,
  `fk_warehouse_destination` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `date_creation` datetime NOT NULL,
  `date_prevue_depart` date DEFAULT NULL,
  `date_reelle_depart` date DEFAULT NULL,
  `date_prevue_arrivee` date DEFAULT NULL,
  `date_reelle_arrivee` date DEFAULT NULL,
  `lead_time_for_warning` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_stocktransfer_stocktransfer_rowid` (`rowid`),
  KEY `idx_stocktransfer_stocktransfer_ref` (`ref`),
  KEY `idx_stocktransfer_stocktransfer_fk_soc` (`fk_soc`),
  KEY `idx_stocktransfer_stocktransfer_fk_project` (`fk_project`),
  KEY `llx_stocktransfer_stocktransfer_fk_user_creat` (`fk_user_creat`),
  KEY `idx_stocktransfer_stocktransfer_status` (`status`),
  CONSTRAINT `llx_stocktransfer_stocktransfer_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_stocktransfer_stocktransfer`
--


--
-- Table structure for table `llx_stocktransfer_stocktransfer_extrafields`
--

CREATE TABLE `llx_stocktransfer_stocktransfer_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_stocktransfer_stocktransfer_extrafields`
--


--
-- Table structure for table `llx_stocktransfer_stocktransferline`
--

CREATE TABLE `llx_stocktransfer_stocktransferline` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `amount` double DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `fk_warehouse_source` int(11) NOT NULL,
  `fk_warehouse_destination` int(11) NOT NULL,
  `fk_stocktransfer` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `pmp` double DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `fk_parent_line` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_stocktransfer_stocktransferline_rowid` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_stocktransfer_stocktransferline`
--


--
-- Table structure for table `llx_stocktransfer_stocktransferline_extrafields`
--

CREATE TABLE `llx_stocktransfer_stocktransferline_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_stocktransfer_stocktransferline_extrafields`
--


--
-- Table structure for table `llx_subscription`
--

CREATE TABLE `llx_subscription` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` datetime DEFAULT NULL,
  `subscription` double(24,8) DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_type` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_subscription`
--

INSERT INTO `llx_subscription` VALUES
(2,'2020-01-21 00:02:14','2020-01-21 01:02:14',3,'2013-07-18 00:00:00','2014-07-17 00:00:00',50.00000000,51,'Subscription 2013',2,NULL,NULL),
(3,'2020-01-21 09:22:37','2020-01-21 10:22:37',4,'2017-07-18 00:00:00','2018-07-17 00:00:00',50.00000000,52,'Subscription 2017',2,NULL,NULL),
(4,'2020-01-21 09:23:17','2020-01-21 10:23:17',2,'2017-07-18 00:00:00','2018-07-17 00:00:00',50.00000000,53,'Subscription 2017',2,NULL,NULL),
(5,'2020-01-21 09:23:28','2020-01-21 10:23:28',2,'2018-07-18 00:00:00','2019-07-17 00:00:00',50.00000000,54,'Subscription 2018',2,NULL,NULL),
(6,'2020-01-21 09:23:49','2020-01-21 10:23:49',2,'2019-07-18 00:00:00','2020-07-17 00:00:00',50.00000000,55,'Subscription 2019',2,NULL,NULL);

--
-- Table structure for table `llx_supplier_proposal`
--

CREATE TABLE `llx_supplier_proposal` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `last_main_doc` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_supplier_proposal_ref` (`ref`,`entity`),
  KEY `idx_supplier_proposal_fk_soc` (`fk_soc`),
  KEY `idx_supplier_proposal_fk_user_author` (`fk_user_author`),
  KEY `idx_supplier_proposal_fk_user_valid` (`fk_user_valid`),
  KEY `idx_supplier_proposal_fk_projet` (`fk_projet`),
  KEY `idx_supplier_proposal_fk_account` (`fk_account`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposal`
--

INSERT INTO `llx_supplier_proposal` VALUES
(2,'(PROV2)',1,NULL,NULL,10,NULL,'2025-07-10 14:29:00','2025-02-17 04:40:14',NULL,NULL,12,12,NULL,NULL,0,0,NULL,NULL,0,285.00000000,0.00000000,0.00000000,0.00000000,285.00000000,NULL,NULL,2,7,'Private note','Public note','aurore','2017-02-17',1,NULL,NULL,1,'EUR',1.00000000,285.00000000,0.00000000,285.00000000,'supplier_proposal/(PROV2)/(PROV2).pdf'),
(3,'(PROV3)',1,NULL,NULL,1,NULL,'2025-07-10 14:29:00','2025-01-20 12:06:39',NULL,NULL,12,NULL,NULL,NULL,0,0,NULL,NULL,0,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,NULL),
(4,'(PROV4)',1,NULL,NULL,17,NULL,'2025-07-10 14:29:00','2025-01-20 12:23:22',NULL,NULL,12,NULL,NULL,NULL,0,0,NULL,NULL,0,198.00000000,0.17000000,0.00000000,0.00000000,198.17000000,NULL,NULL,NULL,NULL,'','','aurore',NULL,NULL,NULL,NULL,1,'EUR',1.00000000,198.00000000,0.17000000,198.17000000,'supplier_proposal/(PROV4)/(PROV4).pdf');

--
-- Table structure for table `llx_supplier_proposal_extrafields`
--

CREATE TABLE `llx_supplier_proposal_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_supplier_proposal_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposal_extrafields`
--


--
-- Table structure for table `llx_supplier_proposaldet`
--

CREATE TABLE `llx_supplier_proposaldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_supplier_proposal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT 0.000,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `product_type` int(11) DEFAULT 0,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `ref_fourn` varchar(128) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_subprice_ttc` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_unit` int(11) DEFAULT NULL,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_supplier_proposaldet_fk_supplier_proposal` (`fk_supplier_proposal`),
  KEY `idx_supplier_proposaldet_fk_product` (`fk_product`),
  KEY `fk_supplier_proposaldet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_supplier_proposaldet_fk_supplier_proposal` FOREIGN KEY (`fk_supplier_proposal`) REFERENCES `llx_supplier_proposal` (`rowid`),
  CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposaldet`
--

INSERT INTO `llx_supplier_proposaldet` VALUES
(2,2,NULL,NULL,NULL,'A powerfull computer with 8Gb memory.',NULL,0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,200.00000000,0.00000000,200.00000000,0.00000000,0.00000000,0.00000000,200.00000000,0,0,0.00000000,NULL,0,1,'',1,'EUR',200.00000000,0.00000000,200.00000000,0.00000000,200.00000000,NULL,NULL,NULL,NULL),
(7,3,NULL,1,NULL,'A beatifull pink dress 2',NULL,12.500,'',0.000,'0',0.000,'0',1,0,0,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,0,0.00000000,NULL,0,1,NULL,1,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(9,2,NULL,1,'Pink dress','A beatifull pink dress',NULL,0.000,'',0.000,'0',0.000,'0',1,10,0,NULL,100.00000000,0.00000000,90.00000000,0.00000000,0.00000000,0.00000000,90.00000000,0,0,79.16667000,3,0,2,'aaa',1,'EUR',100.00000000,0.00000000,90.00000000,0.00000000,90.00000000,NULL,NULL,NULL,NULL),
(10,4,NULL,1,NULL,'A beatifull pink dress. 2',NULL,0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,95.00000000,0.00000000,95.00000000,0.00000000,0.00000000,0.00000000,95.00000000,0,0,0.00000000,NULL,0,1,'BK01',1,'EUR',95.00000000,0.00000000,95.00000000,0.00000000,95.00000000,NULL,NULL,NULL,NULL),
(11,4,NULL,1,'Pink dress','A beatifull pink dress',NULL,0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,0.00000000,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,0,0,79.16667000,7,0,2,'bbb',1,'EUR',100.00000000,0.00000000,100.00000000,0.00000000,100.00000000,NULL,NULL,NULL,NULL),
(17,4,NULL,NULL,NULL,'a',NULL,5.500,'bbb',0.000,'0',0.000,'0',1,0,0,NULL,1.00000000,0.00000000,1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,0,0.00000000,NULL,0,3,'',1,'EUR',1.00000000,0.00000000,1.00000000,0.06000000,1.06000000,NULL,NULL,NULL,NULL),
(18,4,NULL,NULL,NULL,'a',NULL,5.500,'bbb',0.000,'0',0.000,'0',1,0,0,NULL,2.00000000,0.00000000,2.00000000,0.11000000,0.00000000,0.00000000,2.11000000,0,0,0.00000000,NULL,0,4,NULL,1,'EUR',2.00000000,0.00000000,2.00000000,0.11000000,2.11000000,NULL,NULL,NULL,NULL),
(19,2,NULL,NULL,NULL,'aaa',NULL,0.000,'',0.000,'',0.000,'',1,0,0,NULL,-5.00000000,0.00000000,-5.00000000,0.00000000,0.00000000,0.00000000,-5.00000000,0,0,0.00000000,NULL,0,3,'',1,'EUR',-5.00000000,0.00000000,-5.00000000,0.00000000,-5.00000000,1,NULL,NULL,NULL);

--
-- Table structure for table `llx_supplier_proposaldet_extrafields`
--

CREATE TABLE `llx_supplier_proposaldet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_supplier_proposaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_supplier_proposaldet_extrafields`
--


--
-- Table structure for table `llx_takepos_floor_tables`
--

CREATE TABLE `llx_takepos_floor_tables` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `label` varchar(255) DEFAULT NULL,
  `leftpos` float DEFAULT NULL,
  `toppos` float DEFAULT NULL,
  `floor` int(3) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `entity` (`entity`,`label`),
  UNIQUE KEY `entity_2` (`entity`,`label`),
  UNIQUE KEY `entity_3` (`entity`,`label`),
  UNIQUE KEY `entity_4` (`entity`,`label`),
  UNIQUE KEY `uk_takepos_floor_tables` (`entity`,`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_takepos_floor_tables`
--


--
-- Table structure for table `llx_ticket`
--

CREATE TABLE `llx_ticket` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) DEFAULT 1,
  `ref` varchar(128) NOT NULL,
  `track_id` varchar(128) NOT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `fk_project` int(11) DEFAULT 0,
  `fk_contract` int(11) DEFAULT 0,
  `origin_email` varchar(128) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_assign` int(11) DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `message` mediumtext DEFAULT NULL,
  `fk_statut` int(11) DEFAULT NULL,
  `resolution` int(11) DEFAULT NULL,
  `progress` int(11) DEFAULT NULL,
  `timing` varchar(20) DEFAULT NULL,
  `type_code` varchar(32) DEFAULT NULL,
  `category_code` varchar(32) DEFAULT NULL,
  `severity_code` varchar(32) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `date_read` datetime DEFAULT NULL,
  `date_last_msg_sent` datetime DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `notify_tiers_at_create` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL,
  `email_msgid` varchar(255) DEFAULT NULL,
  `email_date` datetime DEFAULT NULL,
  `ip` varchar(250) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `origin_replyto` varchar(128) DEFAULT NULL,
  `origin_references` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ticket_track_id` (`track_id`),
  UNIQUE KEY `uk_ticket_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_ticket_barcode_barcode_type` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_ticket_entity` (`entity`),
  KEY `idx_ticket_fk_soc` (`fk_soc`),
  KEY `idx_ticket_fk_user_assign` (`fk_user_assign`),
  KEY `idx_ticket_fk_project` (`fk_project`),
  KEY `idx_ticket_fk_statut` (`fk_statut`),
  KEY `llx_ticket_fk_product_barcode_type` (`fk_barcode_type`),
  CONSTRAINT `llx_ticket_fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_ticket`
--

INSERT INTO `llx_ticket` VALUES
(2,1,'TS1909-0001','15ff11cay39skiaa',NULL,6,0,NULL,12,12,'Increase memory on server','Pleae increase the memory of server to 164GB',3,NULL,0,NULL,'REQUEST','OTHER','NORMAL','2024-09-26 14:08:46',NULL,NULL,NULL,0,'2024-11-27 15:36:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(3,1,'TS1909-0002','r5ya6gdi9f39dcjt',1,NULL,0,NULL,12,14,'Problem with customer','Please recontact customer.<br />\r\nNeed someone speaking chinese...',0,NULL,100,'NORMAL','ISSUE','OTHER','NORMAL','2024-09-26 14:10:31',NULL,NULL,'2024-10-04 13:05:55',0,'2025-05-27 11:04:52',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(4,1,'TS1910-0003','fdv9wrzcte7b3c8b',NULL,NULL,0,NULL,12,NULL,'test','test',2,NULL,0,NULL,'COM','OTHER','NORMAL','2024-10-04 12:58:04',NULL,NULL,NULL,0,'2024-11-27 15:36:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(6,1,'TS1911-0004','5gvo9bsjri55zef9',32,4,0,NULL,12,3,'What is the price for Dolibarr ERP CRM ?','I need to use it for 10 users.',2,NULL,0,NULL,'COM','OTHER','NORMAL','2024-11-29 12:46:29','2024-11-29 12:46:34',NULL,NULL,0,'2025-07-10 14:29:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(7,1,'TS1911-0005','d51wjy4nym7wltg7',NULL,NULL,0,'customer@customercompany.com',NULL,16,'What is the price for Dolibarr ERP CRM ?','I need it for 10 people...',8,NULL,100,NULL,'COM','OTHER','NORMAL','2024-11-29 12:50:45','2024-11-29 12:52:32',NULL,'2025-03-13 06:17:35',1,'2025-07-10 14:29:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(9,1,'TS2505-0006','7l6k1qo8qif1fzca',NULL,NULL,NULL,NULL,12,12,'aaaa','aaaa',2,NULL,0,'NORMAL','COM','OTHER','NORMAL','2025-05-27 11:09:44',NULL,NULL,NULL,0,'2025-05-27 11:22:18',NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_ticket_extrafields`
--

CREATE TABLE `llx_ticket_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `aaa` int(10) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_ticket_extrafields` (`fk_object`),
  KEY `idx_ticket_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_ticket_extrafields`
--


--
-- Table structure for table `llx_tmptesttabletoremove`
--

CREATE TABLE `llx_tmptesttabletoremove` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `position` int(11) DEFAULT NULL,
  `use_default` varchar(1) DEFAULT '1',
  `active` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_tmptesttabletoremove`
--


--
-- Table structure for table `llx_tva`
--

CREATE TABLE `llx_tva` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `fk_account` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_tva`
--


--
-- Table structure for table `llx_user`
--

CREATE TABLE `llx_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `login` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_employee` varchar(50) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `employee` smallint(6) DEFAULT 1,
  `fk_establishment` int(11) DEFAULT 0,
  `pass` varchar(128) DEFAULT NULL,
  `pass_crypted` varchar(128) DEFAULT NULL,
  `pass_temp` varchar(128) DEFAULT NULL,
  `api_key` varchar(128) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `office_phone` varchar(30) DEFAULT NULL,
  `office_fax` varchar(30) DEFAULT NULL,
  `user_mobile` varchar(30) DEFAULT NULL,
  `personal_mobile` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `personal_email` varchar(255) DEFAULT NULL,
  `socialnetworks` text DEFAULT NULL,
  `signature` longtext DEFAULT NULL,
  `admin` smallint(6) DEFAULT 0,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_socpeople` int(11) DEFAULT NULL,
  `fk_member` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `datelastlogin` datetime DEFAULT NULL,
  `datepreviouslogin` datetime DEFAULT NULL,
  `egroupware_id` int(11) DEFAULT NULL,
  `ldap_sid` varchar(255) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT 1,
  `photo` varchar(255) DEFAULT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `openid` varchar(255) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_user_expense_validator` int(11) DEFAULT NULL,
  `fk_user_holiday_validator` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT 0,
  `fk_country` int(11) DEFAULT 0,
  `color` varchar(6) DEFAULT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT 0,
  `accountancy_code_user_general` varchar(32) DEFAULT NULL,
  `nb_holiday` int(11) DEFAULT 0,
  `salary` double(24,8) DEFAULT NULL,
  `tjm` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `dateemployment` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `birth` date DEFAULT NULL,
  `pass_encoding` varchar(24) DEFAULT NULL,
  `default_range` int(11) DEFAULT NULL,
  `default_c_exp_tax_cat` int(11) DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT NULL,
  `iplastlogin` varchar(250) DEFAULT NULL,
  `ippreviouslogin` varchar(250) DEFAULT NULL,
  `datelastpassvalidation` datetime DEFAULT NULL,
  `datestartvalidity` datetime DEFAULT NULL,
  `dateendvalidity` datetime DEFAULT NULL,
  `national_registration_number` varchar(50) DEFAULT NULL,
  `birth_place` varchar(64) DEFAULT NULL,
  `flagdelsessionsbefore` datetime DEFAULT NULL,
  `email_oauth2` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_login` (`login`,`entity`),
  UNIQUE KEY `uk_user_fk_socpeople` (`fk_socpeople`),
  UNIQUE KEY `uk_user_fk_member` (`fk_member`),
  UNIQUE KEY `uk_user_api_key` (`api_key`),
  KEY `idx_user_api_key` (`api_key`),
  KEY `idx_user_fk_societe` (`fk_soc`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user`
--

INSERT INTO `llx_user` VALUES
(1,'2012-07-08 13:20:11','2025-03-13 09:13:00',NULL,NULL,'aeinstein',0,'','',NULL,1,NULL,NULL,'$2y$10$lIvMb5RJjxqmd6OxnZLqvuLZGOXj3gxIQhZQUqcY8fQTyh0cTtUpa',NULL,'dolcrypt:AES-256-CTR:10fbb3f05469219f:vCpWlcfDIoN6yOj2yGQ1WsOCfB8i2cjEKOAhNzPwf/A=','Einstein','Albert','','123456789','','','','aeinstein@example.com','','[]','',0,NULL,NULL,NULL,'','2017-10-05 08:32:44','2017-10-03 11:43:50',NULL,'',1,'alberteinstein.jpg',NULL,NULL,14,NULL,NULL,NULL,'','','',NULL,NULL,'aaaaff','',NULL,0,'',0,NULL,NULL,NULL,44.00000000,'man','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(2,'2012-07-08 13:54:48','2025-05-05 12:08:56',NULL,NULL,'demo',1,'','',NULL,1,NULL,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Doe','David','Trainee','09123123','','','','daviddoe@example.com','','[]','',0,NULL,NULL,NULL,'','2018-07-30 23:10:54','2018-07-30 23:04:17',NULL,'',1,'person9.jpeg',NULL,NULL,11,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,35.00000000,'man','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(3,'2012-07-11 16:18:59','2025-05-05 14:48:17',NULL,NULL,'pcurie',1,'','',NULL,1,NULL,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Curie','Pierre','','','','','','pcurie@example.com','','[]','',0,NULL,NULL,2,'','2014-12-21 17:38:55',NULL,NULL,'',1,'dolicloud_avent_saas.png',NULL,NULL,14,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,39.00000000,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(4,'2015-01-23 17:52:27','2025-05-05 14:48:18',NULL,NULL,'bbookkeeper',1,'','',NULL,1,NULL,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Bookkeeper','Bob','Bookkeeper','','','','','bbookkeeper@example.com','','{\"skype\":\"skypebbookkeeper\"}','',0,17,6,NULL,'','2015-02-25 10:18:41','2015-01-23 17:53:20',NULL,'',1,'person8.jpeg',NULL,NULL,11,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,16.00000000,'man','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(10,'2017-10-03 11:47:41','2023-03-15 15:07:13',NULL,NULL,'mcurie',1,NULL,NULL,NULL,1,0,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Curie','Marie','','','','','','mcurie@example.com','','[]','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,'mariecurie.jpg',NULL,NULL,14,NULL,NULL,NULL,'','','',NULL,NULL,'ffaaff','',NULL,0,NULL,0,NULL,NULL,NULL,44.00000000,'woman',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(11,'2017-10-05 09:07:52','2023-03-15 15:07:13',NULL,NULL,'zzeceo',1,NULL,'',NULL,1,0,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Zeceo','Zack','President - CEO','','','','','zzeceo@example.com','','{\"facebook\":\"\",\"skype\":\"\",\"twitter\":\"\",\"linkedin\":\"\",\"instagram\":\"\",\"snapchat\":\"\",\"googleplus\":\"\",\"youtube\":\"\",\"whatsapp\":\"\",\"tumblr\":\"\",\"vero\":\"\",\"viadeo\":\"\",\"slack\":\"\",\"xing\":\"\",\"meetup\":\"\",\"pinterest\":\"\",\"flickr\":\"\",\"500px\":\"\",\"giphy\":\"\",\"gifycat\":\"\",\"dailymotion\":\"\",\"vimeo\":\"\",\"periscope\":\"\",\"twitch\":\"\",\"discord\":\"\",\"wikipedia\":\"\",\"reddit\":\"\",\"quora\":\"\",\"tripadvisor\":\"\",\"mastodon\":\"\",\"diaspora\":\"\",\"viber\":\"\",\"github\":\"\"}','',0,NULL,NULL,NULL,'','2017-10-05 22:48:08','2017-10-05 21:18:46',NULL,'',1,'person4.jpeg',NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,NULL,0,NULL,NULL,NULL,39.00000000,NULL,'','2019-06-10 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(12,'2017-10-05 09:09:46','2025-03-27 23:27:43',NULL,12,'admin',0,'','',NULL,1,NULL,NULL,'$2y$10$MiDs0GVn0ksYbOHw8XgAf.oEihYvLI0ZYd0PSVq7/6ret6gifWSh6',NULL,'dolcrypt:AES-256-CTR:10fbb3f05469219f:5nJ/t5SbepR61dTsy2pTYfGEZS5j+bj3Ds0FN0OVM5M=','Adminson','Alice','Admin Technical','','','','','laurent@destailleur.fr','','[]','Alice - 123',1,NULL,NULL,NULL,'kmlk','2025-07-10 13:00:34','2025-07-09 16:26:18',NULL,'',1,NULL,NULL,NULL,11,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,2700.00000000,NULL,NULL,39.00000000,'woman','',NULL,NULL,'generic_user_odt','1985-09-15',NULL,NULL,NULL,NULL,NULL,'127.0.0.1','127.0.0.1','2025-03-27 23:27:43',NULL,NULL,'',NULL,'2025-03-27 23:27:38',NULL),
(13,'2017-10-05 21:29:35','2025-04-15 13:30:44',NULL,NULL,'ccommercy',1,'','',NULL,1,NULL,NULL,'$2y$10$KTaKE0NyYyJSCogsxtwR.eADst17XYMrOWlsFfVLR60IbjANIVLHK',NULL,NULL,'Commercy','Coraly','Commercial leader','','','','','ccommercy@example.com','','{\"facebook\":\"\",\"skype\":\"\",\"twitter\":\"\",\"linkedin\":\"\",\"instagram\":\"\",\"snapchat\":\"\",\"googleplus\":\"\",\"youtube\":\"\",\"whatsapp\":\"\",\"tumblr\":\"\",\"vero\":\"\",\"viadeo\":\"\",\"slack\":\"\",\"xing\":\"\",\"meetup\":\"\",\"pinterest\":\"\",\"flickr\":\"\",\"500px\":\"\",\"giphy\":\"\",\"gifycat\":\"\",\"dailymotion\":\"\",\"vimeo\":\"\",\"periscope\":\"\",\"twitch\":\"\",\"discord\":\"\",\"wikipedia\":\"\",\"reddit\":\"\",\"quora\":\"\",\"tripadvisor\":\"\",\"mastodon\":\"\",\"diaspora\":\"\",\"viber\":\"\",\"github\":\"\"}','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,'person7.jpeg',NULL,NULL,11,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,1890.00000000,NULL,NULL,25.00000000,'woman','','2018-09-11 00:00:00',NULL,NULL,'1998-12-08',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(14,'2017-10-05 21:33:33','2023-03-15 15:07:36',NULL,NULL,'sscientol',1,NULL,NULL,NULL,1,0,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Scientol','Sam','Scientist leader','','','','','sscientol@example.com','','[]','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,'person3.jpeg',NULL,NULL,11,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,NULL,0,3500.00000000,NULL,NULL,39.00000000,NULL,NULL,'2018-07-03 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(16,'2017-10-05 22:47:52','2025-01-30 14:37:22',NULL,NULL,'ccommerson',1,NULL,NULL,NULL,1,0,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Charle1','Commerson','Sale representative','','','','','ccommerson@example.com','','[]','',0,NULL,NULL,NULL,'','2017-10-05 23:46:24','2017-10-05 23:37:31',NULL,'',0,'person1.jpeg',NULL,NULL,13,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,NULL,0,2900.00000000,NULL,NULL,39.00000000,NULL,NULL,'2019-09-01 00:00:00',NULL,NULL,'1976-02-05',NULL,NULL,NULL,NULL,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(17,'2017-10-05 22:48:39','2025-05-05 14:48:05',NULL,NULL,'aleerfok',1,'','',NULL,1,NULL,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Leerfok','Amanda','Sale representative','','','','','aleerfok@example.com','','[]','',0,NULL,NULL,NULL,'','2017-10-05 23:16:06',NULL,NULL,'',0,'person5.jpeg',NULL,NULL,13,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,39.00000000,'woman','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(18,'2018-01-22 17:27:02','2025-02-10 19:27:07',NULL,NULL,'ldestailleur',1,'','',NULL,1,NULL,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Destailleur','Laurent','Project leader of Dolibarr ERP CRM','','','','','ldestailleur@example.com','','[]','',0,10,10,NULL,'More information on http://www.mydomain.com','2019-10-04 10:06:40','2017-09-06 11:55:30',NULL,'',1,'ldestailleur_200x200.jpg',NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'007f7f','',NULL,0,'',0,NULL,NULL,NULL,NULL,'man','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(19,'2017-02-02 03:55:44','2021-04-15 10:41:35',NULL,NULL,'aboston',1,NULL,NULL,NULL,1,0,NULL,'$2y$10$Hgawd0DFS2bgBiM6rJuAZ.ff250vlm111HVWBJQvRzRq5hNijLxam',NULL,NULL,'Boston','Alex','','','','','','aboston@example.com','','[]','<strong>Alex Boston</strong><br />\r\nAdmin support service - 555 01 02 03 04',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',0,'person2.jpeg',NULL,NULL,12,NULL,NULL,25.00000000,'','','',NULL,NULL,'ff00ff','',NULL,0,NULL,0,2700.00000000,NULL,NULL,32.00000000,NULL,NULL,'2016-11-04 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(22,'2022-12-13 11:28:20','2023-02-25 15:00:16',NULL,NULL,'noperm',1,'','',NULL,1,0,NULL,'$2y$10$g.VTJej0pV4ozOY.X/e5muWjbKkayuu6gvf7mVgUqxsArqSoy7qnC',NULL,NULL,'noperm','noperm','','','','','','','','[]','',0,NULL,NULL,NULL,'','2023-02-25 12:00:24','2022-12-13 11:29:23',NULL,'',1,NULL,NULL,NULL,12,12,12,NULL,'','','',NULL,NULL,'','',NULL,0,NULL,0,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'127.0.0.1','127.0.0.1',NULL,NULL,NULL,'',NULL,NULL,NULL),
(29,'2023-02-25 12:08:43','2025-03-25 22:02:19',NULL,NULL,'test',1,'','',NULL,1,NULL,NULL,'$2y$10$n2TZheO.RK9.qVVaEhBa.uFjuuLon4kTss8s1FlrQKsweF1tY6v9W',NULL,NULL,'test','test','','','','','','','','[]','',0,NULL,NULL,NULL,'','2025-03-25 23:57:00','2025-03-25 22:02:25',NULL,'',1,NULL,NULL,NULL,12,12,12,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'127.0.0.1','127.0.0.1',NULL,NULL,NULL,'',NULL,'2025-03-25 22:02:14',NULL),
(31,'2025-03-24 17:22:07','2025-03-24 17:22:07',NULL,NULL,'testRestLogin1706283432',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test1915104084@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(32,'2025-03-24 17:24:20','2025-03-24 17:24:20',NULL,NULL,'testRestLogin1717175400',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test1282577259@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(33,'2025-03-24 18:17:34','2025-03-24 18:17:34',NULL,NULL,'testRestLogin1493640590',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test1481368856@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(34,'2025-03-24 18:17:49','2025-03-24 18:17:49',NULL,NULL,'testRestLogin1122253766',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test34259713@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(35,'2025-03-24 18:22:33','2025-03-24 18:22:34',NULL,NULL,'testRestLogin1242395433',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test1305836732@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(36,'2025-03-24 18:23:16','2025-03-24 18:23:16',NULL,NULL,'testRestLogin759626915',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test29323439@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(37,'2025-03-24 18:24:19','2025-03-24 18:24:19',NULL,NULL,'testRestLogin2093881720',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test1323320756@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(38,'2025-03-24 18:24:24','2025-03-24 18:24:24',NULL,NULL,'testRestLogin508772395',1,'','',NULL,1,NULL,NULL,NULL,NULL,NULL,'testRestUser','','','','','','','test713450811@restuser.com','','null','',0,NULL,NULL,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,NULL,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL),
(39,'2025-03-25 19:02:38','2025-03-25 19:02:38',NULL,NULL,'contactspan2',1,'','',NULL,0,NULL,NULL,'$2y$10$ZzBxVa4aKc0XuTZ4jfLuaOO7PHthCOhQtUdiyJidNqO4Tj7opuSOG',NULL,NULL,'Contact span2','','','','','','','','','[]','',0,3,17,NULL,'',NULL,NULL,NULL,'',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','','',NULL,4,'','',NULL,0,'',0,NULL,NULL,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'2025-03-25 19:02:33',NULL);

--
-- Table structure for table `llx_user_alert`
--

CREATE TABLE `llx_user_alert` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_alert`
--

INSERT INTO `llx_user_alert` VALUES
(1,1,1,1),
(2,1,10,12);

--
-- Table structure for table `llx_user_clicktodial`
--

CREATE TABLE `llx_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `login` varchar(32) DEFAULT NULL,
  `pass` varchar(64) DEFAULT NULL,
  `poste` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_clicktodial`
--


--
-- Table structure for table `llx_user_employment`
--

CREATE TABLE `llx_user_employment` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `job` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_employment` (`ref`,`entity`),
  KEY `fk_user_employment_fk_user` (`fk_user`),
  CONSTRAINT `fk_user_employment_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_employment`
--


--
-- Table structure for table `llx_user_extrafields`
--

CREATE TABLE `llx_user_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `rsapublicmain` text DEFAULT NULL,
  `ippublicmain` varchar(255) DEFAULT NULL,
  `aaa` varchar(255) DEFAULT NULL,
  `news_viewed` int(1) DEFAULT NULL,
  `eee` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_extrafields`
--

INSERT INTO `llx_user_extrafields` VALUES
(2,'2023-02-25 15:00:16',22,NULL,NULL,NULL,NULL,NULL,NULL),
(6,'2023-02-28 08:49:59',19,NULL,NULL,NULL,NULL,0,NULL),
(8,'2025-05-05 14:48:05',17,NULL,NULL,NULL,NULL,0,2),
(9,'2025-05-05 14:48:18',4,NULL,NULL,NULL,NULL,0,1),
(11,'2023-02-28 08:49:59',16,NULL,NULL,NULL,NULL,0,NULL),
(12,'2025-05-05 12:09:05',2,NULL,NULL,NULL,NULL,0,5),
(14,'2023-02-28 08:49:59',10,NULL,NULL,NULL,NULL,0,NULL),
(15,'2025-05-05 14:48:17',3,NULL,NULL,NULL,NULL,0,2),
(16,'2023-02-28 08:49:59',14,NULL,NULL,NULL,NULL,0,NULL),
(17,'2023-02-28 08:49:59',11,NULL,NULL,NULL,NULL,0,NULL),
(31,'2025-05-05 14:48:09',1,NULL,NULL,NULL,NULL,0,3),
(33,'2025-02-10 19:27:07',18,NULL,NULL,NULL,NULL,0,NULL),
(41,'2025-03-25 22:02:19',29,NULL,NULL,NULL,NULL,NULL,NULL),
(57,'2025-04-09 17:23:11',12,NULL,NULL,NULL,NULL,NULL,4),
(58,'2025-04-15 13:30:44',13,NULL,NULL,NULL,NULL,0,3);

--
-- Table structure for table `llx_user_param`
--

CREATE TABLE `llx_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `param` varchar(255) NOT NULL,
  `value` text NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_param`
--

INSERT INTO `llx_user_param` VALUES
(1,1,'MAIN_BOXES_0','1'),
(1,1,'MAIN_THEME','eldy'),
(1,3,'THEME_ELDY_ENABLE_PERSONALIZED','1'),
(1,1,'THEME_ELDY_RGB','ded0ed'),
(1,3,'THEME_ELDY_RGB','d0ddc3'),
(2,1,'MAIN_BOXES_0','1'),
(11,1,'MAIN_BOXES_0','1'),
(12,1,'MAIN_BOXES_0','1'),
(12,1,'MAIN_BOXES_11','1'),
(12,1,'MAIN_BOXES_2','1'),
(12,1,'MAIN_BOXES_27','1'),
(12,1,'MAIN_LANG_DEFAULT','fr_FR'),
(12,1,'MAIN_SELECTEDFIELDS_/dolibarr_4.0/htdocs/adherents/list.php','d.zip,d.ref,d.lastname,d.firstname,d.company,d.login,d.morphy,t.libelle,d.email,d.datefin,d.statut,'),
(12,1,'MAIN_SELECTEDFIELDS_accountancycustomerlist','l.rowid,f.ref,f.datef,p.ref,l.total_ht,l.tva_tx,s.nom,co.label,s.tva_intra,aa.data_suggest,aa.account_number,'),
(12,1,'MAIN_SELECTEDFIELDS_accountancysupplierlines','l.rowid,f.ref,f.datef,p.ref,l.description,l.total_ht,l.tva_tx,s.nom,co.label,s.tva_intra,aa.account_number,'),
(12,1,'MAIN_SELECTEDFIELDS_accountingaccountlist','categories,aa.account_number,aa.label,aa.labelshort,aa.account_parent,aa.pcg_type,aa.active,aa.import_key,'),
(12,1,'MAIN_SELECTEDFIELDS_cashcontrol','t.ref,t.posmodule,t.posnumber,t.opening,t.cash,t.cheque,t.card,t.year_close,t.month_close,t.day_close,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_conferenceorboothlist','t.fk_project,t.ref,t.label,t.fk_soc,t.fk_action,t.datep,t.datep2,t.num_vote,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_contractlist','ef.hostname_db,c.ref,c.ref_customer,c.ref_supplier,s.nom,s.zip,c.date_contrat,ef.plan,ef.deployment_status,ef.deployment_date_start,ef.deployment_date_end,ef.date_softalert_endfreeperiod,ef.date_hardalert_endfreeperiod,ef.date_endfreeperiod,ef.undeployment_date,ef.discountcode,lower_planned_end_date,status,'),
(12,1,'MAIN_SELECTEDFIELDS_customerlist','s.email,s.nom,s.name_alias,s.barcode,s.code_client,s.code_compta,s.zip,s.phone,typent.code,customerorsupplier,s.status,'),
(12,1,'MAIN_SELECTEDFIELDS_directdebitcredittransferlist','ref,label,datep,type,project,bank,entry,account,subledger,debit,credit,'),
(12,1,'MAIN_SELECTEDFIELDS_emailsenderprofilelist','t.tms,t.label,t.email,t.private,t.position,t.date_creation,t.active,'),
(12,1,'MAIN_SELECTEDFIELDS_inventorylist','t.fk_user_creat,t.ref,t.title,t.fk_warehouse,t.fk_product,t.date_inventory,t.fk_user_modif,t.fk_user_valid,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_invoicelist','f.multicurrency_code,f.ref,f.datef,f.date_lim_reglement,p.ref,p.title,s.nom,f.total_ht,f.total_ttc,dynamount_payed,rtp,u.login,f.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_jobpositionlist','t.fk_user_creat,t.rowid,t.date_start,t.date_end,t.fk_user,t.fk_job,'),
(12,1,'MAIN_SELECTEDFIELDS_knowledgerecordlist','t.fk_c_ticket_category,t.ref,t.question,t.lang,t.tms,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_molist','t.ref,t.fk_bom,t.mrptype,t.fk_product,t.qty,t.label,t.fk_warehouse,t.date_start_planned,t.date_end_planned,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_orderlist','c.pos_source,c.module_source,c.ref,s.nom,c.date_commande,c.total_ht,ef.custom1,ef.aaa,c.note_public,c.note_private,shippable,c.facture,c.import_key,c.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_orderlistdet','rowid,pr.ref,cdet.qty,c.ref,s.nom,c.date_commande,c.delivery_date,cdet.total_ht,ef.custom1,ef.aaa,u.login,shippable,c.facture,c.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_partnershippartnershiplist','t.import_key,t.ip,t.reason_decline_or_cancel,t.last_check_backlink,t.count_last_url_check_error,t.entity,t.url_to_check,t.ref,t.fk_type,t.fk_soc,t.date_partnership_start,t.date_partnership_end,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_poslist','f.date_closing,f.ref,f.ref_client,f.type,f.date_lim_reglement,p.ref,s.nom,s.town,f.total_ht,f.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_productlist','p.stockable_product,p.ref,p.label,p.barcode,p.sellprice,p.minbuyprice,p.desiredstock,p.stock,stock_virtual,p.tosell,p.tobuy,'),
(12,1,'MAIN_SELECTEDFIELDS_projectlist','ef.priority,p.ref,p.title,s.nom,s.name_alias,co.country_code,p.datee,p.fk_opp_status,p.opp_percent,p.opp_amount,c.assigned,p.date_start_event,p.date_end_event,p.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_sellyoursaasresellers','ef.date_apply_for_reseller,s.nom,s.name_alias,s.barcode,sales.representative,s.zip,s.phone,typent.code,customerorsupplier,ef.sss,ef.dolicloud,ef.date_registration,ef.domain_registration_page,ef.source,ef.source_utm,ef.firstname,ef.lastname,ef.password,ef.manualcollection,ef.commission,s.status,'),
(12,1,'MAIN_SELECTEDFIELDS_servicelist','ef.aaa,p.ref,p.label,p.duration,p.sellprice,p.minbuyprice,ef.package,p.tosell,p.tobuy,'),
(12,1,'MAIN_SELECTEDFIELDS_supplierorderlist','cf.tms,cf.ref,cf.ref_supplier,cf.fk_soc,s.town,s.zip,cf.date_commande,cf.date_livraison,cf.total_ht,cf.total_tva,cf.fk_statut,cf.billed,'),
(12,1,'MAIN_SELECTEDFIELDS_targetlist','t.trigger_codes,t.ref,t.label,t.url,t.status,'),
(12,1,'MAIN_SELECTEDFIELDS_tasklist','t.tobill,t.billed,t.ref,t.label,t.dateo,t.datee,p.ref,s.nom,p.fk_statut,t.planned_workload,t.duration_effective,t.progress_calculated,t.progress,t.progress_summary,'),
(12,1,'MAIN_SELECTEDFIELDS_ticketlist','t.origin_email,t.ref,t.fk_user_create,t.subject,t.type_code,t.severity_code,t.fk_soc,t.datec,t.date_read,t.fk_user_assign,t.fk_statut,'),
(12,1,'MAIN_SELECTEDFIELDS_userlist','u.api_key,u.login,u.lastname,u.firstname,u.employee,u.fk_user,u.email,u.fk_soc,u.job,u.datelastlogin,u.statut,'),
(12,1,'MAIN_THEME','eldy'),
(12,1,'SOCIETE_PUBLIC_HIDE_OFFICE_FAX','1'),
(12,1,'SOCIETE_PUBLIC_HIDE_OFFICE_PHONE','1'),
(12,1,'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_FACEBOOK','1'),
(12,1,'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_GITHUB','1'),
(12,1,'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_INSTAGRAM','1'),
(12,1,'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_TWITTER','1'),
(12,1,'USER_ENABLE_PUBLIC','1'),
(12,1,'USER_PUBLIC_HIDE_OFFICE_FAX','1'),
(12,1,'USER_PUBLIC_HIDE_OFFICE_PHONE','1'),
(12,1,'USER_PUBLIC_HIDE_USER_MOBILE','1'),
(12,1,'USER_PUBLIC_MORE','Rencontré sur salon abc');

--
-- Table structure for table `llx_user_rib`
--

CREATE TABLE `llx_user_rib` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(11) DEFAULT NULL,
  `bic_intermediate` varchar(11) DEFAULT NULL,
  `iban_prefix` varchar(80) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `currency_code` varchar(3) DEFAULT NULL,
  `default_rib` smallint(6) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_rib`
--


--
-- Table structure for table `llx_user_rights`
--

CREATE TABLE `llx_user_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`),
  KEY `fk_user_rights_fk_user_user` (`fk_user`),
  CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=38939 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_user_rights`
--

INSERT INTO `llx_user_rights` VALUES
(12402,1,1,11),
(12380,1,1,12),
(12385,1,1,13),
(12389,1,1,14),
(12393,1,1,15),
(12398,1,1,16),
(12404,1,1,19),
(9726,1,1,21),
(9700,1,1,22),
(9706,1,1,24),
(9711,1,1,25),
(9716,1,1,26),
(9722,1,1,27),
(9728,1,1,28),
(9978,1,1,31),
(9968,1,1,32),
(9974,1,1,34),
(9980,1,1,38),
(11573,1,1,41),
(11574,1,1,42),
(11575,1,1,44),
(11576,1,1,45),
(7184,1,1,61),
(7181,1,1,62),
(7183,1,1,64),
(7185,1,1,67),
(7186,1,1,68),
(1678,1,1,71),
(1673,1,1,72),
(1675,1,1,74),
(1679,1,1,75),
(1677,1,1,76),
(1681,1,1,78),
(1682,1,1,79),
(12322,1,1,81),
(12309,1,1,82),
(12312,1,1,84),
(12314,1,1,86),
(12317,1,1,87),
(12320,1,1,88),
(12323,1,1,89),
(11580,1,1,91),
(11581,1,1,92),
(11582,1,1,93),
(11583,1,1,94),
(7139,1,1,101),
(7134,1,1,102),
(7136,1,1,104),
(7137,1,1,105),
(7138,1,1,106),
(7140,1,1,109),
(10229,1,1,111),
(10201,1,1,112),
(10207,1,1,113),
(10213,1,1,114),
(10219,1,1,115),
(10225,1,1,116),
(10231,1,1,117),
(12518,1,1,121),
(12508,1,1,122),
(12514,1,1,125),
(12520,1,1,126),
(11577,1,1,141),
(11578,1,1,142),
(11579,1,1,144),
(2307,1,1,151),
(2304,1,1,152),
(2306,1,1,153),
(2308,1,1,154),
(10092,1,1,161),
(10093,1,1,162),
(10094,1,1,163),
(10095,1,1,164),
(10096,1,1,165),
(10000,1,1,221),
(9990,1,1,222),
(9996,1,1,223),
(10002,1,1,229),
(10007,1,1,237),
(10011,1,1,238),
(10015,1,1,239),
(1686,1,1,241),
(1685,1,1,242),
(1687,1,1,243),
(12604,1,1,251),
(12566,1,1,252),
(12569,1,1,253),
(12572,1,1,254),
(12575,1,1,255),
(12579,1,1,256),
(12525,1,1,262),
(12544,1,1,281),
(12534,1,1,282),
(12540,1,1,283),
(12546,1,1,286),
(12290,1,1,301),
(1763,1,1,331),
(1762,1,1,332),
(1764,1,1,333),
(12582,1,1,341),
(12584,1,1,342),
(12586,1,1,343),
(12588,1,1,344),
(12600,1,1,351),
(12593,1,1,352),
(12597,1,1,353),
(12601,1,1,354),
(12605,1,1,358),
(12560,1,1,531),
(12553,1,1,532),
(12557,1,1,534),
(12561,1,1,538),
(12348,1,1,701),
(12354,1,1,702),
(12360,1,1,703),
(1755,1,1,1001),
(1754,1,1,1002),
(1756,1,1,1003),
(1758,1,1,1004),
(1759,1,1,1005),
(7146,1,1,1101),
(7143,1,1,1102),
(7145,1,1,1104),
(7147,1,1,1109),
(12412,1,1,1181),
(12458,1,1,1182),
(12417,1,1,1183),
(12420,1,1,1184),
(12423,1,1,1185),
(12427,1,1,1186),
(12431,1,1,1187),
(12437,1,1,1188),
(12434,1,1,1189),
(1578,1,1,1201),
(1579,1,1,1202),
(12454,1,1,1231),
(12443,1,1,1232),
(12446,1,1,1233),
(12449,1,1,1234),
(12452,1,1,1235),
(12455,1,1,1236),
(1736,1,1,1251),
(12409,1,1,1321),
(12326,1,1,1421),
(12264,1,1,2401),
(12260,1,1,2402),
(12266,1,1,2403),
(12280,1,1,2411),
(12276,1,1,2412),
(12282,1,1,2413),
(12286,1,1,2414),
(12370,1,1,2501),
(12367,1,1,2503),
(12371,1,1,2515),
(12490,1,1,20001),
(12474,1,1,20003),
(12480,1,1,20004),
(12486,1,1,20005),
(12492,1,1,20006),
(12302,1,1,23001),
(12295,1,1,23002),
(12299,1,1,23003),
(12303,1,1,23004),
(4984,1,1,50401),
(4987,1,1,50411),
(4988,1,1,50412),
(4989,1,1,50415),
(12498,1,1,55001),
(12499,1,1,55002),
(9596,1,1,101051),
(9604,1,1,101060),
(9605,1,1,101061),
(10353,1,1,101250),
(10355,1,1,101251),
(132,1,2,11),
(133,1,2,12),
(134,1,2,13),
(135,1,2,14),
(136,1,2,16),
(137,1,2,19),
(138,1,2,21),
(139,1,2,22),
(140,1,2,24),
(141,1,2,25),
(142,1,2,26),
(143,1,2,27),
(10359,1,2,31),
(145,1,2,32),
(10361,1,2,34),
(147,1,2,41),
(148,1,2,42),
(149,1,2,44),
(150,1,2,61),
(151,1,2,62),
(152,1,2,64),
(153,1,2,71),
(154,1,2,72),
(155,1,2,74),
(156,1,2,75),
(157,1,2,78),
(158,1,2,79),
(159,1,2,81),
(160,1,2,82),
(161,1,2,84),
(162,1,2,86),
(163,1,2,87),
(164,1,2,88),
(165,1,2,89),
(166,1,2,91),
(167,1,2,92),
(168,1,2,93),
(169,1,2,101),
(170,1,2,102),
(171,1,2,104),
(172,1,2,109),
(173,1,2,111),
(174,1,2,112),
(175,1,2,113),
(176,1,2,114),
(177,1,2,116),
(178,1,2,117),
(179,1,2,121),
(180,1,2,122),
(181,1,2,125),
(182,1,2,141),
(183,1,2,142),
(184,1,2,144),
(2479,1,2,151),
(2480,1,2,152),
(2481,1,2,153),
(2482,1,2,154),
(185,1,2,161),
(186,1,2,162),
(187,1,2,163),
(188,1,2,164),
(189,1,2,165),
(193,1,2,221),
(194,1,2,222),
(195,1,2,229),
(196,1,2,241),
(197,1,2,242),
(198,1,2,243),
(199,1,2,251),
(201,1,2,262),
(202,1,2,281),
(203,1,2,282),
(204,1,2,283),
(205,1,2,331),
(2483,1,2,531),
(207,1,2,532),
(2484,1,2,534),
(210,1,2,701),
(211,1,2,702),
(2474,1,2,703),
(15064,1,2,771),
(15057,1,2,772),
(15059,1,2,773),
(15063,1,2,775),
(15065,1,2,776),
(212,1,2,1001),
(213,1,2,1002),
(214,1,2,1003),
(215,1,2,1004),
(216,1,2,1005),
(217,1,2,1101),
(218,1,2,1102),
(219,1,2,1104),
(220,1,2,1109),
(15073,1,2,1121),
(15074,1,2,1122),
(15075,1,2,1123),
(15076,1,2,1124),
(15077,1,2,1125),
(15078,1,2,1126),
(221,1,2,1181),
(222,1,2,1182),
(223,1,2,1183),
(224,1,2,1184),
(225,1,2,1185),
(226,1,2,1186),
(227,1,2,1187),
(228,1,2,1188),
(229,1,2,1201),
(230,1,2,1202),
(231,1,2,1231),
(232,1,2,1232),
(233,1,2,1233),
(234,1,2,1234),
(235,1,2,1421),
(236,1,2,2401),
(237,1,2,2402),
(238,1,2,2403),
(239,1,2,2411),
(240,1,2,2412),
(241,1,2,2413),
(2470,1,2,2501),
(243,1,2,2515),
(10363,1,2,20001),
(10365,1,2,20003),
(10366,1,2,20004),
(10367,1,2,20005),
(10368,1,2,20006),
(15054,1,2,23001),
(15067,1,2,55001),
(15066,1,2,59001),
(15068,1,2,63001),
(15069,1,2,63002),
(15070,1,2,63003),
(15071,1,2,63004),
(10372,1,2,101250),
(1807,1,3,11),
(1808,1,3,31),
(1810,1,3,41),
(1811,1,3,61),
(1812,1,3,71),
(1813,1,3,72),
(1814,1,3,74),
(1815,1,3,75),
(1816,1,3,78),
(1817,1,3,79),
(1818,1,3,91),
(1821,1,3,111),
(1822,1,3,121),
(1823,1,3,122),
(1824,1,3,125),
(1825,1,3,161),
(1829,1,3,221),
(1830,1,3,222),
(1831,1,3,229),
(1832,1,3,241),
(1833,1,3,242),
(1834,1,3,243),
(1835,1,3,251),
(1836,1,3,255),
(1837,1,3,256),
(1838,1,3,262),
(1839,1,3,281),
(1840,1,3,282),
(1841,1,3,283),
(1842,1,3,331),
(1843,1,3,531),
(1846,1,3,1001),
(1847,1,3,1002),
(1848,1,3,1003),
(1849,1,3,1004),
(1850,1,3,1005),
(1851,1,3,1181),
(1852,1,3,1182),
(1853,1,3,1201),
(1854,1,3,1202),
(1855,1,3,1231),
(1856,1,3,2401),
(1857,1,3,2402),
(1858,1,3,2403),
(1859,1,3,2411),
(1860,1,3,2412),
(1861,1,3,2413),
(1863,1,3,2515),
(8026,1,4,11),
(8027,1,4,21),
(8028,1,4,31),
(8029,1,4,41),
(8030,1,4,61),
(8031,1,4,71),
(8032,1,4,72),
(8033,1,4,74),
(8034,1,4,75),
(8035,1,4,78),
(8036,1,4,79),
(8037,1,4,81),
(8038,1,4,91),
(8041,1,4,101),
(8042,1,4,111),
(8043,1,4,121),
(8044,1,4,151),
(8045,1,4,161),
(8047,1,4,221),
(8048,1,4,222),
(8049,1,4,229),
(8050,1,4,241),
(8051,1,4,242),
(8052,1,4,243),
(8146,1,4,251),
(8147,1,4,253),
(8053,1,4,262),
(8054,1,4,281),
(8055,1,4,331),
(8056,1,4,341),
(8057,1,4,342),
(8058,1,4,343),
(8059,1,4,344),
(8060,1,4,531),
(8062,1,4,1001),
(8063,1,4,1002),
(8064,1,4,1003),
(8065,1,4,1004),
(8066,1,4,1005),
(8067,1,4,1101),
(8068,1,4,1181),
(8069,1,4,1182),
(8070,1,4,1201),
(8071,1,4,1202),
(8072,1,4,1231),
(8073,1,4,2401),
(8074,1,4,2501),
(8075,1,4,2503),
(8076,1,4,2515),
(8077,1,4,20001),
(12608,1,10,11),
(12609,1,10,21),
(12610,1,10,31),
(12611,1,10,41),
(12612,1,10,61),
(12613,1,10,71),
(12614,1,10,72),
(12615,1,10,74),
(12616,1,10,75),
(12617,1,10,78),
(12618,1,10,79),
(12619,1,10,81),
(12620,1,10,91),
(12623,1,10,101),
(12624,1,10,111),
(12625,1,10,121),
(12626,1,10,151),
(12627,1,10,161),
(12629,1,10,221),
(12630,1,10,222),
(12631,1,10,229),
(12632,1,10,241),
(12633,1,10,242),
(12634,1,10,243),
(12635,1,10,262),
(12636,1,10,281),
(12638,1,10,331),
(12639,1,10,341),
(12640,1,10,342),
(12641,1,10,343),
(12642,1,10,344),
(12643,1,10,531),
(12645,1,10,1001),
(12646,1,10,1002),
(12647,1,10,1003),
(12648,1,10,1004),
(12649,1,10,1005),
(12650,1,10,1101),
(12651,1,10,1181),
(12652,1,10,1182),
(12653,1,10,1201),
(12654,1,10,1202),
(12655,1,10,1231),
(12656,1,10,2401),
(12657,1,10,2501),
(12658,1,10,2503),
(12659,1,10,2515),
(12660,1,10,20001),
(12662,1,10,23001),
(12664,1,11,11),
(12665,1,11,21),
(12666,1,11,31),
(12667,1,11,41),
(12668,1,11,61),
(12669,1,11,71),
(12670,1,11,72),
(12671,1,11,74),
(12672,1,11,75),
(12673,1,11,78),
(12674,1,11,79),
(12675,1,11,81),
(12676,1,11,91),
(12679,1,11,101),
(12680,1,11,111),
(12681,1,11,121),
(12682,1,11,151),
(12683,1,11,161),
(12685,1,11,221),
(12686,1,11,222),
(12687,1,11,229),
(12688,1,11,241),
(12689,1,11,242),
(12690,1,11,243),
(12691,1,11,262),
(12692,1,11,281),
(12694,1,11,331),
(12695,1,11,341),
(12696,1,11,342),
(12697,1,11,343),
(12698,1,11,344),
(12699,1,11,531),
(12701,1,11,1001),
(12702,1,11,1002),
(12703,1,11,1003),
(12704,1,11,1004),
(12705,1,11,1005),
(12706,1,11,1101),
(12707,1,11,1181),
(12708,1,11,1182),
(12709,1,11,1201),
(12710,1,11,1202),
(12711,1,11,1231),
(12712,1,11,2401),
(12713,1,11,2501),
(12714,1,11,2503),
(12715,1,11,2515),
(12716,1,11,20001),
(12718,1,11,23001),
(38772,1,12,11),
(38766,1,12,12),
(38767,1,12,13),
(38768,1,12,14),
(38769,1,12,15),
(38771,1,12,16),
(38773,1,12,19),
(36400,1,12,21),
(36394,1,12,22),
(36395,1,12,24),
(36396,1,12,25),
(36397,1,12,26),
(36399,1,12,27),
(36401,1,12,28),
(36402,1,12,29),
(36376,1,12,31),
(36369,1,12,32),
(36370,1,12,33),
(36373,1,12,34),
(36371,1,12,35),
(36375,1,12,38),
(36377,1,12,39),
(36390,1,12,41),
(36380,1,12,42),
(36382,1,12,44),
(36384,1,12,45),
(38806,1,12,61),
(38803,1,12,62),
(38805,1,12,64),
(38807,1,12,67),
(38808,1,12,68),
(38809,1,12,69),
(38810,1,12,70),
(36317,1,12,71),
(36312,1,12,72),
(36314,1,12,74),
(36318,1,12,75),
(36316,1,12,76),
(36320,1,12,78),
(36321,1,12,79),
(38736,1,12,81),
(38730,1,12,82),
(38731,1,12,84),
(38732,1,12,85),
(38733,1,12,86),
(38734,1,12,87),
(38735,1,12,88),
(38737,1,12,89),
(36495,1,12,91),
(36492,1,12,92),
(36494,1,12,93),
(36496,1,12,94),
(38351,1,12,95),
(36139,1,12,101),
(36135,1,12,102),
(36136,1,12,104),
(36137,1,12,105),
(36138,1,12,106),
(36140,1,12,109),
(38714,1,12,111),
(38705,1,12,112),
(38707,1,12,113),
(38709,1,12,114),
(38711,1,12,115),
(38713,1,12,116),
(38715,1,12,117),
(38880,1,12,121),
(38877,1,12,122),
(38879,1,12,125),
(38881,1,12,126),
(38882,1,12,130),
(36388,1,12,141),
(36387,1,12,142),
(36389,1,12,144),
(36391,1,12,145),
(36364,1,12,151),
(36361,1,12,152),
(36363,1,12,153),
(36365,1,12,154),
(36123,1,12,161),
(36116,1,12,162),
(36118,1,12,163),
(36120,1,12,164),
(36122,1,12,165),
(36124,1,12,167),
(37866,1,12,171),
(37861,1,12,172),
(37863,1,12,173),
(37865,1,12,174),
(37867,1,12,178),
(36302,1,12,221),
(36299,1,12,222),
(36301,1,12,223),
(36303,1,12,229),
(36304,1,12,237),
(36305,1,12,238),
(36306,1,12,239),
(36111,1,12,241),
(36110,1,12,242),
(36112,1,12,243),
(38923,1,12,251),
(38904,1,12,252),
(38906,1,12,253),
(38907,1,12,254),
(38909,1,12,255),
(38911,1,12,256),
(38883,1,12,262),
(38889,1,12,281),
(38886,1,12,282),
(38888,1,12,283),
(38890,1,12,286),
(38719,1,12,301),
(38718,1,12,304),
(38720,1,12,305),
(36106,1,12,331),
(36105,1,12,332),
(36107,1,12,333),
(38912,1,12,341),
(38913,1,12,342),
(38914,1,12,343),
(38915,1,12,344),
(38921,1,12,351),
(38918,1,12,352),
(38920,1,12,353),
(38922,1,12,354),
(38924,1,12,358),
(36132,1,12,431),
(38864,1,12,511),
(38859,1,12,512),
(38861,1,12,514),
(38863,1,12,517),
(38865,1,12,519),
(23700,1,12,520),
(38831,1,12,521),
(38826,1,12,522),
(38828,1,12,524),
(38830,1,12,525),
(38832,1,12,527),
(38873,1,12,531),
(38868,1,12,532),
(38869,1,12,533),
(38872,1,12,534),
(38870,1,12,535),
(38874,1,12,538),
(36357,1,12,561),
(36354,1,12,562),
(36356,1,12,563),
(36358,1,12,564),
(36286,1,12,601),
(36285,1,12,602),
(36287,1,12,609),
(25481,1,12,610),
(38928,1,12,611),
(38927,1,12,612),
(38929,1,12,613),
(38701,1,12,651),
(38700,1,12,652),
(38702,1,12,653),
(38839,1,12,661),
(38838,1,12,662),
(38840,1,12,663),
(36551,1,12,691),
(36550,1,12,692),
(36552,1,12,693),
(38742,1,12,701),
(38741,1,12,702),
(38743,1,12,703),
(36474,1,12,711),
(36473,1,12,712),
(36475,1,12,713),
(38848,1,12,750),
(38847,1,12,751),
(38849,1,12,752),
(38762,1,12,771),
(38751,1,12,772),
(38753,1,12,773),
(38755,1,12,775),
(38757,1,12,776),
(38759,1,12,777),
(38761,1,12,778),
(38763,1,12,779),
(36461,1,12,1001),
(36460,1,12,1002),
(36462,1,12,1003),
(36464,1,12,1004),
(36465,1,12,1005),
(29959,1,12,1008),
(36469,1,12,1011),
(36468,1,12,1012),
(36470,1,12,1013),
(29963,1,12,1014),
(29964,1,12,1015),
(23747,1,12,1016),
(36145,1,12,1101),
(36143,1,12,1102),
(36144,1,12,1104),
(36146,1,12,1109),
(36485,1,12,1121),
(36478,1,12,1122),
(36480,1,12,1123),
(36482,1,12,1124),
(36484,1,12,1125),
(36486,1,12,1126),
(38776,1,12,1181),
(38790,1,12,1182),
(38779,1,12,1183),
(38780,1,12,1184),
(38782,1,12,1185),
(38784,1,12,1186),
(38786,1,12,1187),
(38789,1,12,1188),
(38787,1,12,1189),
(38791,1,12,1191),
(38071,1,12,1201),
(38072,1,12,1202),
(38799,1,12,1231),
(38794,1,12,1232),
(38795,1,12,1233),
(38797,1,12,1234),
(38798,1,12,1235),
(38800,1,12,1236),
(38069,1,12,1251),
(38774,1,12,1321),
(38775,1,12,1322),
(38738,1,12,1421),
(36157,1,12,1521),
(36158,1,12,1522),
(38690,1,12,2401),
(38689,1,12,2402),
(38691,1,12,2403),
(38695,1,12,2411),
(38694,1,12,2412),
(38696,1,12,2413),
(38697,1,12,2414),
(36172,1,12,2451),
(36171,1,12,2452),
(36173,1,12,2453),
(38747,1,12,2501),
(38746,1,12,2503),
(38748,1,12,2515),
(36058,1,12,2610),
(36218,1,12,2801),
(36219,1,12,2802),
(36087,1,12,3201),
(36322,1,12,3301),
(37478,1,12,4001),
(37477,1,12,4002),
(37479,1,12,4003),
(37487,1,12,4021),
(37482,1,12,4022),
(37483,1,12,4023),
(37485,1,12,4025),
(37486,1,12,4028),
(37488,1,12,4029),
(37489,1,12,4031),
(37490,1,12,4032),
(30024,1,12,4033),
(38937,1,12,10001),
(38932,1,12,10002),
(38934,1,12,10003),
(38936,1,12,10005),
(38938,1,12,10008),
(38822,1,12,20001),
(38813,1,12,20002),
(38815,1,12,20003),
(38819,1,12,20004),
(38821,1,12,20005),
(38823,1,12,20006),
(38817,1,12,20007),
(38726,1,12,23001),
(38723,1,12,23002),
(38725,1,12,23003),
(38727,1,12,23004),
(38670,1,12,40001),
(38669,1,12,40002),
(38671,1,12,40003),
(38900,1,12,50151),
(38901,1,12,50152),
(38902,1,12,50153),
(36556,1,12,50331),
(36555,1,12,50332),
(36557,1,12,50333),
(38675,1,12,50401),
(38683,1,12,50411),
(38678,1,12,50412),
(38680,1,12,50414),
(38682,1,12,50415),
(38684,1,12,50418),
(38685,1,12,50420),
(38686,1,12,50430),
(38674,1,12,50440),
(38079,1,12,51001),
(38078,1,12,51002),
(38080,1,12,51003),
(38084,1,12,51004),
(38083,1,12,51005),
(38085,1,12,51006),
(38842,1,12,55001),
(38843,1,12,55002),
(38898,1,12,56001),
(38893,1,12,56002),
(38895,1,12,56003),
(38897,1,12,56004),
(38899,1,12,56006),
(36281,1,12,57001),
(36279,1,12,57002),
(36280,1,12,57003),
(36282,1,12,57004),
(36350,1,12,58000),
(36349,1,12,58001),
(36351,1,12,58002),
(38833,1,12,59001),
(38834,1,12,59002),
(38835,1,12,59003),
(38855,1,12,63001),
(38852,1,12,63002),
(38854,1,12,63003),
(38856,1,12,63004),
(38844,1,12,64001),
(36403,1,12,67001),
(36263,1,12,68001),
(36262,1,12,68002),
(36264,1,12,68004),
(38646,1,12,101051),
(38651,1,12,101060),
(38649,1,12,101061),
(38650,1,12,101062),
(38652,1,12,101068),
(30090,1,12,101331),
(30091,1,12,101332),
(30092,1,12,101333),
(36600,1,12,101410),
(36599,1,12,101411),
(36601,1,12,101412),
(25876,1,12,101701),
(25877,1,12,101702),
(36096,1,12,243001),
(36095,1,12,243002),
(36097,1,12,243003),
(36101,1,12,243011),
(36100,1,12,243012),
(36102,1,12,243013),
(30077,1,12,436150),
(30078,1,12,436151),
(30079,1,12,436152),
(36410,1,12,941601),
(36406,1,12,941602),
(36407,1,12,941603),
(36408,1,12,941604),
(36409,1,12,941605),
(36411,1,12,941606),
(36538,1,12,1100001),
(36536,1,12,6830501),
(36535,1,12,6830502),
(36537,1,12,6830503),
(30084,1,12,10117001),
(30085,1,12,10117002),
(30086,1,12,10117003),
(30087,1,12,50000001),
(30088,1,12,50000002),
(30089,1,12,50000003),
(12776,1,13,11),
(12777,1,13,21),
(12778,1,13,31),
(12779,1,13,41),
(12780,1,13,61),
(12781,1,13,71),
(12782,1,13,72),
(12783,1,13,74),
(12784,1,13,75),
(12785,1,13,78),
(12786,1,13,79),
(12787,1,13,81),
(12788,1,13,91),
(12791,1,13,101),
(12792,1,13,111),
(12793,1,13,121),
(12794,1,13,151),
(12795,1,13,161),
(12797,1,13,221),
(12798,1,13,222),
(12799,1,13,229),
(12800,1,13,241),
(12801,1,13,242),
(12802,1,13,243),
(12803,1,13,262),
(12804,1,13,281),
(12806,1,13,331),
(12807,1,13,341),
(12808,1,13,342),
(12809,1,13,343),
(12810,1,13,344),
(12811,1,13,531),
(12813,1,13,1001),
(12814,1,13,1002),
(12815,1,13,1003),
(12816,1,13,1004),
(12817,1,13,1005),
(12818,1,13,1101),
(12819,1,13,1181),
(12820,1,13,1182),
(12821,1,13,1201),
(12822,1,13,1202),
(12823,1,13,1231),
(12824,1,13,2401),
(12825,1,13,2501),
(12826,1,13,2503),
(12827,1,13,2515),
(12828,1,13,20001),
(12830,1,13,23001),
(12832,1,14,11),
(12833,1,14,21),
(12834,1,14,31),
(12835,1,14,41),
(12836,1,14,61),
(12837,1,14,71),
(12838,1,14,72),
(12839,1,14,74),
(12840,1,14,75),
(12841,1,14,78),
(12842,1,14,79),
(12843,1,14,81),
(12844,1,14,91),
(12847,1,14,101),
(12848,1,14,111),
(12849,1,14,121),
(12850,1,14,151),
(12851,1,14,161),
(12853,1,14,221),
(12854,1,14,222),
(12855,1,14,229),
(12856,1,14,241),
(12857,1,14,242),
(12858,1,14,243),
(12859,1,14,262),
(12860,1,14,281),
(12862,1,14,331),
(12863,1,14,341),
(12864,1,14,342),
(12865,1,14,343),
(12866,1,14,344),
(12867,1,14,531),
(12869,1,14,1001),
(12870,1,14,1002),
(12871,1,14,1003),
(12872,1,14,1004),
(12873,1,14,1005),
(12874,1,14,1101),
(12875,1,14,1181),
(12876,1,14,1182),
(12877,1,14,1201),
(12878,1,14,1202),
(12879,1,14,1231),
(12880,1,14,2401),
(12881,1,14,2501),
(12882,1,14,2503),
(12883,1,14,2515),
(12884,1,14,20001),
(12886,1,14,23001),
(12944,1,16,11),
(12945,1,16,21),
(12946,1,16,31),
(13056,1,16,41),
(13057,1,16,42),
(13058,1,16,44),
(13059,1,16,45),
(12948,1,16,61),
(12949,1,16,71),
(12950,1,16,72),
(12951,1,16,74),
(12952,1,16,75),
(12953,1,16,78),
(12954,1,16,79),
(12955,1,16,81),
(12956,1,16,91),
(12959,1,16,101),
(12960,1,16,111),
(12961,1,16,121),
(13060,1,16,141),
(13061,1,16,142),
(13062,1,16,144),
(12962,1,16,151),
(12963,1,16,161),
(12965,1,16,221),
(12966,1,16,222),
(12967,1,16,229),
(12968,1,16,241),
(12969,1,16,242),
(12970,1,16,243),
(13128,1,16,251),
(13064,1,16,262),
(12972,1,16,281),
(12974,1,16,331),
(12975,1,16,341),
(12976,1,16,342),
(12977,1,16,343),
(12978,1,16,344),
(12979,1,16,531),
(12981,1,16,1001),
(12982,1,16,1002),
(12983,1,16,1003),
(12984,1,16,1004),
(12985,1,16,1005),
(12986,1,16,1101),
(12987,1,16,1181),
(12988,1,16,1182),
(12989,1,16,1201),
(12990,1,16,1202),
(12991,1,16,1231),
(12992,1,16,2401),
(12993,1,16,2501),
(12994,1,16,2503),
(12995,1,16,2515),
(12996,1,16,20001),
(12998,1,16,23001),
(13000,1,17,11),
(13001,1,17,21),
(13002,1,17,31),
(13065,1,17,41),
(13066,1,17,42),
(13067,1,17,44),
(13068,1,17,45),
(13004,1,17,61),
(13005,1,17,71),
(13006,1,17,72),
(13007,1,17,74),
(13008,1,17,75),
(13009,1,17,78),
(13010,1,17,79),
(13011,1,17,81),
(13012,1,17,91),
(13015,1,17,101),
(13016,1,17,111),
(13017,1,17,121),
(13069,1,17,141),
(13070,1,17,142),
(13071,1,17,144),
(13018,1,17,151),
(13019,1,17,161),
(13021,1,17,221),
(13022,1,17,222),
(13023,1,17,229),
(13024,1,17,241),
(13025,1,17,242),
(13026,1,17,243),
(13028,1,17,281),
(13030,1,17,331),
(13031,1,17,341),
(13032,1,17,342),
(13033,1,17,343),
(13034,1,17,344),
(13035,1,17,531),
(13037,1,17,1001),
(13038,1,17,1002),
(13039,1,17,1003),
(13040,1,17,1004),
(13041,1,17,1005),
(13042,1,17,1101),
(13043,1,17,1181),
(13044,1,17,1182),
(13045,1,17,1201),
(13046,1,17,1202),
(13047,1,17,1231),
(13048,1,17,2401),
(13049,1,17,2501),
(13050,1,17,2503),
(13051,1,17,2515),
(13052,1,17,20001),
(13054,1,17,23001),
(14504,1,18,11),
(14505,1,18,21),
(14506,1,18,31),
(14507,1,18,41),
(14508,1,18,61),
(14509,1,18,71),
(14510,1,18,78),
(14511,1,18,81),
(14512,1,18,91),
(14514,1,18,101),
(14515,1,18,111),
(14516,1,18,121),
(14517,1,18,151),
(14518,1,18,161),
(14519,1,18,221),
(14520,1,18,241),
(14521,1,18,262),
(14522,1,18,281),
(14524,1,18,331),
(14525,1,18,332),
(14526,1,18,333),
(14527,1,18,341),
(14528,1,18,342),
(14529,1,18,343),
(14530,1,18,344),
(14531,1,18,531),
(14532,1,18,701),
(14533,1,18,771),
(14535,1,18,1001),
(14536,1,18,1004),
(14537,1,18,1101),
(14538,1,18,1181),
(14539,1,18,1182),
(14540,1,18,1201),
(14541,1,18,1231),
(14542,1,18,2401),
(14543,1,18,2501),
(14544,1,18,2503),
(14545,1,18,2515),
(14546,1,18,20001),
(14549,1,18,59001),
(15242,1,19,21),
(15243,1,19,31),
(15244,1,19,41),
(15245,1,19,61),
(15246,1,19,71),
(15247,1,19,78),
(15248,1,19,81),
(15249,1,19,101),
(15250,1,19,121),
(15251,1,19,151),
(15252,1,19,161),
(15253,1,19,221),
(15254,1,19,241),
(15255,1,19,262),
(15256,1,19,281),
(15258,1,19,331),
(15259,1,19,332),
(15260,1,19,341),
(15261,1,19,342),
(15262,1,19,343),
(15263,1,19,344),
(15264,1,19,531),
(15265,1,19,701),
(15266,1,19,771),
(15268,1,19,777),
(15269,1,19,1001),
(15270,1,19,1004),
(15271,1,19,1101),
(15272,1,19,1121),
(15273,1,19,1181),
(15274,1,19,1182),
(15275,1,19,1201),
(15276,1,19,1231),
(15277,1,19,2401),
(15278,1,19,2501),
(15279,1,19,20001),
(15282,1,19,59001),
(15283,1,19,63001),
(22910,1,22,701),
(23925,1,29,21),
(23926,1,29,31),
(23927,1,29,41),
(23928,1,29,61),
(23929,1,29,151),
(23930,1,29,161),
(23931,1,29,241),
(23940,1,29,251),
(23932,1,29,301),
(23933,1,29,304),
(23939,1,29,342),
(23941,1,29,358),
(23935,1,29,701),
(23936,1,29,1001),
(23937,1,29,1004),
(23938,1,29,1201),
(36560,1,29,101051),
(36559,1,29,101060),
(36558,1,29,101062),
(30467,1,31,31),
(30468,1,31,41),
(30469,1,31,151),
(30470,1,31,161),
(30471,1,31,241),
(30472,1,31,1201),
(30473,1,31,40001),
(30474,1,32,31),
(30475,1,32,41),
(30476,1,32,151),
(30477,1,32,161),
(30478,1,32,241),
(30479,1,32,1201),
(30480,1,32,40001),
(30481,1,33,31),
(30482,1,33,41),
(30483,1,33,151),
(30484,1,33,161),
(30485,1,33,241),
(30486,1,33,1201),
(30487,1,33,40001),
(30488,1,34,31),
(30489,1,34,41),
(30490,1,34,151),
(30491,1,34,161),
(30492,1,34,241),
(30493,1,34,1201),
(30494,1,34,40001),
(30495,1,35,31),
(30496,1,35,41),
(30497,1,35,151),
(30498,1,35,161),
(30499,1,35,241),
(30500,1,35,1201),
(30501,1,35,40001),
(30502,1,36,31),
(30503,1,36,41),
(30504,1,36,151),
(30505,1,36,161),
(30506,1,36,241),
(30507,1,36,1201),
(30508,1,36,40001),
(30509,1,37,31),
(30510,1,37,41),
(30511,1,37,151),
(30512,1,37,161),
(30513,1,37,241),
(30514,1,37,1201),
(30515,1,37,40001),
(30516,1,38,31),
(30517,1,38,41),
(30518,1,38,151),
(30519,1,38,161),
(30520,1,38,241),
(30521,1,38,1201),
(30522,1,38,40001),
(30787,1,39,31),
(30788,1,39,41),
(30789,1,39,151),
(30790,1,39,161),
(30791,1,39,241),
(30792,1,39,1201),
(30793,1,39,40001);

--
-- Table structure for table `llx_usergroup`
--

CREATE TABLE `llx_usergroup` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_usergroup`
--

INSERT INTO `llx_usergroup` VALUES
(1,'Sale representatives',1,'2015-01-16 20:48:08','2017-10-03 09:44:44','All sales representative users',NULL),
(2,'Management',1,'2017-10-03 11:46:25','2017-10-03 09:46:25','',NULL),
(3,'Scientists',1,'2017-10-03 11:46:46','2017-10-03 09:46:46','',NULL),
(4,'Commercial',1,'2017-10-05 21:30:13','2017-10-05 19:30:13','',NULL);

--
-- Table structure for table `llx_usergroup_extrafields`
--

CREATE TABLE `llx_usergroup_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_usergroup_extrafields`
--


--
-- Table structure for table `llx_usergroup_rights`
--

CREATE TABLE `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`),
  KEY `fk_usergroup_rights_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_usergroup_rights`
--

INSERT INTO `llx_usergroup_rights` VALUES
(1,1,1,2401),
(2,1,1,2402),
(3,1,1,2403),
(4,1,1,2411),
(5,1,1,2412),
(6,1,1,2413),
(78,1,2,11),
(79,1,2,12),
(80,1,2,13),
(81,1,2,14),
(82,1,2,15),
(83,1,2,16),
(84,1,2,19),
(144,1,2,21),
(145,1,2,22),
(146,1,2,24),
(147,1,2,25),
(148,1,2,26),
(149,1,2,27),
(150,1,2,28),
(133,1,2,31),
(134,1,2,32),
(135,1,2,34),
(136,1,2,38),
(137,1,2,41),
(138,1,2,42),
(139,1,2,44),
(140,1,2,45),
(86,1,2,61),
(87,1,2,62),
(88,1,2,64),
(89,1,2,67),
(90,1,2,68),
(7,1,2,71),
(8,1,2,72),
(9,1,2,74),
(10,1,2,75),
(11,1,2,76),
(12,1,2,78),
(13,1,2,79),
(32,1,2,81),
(33,1,2,82),
(34,1,2,84),
(35,1,2,86),
(36,1,2,87),
(37,1,2,88),
(38,1,2,89),
(173,1,2,91),
(174,1,2,92),
(175,1,2,93),
(176,1,2,94),
(66,1,2,101),
(67,1,2,102),
(68,1,2,104),
(69,1,2,105),
(70,1,2,106),
(71,1,2,109),
(21,1,2,111),
(22,1,2,112),
(23,1,2,113),
(24,1,2,114),
(25,1,2,115),
(26,1,2,116),
(27,1,2,117),
(164,1,2,121),
(165,1,2,122),
(166,1,2,125),
(167,1,2,126),
(141,1,2,141),
(142,1,2,142),
(143,1,2,144),
(129,1,2,151),
(130,1,2,152),
(131,1,2,153),
(132,1,2,154),
(44,1,2,161),
(45,1,2,162),
(46,1,2,163),
(47,1,2,164),
(48,1,2,165),
(49,1,2,167),
(120,1,2,221),
(121,1,2,222),
(122,1,2,223),
(123,1,2,229),
(124,1,2,237),
(125,1,2,238),
(126,1,2,239),
(29,1,2,241),
(30,1,2,242),
(31,1,2,243),
(182,1,2,251),
(183,1,2,252),
(184,1,2,253),
(185,1,2,254),
(186,1,2,255),
(187,1,2,256),
(168,1,2,262),
(169,1,2,281),
(170,1,2,282),
(171,1,2,283),
(172,1,2,286),
(197,1,2,331),
(198,1,2,332),
(199,1,2,333),
(188,1,2,341),
(189,1,2,342),
(190,1,2,343),
(191,1,2,344),
(192,1,2,351),
(193,1,2,352),
(194,1,2,353),
(195,1,2,354),
(196,1,2,358),
(151,1,2,531),
(152,1,2,532),
(153,1,2,534),
(154,1,2,538),
(60,1,2,701),
(61,1,2,702),
(62,1,2,703),
(177,1,2,1001),
(178,1,2,1002),
(179,1,2,1003),
(180,1,2,1004),
(181,1,2,1005),
(72,1,2,1101),
(73,1,2,1102),
(74,1,2,1104),
(75,1,2,1109),
(91,1,2,1181),
(92,1,2,1182),
(93,1,2,1183),
(94,1,2,1184),
(95,1,2,1185),
(96,1,2,1186),
(97,1,2,1187),
(98,1,2,1188),
(99,1,2,1189),
(76,1,2,1201),
(77,1,2,1202),
(100,1,2,1231),
(101,1,2,1232),
(102,1,2,1233),
(103,1,2,1234),
(104,1,2,1235),
(105,1,2,1236),
(113,1,2,1251),
(85,1,2,1321),
(39,1,2,1421),
(14,1,2,2401),
(15,1,2,2402),
(16,1,2,2403),
(17,1,2,2411),
(18,1,2,2412),
(19,1,2,2413),
(20,1,2,2414),
(63,1,2,2501),
(64,1,2,2503),
(65,1,2,2515),
(114,1,2,20001),
(115,1,2,20002),
(116,1,2,20003),
(117,1,2,20004),
(118,1,2,20005),
(119,1,2,20006),
(50,1,2,23001),
(51,1,2,23002),
(52,1,2,23003),
(53,1,2,23004),
(127,1,2,55001),
(128,1,2,55002);

--
-- Table structure for table `llx_usergroup_user`
--

CREATE TABLE `llx_usergroup_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  KEY `fk_usergroup_user_fk_user` (`fk_user`),
  KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_usergroup_user`
--

INSERT INTO `llx_usergroup_user` VALUES
(2,1,1,3),
(12,1,2,4),
(14,1,3,2),
(3,1,3,3),
(4,1,11,2),
(5,1,13,4),
(6,1,16,1),
(7,1,17,1),
(11,1,18,1);

--
-- Table structure for table `llx_webhook_history`
--

CREATE TABLE `llx_webhook_history` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `trigger_data` text NOT NULL,
  `fk_target` int(11) NOT NULL,
  `url` int(11) NOT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `llx_webhook_history`
--


--
-- Table structure for table `llx_webhook_target`
--

CREATE TABLE `llx_webhook_target` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `label` varchar(255) DEFAULT NULL,
  `type` int(11) NOT NULL DEFAULT 0,
  `description` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  `url` varchar(255) NOT NULL,
  `connection_method` varchar(255) DEFAULT NULL,
  `connection_data` varchar(255) DEFAULT NULL,
  `trigger_codes` text DEFAULT NULL,
  `trigger_stack` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_webhook_target_rowid` (`rowid`),
  KEY `idx_webhook_target_ref` (`ref`),
  KEY `llx_webhook_target_fk_user_creat` (`fk_user_creat`),
  KEY `idx_webhook_target_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_webhook_target`
--

INSERT INTO `llx_webhook_target` VALUES
(16,'16','dd',0,'',NULL,NULL,'2023-02-19 22:05:14','2023-02-20 01:05:14',12,12,NULL,1,'ddd',NULL,NULL,'fdfd,gdfgfd,KNOWLEDGERECORD_DELETE,PARTNERSHIP_CREATE',NULL);

--
-- Table structure for table `llx_website`
--

CREATE TABLE `llx_website` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(128) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `fk_default_home` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `maincolor` varchar(16) DEFAULT NULL,
  `maincolorbis` varchar(16) DEFAULT NULL,
  `use_manifest` int(11) DEFAULT NULL,
  `lang` varchar(8) DEFAULT NULL,
  `otherlang` varchar(255) DEFAULT NULL,
  `position` int(11) DEFAULT 0,
  `lastaccess` datetime DEFAULT NULL,
  `pageviews_month` bigint(20) unsigned DEFAULT 0,
  `pageviews_total` bigint(20) unsigned DEFAULT 0,
  `pageviews_previous_month` bigint(20) unsigned DEFAULT 0,
  `name_template` varchar(255) DEFAULT NULL,
  `lastpageid` int(11) DEFAULT 0,
  `paymentframemode` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_ref` (`ref`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_website`
--

INSERT INTO `llx_website` VALUES
(12,1,'mytestwebsite','',1,92,NULL,'2024-06-20 11:33:08',NULL,'2025-06-25 17:10:19',12,12,NULL,NULL,NULL,0,'en','fr',0,'2025-06-25 17:10:19',158,158,147,NULL,92,0),
(13,1,'aaa','',1,93,'','2024-12-29 19:47:22',NULL,'2025-05-16 08:23:01',12,NULL,NULL,NULL,NULL,NULL,'en','',0,'2025-05-16 08:23:01',10,10,8,'website_template-restaurant',93,0),
(14,1,'bbb','',1,94,'','2024-12-29 19:49:56',NULL,'2025-03-27 10:15:22',12,NULL,NULL,NULL,NULL,NULL,'en','',0,'2025-03-27 10:15:22',33,33,32,'website_template-noimg',94,0),
(35,1,'ccc','',1,222,NULL,'2024-12-31 13:35:29',NULL,'2025-04-16 22:23:24',12,12,NULL,NULL,NULL,0,'en','',0,'2025-04-16 22:23:24',16,16,8,'website_template-corporate',225,0),
(37,1,'marketplace','Welcome to the Marketplace of MyBigCompany Company',1,115,NULL,'2024-12-31 14:03:08',NULL,'2025-04-16 22:22:16',12,NULL,NULL,NULL,NULL,NULL,'en','fr,de,it,es',0,'2025-04-16 22:22:16',26,26,25,'website_template-dolistore',115,0),
(38,1,'test','',1,173,'','2025-03-27 09:56:27',NULL,'2025-05-06 10:40:51',12,NULL,NULL,NULL,NULL,NULL,'en','fr,de,it,es',0,'2025-05-06 10:40:51',5,5,3,'website_template-dolistore',169,0),
(39,1,'test2','',1,211,'','2025-03-27 10:01:42',NULL,'2025-05-06 11:45:37',12,NULL,NULL,NULL,NULL,NULL,'en','',0,'2025-05-06 11:45:37',25,25,18,'website_asso02-20250326175312-V22',211,0),
(40,1,'test3','',1,236,'','2025-05-06 12:41:51',NULL,'2025-05-16 08:23:05',12,NULL,NULL,NULL,NULL,NULL,'en','en,fr,de,it,es',0,'2025-05-16 08:23:05',63,63,0,'website_asso3-20250505174005-V22',236,0),
(41,1,'test4','',1,258,NULL,'2025-05-16 10:23:12',NULL,'2025-05-16 10:10:11',12,12,NULL,NULL,NULL,0,'en','en,fr',0,'2025-05-16 10:10:11',22,22,0,'website_template-association_exp',267,0),
(42,1,'test5','',1,280,'','2025-05-16 12:09:58',NULL,'2025-06-02 17:28:47',12,NULL,NULL,NULL,NULL,NULL,'en','en,fr,de,it,es',0,'2025-06-02 17:28:47',1,1,0,'website_template-association_exp',289,0),
(43,1,'test6','',1,302,NULL,'2025-06-02 17:36:35',NULL,'2025-06-02 19:14:24',12,12,NULL,NULL,NULL,0,'en','en,fr,de,it,es',0,'2025-06-02 19:14:24',1,1,0,'website_template-association_exp',310,0),
(44,1,'test7','',1,NULL,'','2025-06-16 19:46:50',NULL,'2025-06-16 19:47:14',12,NULL,NULL,NULL,NULL,NULL,'fr','',0,NULL,0,0,0,NULL,0,0),
(46,1,'ddd','',1,NULL,'','2025-06-16 19:53:34',NULL,'2025-06-16 17:53:34',12,NULL,NULL,NULL,NULL,NULL,'fr','',0,NULL,0,0,0,NULL,0,0),
(47,1,'eee','',1,NULL,'','2025-06-16 19:57:47',NULL,'2025-06-16 17:57:47',12,NULL,NULL,NULL,NULL,NULL,'fr','',0,NULL,0,0,0,NULL,0,0);

--
-- Table structure for table `llx_website_extrafields`
--

CREATE TABLE `llx_website_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_website_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_website_extrafields`
--


--
-- Table structure for table `llx_website_page`
--

CREATE TABLE `llx_website_page` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_website` int(11) NOT NULL,
  `pageurl` varchar(255) DEFAULT NULL,
  `aliasalt` varchar(255) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `content` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `type_container` varchar(16) NOT NULL DEFAULT 'page',
  `lang` varchar(6) DEFAULT NULL,
  `fk_page` int(11) DEFAULT NULL,
  `grabbed_from` varchar(255) DEFAULT NULL,
  `htmlheader` mediumtext DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `author_alias` varchar(64) DEFAULT NULL,
  `allowed_in_frames` int(11) DEFAULT 0,
  `object_type` varchar(255) DEFAULT NULL,
  `fk_object` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`),
  CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `llx_website` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=315 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_website_page`
--

INSERT INTO `llx_website_page` VALUES
(92,12,'aaa','','aaa','','','dddd\r\n\r\n<br>\r\n<?php \r\n\r\n{\r\ntry {\r\n    \'rr\';\r\n} catch(Exception $e){\r\n    \r\n}\r\n\r\n}\r\n\r\n?>\r\n\r\n\r\nfdfd',1,'2024-12-03 11:33:30',NULL,'2025-01-28 15:14:34',12,12,'page',NULL,NULL,NULL,'',NULL,'','',0,'',''),
(93,13,'index','','Home page','','','<!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable=\"true\" if you want to use the inline editor for the content  -->\n<?php \n    if (GETPOST(\'action\') == \'sendmail\')    {\n    include_once DOL_DOCUMENT_ROOT.\'/core/class/CMailFile.class.php\';\n    $from = GETPOST(\'email\', \'alpha\');\n    $to = $mysoc->email;\n    $message = GETPOST(\'message\', \'alpha\');\n    $cmail = new CMailFile(\'Contact from website\', $to, $from, $message);\n    if ($cmail->sendfile()) {\n        ?>\n        <script>\n            alert(\"Message sent successfully !\");\n        </script>\n        <?php\n	} else {\n		echo $langs->trans(\"ErrorFailedToSendMail\", $from, $to).\'. \'.$cmail->error;\n	}\n}\n?>\n<section id=\"mysection1\" contenteditable=\"true\">\n        <nav class=\"navbar navbar-expand-lg navbar-dark position-fixed px-3\">\n                <a class=\"navbar-brand fw-bold fs-2\" href=\"#landing\"> Company </a>\n                <button\n                    class=\"navbar-toggler\"\n                    type=\"button\"\n                    data-bs-toggle=\"collapse\"\n                    data-bs-target=\"#navbarSupportedContent\"\n                    aria-controls=\"navbarSupportedContent\"\n                    aria-expanded=\"false\"\n                    aria-label=\"Toggle navigation\"\n                >\n                    <span class=\"navbar-toggler-icon\"></span>\n                </button>\n                <div\n                    class=\"collapse navbar-collapse\"\n                    id=\"navbarSupportedContent\"\n                >\n                    <ul class=\"navbar-nav me-auto mb-2 mb-lg-0 fw-bold \">\n                        <li class=\"nav-item\">\n                            <a\n                                class=\"nav-link active\"\n                                aria-current=\"page\"\n                                href=\"#landing\"\n                                >Description</a\n                            >\n                        </li>\n                        <li class=\"nav-item\">\n                            <a class=\"nav-link\" aria-current=\"page\" href=\"#team\"\n                                >Team</a\n                            >\n                        </li>\n                        <li class=\"nav-item\">\n                            <a class=\"nav-link\" href=\"#contact\">Contact</a>\n                        </li>\n                        <li class=\"nav-item dropdown\">\n                            <a\n                                class=\"nav-link dropdown-toggle\"\n                                href=\"#\"\n                                id=\"navbarDropdown\"\n                                role=\"button\"\n                                data-bs-toggle=\"dropdown\"\n                                aria-expanded=\"false\"\n                            >\n                                Useful links\n                            </a>\n                            <ul\n                                class=\"dropdown-menu\"\n                                aria-labelledby=\"navbarDropdown\"\n                            >\n                                <li>\n                                    <a class=\"dropdown-item\" href=\"#\" onclick=\"alert(\'define link\')\">Link One</a>\n                                </li>\n                                <li>\n                                    <a class=\"dropdown-item\" href=\"#\" onclick=\"alert(\'define link\')\"\n                                        >Link two</a\n                                    >\n                                </li>\n                                <li><hr class=\"dropdown-divider\" /></li>                                \n                            </ul>\n                        </li>                       \n                    </ul>                    \n                </div>\n            </nav>\n   \n        <section id=\"landing\">\n            <main class=\"landing-content container text-center\">\n                <div class=\"row\">\n                    <div class=\"col-md-12\">\n                        <h1 id=\"title\">Get Productive</h1>\n                        <p>\n                            Lorem ipsum dolor, sit amet consectetur adipisicing\n                            elit. Ab fuga nobis omnis alias, aliquid iste cumque\n                            tempora nam reprehenderit quia itaque debitis,\n                            nostrum labore rerum reiciendis laboriosam unde,\n                            tempore corporis.\n                        </p>\n                        <img\n                            class=\"img-landing img-fluid\"\n                            src=\"/image/aaa/bg.png\"                            \n                            alt=\"landing-img\"\n                        />                        \n                    </div>\n                    <a href=\"#desc\" id=\"desc-btn\" class=\"btn btn-perso w-auto mx-auto\">   \n                        Learn More <span class=\"bi-arrow-down\"></span>\n                    </a>\n                </div>\n            </main>\n        </section>\n        <section id=\"desc\">\n            <div class=\"container text-white\">\n                <div class=\"row flex text-center article\">\n                    <div class=\"col-md-6\">\n                        <h1 class=\"article-title fw-bold text-center\">\n                            LOREM IPSUM DOLOR SIT AMET EZAJB\n                        </h1>\n                        <img\n                            src=\"/image/aaa/article.png\"\n                            width=\"50%\"\n                            alt=\"article\"\n                        />\n                    </div>\n                    <div class=\"col-md-6\">\n                        <h1>Our Company</h1>\n                        <p>\n                            Lorem ipsum dolor, sit amet consectetur adipisicing\n                            elit. Ab fuga nobis omnis alias, aliquid iste cumque\n                            tempora nam reprehenderit quia itaque debitis,\n                            nostrum labore rerum reiciendis laboriosam unde,\n                            tempore corporis.\n                        </p>                        \n                    </div>\n                </div>\n            </div>\n        </section>\n        <section id=\"team\">\n            <div class=\"container\">\n                <div class=\"row founders-article\">\n                    <div class=\"col-md-10 mx-auto my-auto\">\n                        <h1 class=\"text-center\">Founders</h1>\n                        <ul id=\"authors\" class=\"list-group-flush mt-5\">                            \n                            <li id=\"one\" onmouseenter=\"addPointClass(this)\" onmouseleave=\"removePointClass(this)\" class=\"list-group-item\">\n                                <h3>Author One</h3>\n                            </li>\n                            <li id=\"two\" onmouseenter=\"addPointClass(this)\" onmouseleave=\"removePointClass(this)\" class=\"list-group-item\">\n                                <h3>Author Two</h3>\n                            </li>\n                            <li id=\"three\" onmouseenter=\"addPointClass(this)\" onmouseleave=\"removePointClass(this)\" class=\"list-group-item\">\n                                <h3>Author Three</h3>\n                            </li>\n                            <li id=\"four\" onmouseenter=\"addPointClass(this)\" onmouseleave=\"removePointClass(this)\" class=\"list-group-item\">\n                                <h3>Author Four</h3>\n                            </li>\n                        </ul>\n                    </div>                   \n                    <div class=\"col-md-8 mx-auto\">\n                        <h4 class=\"text-center text-secondary\">About</h4>\n                        <p class=\"text-left \" id=\"aboutAuthor\">\n                            Lorem ipsum dolor sit amet consectetur adipisicing elit. Veritatis accusantium earum sed odit velit laudantium ex libero quisquam consectetur, \n                            dolorem vero ipsam perferendis quibusdam itaque omnis a consequatur error repellat.\n                        </p>\n                    </div>                                  \n            </div>\n        </section>\n        <section class=\"\" id=\"contact\">\n\n            <div class=\"container\">\n                <h1 class=\"h1-responsive font-weight-bold text-center my-4\">Contact us</h1>\n                <!--Section description-->\n                <p class=\"text-center w-responsive mx-auto mb-5\">Do you have any questions? Please do not hesitate to contact us directly. Our team will come back to you within\n                    a matter of hours to help you.</p>\n            \n                <div class=\"row\">\n            \n                    <!--Grid column-->\n                    <div class=\"col-md-9 mb-md-0 mb-5\">\n                        <form action=\"index.php\" method=\"POST\">\n                        <input type=\"hidden\" name=\"token\" value=\"<?php echo newToken(); ?>\" />\n                        <input type=\"hidden\" name=\"action\" value=\"sendmail\">\n                        <div class=\"row gy-3\">\n                            <div class=\"col-12 col-md-6\">\n                                <div class=\"form-group\">\n                                    <label>Email</label>\n                                    <input\n                                        name=\"email\"\n                                        type=\"email\"\n                                        class=\"form-control\"\n                                        placeholder=\"Email\"\n                                    />\n                                </div>\n                                <div class=\"form-group\">\n                                    <label>Name</label>\n                                    <input\n                                        name=\"name\"\n                                        type=\"text\"\n                                        class=\"form-control\"\n                                        placeholder=\"Name\"\n                                    />\n                                </div>\n                                <div class=\"form-group\">\n                                    <label>Phone</label>\n                                    <input\n                                        name=\"phone\"\n                                        type=\"text\"\n                                        class=\"form-control\"\n                                        placeholder=\"Phone\"\n                                    />\n                                </div>\n                            </div>\n                            <div class=\"col-12 col-md-6\">\n                                <div class=\"form-group\">\n                                    <label>Message</label>\n                                    <textarea\n                                        name=\"message\"\n                                        class=\"form-control\"\n                                        rows=\"6\"\n                                        placeholder=\"Your message\"\n                                    ></textarea>\n                                </div>\n                            </div>\n                            <div class=\"col-12 mt-3\">\n                                <div class=\"text-center text-md-left\">\n                            <input type=\"submit\" class=\"btn btn-perso mt-3 fw-bold fs-5\" value=\"Send message\" />\n                        </div>\n                            </div>\n                        </div>\n                    </form>\n            \n                        \n                    </div>\n                     <div class=\"col-md-3 text-center\">\n                        <ul class=\"list-unstyled mb-0\">\n                            <li><i class=\"fas fa-map-marker-alt fa-2x\"></i>\n                                <p><?php echo $mysoc->getFullAddress() ?></p>\n                            </li>\n            \n                            <li><i class=\"fas fa-phone mt-4 fa-2x\"></i>\n                                <p><?php echo $mysoc->phone ?></p>\n                            </li>\n            \n                            <li><i class=\"fas fa-envelope mt-4 fa-2x\"></i>\n                                <p><?php echo $mysoc->email ?></p>\n                            </li>\n                        </ul>\n                    </div>             \n\n            </div>\n            \n                      \n                </div>\n        </section>\n        <script>\n          const about = document.getElementById(\"aboutAuthor\");\n            const commonText = \"Lorem ipsum dolor sit amet consectetur adipisicing elit. Veritatis accusantium earum sed odit velit laudantium ex libero quisquam consectetur, dolorem vero ipsam perferendis quibusdam itaque omnis a consequatur error repellat\";\n            const authorsText = {\n                one: \"Author 1 : lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis\",\n                two: \"Author 2 : lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipislorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis\",\n                three: \"Author 3 : lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipislorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis\",\n                four: \"Author 4 : lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis lorem ipsum dolor sit amet, consectetur adipis\",\n            }                                \n\n            addPointClass = function(point) {\n                point.classList.add(\"pointed\");  \n                about.innerText = authorsText[point.id];                                  \n            };\n            \n            removePointClass = function(point) {\n                point.classList.remove(\"pointed\");        \n                about.innerText = commonText;                        \n            };\n        </script>\n</section>\n',1,'2022-07-27 00:42:00',NULL,'2022-10-09 10:36:07',NULL,NULL,'page','',NULL,'','<script\n    src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js\"\n    integrity=\"sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM\"\n    crossorigin=\"anonymous\"\n></script>',NULL,'','',0,NULL,NULL),
(94,14,'index','','index','','','<!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable=\"true\" if you want to use the inline editor for the content  -->\n<?php \n    if (GETPOST(\'action\') == \'sendmail\')    {\n    include_once DOL_DOCUMENT_ROOT.\'/core/class/CMailFile.class.php\';\n    $from = GETPOST(\'email\', \'alpha\');\n    $to = $mysoc->email;\n    $message = GETPOST(\'message\', \'alpha\');\n    $cmail = new CMailFile(\'Contact from website\', $to, $from, $message);\n    if ($cmail->sendfile()) {\n        ?>\n        <script>\n            alert(\"Message sent successfully !\");\n        </script>\n        <?php\n	} else {\n		echo $langs->trans(\"ErrorFailedToSendMail\", $from, $to).\'. \'.$cmail->error;\n	}\n}\n?>\n<section id=\"mysection1\" contenteditable=\"true\">\n                            <div class=\"container\">\n\n            <nav class=\"navbar navbar-expand-lg navbar-dark position-fixed px-3\">\n                            <a href=\"#home\" class=\"navbar-brand text-center\">\n                                <h1>Brand Name</h1>\n                            </a>\n                            <button\n                                class=\"navbar-toggler\"\n                                type=\"button\"\n                                data-bs-toggle=\"collapse\"\n                                data-bs-target=\"#navbarNav\"\n                                aria-controls=\"navbarNav\"\n                                aria-expanded=\"false\"\n                                aria-label=\"Toggle navigation\"\n                            >\n                                <span class=\"navbar-toggler-icon\"></span>\n                            </button>\n                            <div\n                                class=\"collapse navbar-collapse justify-content-end\"\n                                id=\"navbarNav\"\n                            >\n                                <ul class=\"navbar-nav\">\n                                    <li class=\"nav-item fs-5\">\n                                        <a href=\"#products\" class=\"nav-link\"\n                                            >Products</a\n                                        >\n                                    </li>\n                                    <li class=\"nav-item fs-5\">\n                                        <a href=\"#contact\" class=\"nav-link\">\n                                            Contact\n                                        </a>\n                                    </li>\n                                </ul>\n                            \n                        </div>\n                    </nav>\n                    </div>\n                                    <section id=\"home\" class=\"\">\n\n                <div class=\" container full-height pt-5\">\n                    <div class=\"row pt-5\">\n                        <div class=\"col text-center desc\">\n                            <h1 class=\"py-5 fw-bold\" id=\"title\">\n                                <span class=\"color\">Brand</span>\n                                Name\n                            </h1>\n                            <p class=\"h3\">\n                                Hello fellows, here is a description of the\n                                brand\n                            </p>\n                            <a href=\"#products\">\n                                <button class=\"mt-5 btn btn-color\"\n                                <i class=\"fas fa-shopping-cart\"></i>\n                                Learn More\n                                </button>\n                            </a>\n                        </div>\n                    </div>\n                </div>\n            </section>\n            \n            <section id=\"products\" class=\"py-5\">\n                <div class=\"container text-dark my-5 py-5 full-height\">\n                    <div class=\"row gy-5 p-3\">\n                        <div class=\"col text-center\">\n                            <h1 class=\"pt-2 pb-5 fw-bold\">Products</h1>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                               \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 1</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                                \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 2</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                                \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 3</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                                \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 4</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                                \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 5</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-md-4\">\n                            <div class=\"card\">\n                                \n                                <div class=\"card-body\">\n                                    <h2 class=\"card-title\">Product 6</h2>\n                                    <p class=\"card-text\">\n                                        Some quick example text to build on the\n                                        card title and make up the bulk of the\n                                        card\'s content.\n                                    </p>\n                                    <a href=\"#\">\n                                        <button class=\"btn btn-color\">\n                                            Learn More\n                                        </button>\n                                    </a>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </section>\n\n            <section id=\"contact\" class=\"py-5\">\n                <div class=\"container py-5 my-5 full-height\">\n                    <div class=\"row text-center\">\n                        <div class=\"col text-center\"><h1>Contact us</h1></div>\n                        <p class=\"fw-bold h5\">\n                            <span class=\"color\">Email</span>: <?php echo $mysoc->email ?>\n                        </p>\n                        <p class=\"fw-bold h5\">\n                            <span class=\"color\">Phone-number</span>: <?php echo $mysoc->phone ?>\n                        </p>\n                    </div>\n                    <div class=\"row\">\n                        <p class=\"text-center fw-bold h5 my-5\">\n                            Or complete the form\n                        </p>\n                    </div>\n                    <form action=\"index.php\" method=\"POST\">\n                        <input type=\"hidden\" name=\"token\" value=\"<?php echo newToken(); ?>\" />\n                        <input type=\"hidden\" name=\"action\" value=\"sendmail\">\n                        <div class=\"row gy-3\">\n                            <div class=\"col-12 col-md-6\">\n                                <div class=\"form-group\">\n                                    <label>Email</label>\n                                    <input\n                                        name=\"email\"\n                                        type=\"email\"\n                                        class=\"form-control\"\n                                        placeholder=\"Email\"\n                                    />\n                                </div>\n                                <div class=\"form-group\">\n                                    <label>Name</label>\n                                    <input\n                                        name=\"name\"\n                                        type=\"text\"\n                                        class=\"form-control\"\n                                        placeholder=\"Name\"\n                                    />\n                                </div>\n                                <div class=\"form-group\">\n                                    <label>Phone</label>\n                                    <input\n                                        name=\"phone\"\n                                        type=\"text\"\n                                        class=\"form-control\"\n                                        placeholder=\"Phone\"\n                                    />\n                                </div>\n                            </div>\n                            <div class=\"col-12 col-md-6\">\n                                <div class=\"form-group\">\n                                    <label>Message</label>\n                                    <textarea\n                                        name=\"message\"\n                                        class=\"form-control\"\n                                        rows=\"6\"\n                                        placeholder=\"Your message\"\n                                    ></textarea>\n                                </div>\n                            </div>\n                            <div class=\"col-12 mt-3\">\n                                <div class=\"text-center form-group\">\n                                    <input\n                                        type=\"submit\"\n                                        class=\"mt-5 btn btn-color-filled text-center text-white fw-bold\"\n                                        value=\"Send message\"\n                                    />\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </section>\n\n</section>\n',1,'2022-07-04 15:13:49',NULL,'2022-09-26 12:48:51',NULL,NULL,'page','',NULL,'','<head>\n        <meta charset=\"UTF-8\" />\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n\n    <!-- Font Awesome -->\n        <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n        <link href=\"https://fonts.googleapis.com/css2?family=Hurricane&display=swap\" rel=\"stylesheet\"> \n        <script\n            src=\"https://kit.fontawesome.com/14273d579a.js\"\n            crossorigin=\"anonymous\"\n        ></script>\n\n\n        <title>Template</title>\n    </head>',NULL,'','',0,NULL,NULL),
(95,37,'404','','404','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php \n            includeContainer(\'header\');\n            $__PAGE__TITLE__ = $weblangs->trans(\"notFoundPageTitle\");\n        ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"e404_section\" contenteditable=\"true\">\n    			<div class=\"rte e404\">\n    				<h1>404</h1>\n                    <h2><?php print $weblangs->trans(\"pageNotFound\"); ?></h2>\n                    <p><?php print $weblangs->trans(\"pageNotFoundDesc\"); ?></p>\n    			</div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-08-19 11:40:14',NULL,'2024-09-20 20:02:09',NULL,NULL,'page','en',NULL,'','',NULL,'','',0,NULL,NULL),
(96,37,'about-payments','','About payments','About payments','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"about_payement_section\" contenteditable=\"true\">\n				<div class=\"rte\">\n					<h2>About payments</h2>\n					<p>&nbsp;</p>\n					<h3>When and why a payment if software has an Opensource Licence (GPL, ...) ?</h3>\n					<p>Most products available on this market place are free of charge and can be downloaded directly from this market place. No payment in required in this case.</p>\n					<p>However, some authors decide to charge something to distribute their works. There is no problem to conciliate both approaches (Price to distribute code versus OpenSource licence): The<strong> Free Software Foundation</strong>, that has created the GNU GPL Licence, one of the most used licence for OpenSource software, allow and encourage this, and provides some explanations on this page :<br><a href=\"http://www.gnu.org/philosophy/selling.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.html</a></p>\n					<p>&nbsp;</p>\n					<h3>Secure payment</h3>\n					<p>All payments are securised with SSL.</p>\n					<p>&nbsp;</p>\n					<h3>Using Visa/Mastercard/Paypal</h3>\n					<p>Payments using a credit card are provided by the Caisse d\'Epargne bank.</p>\n					<p>Payment using Paypal are provided by the Paypal online payment service.</p>\n				</div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-02-02 16:48:47',NULL,'2024-05-06 21:08:02',NULL,NULL,'page','en',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(97,37,'about-us','','Legal notice - About us','About us','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                	<h2>About us - Privacy Policy</h2>\n                	<p><span>Last updated: 2024-03-09</span></p>\n                	<h3>Introduction</h3>\n                	<p>The Dolibarr association offers the DoliStore platform to help seller and buyer to meet each other. Only the\n                		service to provide visibility of sold products is offered by the foundation. The foundation does not guarantee\n                		anything about the quality of the products bought by the customer.</p>\n                	<p>The DOLIBARR association, via DOLISTORE, collects on behalf of&nbsp;authors/publishers payments for goods sold\n                		and manages the payment of funds due to them. As such, the association acts under cover of the exemption from\n                		payment institution approval provided for in Article L521-3 I 2° of the Monetary and Financial Code.</p>\n                	<h3>The Dolibarr foundation</h3>\n                	<p>The Dolibarr foundation is a&nbsp;french foundation (Loi 1901) created to help to promote and develop the\n                		Dolibarr ERP and CRM Open Source software.</p>\n                	<p>&nbsp;Legal information about the foundation:</p>\n                	<ul>\n                		<li>WALDEC&nbsp;: W452006878</li>\n                		<li>SIREN: 52033993800018</li>\n                		<li>NAF: 9499Z</li>\n                	</ul>\n                	<p>More informations on page&nbsp;<a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\"\n                			target=\"_blank\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a></p>\n                	<p></p>\n                	<h3>Web hosting provider</h3>\n                	<p>This web site is hosted by OVH, 2 rue Kellermann - 59100 Roubaix - France</p>\n                	<p></p>\n                	<h2>1. Information We Collect</h2>\n                	<p>We may collect the following types of information when you use our DoliStore:</p>\n                	<p></p>\n                	<ul>\n                		<li><strong>Information provided by the user</strong>:<br>DoliStore&nbsp;collect your name, address, VAT number\n                			and email and password of the account. We also save the list of modules you bought on the platform with the\n                			price.<br><br></li>\n                		<li><strong>Information collected automatically</strong>:<br>DoliStore uses Matomo for its statistic tool. No\n                			private data are collected (even your IP address is anonymized.</li>\n                	</ul>\n                	<p></p>\n                	<h2>2. How We Use Information</h2>\n                	<p>The collected informations are used for billing purpose.</p>\n                	<ul>\n                		<li>This information is stored into our database.</li>\n                		<li>You can edit this information for your account</li>\n                	</ul>\n                	<p></p>\n                	<h2>3. Sharing of Information</h2>\n                	<ul>\n                		<li>No data is shared with any other third-parties. Only the members of the board team of the Dolibarr\n                			foundation, having access to the back-office, have access to the collected information.</li>\n                	</ul>\n                	<p></p>\n                	<h2>4. Data Security</h2>\n                	<p>We take reasonable measures to protect information from unauthorized access, alteration, disclosure, or\n                		destruction. The password of accounts are stored using a non reversible hash into the database.&nbsp;</p>\n                	<p></p>\n                	<h2>5. Your Rights</h2>\n                	<p>You have the right to access, amend, or delete your personal information held by the website.See section \"Contact\n                		us\" for this.</p>\n                	<p></p>\n                	<h2>6. Changes to Our Privacy Policy</h2>\n                	<p>We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy\n                		Policy on this page.</p>\n                	<p></p>\n                	<h2>7. Contact Us</h2>\n                	<p>The Data Protection Owner (DPO) in the sens of the GDPR law is the <strong>President of the Dolibarr\n                			foundation</strong>. You should find its name on this page:&nbsp;<a\n                			href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>\n                	</p>\n                	<p>If you have any questions about this Privacy Policy, please contact us\n                		at:&nbsp;&nbsp;<b>dolistore@dolibarr.org</b></p>\n                	<p></p>\n                </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-02-02 16:48:47',NULL,'2024-05-06 20:56:03',NULL,NULL,'page','en',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(98,37,'account-information','','account info','','','<?php // BEGIN PHP\nsession_start(); // start session\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/class/html.formcompany.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/admin.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/modules/security/generate/modGeneratePassPerso.class.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\nif (!empty(GETPOST(\'email\'))) {\n    $customer_firstname = GETPOST(\'firstname\');\n    $customer_lastname = GETPOST(\'lastname\');\n    $customer_email = GETPOST(\'email\');\n    $customer_passwd = GETPOST(\'passwd\');\n    $customer_new_passwd = GETPOST(\'new_passwd\');\n    $customer_address = GETPOST(\'address\');\n    $customer_country = GETPOSTINT(\'country_id\');\n    $customer_company = GETPOST(\'company\');\n    $customer_siret = GETPOST(\'siret\');\n    $customer_tin = GETPOST(\'tin\');\n    $contact_id = GETPOST(\'contact\');\n    $customer_id = GETPOST(\'customer\');\n        \n    $error = 0;\n    $error_messages = array();\n	\n	if (empty($customer_firstname)) {\n		$error++;\n		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->trans(\"firstname\"));\n	}\n	\n	if (ctype_alpha(str_replace(array(\"\\n\", \"\\t\", \' \'), \'\', $customer_firstname)) === false) {\n	    $error++;\n        $error_messages[] = $weblangs->trans(\"firstnameContainsLettersOnly\");\n    }\n	\n	if (empty($customer_lastname)) {\n		$error++;\n		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->trans(\"lastname\"));\n	}\n	\n	if (ctype_alpha(str_replace(array(\"\\n\", \"\\t\", \' \'), \'\', $customer_lastname)) === false) {\n	    $error++;\n        $error_messages[] = $weblangs->trans(\"lastnameContainsLettersOnly\");\n    }\n	\n	if (!empty($customer_passwd) && !empty($customer_new_passwd)) {\n	    $id_website = $website->id;\n        \n        $sql  = \"select lsa.rowid, lsa.pass_encoding, lsa.pass_crypted, ls.nom, fk_soc \";\n        $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n        $sql .= \"left join \".MAIN_DB_PREFIX.\"societe ls on ls.rowid = lsa.fk_soc \";\n        $sql .= \"where lsa.login = \'\". $customer_email .\"\' \";\n        $sql .= \"and lsa.fk_website = \". $id_website . \" \";\n        $sql .= \"limit 1\";\n        \n        $result = $db->query($sql);\n		$objsql = $db->fetch_object($result);\n        if (!empty($objsql)) {\n    		if ($objsql->pass_encoding == \'dolibarr\') {\n    			$correct_password = dol_verifyHash ($customer_passwd, $objsql->pass_crypted);\n    		}\n    		if ($objsql->pass_encoding == \'dolistore\') {\n    		    $dolistore_key = getDolGlobalString(\"MARKETPLACE_SECRET_KEY\");\n    		    $to_check = md5($dolistore_key.$customer_passwd);\n    		    if ($objsql->pass_crypted === $to_check){\n    		        $correct_password = 1;\n    		    }\n    		}\n        }else{\n            $error++;\n    		$error_messages[] = $weblangs->trans(\"noValidAccount\");\n        }\n        \n        if ($correct_password) {\n            $check_pass = new modGeneratePassPerso($db, $conf, $langs, $user);\n        	$is_valid = $check_pass->validatePassword($customer_new_passwd);\n        	if(!$is_valid){\n        	    $error++;\n        		$error_messages[] = $weblangs->trans(\"newPasswordCriteria\");\n        	}\n        } else {\n            $error++;\n		    $error_messages[] = $weblangs->trans(\"currentPasswordIncorrect\");\n        }\n	} else {\n	    if (!empty($customer_passwd) || !empty($customer_new_passwd)) {\n            $error++;\n		    $error_messages[] = $weblangs->trans(\"bothCurrentNewPassRequired\");\n    	}\n	}\n	\n	if (empty($customer_address)) {\n		$error++;\n		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->trans(\"address\"));\n	}\n	\n	if (empty($customer_country)) {\n		$error++;\n		$error_messages[] = $weblangs->trans(\"fieldRequired\", $weblangs->trans(\"country\"));\n	}\n    \n    if($error == 0){\n        // Start of transaction\n        $db->begin();\n        \n        $customer = new Societe($db);\n    \n    	if (!empty($customer_company)) {\n    		$customer->name = $customer_company;\n    	} else {\n    		$customer->name = dolGetFirstLastname($customer_firstname, $customer_lastname);\n    	}\n    	\n    	$customer->address = $customer_address;\n    	$customer->country_id = $customer_country;\n    \n    	$customer->name_alias = \'\';\n    	$customer->idprof2 = $customer_siret;\n    	$customer->idprof3 = $customer_tin;\n    \n    	$customer->client = \'2\';\n    	$customer->code_client = \'auto\';\n    \n    	$customer->fournisseur = \'0\';\n    	$customer->code_fournisseur = \'auto\';\n    \n    	//$customer->default_lang = $obj->dol_lang_code;\n    	\n    	$result = $customer->update($customer_id, $user);\n    	if ($result < 0) {\n			$error++;\n			$error_messages[] = $weblangs->trans(\"errorOccurred\");\n		}\n    \n        if ($error == 0) {\n			// Add  groups\n			/*$ret_cat = $customer->setCategories($marketplace_third_parties_category, \'customer\');\n			if ($ret_cat < 0) {\n				$error++;\n			}*/\n\n\n			// Add default contact\n			$contact = new Contact($db);\n			$contact->name_bis = $customer_lastname;\n			$contact->email = $customer_email;\n			$contact->firstname = $customer_firstname;\n			$contact->lastname = $customer_lastname;\n			$contact->address = $customer_address;\n			$contact->country_id = $customer_country;\n\n			$ret_contact = $contact->update($contact_id, $user);\n			if ($ret_contact < 0) {\n				$error++;\n			} else {\n			}\n\n\n			// Add connection credentials for a specific website	\n			if(!empty($id_website)) {\n			    // Load user and its permissions\n                $result = $user->fetch(\'\', \'admin\');	// Load user for login \'admin\'. Comment line to run as anonymous user.\n                if (!$result > 0) {\n                	$error++;\n			        $error_messages[] = $weblangs->trans(\"errorOccurred\");\n                }\n                $user->getrights();\n    \n				$societeaccount = new SocieteAccount($db);\n				$societeaccount->login = $customer_email;\n				$societeaccount->pass_encoding = \"dolibarr\";\n				$societeaccount->id = $_SESSION[\'user\'][\'id_user\'];\n				$societeaccount->pass_crypted = dol_hash($customer_new_passwd);\n				$societeaccount->fk_soc = $customer_id;\n				$societeaccount->fk_website = $id_website;\n				$societeaccount->site = \"dolibarr_website\";\n				$societeaccount->status = \"1\";\n				$ret_account = $societeaccount->update($user);\n				if ($ret_account < 0) {\n					$error++;\n				} else {\n					$id_user = $ret_account;\n				}\n			}\n		}\n		\n		if ($error == 0) {\n        	$db->commit();\n        } else {\n        	$db->rollback();\n        }\n    }\n		\n}\n\n\n// Get customer ID.\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// Get customer object.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\nif($result > 0) {\n    \n    $id_website = $website->id;\n    $marketplace_third_parties_category = getDolGlobalInt(\"MARKETPLACE_PROSPECTCUSTOMER_ID\");\n    \n    // Get account info\n    $cContacts = $customer->contact_array_objects();\n    foreach ($cContacts as $cContact) {\n        if ($cContact->email == $customer_account->login) {\n            $customer_firstname = $cContact->firstname;\n            $customer_lastname = $cContact->lastname;\n            $customer_email = $cContact->email;\n            $customer_address = $cContact->address;\n            $customer_country = $cContact->country_id;\n            $contact_id = $cContact->id;\n        }\n    }\n    $customer_company = $customer->name;\n    $customer_siret = $customer->idprof2;\n    $customer_tin = $customer->idprof3;\n\n}\n\n$form = new Form($db);\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"accountInformationPageTitle\");\n    ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"yourPersonalInfo\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <div class=\"row\">\n                    <div class=\"col-xs-12\">\n                    	<form action=\"\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n                    		<div class=\"account_creation\">\n                    			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"yourPersonalInfo\"); ?></h3>\n                    			<p class=\"info-title\">\n                                    <?php print $weblangs->trans(\"beSureToUpdateProfil\"); ?>\n                                </p>\n                                \n                                <p class=\"required\">\n                                    <sup>*</sup> <?php print $weblangs->trans(\"requiredField\"); ?>\n                                </p>\n        \n                    			<?php if (isset($error) && $error != 0): ?>\n                            		<div class=\'alert alert-danger\'>\n                                		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n            		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                		<ol>\n                                		    <?php foreach ($error_messages as $key => $value): ?>\n                                        		<li><?php print $weblangs->trans($value); ?></li>\n                                        	<?php endforeach ?>\n                                		</ol>\n                                	</div>\n                            	<?php endif ?>\n                            	\n                    			<div class=\"required form-group\">\n                    				<label for=\"customer_firstname\"><?php print $weblangs->trans(\"firstname\"); ?> <sup>*</sup></label>\n                    				<input type=\"text\" class=\"is_required validate form-control\"id=\"firstname\" name=\"firstname\" value=\"<?php if (isset($customer_firstname)){print $customer_firstname;} ?>\">\n                    			</div>\n                    			<div class=\"required form-group\">\n                    				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"lastname\"); ?> <sup>*</sup></label>\n                    				<input type=\"text\" class=\"is_required validate form-control\" id=\"lastname\" name=\"lastname\" value=\"<?php if (isset($customer_lastname)){print $customer_lastname;} ?>\">\n                    			</div>\n                    			<div class=\"required form-group\">\n                    				<label for=\"email\"><?php print $weblangs->trans(\"email\"); ?> <sup>*</sup></label>\n                    				<input type=\"text\" class=\"is_required validate form-control\" id=\"email\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n                    			</div>\n                    			<div class=\"required password form-group\">\n                    				<label for=\"passwd\"><?php print $weblangs->trans(\"currentPasswd\"); ?> <sup>*</sup></label>\n                    				<input type=\"password\" class=\"is_required validate form-control\" name=\"passwd\" id=\"passwd\" value=\"\">\n                    			</div>\n                    			<div class=\"required password form-group\">\n                    				<label for=\"passwd\"><?php print $weblangs->trans(\"newPasswd\"); ?><sup></sup></label>\n                    				<input type=\"password\" class=\"is_required validate form-control\" name=\"new_passwd\" id=\"passwd\" value=\"\">\n                    			</div>\n                    			<div class=\"required form-group\">\n                    				<label for=\"customer_lastname\"><?php print $weblangs->trans(\"address\"); ?> <sup>*</sup></label>\n                    				<input type=\"text\" class=\"is_required validate form-control\" id=\"Address\" name=\"address\" value=\"<?php if (isset($customer_address)){print $customer_address;} ?>\">\n                    			</div>\n                    			<div class=\"required form-group\">\n                        			<label for=\"email\"><?php print $weblangs->trans(\"country\"); ?> <sup>*</sup></label>\n                    			    <?php print $form->select_country($customer_country ? $customer_country : \'\', \'country_id\', \'\', 0, \'form-control\'); ?>\n                    			</div>\n                    \n                    \n                    		</div>\n                    		<div class=\"account_creation\">\n                    			<h3 class=\"page-subheading page-subheading-login\"><?php print $weblangs->trans(\"yourCompanyInformation\"); ?></h3>\n                    			<p class=\"form-group\">\n                    				<label for=\"\"><?php print $weblangs->trans(\"company\"); ?></label>\n                    				<input type=\"text\" class=\"form-control\" id=\"company\" name=\"company\" value=\"<?php if (isset($customer_company)){print $customer_company;} ?>\">\n                    			</p>\n                    			<p class=\"form-group\">\n                    				<label for=\"siret\"><?php print $weblangs->trans(\"siret\"); ?></label>\n                    				<input type=\"text\" class=\"form-control\" id=\"siret\" name=\"siret\" value=\"<?php if (isset($customer_siret)){print $customer_siret;} ?>\">\n                    			</p>\n                    			<p class=\"form-group\">\n                    				<label for=\"tin\"><?php print $weblangs->trans(\"taxIdentificationNumber\"); ?></label>\n                    				<input type=\"text\" class=\"form-control\" id=\"tin\" name=\"tin\" value=\"<?php if (isset($customer_tin)){print $customer_tin;} ?>\">\n                    			</p>\n                    		</div>\n                    		<input type=\"hidden\" name=\"action\" value=\"register\">\n                    		<input type=\"hidden\" name=\"back\" value=\"<?php print $back; ?>\">\n                    		<input type=\"hidden\" name=\"contact\" value=\"<?php print $contact_id; ?>\">\n                    		<input type=\"hidden\" name=\"customer\" value=\"<?php print $customer_id; ?>\">\n                    		<div class=\"submit clearfix\">\n                    			<hr>\n                    			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n                    				<span><?php print $weblangs->trans(\"save\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n                    			</button>\n                    			<p class=\"pull-right required\"><span><sup>*</sup> <?php print $weblangs->trans(\"requiredField\"); ?></span></p>\n                    		</div>\n                    	</form>\n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                			<span>\n                				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                			</span>\n                		</a>\n                	</li>\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"home\"); ?></span>\n                		</a>\n                	</li>\n                </ul>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-04-26 13:19:51',NULL,'2024-12-23 16:19:52',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(99,37,'acerca-de-los-pagos','','Acerca de los pagos','Acerca de los pagos','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\n\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n            \n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"about_payement_section\" contenteditable=\"true\">\n				<div class=\"rte\">\n                  <h2>Acerca de los pagos</h2>\n                  <p>&nbsp;</p>\n                  <h3>¿Cuándo y por qué se realiza un pago si un software tiene una licencia de código abierto (GPL, ...)?</h3>\n                  <p>La mayoría de los productos disponibles en este mercado son gratuitos y se pueden descargar directamente desde él. En este caso, no se requiere ningún pago.</p>\n                  <p>Sin embargo, algunos autores deciden cobrar algo por distribuir sus obras. No hay problema en conciliar ambos enfoques (precio para distribuir el código versus licencia de código abierto): <strong>la Fundación para el Software Libre</strong>, que ha creado la Licencia GPL de GNU, una de las licencias más utilizadas para el software de código abierto, lo permite y lo fomenta, y proporciona algunas explicaciones en esta página: </p>\n                  <p>\n                    <a href=\"http://www.gnu.org/philosophy/selling.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.html</a>\n                  </p>\n                  <p>&nbsp;</p>\n                  <h3>Pago seguro</h3>\n                  <p>Todos los pagos están asegurados con SSL.</p>\n                  <p>&nbsp;</p>\n                  <h3>Usando Visa/Mastercard/Paypal</h3>\n                  <p>Los pagos con tarjeta de crédito son proporcionados por el banco Caisse d\'Epargne.</p>\n                  <p>Los pagos utilizando Paypal son proporcionados por el servicio de pago en línea de Paypal.</p>\n                </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:12:03',NULL,'2024-05-06 22:12:42',NULL,NULL,'page','es',96,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(100,37,'acerca-de-nosotros','','Acerca de nosotros','Acerca de nosotros','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"contact_us_section\" contenteditable=\"true\">\n			<div class=\"rte\">\n				<h2>Contact us</h2>\n				<p>The foundation offers the DoliStore platform to help seller and buyer of <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM addons </a>to meet each others. Only the service to provide visibility of product on sale is offered by the foundation. The foundation does not guarantee the quality of products the customer buy.</p>\n				<p></p>\n				<p>If you experience troubles with a module, please go on the module page to see how you can contact the support provided by the author of the module.</p>\n				<p>Only authors of module can help you. You must always contact them first for any questions and any troubles.</p>\n				<p>If after contacting the author, your problem is not solved, then, please inform the Dolibarr foundation (email: dolistore@dolibarr.org) with information about:</p>\n				<p>- description of trouble (name of module, version, version of your dolibarr)</p>\n				<p>- a summary of echange you did with the author (cust-paste of emails sent/received)</p>\n				<p>- if you got non answer, date of last contact you tried (must be higher than 7 days)</p>\n				<p>So we will be able to process your case (disable the module, refund you if necessary, ...)</p>\n				<p></p>\n				<h2></h2>\n			</div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',0,'2024-05-06 22:07:09',NULL,'2024-05-17 14:01:11',NULL,NULL,'page','es',107,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(101,37,'breadcrumb','','breadcrumb','breadcrumb','','<?php // BEGIN PHP\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<?php if (!empty($cat_id)) : ?>\n  <?php\n  $current_cat = new Categorie($db);\n  $result = $current_cat->fetch($cat_id, \"\");\n  if ($result <= 0) {\n    redirectToContainer(\'404\');\n  }\n  $current_cat_label = $current_cat->label;\n  $current_cat_id = $current_cat->id;\n  $parent_current_cat = new Categorie($db);\n  $parent_current_cat->fetch($current_cat->fk_parent);\n  $parent_current_cat_label = $parent_current_cat->label;\n  $parent_current_cat_id = $parent_current_cat->id;\n  ?>\n  <section id=\"breadcrumb_section\" contenteditable=\"true\">\n    <div class=\"breadcrumb clearfix\">\n      <a class=\"home\" href=\"index.php\" title=\"<?php print $weblangs->trans(\"backHome\"); ?>\"><i class=\"icon-home\"></i></a>\n      <span class=\"navigation-pipe\">&gt;</span>\n      <?php if (!empty($current_cat->fk_parent) && $parent_current_cat_id != getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\")) : ?>\n        <a href=\"index.php?cat=<?php print $current_cat->fk_parent; ?>\" title=\"<?php print $parent_current_cat_label; ?>\" data-gg=\"\"><?php print $parent_current_cat_label; ?></a>\n        <span class=\"navigation-pipe\">&gt;</span>\n      <?php endif ?>\n\n      <?php if ($current_cat_id == getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\")) : ?>\n        New products\n      <?php else : ?>\n        <?php print $current_cat_label; ?>\n      <?php endif ?>\n    </div>\n  </section>\n<?php else : ?>\n  <?php if (!empty($search) || !empty($tag)) : ?>\n    <section id=\"breadcrumb_section\" contenteditable=\"true\">\n      <div class=\"breadcrumb clearfix\">\n        <a class=\"home\" href=\"index.php\" title=\"<?php print $weblangs->trans(\"backHome\"); ?>\"><i class=\"icon-home\"></i></a>\n        <?php if (!empty($tag) && $tag == \"Specials\") : ?>\n          <span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"priceDrop\"); ?>\n        <?php else : ?>\n          <span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"search\"); ?>\n        <?php endif ?>\n      </div>\n    </section>\n  <?php endif ?>\n<?php endif ?>\n<!--  Breadcrumb  -->',1,'2024-02-02 16:48:47',NULL,'2024-08-20 08:58:12',NULL,NULL,'banner','',NULL,'','',NULL,'','',0,NULL,NULL),
(102,37,'conditions-generales-dutilisation','','Conditions générales d\'utilisation','Conditions générales d\'utilisation','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Conditions générale d\'utilisation et de ventes</h2>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle n°1</h3>\n                    	<p>Les produits ou modules sont soumis par n\'importe quel fournisseur possédant un compte sur la plateforme, sans\n                    		avoir de lien nécessairement avec l\'association Dolibarr (ceci est susceptible de changer). L\'acheteur s\'engage\n                    		donc dans une relation de confiance client-fournisseur vis à vis de ce vendeur.</p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Seuls\n                    			les modules/extensions diffusés sous une <a href=\"https://opensource.org/licenses/alphabetical\"\n                    				target=\"_blank\">licence approuvée par l\'OSI</a>&nbsp;peuvent être publiés. De plus, si&nbsp;<span\n                    				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">le\n                    				module est une oeuvre dérivée (utilise des composants ou API) de Dolibarr (cas de 99% des modules), il\n                    				doit être dans une licence<span\n                    					style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">&nbsp;compatible\n                    					avec la license GPL v3+ de Dolibarr. Si aucune licence n\'est précisé, en le publiant sur DoliStore,\n                    					vous accepter que votre module soit publié sous licence GPL v3+.</span></span></span></p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                    				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                    					style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">L’association\n                    					DOLIBARR, via le DOLISTORE, collecte pour le compte des&nbsp;auteurs / éditeurs les paiements des\n                    					biens vendus et gère le reversement des&nbsp;fonds leur revenant. A ce titre, l’association agit\n                    					sous le couvert de l’exemption&nbsp;d’agrément d’établissement de paiement prévu à l’article L521-3\n                    					I 2° du code&nbsp;monétaire et financier.</span></span></span></p>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle n°2</h3>\n                    	<p>Le prix de vente de référence est fixé par le vendeur. La vente (et sa commission) ne sont toutefois validées\n                    		réellement que passé un délai de 1 mois après l\'achat (ceci afin de permettre à l\'acheteur d\'échanger avec\n                    		l\'éditeur du module en cas de difficulté). Durant ce délai, l\'association peut annuler toute vente pour toute\n                    		raison et sans nécessairement prévenir le vendeur (si tel était le cas, ceci apparaîtrait dans les statistiques\n                    		de la console d\'administration du vendeur).</p>\n                    	<p>Le prix de vente est un prix de référence Hors Taxe et non le prix définitif de vente. En effet, à ce prix est\n                    		ajouté une TVA que l\'association reverse au trésor publique. De plus, en vendant sur DoliStore, les vendeurs\n                    		acceptent que les ventes faites aux adhérents de l\'association se fassent moyennant une réduction définie par\n                    		l\'association (20%). Le prix réel d\'achat HT apparaîtra dans le détail des statistiques de ventes (Note: La\n                    		plupart des acheteurs de modules n\'étant pas adhérent, ce type de réduction est appliqué rarement).</p>\n                    	<p>L\'association Dolibarr conserve de plus 20% du montant de la vente pour assurer les frais de gestion, bancaires,\n                    		les frais d\'annulation et pour financer la promotion de Dolibarr ERP/CRM.</p>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle n°3</h3>\n                    	<p>Une fois le paiement reçu, l\'acheteur pourra télécharger les modules/produits commandés, soit depuis son espace\n                    		comptes \"Mes commandes\", soit depuis un lien reçu par mail suite à validation de son paiement.</p>\n                    	<p>Le fichier mis à disposition pour téléchargement doit avoir un packaging soumis aux règles définies sur la\n                    		page&nbsp;<a\n                    			href=\"http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Regles\">http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Regles</a>\n                    	</p>\n                    	<p>Le produit est téléchargeable sur la plateforme DoliStore pour une durée de <strong>1</strong> an après la date\n                    		de paiement.</p>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle n°4</h3>\n                    	<p>L\'acheteur ne peut en aucun cas tenir pour responsable l\'association Dolibarr quant au bon fonctionnement ou non\n                    		du produit acquis, à la qualité de la documentation qui l\'accompagne ou non, ni à l\'exigence des prérequis\n                    		nécessaires pour utiliser le produit. L\'association n\'assure pas de contrôle qualité des modules (si ce n\'est\n                    		sur la forme du package).&nbsp;L\'association se réserve le droit de dé-valider un module, ou alerter dans sa\n                    		description, si celui-ci occasionne trop de réclamations.</p>\n                    	<p>En cas de problème d\'installation ou d\'utilisation du module acheté, toute aide doit être sollicitée par\n                    		l\'acheteur auprès de l\'éditeur du module directement, via le canal d\'assistance décrit dans la description du\n                    		produit, si le fournisseur en fournit, information obligatoire dans la description du produit (si cette\n                    		information n\'est pas disponible, merci d\'alerter l\'association).</p>\n                    	<p>L\'acheteur pourra éventuellement obtenir un remboursement dans les conditions suivantes:</p>\n                    	<p>- L\'acheteur doit avoir dans un premier temps tenté de résoudre le problème via des échanges avec l\'éditeur du\n                    		module. Les mails échangés (ou simplement envoyé en cas de non réponse) avec ce denier&nbsp;devront être\n                    		transmis à l\'association pour preuve (à dolistore@dolibarr.org). Un délai&nbsp;nécessaire pour permettre ces\n                    		échanges entre l\'acheteur et l\'éditeur sera&nbsp;exigé par l\'association afin de maximiser les chances de\n                    		résolutions à l\'amiable avant le déclenchement de l\'annulation de la vente et du remboursement.</p>\n                    	<p>- L\'acheteur doit s\'être manifester pour la première fois auprès de l\'éditeur (ou de l\'association si celui ci ne\n                    		répond pas) dans un délai de 1 mois maximum après la date d\'achat (Pour info, le délai minimum de la directive\n                    		européenne 2011/83 est de 14j). Il n\'est plus possible de demander le remboursement au tiers de confiance assuré\n                    		par l\'association, le paiement ayant alors été reversé à l\'éditeur. Seule une action en direct envers l\'éditeur\n                    		est alors possible). Si les échanges n\'aboutissent pas de manière satisfaisante, l\'acheteur pourra demander un\n                    		arbitrage à l\'association. Cet arbitrage ira à l\'avantage de l\'acheteur en cas d\'impossibilité de\n                    		trancher.&nbsp;</p>\n                    	<p>&nbsp;</p>\n                    	<h3>Quand et pourquoi un paiement si le logiciel est en Open Source (GPL, ...) ?</h3>\n                    	<p>De nombreux produits disponibles sur cette place de marché sont gratuits et peuvent être téléchargés directement\n                    		depuis leur fiche. Aucun paiement dans ce cas n\'est requis.</p>\n                    	<p>Toutefois, certains auteurs décident de faire payer quelque chose en échange de la distribution de leur travail.\n                    		Il n\'y a aucun problème à concilier les 2 approches (Prix pour distribuer du code face à licence Open Source):\n                    		La <strong>Free Software Foundation</strong>, qui a créé la licence GNU GPL, une des licences pour les logiciels\n                    		libre les plus utilisées, autorise et même encourage cela en y donnant les explications, sur cette page :<br><a\n                    			href=\"http://www.gnu.org/philosophy/selling.fr.html\"\n                    			target=\"_blank\">http://www.gnu.org/philosophy/selling.fr.html</a></p>\n                    </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:16:07',NULL,'2024-05-06 21:17:38',NULL,NULL,'page','fr',143,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(103,37,'conditions-generales-dutilisation_vendeurs-de-modules','','Conditions générales d\'utilisation - vendeurs de modules','Conditions générales d\'utilisation - vendeurs de modules','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Conditions générale d\'utilisation pour les&nbsp;vendeurs de modules</h2>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle S1</h3>\n                    	<p>Les produits ou modules sont soumis par n\'importe quel fournisseur possédant un compte sur la plateforme, sans\n                    		avoir de lien nécessairement avec l\'association Dolibarr (ceci est susceptible de changer). L\'acheteur s\'engage\n                    		donc dans une relation de confiance client-fournisseur vis à vis de ce vendeur.</p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Seuls\n                    			les modules/extensions diffusés sous une <a href=\"https://opensource.org/licenses/alphabetical\"\n                    				target=\"_blank\">licence approuvée par l\'OSI</a>&nbsp;peuvent être publiés. De plus, si&nbsp;<span\n                    				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">le\n                    				module est une oeuvre dérivée (utilise des composants ou API) de Dolibarr (cas de 99% des modules), il\n                    				doit être dans une licence<span\n                    					style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">&nbsp;compatible\n                    					avec la license GPL v3+ de Dolibarr. Si aucune licence n\'est précisé, en le publiant sur DoliStore,\n                    					vous accepter que votre module soit publié sous licence GPL v3+.</span></span></span></p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                    				style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\"><span\n                    					style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">L’association\n                    					DOLIBARR, via le DOLISTORE, collecte pour le compte des&nbsp;auteurs / éditeurs les paiements des\n                    					biens vendus et gère le reversement des&nbsp;fonds leur revenant. A ce titre, l’association agit\n                    					sous le couvert de l’exemption&nbsp;d’agrément d’établissement de paiement prévu à l’article L521-3\n                    					I 2° du code&nbsp;monétaire et financier.</span></span></span></p>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle S2</h3>\n                    	<p>Le vendeur, sur soumission d\'une facture, libellé en EURO, et à destination de l\'Association Dolibarr, obtiendra\n                    		le reversement des paiements reçus de la vente de ses modules par l\'association sur la base de\n                    		<strong>80%</strong> des gains reçus. La réclamation des gains ne peut toutefois se faire que<strong> 1</strong>\n                    		mois après les ventes, si le total dépasse <strong>50</strong> euros (pour les pays utilisant l\'euro),\n                    		<strong>100 </strong>euros pour les autres devises et est limitée à<strong> 1</strong> demande par mois. Le\n                    		versement peut se faire:</p>\n                    	<p>- Soit par virement SEPA sur un compte bancaire en EURO.</p>\n                    	<p>- Soit via un paiement par carte (le vendeur doit alors fournir l\'interface pour permettre le paiement)</p>\n                    	<p>- Soit par un paiement via Paypal (le vendeur doit alors fournir son compte paypal).</p>\n                    	<p>Dans tous les cas, une adresse postale valide doit être renseigné au niveau de son compte revendeur Dolistore.\n                    	</p>\n                    	<p>&nbsp;</p>\n                    	<h3>Règle S3</h3>\n                    	<p>A) Le vendeur doit renseigner dans la description de son produit toutes les informations obligatoires, à savoir:\n                    	</p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">* une\n                    			description courte significative de l\'apport du module.</span></p>\n                    	<p>* la version du module</p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">* le nom\n                    			de l\'auteur, la licence.</span></p>\n                    	<p><span style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">* une\n                    			photo (une photo minimum requise, plusieurs photos juste recommandées)</span></p>\n                    	<p>* si un support est disponible et si oui, par quel canal. <span\n                    			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Si aucun\n                    			support n\'est fourni, cela doit être indiqué, par exemple par la mention \"Pas de support disponible\"\n                    			(possible uniquement pour les modules gratuits)</span></p>\n                    	<p>* Si le module est payant, le vendeur doit obligatoirement mettre les informations de contact de support via un\n                    		canal valide (mail fonctionnel, page de support sur le site du vendeur,...) ainsi qu\'une description dans les\n                    		langues disponibles (même si c\'est un copier-coller de la description anglaise pour les langues non supportées\n                    		par exemple). Il est possible de préciser que le support n\'est valable que dans une seule langue. Un lien vers\n                    		un site de démonstration n\'est pas obligatoire mais vivement conseillé.</p>\n                    	<p>* la version de Dolibarr pour lequel il est compatible (Et la version minimale et maximale doivent être fournies.\n                    		Les valeurs doivent être du type \"x.y.z\". La valeur \"dev\" n\'est pas autorisé car ce n\'est pas une version figée,\n                    		le caractère générique * n\'est autorisé que sur la 3eme partie de la version, par exemple x.y.*).</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">B) Règle sur\n                    		les liens ou mention à d\'autres sites</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">* Des liens ou\n                    		mention d\'autres sites peuvent être intégrées dans la description, mais uniquement dans le champ description\n                    		longue. Le nombre de liens externes est limité à 10. Les liens peuvent renvoyer à un site Web externe proposant\n                    		l\'un des services suivants (et EXCLUSIVEMENT des services de cette liste): <strong>site de démo, page de\n                    			documentation, page de contact, page accueil d\'une société, forum, page de suivi des problèmes, liens vers\n                    			un réseau social, ou site hébergeant le code sources.</strong>&nbsp;Donc les liens externes pointant vers un\n                    		autre fichier téléchargeable à l\'extérieur de DoliStore, <strong>ou vers une autre boutique ou une page externe\n                    			proposant le module, ou d\'autres, à la vente directement depuis la page sur la page d\'arrivée ne sont pas\n                    			permis</strong>. Un lien vers une page non trouvée ou une page d\'erreur 404 ne sont également pas\n                    		permis<span>.&nbsp;</span>Si il y a un lien vers une fiche d\'un autre produit ou service, cela doit être sur la\n                    		fiche produit de DoliStore même si possible (En résumé, le lien vers un produit ou service complémentaire est\n                    		accepté uniquement si ce produit ou service n\'est pas&nbsp;vendable sur DoliStore).</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">De plus ces\n                    		liens ne doivent pas pointer sur une&nbsp;URL (ou une URL après redirection) amenant sur un site dont le nom de\n                    		domaine ne respecte pas les règles d\'utilisation du nom \"Dolibarr\" ou \"DoliStore\" définies sur&nbsp;<a\n                    			href=\"https://wiki.dolibarr.org/index.php/R%C3%A8gles_d%27utilisation_du_nom_ou_de_la_marque_%22Dolibarr%22_(ou_%22DoliStore%22)\">cette\n                    			page</a>. Si le site ou page vers lequel pointe le lien contient lui même d\'autres lien menant indirectement\n                    		à un espace où le même module est aussi en vente, le tarif ne doit pas être inférieur à celui sur DoliStore.</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"><span\n                    			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">C) Règle\n                    			sur le packaging</span></p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Le fichier\n                    		package du module doit respecter certaines règles. Si les conditions décrites ici :&nbsp;<a\n                    			href=\"http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Regles\">http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Regles</a>&nbsp;ne\n                    		sont pas valides le module ne sera pas validé ou sera désactivé (dans ce cas le motif sera affiché sur la fiche\n                    		du module).</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">D)\n                    		Désactivation du module</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"><span\n                    			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Si un de\n                    			ces points n\'est pas respecté, ou si la version de Dolibarr est trop ancienne (par exemple supporté au mieux\n                    			par une version de Dolibarr qui a plus de 10 versions majeures de retards), l\'association se réserve le\n                    			droit de supprimer la fiche produit (désactivation jusqu\'à mise en conformité), sans autre justification. Le\n                    			motif de désactivation est normalement affiché sur la fiche du module. Si un même module se retrouve à 3\n                    			reprises désactivés suite à une violation des règles précédentes, le module sera soit désactivé de manière\n                    			définitive, soit conserver mais avec un tarif forcé à zéro (en conformité avec le droit de distribuer le\n                    			module gratuitement, attribué par sa licence GPL).&nbsp;De même si l\'auteur d\'un module ne respecte pas les\n                    			règles d\'usage de la marque Dolibarr ou DoliStore (Voir <a\n                    				href=\"https://wiki.dolibarr.org/index.php?title=R%C3%A8gles_d%27utilisation_du_nom_ou_de_la_marque_%22Dolibarr%22_(ou_%22DoliStore%22)\">ici</a>),\n                    			ses modules pourront également être retirés de la vente ou conservés mais avec un tarif forcé à zéro (en\n                    			conformité avec le droit de distribuer le module gratuitement, attribué par sa licence GPL).</span></p>\n                    	<p>E) Dans le but de préserver l\'intégrité de notre place de marché en ligne et de maintenir la confiance de nos\n                    		consommateurs, nous imposons aussi des directives strictes concernant l\'utilisation de logos, labels, et\n                    		affirmations de qualité ou de quantité sur les fiches produits, via ces règles:</p>\n                    	<p>## Définition</p>\n                    	<p>*Logo de Qualité* : Tout symbole ou marque visuelle utilisé pour indiquer un niveau de qualité ou une\n                    		certification obtenue par le produit ou le vendeur.<br>*Affirmation de Qualité* : Toute déclaration écrite\n                    		affirmant des qualités spécifiques, des certifications, ou des standards de qualité relatifs au\n                    		produit.<br>*Affirmation de Quantité* : Toute déclaration écrite concernant la quantité, le volume, ou le nombre\n                    		d\'unités d\'un produit.</p>\n                    	<p>## Exigences Générales</p>\n                    	<p>Les vendeurs qui bénéficient du label Preferred Partner sont autorisé à intégré ce logo dans leur description.\n                    		Des logos de certification gérés ou obtenus par des organismes officiels tiers (organisme de normalisation, ou\n                    		de contrôle qualité d\'organisme gouvernementaux ou ONG reconnus) peuvent être autorisés au cas par cas (ex:\n                    		Certification Qualiopi, NF). Tout autre Logo ne sera pas autorisé. De plus, l\'association se réserve le droit\n                    		(au cas par cas) ne demander le retrait d\'un logo ou affirmation, de manière définitive à un éditeur. En cas de\n                    		refus ou de réapparition régulière des logos ou phrases concernées, le module sera désactivé.</p>\n                    	<p></p>\n                    	<h3>Règle S4</h3>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">Lorsque\n                    		plusieurs modules compatibles avec une même version de Dolibarr, sont trop identiques, l\'association se réserve\n                    		le droit de ne pas valider les modules soumis après le premier, ceci afin d\'éviter le copier-coller de modules\n                    		(possible par la licence GPL) qui génère des doublons dégradant l\'expérience utilisateur dans sa recherche de\n                    		solutions complémentaires sur Dolibarr.</p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\"><span\n                    			style=\"font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;\">Si un\n                    			module n\'est pas mis à jour dans un délai de <strong>4</strong> mois après la sortie d\'une nouvelle version\n                    			de Dolibarr, l\'association acceptera que le module soit publié par un autre vendeur (que l\'auteur original)\n                    			qui aura porté le module dans la version récente de Dolibarr, ceci afin d\'éviter que certains modules se\n                    			trouvent abandonnés. De plus, l\'association peut sans avertissement désactiver les modules portant sur des\n                    			versions trop anciennes de Dolibarr.</span></p>\n                    	<p style=\"font-style:normal;font-size:12px;font-family:\'Trebuchet MS\', Arial, Helvetica, sans-serif;\">&nbsp;</p>\n                    	<h3>Règle S5 - Comment apparaître sur la Home page</h3>\n                    	<p>Il y a des conditions pour qu\'un module apparaisse sur la page d\'accueil. Le module doit respecter des règles:\n                    	</p>\n                    	<p>- avoir un lien vers une documentation</p>\n                    	<p>- l\'éditeur du module doit être un Dolibarr Preferred Partner</p>\n                    	<p>- maximum 10 modules par éditeur</p>\n                    	<p>- seul les modules compatibles avec la dernière version de Dolibarr sont éligibles</p>\n                    	<p>- une seule version de module par périmètre fonctionnel couvert (the premier qui a couvert la fonctionnalité en\n                    		cas de doublon de module, même si le premier est moins complet)</p>\n                    	<p>- une exception peut être faite pour les modules gratuits s\'ils sont réellement intéressant (soumis à vote du CA\n                    		de l\'association)</p>\n                    	<p>Note: ces règles seront modifiées dans le futur pour être plus strictes afin de réduire le nombre de modules en\n                    		page d\'accueil. Si vos modules respectent ces conditions, vous pouvez envoyer la liste des noms et id à\n                    		dolistore@dolibarr.org pour demander à les avoir en page d\'accueil.</p>\n                    	<p>&nbsp;</p>\n                    	<h3>Quand et pourquoi un paiement si le logiciel est en OpenSource (GPL, ...) ?</h3>\n                    	<p>De nombreux produits disponibles sur cette place de marché sont gratuits et peuvent être téléchargés directement\n                    		depuis leur fiche. Aucun paiement dans ce cas n\'est requis.</p>\n                    	<p>Toutefois, certains auteurs décident de faire payer quelque chose en échange de la distribution de leur travail.\n                    		Il n\'y a aucun problème à concilier les 2 approches (Prix pour distribuer du code face à licence Open Source):\n                    		La <strong>Free Software Foundation</strong>, qui a créé la licence GNU GPL, une des licences pour les logiciels\n                    		libre les plus utilisées, autorise et même encourage cela en y donnant les explications, sur cette page :<br><a\n                    			href=\"http://www.gnu.org/philosophy/selling.fr.html\"\n                    			target=\"_blank\">http://www.gnu.org/philosophy/selling.fr.html</a></p>\n                    </div>\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:53:50',NULL,'2024-05-06 21:54:39',NULL,NULL,'page','fr',144,'','',NULL,'','',0,NULL,NULL),
(104,37,'condizioni-duso','','Condizioni d\'uso','Condizioni d\'uso','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Condizioni d\'uso</h2>\n                    <p>&nbsp;</p>\n                    <h3>Regola 1</h3>\n                    <p>I prodotti e i moduli offerti su DoliStore sono pubblicati dai fornitori accreditati sulla piattaforma che non sono necessariamente affiliati alla Dolibarr Foundation (questa regola potrebbe cambiare in futuro).</p>\n                    <p>Vengono offerti solo moduli pubblicati sotto&nbsp;<a href=\"https://opensource.org/licenses/alphabetical\">una licenza approvata dalla OSI</a> e compatibile con GPL v3 nel caso di lavori derivati (utilizzo di altri componenti o API) da Dolibarr.</p>\n                    <h3>Regola 2</h3>\n                    <p>Il prezzo di vendita è fissato dal venditore. La convalida della vendita viene effettuata dopo un mese dall\'acquisto. During this delay, durante tale periodo la Fondazione può cancellare la transazione per un qualunque motivo senza inviare notifiche al venditore (se ciò dovesse mai accadere, il venditore vedrà questo dato nella pagina delle statistiche all\'interno della propria area riservata).</p>\n                    <p>Il prezzo di vendita è da intendersi indicativo e al netto dell\'IVA e non rappresenta il prezzo finale da pagare. I venditori, inoltre, acconsentono a che i soci della Fondazione ricevano uno sconto predefinito (20%) su tutti gli acquisti. L\'effettivo prezzo di vendita, IVA esclusa, appare nelle statistiche dettagliate.</p>\n                    <p>La Fondazione trattiene il 20% della somma per pagare i costi bancari e di gestione. Qualsiasi guadagno verrà usato per promuovere Dolibarr ERP/CRM.</p>\n                    <h3>Regola 3</h3>\n                    <p>L\'acquirente rinuncia a qualsiasi pretesa rispetto al funzionamento dei prodotti. La Dolibarr Foundation non esegue alcun test di funzionalità o qualità sui moduli offerti (fatta eccezione per la struttura dei pacchetti). Qualsiasi richiesta o reclamo deve essere inviato ai contatti specificati nella descrizione del prodotto, ammesso che il produttore offra tale servizio (è una informazione obbligatoria per la pubblicazione della descrizione). La fondazione si riserva di ritirare dalla vendita i prodotti nel caso pervengano troppe lamentele.</p>\n                    <h3>Regola 4</h3>\n                    <p>Una volta ricevuto il pagamento, l\'acquirente può scaricare i file dei prodotti acquistati all\'interno della sezione \"Miei ordini\" della propria area riservata o dal link contenuto nell\'email di conferma dell\'acquisto.</p>\n                    <p>Il download del prodotto è disponibile su Dolistore per un anno dal pagamento.</p>\n                    <h3>Perché dovrei pagare se il software è rilasciato sotto licenza Open Source &nbsp;(GPL, ...) ?</h3>\n                    <p>La maggior parte dei prodotti disponibili sulla piattaforma sono gratuiti e possono essere scaricati liberamente. In tali casi non è previsto alcun pagamento.</p>\n                    <p>In alcuni casi gli autori decidono di richiedere un pagamento a fronte del loro lavoro. I due approcci non sono in conflitto (Vendita e distribuzione libera sotto licenza OpenSource): La Free Software Foundationche ha creato la celebre licenza GPL, una delle licenze più usate per il software OpenSource, permette ed incoraggia questa ciò e fornisce qualche spiegazione sulla seguente pagina:&nbsp;<a href=\"http://www.gnu.org/philosophy/selling.it.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.it.html</a></p>\n                    </div>\n\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:47:29',NULL,'2024-05-06 21:48:43',NULL,NULL,'page','it',143,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(105,37,'condizioni-duso_venditori-di-moduli','','Condizioni d\'uso - Venditori di moduli','Condizioni d\'uso - Venditori di moduli','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n			<!--  Breadcrumb  -->\n			<div class=\"breadcrumb clearfix\">\n				<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n				<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n			</div>\n			<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Terms_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                        	<h2>Condizioni d\'uso - Venditori di moduli</h2>\n                        <p>&nbsp;</p>\n                        <h3>Regola S1</h3>\n                        <p>I prodotti e i moduli offerti su DoliStore sono pubblicati dai fornitori accreditati sulla piattaforma che non sono necessariamente affiliati alla Dolibarr Foundation (questa regola potrebbe cambiare in futuro).</p>\n                        <p>Vengono offerti solo moduli pubblicati sotto&nbsp;<a href=\"https://opensource.org/licenses/alphabetical\">una licenza approvata dalla OSI</a> e compatibile con GPL v3 nel caso di lavori derivati (utilizzo di altri componenti o API) da Dolibarr.</p>\n                        <h3></h3>\n                        <h3>Regola S2</h3>\n                        <p>Il venditore riceverà l\'80% del valore netto di vendita. Per ricevere il pagamento dei prodotti venduti, il venditore può inviare una fattura alla Dolibarr Foundation a partire da un mese dopo l\'acquisto dei prodotti (tale lasso di tempo serve ad assicurarsi che non vi siano resi in corso).</p>\n                        <p>Per richiedere un pagamento il venditore deve avere raggiunto una somma di almeno 50€ (100€ nel caso di venditori di paesi extraeuropei). È previsto un limite di una richiesta di pagamento al mese.</p>\n                        <p>Il pagamento può essere effettuato:</p>\n                        <p>- Oppure tramite bonifico SEPA su un conto bancario in EURO.<br>- O tramite pagamento con carta (il venditore deve quindi fornire l\'interfaccia per consentire il pagamento)<br>- O tramite pagamento tramite Paypal (il venditore deve quindi fornire il suo account paypal).</p>\n                        <p></p>\n                        <h3>Regola S3</h3>\n                        <p>Per ogni prodotto il venditore deve fornire una descrizione che includa tutte le informazioni obbligatorie:</p>\n                        <p>* Breve descrizione</p>\n                        <p>* Versione</p>\n                        <p>* Nome dell\'autore e licenza.</p>\n                        <p>* Tipo di supporto/assistenza fornito. È obbligatorio specificare se non viene fornito supporto agli utenti.</p>\n                        <p>* Versione di Dolibarr compatibile con il modulo (È necessario inserire sia una versione che una massima. I valori devono rispettare il formato x.y.z, \"dev\" non è una versione valida e il carattere * è ammesso solo in terza posizione - per esempio x.y.*).</p>\n                        <p>Si possono aggiungere link a versioni estese della documentazione, ma solo all\'interno della descrizione lunga.</p>\n                        <p>Se qualcosa va storto o se la versione di Dolibarr indicata è troppo vecchia, la Fondazione è autorizzata a rimuovere l\'inserzione senza alcun preavviso.</p>\n                        <p>I venditori possono mettere in vendita i prodotti su qualsiasi altra piattaforma a qualunque prezzo, ma non sono ammessi link o alcuna altra forma di pubblicità di altre piattaforme su cui il prodotto venga venduto. Nel caso venga a conoscenza di link o altri riferimenti all\'interno della scheda del prodotto, la Fondazione si riserva di eliminare tali riferimenti o escludere il prodotto dalla piattaforma o bloccare l\'account del venditore a proprio insidacabile giudizio.</p>\n                        <p></p>\n                        <p>È obbligatorio fornire un riferimento per il supporto nel caso di moduli non gratuiti. È necessario fornire una descrizione per il prodotto in ogni lingua prevista dalla piattaforma (anche solo un copia/incolla della versione inglese). È anche consigliato di indicare in quali lingue è disponibile il supporto, per esempio solo italiano e inglese. Un link alla demo del prodotto non è obbligatoria, ma caldamente consigliata.</p>\n                        <p></p>\n                        <p>Qualsiasi modulo che non rispetti le condizioni previste nella documentazione (vedi&nbsp;<a href=\"http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Rules\">http://wiki.dolibarr.org/index.php/Module_Dolistore_Validation_Rules</a>&nbsp;non riceveranno la convalida per la pubblicazione su DoliStore.</p>\n                        <p>&nbsp;</p>\n                        <h3>Regola S4</h3>\n                        <p>Nel caso di moduli molto simili e compatibili con la stessa versione di Dolibarr, la Fondazione si riserva di non convalidare la pubblicazione di moduli successivi al primo, al fine di evitare il copia/incolla di moduli esistenti (ammesso dalla licenza GPL). I moduli che non vengono aggiornati entro 4 mesi dal rilascio di una nuova verisone di Dolibarr verranno rimossi per evitare l\'accumularsi di moduli abbandonati. Potrebbero essere eliminate senza preavviso anche le versioni troppo vecchie di moduli attualmente validi.</p>\n                        <p>&nbsp;</p>\n                        <h3>Perché dovrei pagare se il software è rilasciato sotto licenza Open Source &nbsp;(GPL, ...) ?</h3>\n                        <p>La maggior parte dei prodotti disponibili sulla piattaforma sono gratuiti e possono essere scaricati liberamente. In tali casi non è previsto alcun pagamento.</p>\n                        <p>In alcuni casi gli autori decidono di richiedere un pagamento a fronte del loro lavoro. I due approcci non sono in conflitto (Vendita e distribuzione libera sotto licenza OpenSource): La Free Software Foundationche ha creato la celebre licenza GPL, una delle licenze più usate per il software OpenSource, permette ed incoraggia questa ciò e fornisce qualche spiegazione sulla seguente pagina:&nbsp;<a href=\"http://www.gnu.org/philosophy/selling.it.html\" target=\"_blank\">http://www.gnu.org/philosophy/selling.it.html</a></p>\n                        </div>\n\n                </section>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 21:56:58',NULL,'2024-05-06 21:57:36',NULL,NULL,'page','it',144,'','',NULL,'','',0,NULL,NULL),
(106,37,'contact','','Contact','Contact','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"contact_us_section\" contenteditable=\"true\">\n			<div class=\"rte\">\n				<h2>Contact us</h2>\n				<p>The foundation offers the DoliStore platform to help seller and buyer of <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM addons </a>to meet each others. Only the service to provide visibility of product on sale is offered by the foundation. The foundation does not guarantee the quality of products the customer buy.</p>\n				<p></p>\n				<p>If you experience troubles with a module, please go on the module page to see how you can contact the support provided by the author of the module.</p>\n				<p>Only authors of module can help you. You must always contact them first for any questions and any troubles.</p>\n				<p>If after contacting the author, your problem is not solved, then, please inform the Dolibarr foundation (email: dolistore@dolibarr.org) with information about:</p>\n				<p>- description of trouble (name of module, version, version of your dolibarr)</p>\n				<p>- a summary of echange you did with the author (cust-paste of emails sent/received)</p>\n				<p>- if you got non answer, date of last contact you tried (must be higher than 7 days)</p>\n				<p>So we will be able to process your case (disable the module, refund you if necessary, ...)</p>\n				<p></p>\n				<h2></h2>\n			</div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:08:05',NULL,'2024-08-19 11:41:57',NULL,NULL,'page','it',107,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(107,37,'contact-us','','Contact','Contact us','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"contact_us_section\" contenteditable=\"true\">\n			<div class=\"rte\">\n				<h2>Contact us</h2>\n				<p>The foundation offers the DoliStore platform to help seller and buyer of <a href=\"https://www.dolibarr.org\">Dolibarr ERP CRM addons </a>to meet each others. Only the service to provide visibility of product on sale is offered by the foundation. The foundation does not guarantee the quality of products the customer buy.</p>\n				<p></p>\n				<p>If you experience troubles with a module, please go on the module page to see how you can contact the support provided by the author of the module.</p>\n				<p>Only authors of module can help you. You must always contact them first for any questions and any troubles.</p>\n				<p>If after contacting the author, your problem is not solved, then, please inform the Dolibarr foundation (email: dolistore@dolibarr.org) with information about:</p>\n				<p>- description of trouble (name of module, version, version of your dolibarr)</p>\n				<p>- a summary of echange you did with the author (cust-paste of emails sent/received)</p>\n				<p>- if you got non answer, date of last contact you tried (must be higher than 7 days)</p>\n				<p>So we will be able to process your case (disable the module, refund you if necessary, ...)</p>\n				<p></p>\n				<h2></h2>\n			</div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-02-02 16:48:47',NULL,'2024-05-06 21:13:16',NULL,NULL,'page','en',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(108,37,'contactez-nous','','Contactez nous','Contactez nous','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n\n        <!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n		<!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n            \n            <section id=\"contact_us_section\" contenteditable=\"true\">\n			<div class=\"rte\">\n              <h2>Contactez nous</h2>\n              <p>L\'association met en place la plateforme DoliStore afin d\'offrir une mise en relation de vendeurs et clients sur des modules ou extensions prêtes à l\'emploi pour l\'application <a href=\"http://www.dolibarr.fr\">Dolibarr ERP/CRM</a>. Seule la mise en relation est assurée et aucune garantie n\'est fournie par l\'association quand au bon fonctionnement des produits fournis par le vendeur. </p>\n              <p></p>\n              <p>Si vous avez es problèmes avec un module, merci d\'aller sur la page descriptive du module pour voir comment contacter le support fourni par l\'auteur du module.</p>\n              <p>Seul les auteurs du module pourront vous aider. Vous devez toujours les contacter en premier dès que vous avez des questions ou problèmes.</p>\n              <p>Si après les avoir contacter, votre problème n\'est pas résolu, merci d\'informer l\'association Dolibarr&nbsp;(email: dolistore@dolibarr.org) en mentionnant:</p>\n              <p>- la nature de votre problème (nom du module concerné, sa version, votre version de dolibarr et une description du problème)</p>\n              <p>- un résumé des échanges que vous avez pu avoir avec l\'auteur (copié-collé des emails envoyés/reçus)</p>\n              <p>- en cas de non réponse, la date de votre dernière sollicitation (doit être supérieur à 7 jours)</p>\n              <p>Ainsi nous pourrons prendre les mesures nécessaires (désactivation du module, remboursement si justifié)</p>\n              <p></p>\n            </div>\n			</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 22:05:39',NULL,'2024-05-06 22:06:27',NULL,NULL,'page','fr',107,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(109,37,'edit-module-product','','edit-module-product','','','<?php // BEGIN PHP\nsession_start(); // start session\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/class/html.formcompany.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/class/doleditor.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/societe/class/societeaccount.class.php\';\n\n\n//error_reporting(E_ALL);\n//ini_set(\'display_errors\', 1);\n\n/*print \'<pre>\';\nprint_r($conf);\nprint \'</pre>\';\nexit;*/\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$product_id = GETPOST(\'id\', \'alpha\');\n$form = new Form($db);\n\n// If not login redirect to login.\nif (empty($_SESSION[\'user\'][\'id_user\'])) {\n    redirectToContainer(\'login-register\');\n}\n\nif (!empty($product_id)) {\n    $product = new Product($db);\n    $result = $product->fetch($product_id);\n    if ($result <= 0) {\n        redirectToContainer(\'myproducts\');\n    } else {\n        // Get Account ID.\n        $user_id = $_SESSION[\'user\'][\'id_user\'];\n        $supplier_account = new SocieteAccount($db);\n        $result = $supplier_account->fetch($user_id);\n        $supplier_id = $supplier_account->fk_soc;\n        \n        // Get societe ext_ref\n        $supplier_account_societe = new Societe($db);\n        $result = $supplier_account_societe->fetch($supplier_id);\n        $supplier_id_ext = $supplier_account_societe->ref_ext;\n\n        if (preg_match(\'/c(\\d+)d/\', $product->ref, $matches) && $matches[1] != $supplier_id && $matches[1] != $supplier_id_ext) {\n            redirectToContainer(\'myproducts\');\n        }\n    }\n}\n\n// END PHP \n?>\n<div id=\"page\">\n    <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n    </div>\n    <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n            <!--  Breadcrumb  -->\n            <div class=\"breadcrumb clearfix\">\n                <a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n                <span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n                <span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"newModuleProduct\"); ?>\n            </div>\n            <!--  Breadcrumb  -->\n            <div id=\"slider_row\" class=\"row\">\n                <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n            </div>\n            <div class=\"row\">\n                <!-- include lefet sidebar container -->\n                <?php includeContainer(\'sidebar\'); ?>\n                <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n                    <div class=\"clearfix\">\n                        <script type=\"text/javascript\">\n                            var edit_product_url = \"_service_page_ajax.php\";\n                            console.log(edit_product_url);\n                        </script>\n                        <h1 class=\"page-heading\"><?php print $weblangs->trans(\"newModuleProduct\"); ?></h1>\n                        <div class=\"row\">\n                            <div class=\"col-xs-12\">\n                                <div class=\"add-product-page\">\n                                    <?php\n                                    $website_available_langs = getAvailableLangs();\n                                    define(\'ROWS_3\', 3);\n\n                                    $mvcid = getDolGlobalInt(\"MARKETPLACE_VERSIONS_CATEGORY_ID\");\n                                    $full_version_tree = getOrganizedTree($mvcid, \'label\');\n\n                                    if (!empty($product_id) && $_SERVER[\'REQUEST_METHOD\'] != \'POST\') {\n\n                                        foreach ($website_available_langs[\'langs_code_shortcode\'] as $lang_key => $code) {\n                                            ${\'name_\' . $lang_key} = $product->multilangs[$code][\'label\'] ?? \'\';\n                                            ${\'short_description_\' . $lang_key} = $product->multilangs[$code][\'description\'] ?? \'\';\n                                            ${\'description_\' . $lang_key} = $product->multilangs[$code][\'other\'] ?? \'\';\n                                        }\n                                        $status = $product->status ?? 0;\n                                        $sale_price = ($product->price ? price($product->price) : \'\');\n\n                                        $c = new Categorie($db);\n                                        $cats = $c->containing($product->id, Categorie::TYPE_PRODUCT);\n                                        $arrayselected = array();\n                                        if (is_array($cats)) {\n                                            foreach ($cats as $cat) {\n                                                $arrayselected[] = $cat->id;\n                                            }\n                                        }\n                                        $categories = array();\n                                        foreach ($arrayselected as $key => $value) {\n                                            if (!in_array($value, [\'PRODUCTS_ON_WEBSITE\', \'VERSIONS\']) && strpos($value, \'V\') !== 0) {\n                                                $categories[$key] = $value;\n                                            }\n                                        }\n\n                                        $version = ($product->array_options[\'options_marketplace_module_version\'] ? $product->array_options[\'options_marketplace_module_version\'] : 0);\n                                        $keywords = ($product->array_options[\'options_marketplace_module_keywords\'] ? $product->array_options[\'options_marketplace_module_keywords\'] : 0);\n                                        $dolibarr_core_include = ($product->array_options[\'options_marketplace_allow_source_in_core\'] ? $product->array_options[\'options_marketplace_allow_source_in_core\'] : 0);\n                                        $version_min = ($product->array_options[\'options_marketplace_min_version\'] ? $product->array_options[\'options_marketplace_min_version\'] : 0);\n                                        $version_max = ($product->array_options[\'options_marketplace_max_version\'] ? $product->array_options[\'options_marketplace_max_version\'] : 0);\n                                        $contact_support = ($product->array_options[\'options_marketplace_contact_support\'] ? $product->array_options[\'options_marketplace_contact_support\'] : 0);\n\n                                        $files_and_images = getPublicFilesOfObject($product);\n                                        foreach ($files_and_images as $key => $file) {\n                                            if ($file[\'position\'] == 100) {\n                                                $virtual_product_file = $file;\n                                            }\n                                            if ($file[\'position\'] == 0) {\n                                                $image_cover = $file;\n                                            }\n                                            if (strpos($file[\'filename\'], \'image_\') !== false && strpos($file[\'filename\'], \'image_cover\') === false) {\n                                                $otherimages[$key] = $file;\n                                            }\n                                        }\n                                    }\n\n\n                                    if (!empty(GETPOST(\'action\')) && GETPOST(\'action\') == \"new-module\") {\n                                        foreach ($website_available_langs[\'langs\'] as $lang_key => $lang_label) {\n                                            ${\'name_\' . $lang_key} = GETPOST(\'name_\' . $lang_key) ?? \'\';\n                                            ${\'short_description_\' . $lang_key} = GETPOST(\'short_description_\' . $lang_key) ?? \'\';\n                                            ${\'description_\' . $lang_key} = GETPOST(\'description_\' . $lang_key, \'restricthtmlallowunvalid\') ?? \'\';\n                                        }\n\n\n                                        $error = 0;\n                                        $error_messages = array();\n\n                                        foreach ($website_available_langs[\'langs\'] as $lang_key => $lang_label) {\n                                            $product_name = GETPOST(\'name_\' . $lang_key);\n                                            $short_description = GETPOST(\'short_description_\' . $lang_key);\n                                            $description = GETPOST(\'description_\' . $lang_key, \'restricthtmlallowunvalid\');\n\n\n                                            if ($lang_key == \"en\" && ($product_name == \"\" || $short_description == \"\" || $description == \"\")) {\n                                                $error++;\n                                                $error_messages[] = $weblangs->trans(\"englishFieldsRequired\");\n                                            }\n\n                                            if ($lang_key != \"en\" && $product_name == \"\") {\n                                                $product_name = (isset($productlang[\'en\'][\'name\']) ? $productlang[\'en\'][\'name\'] : \'\');\n                                            }\n\n                                            if ($lang_key != \"en\" && $short_description == \"\") {\n                                                $short_description = (isset($productlang[\'en\'][\'short_description\']) ? $productlang[\'en\'][\'short_description\'] : \'\');\n                                            }\n\n                                            if ($lang_key != \"en\" && $description == \"\") {\n                                                $description = (isset($productlang[\'en\'][\'description\']) ? $productlang[\'en\'][\'description\'] : \'\');\n                                            }\n\n                                            $productlang[$lang_key][\'name\'] = $product_name;\n                                            $productlang[$lang_key][\'short_description\'] = $short_description;\n                                            $productlang[$lang_key][\'description\'] = $description;\n\n                                            $short_descriptionLength = strlen(strip_tags($short_description));\n                                            if ($short_descriptionLength > 400) {\n                                                $error++;\n                                                $error_messages[\'short_description_\' . $lang_key] = $weblangs->trans(\"fieldTooLong\", $weblangs->trans(\"shortDescription\"), 400, $short_descriptionLength);\n                                            }\n                                        }\n\n                                        $keywords = GETPOST(\'keywords\') ?? \'\';\n\n                                        $categories = GETPOST(\'categories\') ?? \'\';\n                                        if (empty($categories)) {\n                                            $error++;\n                                            $error_messages[\'categories\'] = $weblangs->trans(\"requiredCategory\");\n                                        }\n\n                                        if (empty($_FILES[\'virtual_product_file\'][\'name\']) && empty($product_id)) {\n                                            $error++;\n                                            $error_messages[\'virtual_product_file\'] = $weblangs->trans(\"zipProductRequired\");\n                                        } else {\n                                            if (!empty($_FILES[\'virtual_product_file\'][\'name\'])) {\n                                                $checkZipFile = checkZipFile();\n                                                if ($checkZipFile[\'upload\'] < 0) {\n                                                    $error++;\n                                                    $error_messages[\'virtual_product_file\'] = $checkZipFile[\'errormsg\'];\n                                                }\n                                            }\n                                        }\n\n                                        if (empty($_FILES[\'image_cover\'][\'name\']) && empty($product_id)) {\n                                            $error++;\n                                            $error_messages[\'image_cover\'] = $weblangs->trans(\"fieldRequired\", $weblangs->trans(\"coverImage\"));\n                                        } else {\n                                            if (!empty($_FILES[\'image_cover\'][\'name\'])) {\n                                                $checkCoverImage = checkImage($_FILES[\'image_cover\']);\n                                                if ($checkCoverImage != false) {\n                                                    $error++;\n                                                    $error_messages[\'image_cover\'] = $weblangs->trans(\"coverImage\") . \' : \' . $checkCoverImage;\n                                                }\n                                            }\n                                        }\n\n                                        $other_images = array();\n                                        if (!empty($_FILES[\'image_1\'][\'name\'])) {\n                                            $other_images = array();\n                                            $other_images_errors = array();\n                                            for ($x = 1; $x <= 10; $x++) {\n                                                if (!empty($_FILES[\'image_\' . $x][\'name\'])) {\n                                                    $other_images[\'image_\' . $x] = $_FILES[\'image_\' . $x];\n                                                    $checkImage = checkImage($_FILES[\'image_\' . $x]);\n                                                    if ($checkImage != false) {\n                                                        $other_images_errors[\'image_\' . $x] = $checkImage;\n                                                    }\n                                                } else {\n                                                    break;\n                                                }\n                                            }\n                                        }\n                                        if (!empty($other_images_errors)) {\n                                            $error++;\n                                            foreach ($other_images_errors as $key => $value) {\n                                                $error_messages[$key] = $key . \' : \' . $value;\n                                            }\n                                        }\n\n\n                                        $sale_price = (GETPOST(\'sale_price\') ? GETPOST(\'sale_price\') : 0);\n                                        $version = (GETPOST(\'version\') ? GETPOST(\'version\') : \'\');\n                                        $dolibarr_core_include = (GETPOST(\'dolibarr_core_include\') ? GETPOST(\'dolibarr_core_include\') : 0);\n                                        $version_min = (GETPOST(\'version_min\') ? GETPOST(\'version_min\') : \'\');\n                                        $version_max = (GETPOST(\'version_max\') ? GETPOST(\'version_max\') : \'\');\n                                        $contact_support = (GETPOST(\'contact_support\') ? GETPOST(\'contact_support\') : \'\');\n                                        $status = (GETPOST(\'status\') ? GETPOST(\'status\') : 0);\n\n                                        $dateNow = date(\"Y-m-d H:i:s\");\n                                        $dateRef = date(\"YmdHis\");\n\n                                        if ($error == 0) {\n                                            $product = array(\n                                                \'name\' => $productlang[\'en\'][\'name\'],\n                                                \'short_description\' => $productlang[\'en\'][\'short_description\'],\n                                                \'description\' => $productlang[\'en\'][\'description\'],\n                                                \'multilangs\' => $productlang,\n                                                \'keywords\' => $keywords,\n                                                \'categories\' => $categories,\n                                                \'sale_price\' => $sale_price,\n                                                \'version\' => $version,\n                                                \'version_min\' => $version_min,\n                                                \'version_max\' => $version_max,\n                                                \'contact_support\' => $contact_support,\n                                                \'dolibarr_core_include\' => $dolibarr_core_include,\n                                                \'status\' => $status,\n                                                \'image_cover\' => $_FILES[\'image_cover\'],\n                                                \'other_images\' => $other_images,\n                                                \'virtual_product_file\' => $_FILES[\'virtual_product_file\']\n                                            );\n\n                                            if (!empty($product_id)) {\n                                                $addProduct = addProduct($product, $product_id);\n                                            } else {\n                                                $addProduct = addProduct($product);\n                                            }\n\n                                            if ($addProduct == 1) {\n                                                redirectToContainer(\'manage-products\');\n                                            } else {\n                                                $error++;\n                                                $error_messages[] = $weblangs->trans(\"errorOccurred\");\n                                            }\n                                        }\n                                    }\n                                    ?>\n\n                                    <?php if (isset($error) && $error != 0) : ?>\n                                        <div class=\'alert alert-danger\'>\n                                            <?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                                            <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                            <ol>\n                                                <?php foreach ($error_messages as $key => $value) : ?>\n                                                    <li><?php print $value; ?></li>\n                                                <?php endforeach ?>\n                                            </ol>\n                                        </div>\n                                    <?php endif ?>\n\n                                    <h5>\n                                        <?php print $weblangs->trans(\"checkRulesBeforeSubmit\", \"https://wiki.dolibarr.org/index.php?title=Modules_-_Packaging_rules_and_Dolistore_validation_rules\"); ?>\n                                    </h5>\n\n                                    <p class=\"form-subheading\"><?php print $weblangs->trans(\"multilingualInformation\"); ?></p>\n\n                                    <nav>\n                                        <div class=\"nav\">\n                                            <?php foreach ($website_available_langs[\'langs\'] as $key => $value) : ?>\n                                                <button class=\"nav-link <?php if ($key == \'en\') {\n                                                                            print \'active\';\n                                                                        } ?>\" id=\"nav-<?php print $key; ?>-tab\" data-target=\"nav-<?php print $key; ?>\"><?php print $value; ?> <?php if ($key == \'en\') {\n                                                                                                                                                                                                                            print \'<sup>*</sup>\';\n                                                                                                                                                                                                                        } ?></button>\n                                            <?php endforeach ?>\n                                        </div>\n                                    </nav>\n                                    <form action=\"\" enctype=\"multipart/form-data\" method=\"post\" id=\"product-creation-form\">\n                                        <div class=\"tab-content std\">\n                                            <?php foreach ($website_available_langs[\'langs\'] as $key => $value): ?>\n                                                <div class=\"tab-pane <?php if ($key == \'en\') {\n                                                    print \'active\';\n                                                } ?>\" id=\"nav-<?php print $key; ?>\">\n                                                    <div class=\"form-group row required\">\n                                                        <label for=\"name_<?php print $key; ?>\"\n                                                            class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"moduleProductName\"); ?> <span\n                                                                class=\"lang_span\">[<?php print $key; ?>]</span>\n                                                            <?php if ($key == \'en\') {\n                                                                print \'<sup>*</sup>\';\n                                                            } ?></label>\n                                                        <div class=\"col-xs-9\">\n                                                            <input type=\"text\" class=\"is_required validate form-control\" id=\"name_<?php print $key; ?>\"\n                                                                name=\"name_<?php print $key; ?>\" <?php if ($key == \'en\') {\n                                                                       print \'required\';\n                                                                   } ?> value=\"<?php if (isset(${\'name_\' . $key})) {\n                                                                         print ${\'name_\' . $key};\n                                                                     } ?>\">\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"form-group row required\">\n                                                        <label for=\"short_description_<?php print $key; ?>\"\n                                                            class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"shortDescription\"); ?> <span\n                                                                class=\"lang_span\">[<?php print $key; ?>]</span>\n                                                            <?php if ($key == \'en\') {\n                                                                print \'<sup>*</sup>\';\n                                                            } ?></label>\n                                                        <div class=\"col-xs-9\">\n                                                            <textarea row=\"5\" class=\"rtenockeditor is_required validate form-control textarea-short-description\"\n                                                                id=\"short_description_<?php print $key; ?>\" name=\"short_description_<?php print $key; ?>\" <?php if ($key == \'en\') {\n                                                                          print \'required\';\n                                                                      } ?>><?php if (isset(${\'short_description_\' . $key})) {\n                                                                           print ${\'short_description_\' . $key};\n                                                                       } ?></textarea>\n                                                        </div>\n                                                    </div>\n                                        \n                                                    <div class=\"form-group row required\">\n                                                        <label for=\"description_<?php print $key; ?>\"\n                                                            class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"largeDescription\"); ?> <span\n                                                                class=\"lang_span\">[<?php print $key; ?>]</span>\n                                                            <?php if ($key == \'en\') {\n                                                                print \'<sup>*</sup>\';\n                                                            } ?></label>\n                                                        <div class=\"col-xs-9\">\n                                                            <?php\n                                                            $description_value = ${\'description_\' . $key} ?? \'\';\n                                                            $doleditor = new DolEditor(\'description_\' . $key, $description_value, \'\', 160, \'dolibarr_details\', \'Basic\', false, true, getDolGlobalString(\'FCKEDITOR_ENABLE_DETAILS\'), \'4\', \'90%\');\n                                                            $doleditor->Create();\n                                                            ?>\n                                                        </div>\n                                                    </div>\n                                        \n                                                </div>\n                                            <?php endforeach ?>\n                                        </div>\n\n\n                                        <p class=\"form-subheading\"><?php print $weblangs->trans(\"moduleInformation\"); ?></p>\n                                        <div class=\"col-xs-12 box-form\">\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"keywords\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"keywords\"); ?></label>\n                                                <div class=\"col-xs-9\">\n                                                    <input type=\"text\" class=\"is_required validate form-control module-keywords\" id=\"keywords\" name=\"keywords\" value=\"<?php if (isset($keywords)) {\n                                                                                                                                                                            print $keywords;\n                                                                                                                                                                        } ?>\">\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"module-version\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"moduleVersion\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <input type=\"text\" class=\"is_required validate form-control module-version\" id=\"module-version\" name=\"version\" required value=\"<?php if (isset($version)) {\n                                                                                                                                                                                        print $version;\n                                                                                                                                                                                    } ?>\">\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"compatibility\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-xs-4\">\n                                                            <select name=\"version_min\" id=\"version-min\" class=\"flat maxwidth200onsmartphone selectcountry form-control\" required>\n                                                                <option value=\"\" disabled><?php print $weblangs->trans(\"minVersion\"); ?></option>\n                                                                <?php foreach (array_reverse($full_version_tree) as $key => $value) : ?>\n                                                                    <?php if ($value[\'rowid\'] != $mvcid) : ?>\n                                                                        <option value=\"<?php print $value[\'id\']; ?>\" <?php if (!empty($version_min) && $version_min == $value[\'label\']) {\n                                                                                                                            print \'selected\';\n                                                                                                                        } ?>><?php print $value[\'label\']; ?></option>\n                                                                    <?php endif ?>\n                                                                <?php endforeach ?>\n                                                            </select>\n                                                        </div>\n\n                                                        <div class=\"col-xs-4\">\n                                                            <select name=\"version_max\" id=\"version-max\" class=\"flat maxwidth200onsmartphone selectcountry form-control\" required>\n                                                                <option value=\"\" disabled><?php print $weblangs->trans(\"maxVersion\"); ?></option>\n                                                                <?php foreach (array_reverse($full_version_tree) as $key => $value) : ?>\n                                                                    <?php if ($value[\'rowid\'] != $mvcid) : ?>\n                                                                        <option value=\"<?php print $value[\'id\']; ?>\" <?php if (!empty($version_max) && $version_max == $value[\'label\']) {\n                                                                                                                            print \'selected\';\n                                                                                                                        } ?>><?php print $value[\'label\']; ?></option>\n                                                                    <?php endif ?>\n                                                                <?php endforeach ?>\n                                                            </select>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"status\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"status\"); ?></label>\n                                                <div class=\"col-xs-9\">\n                                                    <div class=\"form-check\">\n                                                        <input class=\"form-check-input\" type=\"radio\" name=\"status\" id=\"status-enabled\" value=\"1\" <?php if (isset($status) && $status == 1) {\n                                                                                                                                                        print \'checked\';\n                                                                                                                                                    } ?>>\n                                                        <label class=\"form-check-label\" for=\"status-enabled\">\n                                                            Enabled\n                                                        </label>\n                                                    </div>\n                                                    <div class=\"form-check\">\n                                                        <input class=\"form-check-input\" type=\"radio\" name=\"status\" id=\"status-disabled\" value=\"0\" <?php if (isset($status) && $status == 0) {\n                                                                                                                                                        print \'checked\';\n                                                                                                                                                    } ?>>\n                                                        <label class=\"form-check-label\" for=\"status-disabled\">\n                                                            Disabled\n                                                        </label>\n                                                    </div>\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"module-sale-price\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"salePriceExlTax\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <input type=\"text\" class=\"is_required validate form-control col-xs-8 price-field\" id=\"module-sale-price\" name=\"sale_price\" value=\"<?php if (isset($sale_price)) {\n                                                                                                                                                                                            print $sale_price;\n                                                                                                                                                                                        } ?>\" required>\n                                                    <span class=\"price-currency\">\n                                                        <?php print $weblangs->trans(\"currencyEuro\"); ?>\n                                                    </span>\n                                                    <span class=\"price-free\">\n                                                        <?php print $weblangs->trans(\"salePriceFree\"); ?>\n                                                    </span>\n                                                    <div class=\"field-info info-inline\">\n                                                        <?php print $weblangs->trans(\"salePriceInfo\"); ?>\n                                                    </div>\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"module-how-to-contact\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"contactSupport\"); ?></label>\n                                                <div class=\"col-xs-9\">\n                                                    <input type=\"text\" class=\"is_required validate form-control how-to-contact\" id=\"module-how-to-contact\" name=\"contact_support\" value=\"<?php if (isset($contact_support)) {\n                                                                                                                                                                                                print $contact_support;\n                                                                                                                                                                                            } ?>\">\n                                                    <div class=\"field-info info-inline\">\n                                                        <?php print $weblangs->trans(\"contactSupportInfo\"); ?>\n                                                    </div>\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"customer_firstname\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"selectCatForProduct\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <?php\n                                                    $mcid = getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\");\n                                                    $organized_tree = getOrganizedTree($mcid);\n                                                    ?>\n\n                                                    <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" class=\"cat-check-table-submit-product\">\n                                                        <tbody>\n                                                            <?php\n                                                            if (!isset($categories) || !is_array($categories)) {\n                                                                $categories = [];\n                                                            }\n                                                            ?>\n                                                            <?php foreach ($organized_tree as $key => $value) : ?>\n                                                                <?php if ($value[\'label\'] != \"Versions\" && $value[\'label\'] != \"Specials\" && $value[\'label\'] != \"Goodies\") : ?>\n                                                                    <tr bgcolor=\"#FFDBB7\">\n                                                                        <td class=\"cat-checkbox-td\">\n                                                                            <?php $checked = in_array($value[\'id\'], $categories) ? \'checked\' : \'\';  ?>\n                                                                            <input type=\"checkbox\" id=\"cat-<?php print $value[\'rowid\']; ?>\" name=\"categories[]\" value=\"<?php print $value[\'rowid\']; ?>\" <?php print $checked; ?>>\n                                                                            <label for=\"cat-<?php print $value[\'rowid\']; ?>\" class=\"checkbox_label_parent\"> <?php print $value[\'label\']; ?> </label>\n                                                                        </td>\n                                                                    </tr>\n                                                                    <?php if (isset($value[\'children\']) && !empty($value[\'children\'])) : ?>\n                                                                        <?php usort($value[\'children\'], build_sorter(\'position\')); ?>\n                                                                        <?php foreach ($value[\'children\'] as $key_children => $value_children) : ?>\n                                                                            <tr bgcolor=\"#FFF4EA\">\n                                                                                <td class=\"subcat-checkbox-td\">\n                                                                                    <?php $checked = in_array($value_children[\'id\'], $categories) ? \'checked\' : \'\'; ?>\n                                                                                    <input type=\"checkbox\" id=\"subcat-<?php print $value_children[\'rowid\']; ?>\" name=\"categories[]\" value=\"<?php print $value_children[\'rowid\']; ?>\" <?php print $checked; ?>>\n                                                                                    <label for=\"subcat-<?php print $value_children[\'rowid\']; ?>\" class=\"checkbox_label\"> <?php print $value_children[\'label\']; ?> </label>\n                                                                                </td>\n                                                                            </tr>\n                                                                        <?php endforeach; ?>\n                                                                    <?php endif; ?>\n                                                                <?php endif; ?>\n                                                            <?php endforeach; ?>\n                                                        </tbody>\n                                                    </table>\n                                                </div>\n                                            </div>\n\n                                        </div>\n\n\n                                        <p class=\"form-subheading\"><?php print $weblangs->trans(\"attachments\"); ?></p>\n                                        <div class=\"col-xs-12 box-form\">\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"virtual_product_file\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"zipFileModuleField\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <div class=\"uploader\" id=\"uniform-virtual_product_file\">\n                                                        <input id=\"virtual_product_file\" name=\"virtual_product_file\" class=\"\" maxlength=\"10000000\" type=\"file\" <?php if (empty($product_id)) {\n                                                                                                                                                                    print \'required\';\n                                                                                                                                                                } ?>>\n                                                        <div class=\"field-info info-inline\" style=\"margin-left: 10px;\">\n                                                            <?php print $weblangs->trans(\"zipFileModuleInfo\"); ?>\n                                                        </div>\n                                                    </div>\n                                                    <?php if (!empty($product_id) && !empty($virtual_product_file[\'filename\'])) : ?>\n                                                        <div class=\"field-info info-inline\" id=\"field-info-virtual_product_file\">\n                                                            <a href=\"<?php print $virtual_product_file[\'url\']; ?>\" target=\"_new\"><?php print $virtual_product_file[\'filename\']; ?> <i class=\"icon-cloud-download\"></i></a>\n                                                        </div>\n                                                    <?php endif; ?>\n\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <div class=\"form-group row required\">\n                                                <label for=\"image_cover\" class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"coverImage\"); ?> <sup>*</sup></label>\n                                                <div class=\"col-xs-9\">\n                                                    <table>\n                                                        <tbody class=\"tbody-image-cover\">\n                                                            <tr>\n                                                                <td>\n                                                                    <input type=\"file\" name=\"image_cover\" id=\"image_cover\" class=\"input-image-cover\" accept=\"image/*\" <?php if (empty($product_id)) {\n                                                                                                                                                                            print \'required\';\n                                                                                                                                                                        } ?>>\n                                                                </td>\n                                                                <td>\n                                                                    <img src=\"<?php if (!empty($product_id)) {\n                                                                                    print $image_cover[\'url\'];\n                                                                                } else {\n                                                                                    print \'#\';\n                                                                                } ?>\" <?php if (empty($product_id)) {\n                                                                                                                                                                    print  \'style=\"display: none;\"\';\n                                                                                                                                                                } ?> class=\"image-cover-preview\" id=\"image_preview\" width=\"100px\">\n                                                                </td>\n                                                            </tr>\n                                                        </tbody>\n                                                    </table>\n                                                    <!--<div class=\"field-info info-inline\" id=\"field-info-image-cover\">\n                                                        <?php //echo htmlspecialchars($_FILES[\'image_cover\'][\'name\']); \n                                                        ?>\n                                                    </div>-->\n                                                    <?php //endif; \n                                                    ?>\n                                                </div>\n                                            </div>\n\n                                            <hr>\n\n                                            <?php if (empty($product_id)) : ?>\n                                                <div class=\"form-group row required\">\n                                                    <label class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"otherImages\"); ?></label>\n                                                    <div class=\"col-xs-9\">\n                                                        <button type=\"button\" id=\"addImageBtn\" class=\"btn btn-default button\"><?php print $weblangs->trans(\"AddPhoto\"); ?> <span class=\"iconAddImage\"></span></button>\n                                                        <table class=\"table\">\n                                                            <tbody class=\"table-body\" id=\"table-body-add\">\n                                                            </tbody>\n                                                        </table>\n                                                    </div>\n                                                </div>\n                                            <?php endif; ?>\n\n                                            <?php if (!empty($product_id)) : ?>\n                                                <div class=\"form-group row required\">\n                                                    <label class=\"col-xs-3 col-form-label\"><?php print $weblangs->trans(\"otherImages\"); ?></label>\n                                                    <div class=\"col-xs-9\">\n                                                        <button type=\"button\" id=\"addImageBtn2\" class=\"btn btn-default button\"><?php print $weblangs->trans(\"AddPhoto\"); ?> <span class=\"iconAddImage\"></span></button>\n                                                        <input type=\"file\" id=\"fileInput2\" style=\"display:none;\" accept=\"image/*\">\n                                                        <span class=\"notification\"></span>\n                                                        <?php if (!empty($otherimages)) : ?>\n                                                            <table class=\"table\">\n                                                                <tbody class=\"table-body\" id=\"table-body-edit\">\n                                                                    <?php foreach ($otherimages as $key => $image) : ?>\n                                                                        <tr data-id=\"<?php print $key; ?>\">\n                                                                            <td><span class=\"icon-move\"></span></td>\n                                                                            <td class=\"rowCount\"><?php print $image[\'position\']; ?></td>\n                                                                            <td>\n                                                                                <?php print $image[\'filename\']; ?>\n                                                                            </td>\n                                                                            <td>\n                                                                                <img src=\"<?php print $image[\'url\']; ?>\" class=\"image-preview\" width=\"100px\">\n                                                                            </td>\n                                                                            <td class=\"td-deleteBtn\">\n                                                                                <button type=\"button\" data-id=\"<?php print $key; ?>\" class=\"btn deleteBtn\"><i class=\"icon-delete\"></i></button>\n                                                                            </td>\n                                                                        </tr>\n                                                                    <?php endforeach ?>\n                                                                </tbody>\n                                                            </table>\n                                                        <?php endif; ?>\n                                                    </div>\n                                                </div>\n                                            <?php endif; ?>\n\n                                        </div>\n\n\n                                        <p class=\"form-subheading\"><?php print $weblangs->trans(\"termsAndConditionsOfUse\"); ?></p>\n                                        <div class=\"col-xs-12 box-form\">\n\n                                            <div class=\"field-info\">\n                                                <?php print $weblangs->trans(\"includeModuleInDolibarrInfo\"); ?>\n                                            </div>\n                                            <?php $checked = (!empty($dolibarr_core_include) && $dolibarr_core_include == \'1\') ? \'checked\' : \'\'; ?>\n                                            <input type=\"checkbox\" value=\"1\" id=\"dolibarr_core_include\" name=\"dolibarr_core_include\" <?php print $checked; ?> class=\"dolibarr_core_include\">\n                                            <label for=\"dolibarr_core_include\" id=\"dolibarr_core_include_label\">\n                                                I would like to have my module included in Dolibarr core as soon as possible\n                                                <span class=\"tooltip\">\n                                                    <img src=\"https://www.dolistore.com/img/admin/help.png\" style=\"padding: 0px 5px;\">\n                                                    <span class=\"tooltiptext\">\n                                                        Because a Dolibarr module is a derivative work of Dolibarr, a module must be licensed under a license compatible with Dolibarr gpl v3 license. This means your source code may be included into Dolibarr official version to enhance Dolibarr itself. However, \"may\" does not say \"when\". So if you really want this to happen as soon as possible, just check this box so core team will be informed. This will not guarantee it will be done but increase seriously probability and reduce delay time. If your module is included in core, it means the module will then be maintained by Dolibarr developer community, and module will be disabled from Dolistore as soon as dolibarr version including it is publicly available.\n                                                    </span>\n                                                </span>\n                                            </label>\n\n\n                                            <hr>\n\n                                            <div class=\"form-group required\">\n                                                <?php\n                                                $current_lang = $_SESSION[\'lang\'][\'shortcode\'];\n                                                $page_terms_module_providers = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Terms and conditions of use - Module providers\', \'status\' => \'1\', \'lang\' => $website->lang));\n                                                $obj = $page_terms_module_providers[key($page_terms_module_providers)];\n                                                $link = $obj->pageurl;\n                                                if ($website->lang != $current_lang) {\n                                                    $trans_page = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'fk_page\' => $obj->id, \'status\' => \'1\', \'lang\' => $current_lang));\n                                                    $trans_page = $trans_page[key($trans_page)];\n                                                    $link = $trans_page->pageurl;\n                                                }\n                                                ?>\n\n                                                <?php $checked = ($_SERVER[\'REQUEST_METHOD\'] === \'POST\' || !empty($product_id)) ? \'checked\' : \'\'; ?>\n                                                <input type=\"checkbox\" value=\"1\" id=\"dolibarr_terms\" <?php print $checked; ?> name=\"dolibarr_terms\">\n                                                <label for=\"dolibarr_terms\" id=\"dolibarr_terms_label\">\n                                                    <?php print $weblangs->trans(\"agreeTermsWebsite\"); ?>\n                                                    <a href=\"<?php print $link; ?>\" target=\"_blank\"><?php print $link; ?></a>\n                                                </label>\n                                            </div>\n                                            <div class=\"form-group required\" style=\"margin-top: 15px;\">\n                                                <input type=\"checkbox\" value=\"1\" id=\"module_wiki\" <?php print $checked; ?> name=\"module_wiki\">\n                                                <label for=\"module_wiki\" id=\"module_wiki_label\">\n                                                    <?php print $weblangs->trans(\"suggestToAddWikiPage\"); ?>\n                                                </label>\n                                            </div>\n\n                                        </div>\n\n                                        <hr>\n\n                                        <input type=\"hidden\" name=\"action\" value=\"new-module\">\n                                        <?php if (!empty($product_id)) : ?>\n                                            <span id=\"product_to_edit\" style=\"display:none;\"> <?php print $product_id; ?></span>\n                                        <?php endif; ?>\n\n\n                                        <div class=\"form-group required\">\n                                            <input class=\"button_large_disabled\" id=\"sub\" name=\"sub\" type=\"submit\" value=\"Submit this product\" style=\"opacity: 0.5;\" disabled=\"disabled\">\n                                        </div>\n                                    </form>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <!-- .columns-container -->\n    <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n    </div>\n</div>\n<?php\n\n$themepath = dol_buildpath($conf->css, 1);\n$themesubdir = \'\';\nif (!empty($conf->modules_parts[\'theme\'])) {    // This slow down\n    foreach ($conf->modules_parts[\'theme\'] as $reldir) {\n        if (file_exists(dol_buildpath($reldir . $conf->css, 0))) {\n            $themepath = dol_buildpath($reldir . $conf->css, 1);\n            $themesubdir = $reldir;\n            break;\n        }\n    }\n}\n\n$ext = \'layout=\' . (empty($conf->browser->layout) ? \'\' : $conf->browser->layout) . \'&amp;version=\' . urlencode(DOL_VERSION);\nprint \'<!-- Includes JS for CKEditor -->\' . \"\\n\";\n$pathckeditor = $conf->file->dol_main_url_root . \'/includes/ckeditor/ckeditor/\';\n$jsckeditor = \'ckeditor.js\';\n\nprint \'<script nonce=\"\' . getNonce() . \'\">\';\nprint \'/* enable ckeditor by main.inc.php */\';\nprint \'var CKEDITOR_BASEPATH = \\\'\' . dol_escape_js($pathckeditor) . \'\\\';\' . \"\\n\";\nprint \'var ckeditorConfig = \\\'\' . $conf->file->dol_main_url_root . dol_escape_js(dol_buildpath($themesubdir . \'/theme/\' . $conf->theme . \'/ckeditor/config.js\' . ($ext ? \'?\' . $ext : \'\'), 1)) . \'\\\';\' . \"\\n\"; // $themesubdir=\'\' in standard usage\nprint \'var ckeditorFilebrowserBrowseUrl = \\\'\' . $conf->file->dol_main_url_root . \'/core/filemanagerdol/browser/default/browser.php?Connector=\' . $conf->file->dol_main_url_root . \'/core/filemanagerdol/connectors/php/connector.php\\\';\' . \"\\n\";\nprint \'var ckeditorFilebrowserImageBrowseUrl = \\\'\' . $conf->file->dol_main_url_root . \'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector=\' . $conf->file->dol_main_url_root . \'/core/filemanagerdol/connectors/php/connector.php\\\';\' . \"\\n\";\nprint \'</script>\' . \"\\n\";\nprint \'<script src=\"\' . $pathckeditor . $jsckeditor . ($ext ? \'?\' . $ext : \'\') . \'\"></script>\' . \"\\n\";\n\n?>\n</body>\n</html>',1,'2024-06-10 09:00:09',NULL,'2024-12-23 18:56:55',NULL,NULL,'page','',NULL,'','<script>\n    $(document).ready(function() {\n        var tableBody = $(\'#table-body-add\');\n        var rowCount = 0;\n    \n        $(\'#addImageBtn\').click(function() {\n            rowCount++;\n    \n            var newRow = `\n                <tr>\n                    <td><span class=\"icon-move\"></span></td>\n                    <td class=\"rowCount\" style=\"display:none;\">${rowCount}</td>\n                    <td>\n                        <input type=\"file\" name=\"image_${rowCount}\" class=\"image-input\" accept=\"image/*\" required >\n                    </td>\n                    <td>\n                        <img src=\"#\" style=\"display: none;\" class=\"image-preview\" width=\"100px\">\n                    </td>\n                    <td class=\"td-deleteBtn\">\n                        <button type=\"button\" class=\"btn deleteBtn\"><i class=\"icon-delete\"></i></button>\n                    </td>\n                </tr>\n            `;\n            tableBody.append(newRow);\n    \n            // Attach file input change event\n            var fileInput = tableBody.find(\'tr:last-child .image-input\');\n            fileInput.change(function() {\n                var rowIndex = $(this).closest(\'tr\').index();\n                var imagePreview = tableBody.find(\'tr\').eq(rowIndex).find(\'.image-preview\');\n    \n                if (this.files && this.files[0]) {\n                    var reader = new FileReader();\n    \n                    reader.onload = function(e) {\n                        imagePreview.attr(\'src\', e.target.result).css(\'display\', \'block\');\n                    };\n    \n                    reader.readAsDataURL(this.files[0]);\n                } else {\n                    imagePreview.attr(\'src\', \'\').css(\'display\', \'none\');\n                }\n            });\n        });\n    \n        // Delete row functionality\n        tableBody.on(\'click\', \'.deleteBtn\', function() {\n            $(this).closest(\'tr\').remove();\n            updateRowNumbers();\n        });\n    \n        // Function to update row numbers and input names\n        function updateRowNumbers() {\n            tableBody.find(\'tr\').each(function(index) {\n                var rowNum = index + 1;\n                $(this).find(\'.rowCount\').text(rowNum);\n                $(this).find(\'.image-input\').attr(\'name\', `image_${rowNum}`);\n            });\n        }\n    \n        // Make table rows sortable add\n        $(\'#table-body-add\').sortable({\n            handle: \'td:first-child\', // Restrict drag start to the first cell (Position)\n            update: function(event, ui) {\n                updateRowNumbers(); // Update row numbers and input names after reordering\n            },\n            start: function(event, ui) {\n              ui.item.addClass(\'dragging\');\n            },\n            stop: function(event, ui) {\n              ui.item.removeClass(\'dragging\');\n            },\n        });\n        \n        document.getElementById(\'image_cover\').addEventListener(\'change\', function(event) {\n            const file = event.target.files[0];\n            if (file) {\n                const reader = new FileReader();\n                reader.onload = function(e) {\n                    const img = document.getElementById(\'image_preview\');\n                    img.src = e.target.result;\n                    img.style.display = \'block\';\n                }\n                reader.readAsDataURL(file);\n            }\n        });\n        \n        document.getElementById(\'virtual_product_file\').addEventListener(\'change\', function(event) {\n            var fileInfoDiv = document.getElementById(\'field-info-virtual_product_file\');\n            var fileName = event.target.files[0] ? event.target.files[0].name : \"Aucun fichier sélectionné\";\n            fileInfoDiv.textContent = fileName;\n        });\n        document.getElementById(\'image_cover\').addEventListener(\'change\', function(event) {\n            var fileInfoDiv = document.getElementById(\'field-info-image-cover\');\n            var fileName = event.target.files[0] ? event.target.files[0].name : \"Aucun fichier sélectionné\";\n            fileInfoDiv.textContent = fileName;\n        });\n    \n        // Make table rows sortable edit\n        $(\'#table-body-edit\').sortable({\n            handle: \'td:first-child\',\n            update: function(event, ui) {\n                updateEditRowNumbers();\n        \n                var order = getOrder();\n                $.ajax({\n                    url: edit_product_url,\n                    type: \'POST\',\n                    dataType: \'json\',\n                    data: { action: \'update_order\', order: order },\n                    success: function(response) {\n                        showNotification(response.message);\n                        if (response.success) {\n                            // Optionnel : mettre à jour l\'interface utilisateur\n                        }\n                    },\n                    fail: function(response) {\n                        alert(response.message);\n                    }\n                });\n            },\n            start: function(event, ui) {\n                ui.item.addClass(\'dragging\');\n            },\n            stop: function(event, ui) {\n                ui.item.removeClass(\'dragging\');\n            },\n        });\n    \n        function getOrder() {\n            var order = {};\n            $(\'#table-body-edit tr\').each(function(index, element) {\n                var id = $(element).find(\'.deleteBtn\').data(\'id\');\n                var position = index + 1;\n                order[id] = position;\n            });\n            return order;\n        }\n    \n    \n        $(\'#addImageBtn2\').on(\'click\', function() {\n            $(\'#fileInput2\').click();\n        });\n    \n        $(\'#fileInput2\').on(\'change\', function(e) {\n            e.preventDefault();\n            var formData = new FormData();\n            var position_for_new_photo = $(\'#table-body-edit tr\').length + 1;\n            var product_id = $(\'#product_to_edit\').text();\n    \n            formData.append(\'product_id\', product_id);\n            formData.append(\'action\', \'add_product_image\');\n            formData.append(\'position\', position_for_new_photo);\n            formData.append(\'file\', this.files[0]);\n            \n            $.ajax({\n                url: edit_product_url,\n                type: \'POST\',\n                dataType: \'json\',\n                data: formData,\n                processData: false,\n                contentType: false\n            }).done(function(response) {\n                showNotification(response.message);\n                if (response.success) {\n                    location.reload(); // Recharge la page\n                }\n            }).fail(function(response) {\n                alert(response.message);\n            });\n        });\n    \n        \n        $(\'.deleteBtn\').on(\'click\', function(e) {\n            e.preventDefault();\n            var id_image = $(this).data(\'id\');\n            $.ajax({\n                url: edit_product_url,\n                type: \"POST\",\n                dataType: \"json\", // On attend une réponse JSON du serveur\n                data: { action: \'delete_image\', \'id_image\': id_image }\n            }).done(function(response) {\n                showNotification(response.message);\n                if (response.success) {\n                    $(\'tr[data-id=\"\' + id_image + \'\"]\').remove();\n                    //updateEditRowNumbers();\n                }\n            }).fail(function() {\n                alert(\'error\');\n            });\n        });\n    \n    \n        function updateEditRowNumbers() {\n            $(\'#table-body-edit tr\').each(function(index) {\n                $(this).find(\'.rowCount\').text(index + 1);\n            });\n        }\n    \n        function showNotification(message) {\n            $(\'.notification\').text(message).fadeIn().delay(2000).fadeOut();\n        }\n    \n    \n        // Get references to the checkboxes and the submit button\n        const dolibarrTermsCheckbox = document.getElementById(\'dolibarr_terms\');\n        const moduleWikiCheckbox = document.getElementById(\'module_wiki\');\n        const submitButton = document.getElementById(\'sub\');\n    \n        // Function to check the state of the checkboxes and update the button state\n        function updateButtonState() {\n            if (dolibarrTermsCheckbox.checked && moduleWikiCheckbox.checked) {\n                submitButton.disabled = false;\n                submitButton.style.opacity = 1.0;\n                submitButton.classList.remove(\'button_large_disabled\');\n                submitButton.classList.add(\'button_large\');\n            } else {\n                submitButton.disabled = true;\n                submitButton.style.opacity = 0.5;\n                submitButton.classList.add(\'button_large_disabled\');\n                submitButton.classList.remove(\'button_large\');\n            }\n        }\n    \n        // Add event listeners to the checkboxes to monitor changes\n        dolibarrTermsCheckbox.addEventListener(\'change\', updateButtonState);\n        moduleWikiCheckbox.addEventListener(\'change\', updateButtonState);\n    \n        // Initial check to set the button state based on the initial checkbox states\n        updateButtonState();\n    \n    \n    });\n</script>',NULL,'','',0,NULL,NULL),
(110,37,'footer','','footer','footer','','<footer id=\"footer\" class=\"container\">\n  <div class=\"row\">\n    <?php\n    $current_lang = $_SESSION[\'lang\'][\'shortcode\'];\n      \n    $links = array();\n    $other_pages[\'about_payments\'] = $websitepage->fetchAll($website->id, \'\', \'\', 1, 0, array(\'title\' => \'About payments\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'contact\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Contact\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'terms\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Terms and conditions\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'terms_module_providers\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'Terms and conditions of use - Module providers\', \'status\' => \'1\', \'lang\' => $website->lang));\n    $other_pages[\'about_us\'] = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'title\' => \'About us\', \'status\' => \'1\', \'lang\' => $website->lang));\n    foreach ($other_pages as $key => $pages) {\n      $obj = $pages[key($pages)];\n      $links[$key][\'title\'] = $obj->title;\n      $links[$key][\'url\'] = $obj->pageurl;\n      if ($website->lang != $current_lang) {\n        $trans_page = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'fk_page\' => $obj->id, \'status\' => \'1\', \'lang\' => $current_lang));\n        $trans_page = $trans_page[key($trans_page)];\n        $links[$key][\'title\'] = $trans_page->title;\n        $links[$key][\'url\'] = $trans_page->pageurl;\n      }\n      \n    }\n    ?>\n    <section class=\"footer-block col-xs-12 col-sm-2\" id=\"block_various_links_footer\" contenteditable=\"true\">\n      <h4>Information</h4>\n      <ul class=\"toggle-footer\">\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'about_us\'][\'url\'] ?>.php\" title=\"Legal Notice - About us\"> <?php print $links[\'about_us\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'terms\'][\'url\'] ?>.php\" title=\"Terms and conditions of use\"> <?php print $links[\'terms\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'terms_module_providers\'][\'url\'] ?>.php\" title=\"Terms and conditions of use - Module providers\"> <?php print $links[\'terms_module_providers\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'contact\'][\'url\'] ?>.php\" title=\"Contact\"> <?php print $links[\'contact\'][\'title\'] ?> </a>\n        </li>\n        <li class=\"item\">\n          <a href=\"<?php print $links[\'about_payments\'][\'url\'] ?>.php\" title=\"About payments\"> <?php print $links[\'about_payments\'][\'title\'] ?> </a>\n        </li>\n      </ul>\n    </section>\n    <section class=\"footer-block col-xs-12 col-sm-4\" contenteditable=\"true\">\n      <h4>\n        <a href=\"https://www.dolistore.com/en/my-account\" title=\"Manage my customer account\" rel=\"nofollow\">My account</a>\n      </h4>\n      <div class=\"block_content toggle-footer\">\n        <ul class=\"bullet\">\n          <li>\n            <a href=\"order-history.php\" title=\"My orders\" rel=\"nofollow\">My orders</a>\n          </li>\n          <li>\n            <a href=\"account-information.php\" title=\"Manage my personal information\" rel=\"nofollow\">My personal info</a>\n          </li>\n\n        </ul>\n      </div>\n    </section>\n  </div>\n</footer>',1,'2024-02-02 16:48:47',NULL,'2024-07-24 17:43:02',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(111,37,'forgot-password','','Forgot password','','','<?php // BEGIN PHP\nsession_start(); // start session\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/class/html.formcompany.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/lib/admin.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/core/modules/security/generate/modGeneratePassPerso.class.php\';\n//includeContainer(\'_library_page_lib.php\');\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n$form = new Form($db);\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php includeContainer(\'header\'); ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"resetPassword\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php \n            includeContainer(\'sidebar\');\n            $__PAGE__TITLE__ = $weblangs->trans(\"forgotPasswordPageTitle\");\n        ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <div class=\"row\">\n                    <div class=\"col-xs-12\">\n                        <?php\n                            $error = 0;\n                            $error_messages = array();\n                            \n                            // Send reset password email\n            			    if (!empty(GETPOST(\'email\'))) {\n\n                                $customer_email = GETPOST(\'email\');\n\n                            	if (!isValidEmail($customer_email)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"emailInvalid\");\n                            	}\n                            	\n                            	$sql  = \"select lsa.rowid, lsa.login, lsa.fk_soc \";\n                                $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n                                $sql .= \"where lsa.login = \'\". $customer_email .\"\' \";\n                                $sql .= \"and lsa.fk_website = \". $website->id . \" \";\n                                $sql .= \"limit 1\";\n                                \n                                $result = $db->query($sql);\n                            	$objsql = $db->fetch_object($result);\n                            	\n                            	if (empty($objsql)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"emailDoesNotExist\");\n                                }\n                            \n\n                                if($error == 0){\n                                    // Start of transaction\n                                    $db->begin();\n                                    \n                                    // Generate a random password\n                                    $pass_temp_crypted = dol_hash(date(\'Y-m-d H:i:s\').$objsql->rowid);\n                                    \n                                    $societeaccount = new SocieteAccount($db);\n                                    $societeaccount->fetch($objsql->rowid);\n                                    $societeaccount->id = $objsql->rowid;\n                                    $societeaccount->pass_temp = $pass_temp_crypted;\n                                    $societeaccount->date_last_reset_password = dol_now();\n                            \n                                    $result = $societeaccount->update($user);\n                                    if ($result < 0) {\n                            			$error++;\n                            			$error_messages[] = $weblangs->trans(\"errorOccurred\");\n                            		}\n                            		\n                            		if ($error == 0) {\n                            		    \n                            		    $sql  = \"select ls.nom \";\n                                        $sql .= \"from \".MAIN_DB_PREFIX.\"societe ls \";\n                                        $sql .= \"where ls.rowid = \'\". $objsql->fk_soc .\"\' \";\n                                        $sql .= \"limit 1\";\n                                        \n                                        $result = $db->query($sql);\n                                		$objsql_customer = $db->fetch_object($result);\n                                		\n                                		// Generate the link\n                                        $protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\' || $_SERVER[\'SERVER_PORT\'] == 443) ? \"https://\" : \"http://\";\n                                        $host = $_SERVER[\'HTTP_HOST\'];\n                                        $requestUri = $_SERVER[\'REQUEST_URI\'];\n                                        $currentUrl = $protocol . $host . $requestUri;\n                                        \n                                		// Check if the URL already contains GET parameters\n                                        if (strpos($requestUri, \'?\') !== false) {\n                                            // If the URL contains parameters, append the token with &\n                                            $resetLink = $currentUrl . \"&token=\" . $pass_temp_crypted;\n                                        } else {\n                                            // If the URL does not contain parameters, append the token with ?\n                                            $resetLink = $currentUrl . \"?token=\" . $pass_temp_crypted;\n                                        }\n\n                            		    // Send welcome email\n                            		    $substitutionarray = array(\n                            	            \'__USER_NAME__\' => $objsql_customer->nom,\n                            	            \'__PASSWORD__RESET_LINK__\' => $resetLink\n                            	        );\n                                    	$email_sended = marketplace_send_email(getDolGlobalInt(\"MARKETPLACE_FORGOT_PASSWORD_EMAIL_TEMPLATE\"), \'thirdparty\', $societeaccount, $objsql->login, $substitutionarray);\n                                        \n                                        $db->commit();\n                            		} else {\n                            		    $db->rollback();\n                            		}\n                                }\n                            		\n                            }\n\n\n                            // Check token\n                            if (!empty(GETPOST(\'token\'))) {\n                                \n                                $token = GETPOST(\'token\');\n                                $sql  = \"select lsa.rowid, lsa.pass_encoding, lsa.pass_crypted, lsa.pass_temp, lsa.date_last_reset_password, ls.nom, fk_soc \";\n                                $sql .= \"from \".MAIN_DB_PREFIX.\"societe_account lsa \";\n                                $sql .= \"left join \".MAIN_DB_PREFIX.\"societe ls on ls.rowid = lsa.fk_soc \";\n                                $sql .= \"where lsa.pass_temp = \'\". $token .\"\' \";\n                                $sql .= \"and lsa.fk_website = \". $website->id . \" \";\n                                $sql .= \"limit 1\";\n                                \n                                $result = $db->query($sql);\n                        		$objsql = $db->fetch_object($result);\n                                if (!empty($objsql)) {\n                                    $dateTokenDateTime = new DateTime($objsql->date_last_reset_password);\n                                    $now = new DateTime();\n                                    $interval = $now->diff($dateTokenDateTime);\n                                    \n                                    if ($interval->days < 1 && $interval->h < 24 && $objsql->pass_temp == $token) {\n                                        $correct_token = 1;\n                                    } else {\n                                        $error++;\n                            		    $error_messages[] = $weblangs->trans(\"wrongOrExpiredToken\");\n                                    }\n\n                                }else{\n                                    $error++;\n                            		$error_messages[] = $weblangs->trans(\"wrongOrExpiredToken\");\n                                }\n                                \n                            }\n                            \n                            // Change password\n                            if (!empty(GETPOST(\'token\')) && !empty($correct_token) && $correct_token == 1) {\n                                $token = GETPOST(\'token\');\n                                $new_passwd1 = GETPOST(\'new_passwd1\');\n                                $new_passwd2 = GETPOST(\'new_passwd2\');\n                                \n                                if (empty($new_passwd1) || empty($new_passwd2)) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"bothFieldsRequired\");\n                            	}\n                            	\n                            	if (!empty($new_passwd1) && !empty($new_passwd2) && $new_passwd1 != $new_passwd2) {\n                            		$error++;\n                            		$error_messages[] = $weblangs->trans(\"passwordsAreNotTheSame\");\n                            	}\n\n                                if ($error == 0) {\n                                    $check_pass = new modGeneratePassPerso($db, $conf, $langs, $user);\n                                	$is_valid = $check_pass->validatePassword($new_passwd1);\n                                	if(!$is_valid){\n                                	    $error++;\n                                		$error_messages[] = $weblangs->trans(\"newPasswordCriteria\");\n                                	}\n                                }\n                                \n                                if ($error == 0) {\n                                    $societeaccount = new SocieteAccount($db);\n                                    $societeaccount->fetch($objsql->rowid);\n                    				$societeaccount->pass_encoding = \"dolibarr\";\n                    				$societeaccount->pass_crypted = dol_hash($new_passwd1);\n                    				$ret_account = $societeaccount->update($user);\n                    				if ($ret_account < 0) {\n                    					$error++;\n                    					$error_messages[] = $weblangs->trans(\"errorOccurred\");\n                    				} else {\n                    				    $passwordChanged = 1;\n                    				}\n                                }\n                                \n                            }\n            			?>\n            			\n            			<?php\n            			    // Choose content to display\n                			$page_content = \"email_form\";\n                			if (isset($email_sended) && $email_sended != 0) {\n                			    $page_content = \"email_sent\";\n                			}\n                			if (!empty(GETPOST(\'token\'))) {\n                			    $page_content = \"password_form\";\n                			}\n                			if (!empty(GETPOST(\'token\')) && !empty($passwordChanged) && $passwordChanged == 1) {\n                			    $page_content = \"password_changed\";\n                			}\n            			?>\n            			\n            			<?php if ($page_content == \"email_sent\"): ?>\n                        	<p>\n                        	    <div class=\"account_creation\">\n                        			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                        	        <p class=\"p_with_margin box\"><?php print $weblangs->trans(\"resetPasswordEmailSent\"); ?></p>\n                        	    </div>\n                        	</p>\n                        <?php endif; ?>\n\n\n                        <?php if ($page_content == \"password_form\"): ?>\n                            <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                            <form action=\"\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n                                <div class=\"account_creation\">\n                                    <?php if (isset($error) && $error != 0): ?>\n                        		        <div class=\'alert alert-danger\'>\n                            		        <?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n                                	\n                                	<div class=\"required password form-group\">\n                        				<label for=\"passwd\"><?php print $weblangs->trans(\"newPasswd\"); ?> <sup>*</sup></label>\n                        				<input type=\"password\" class=\"is_required validate form-control\" required name=\"new_passwd1\" id=\"passwd\" value=\"\">\n                        			</div>\n                        			<div class=\"required password form-group\">\n                        				<label for=\"passwd\"><?php print $weblangs->trans(\"reEnterNewPassword\"); ?><sup>*</sup></label>\n                        				<input type=\"password\" class=\"is_required validate form-control\" required name=\"new_passwd2\" id=\"passwd\" value=\"\">\n                        			</div>\n                                    \n                                    <hr>\n                        			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n                        				<span><?php print $weblangs->trans(\"save\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n                        			</button>\n                			\n                                </div>\n                            </form>\n                        <?php endif; ?>\n\n\n                        <?php if ($page_content == \"password_changed\"): ?>\n                            <p>\n                                <div class=\"account_creation\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                                    <p class=\"p_with_margin box\"><?php print $weblangs->trans(\"passwordChangedMessage\"); ?></p>\n                                </div>\n                            </p>\n                        <?php endif; ?>\n                        \n                        \n                        <?php if ($page_content == \"email_form\"): ?>\n                            <form action=\"\" method=\"post\" id=\"account-creation_form\" class=\"std box\">\n                        		<div class=\"account_creation\">\n                        			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"resetPassword\"); ?></h3>\n                        			<?php if (isset($error) && $error != 0): ?>\n                                		<div class=\'alert alert-danger\'>\n                                    		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n    \n                        			<div class=\"required form-group\">\n                        				<label for=\"email\"><?php print $weblangs->trans(\"email\"); ?> <sup>*</sup></label>\n                        				<input type=\"text\" class=\"is_required validate form-control\" required id=\"email\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n                        			</div>\n                        		</div>\n    \n                        		<input type=\"hidden\" name=\"action\" value=\"resetpassword\">\n                        		<div class=\"submit clearfix\">\n                        			<hr>\n                        			<button type=\"submit\" name=\"submitAccount\" id=\"submitAccount\" class=\"btn btn-default button button-medium\">\n                        				<span><?php print $weblangs->trans(\"submit\"); ?> <i class=\"icon-chevron-right right\"></i></span>\n                        			</button>\n                        		</div>\n                        	</form>\n                        <?php endif ?>\n                        \n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                			<span>\n                				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                			</span>\n                		</a>\n                	</li>\n                	<li>\n                		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"home\"); ?></span>\n                		</a>\n                	</li>\n                </ul>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-19 16:32:47',NULL,'2024-12-23 15:54:55',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(112,37,'goodies','','goodies','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n\n$root_cat_object = new Categorie($db);\n$result = $root_cat_object->fetch(0,\"goodies\");\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"goodiesPageTitle\");\n        $__PAGE__KEYWORDS__ = $weblangs->trans(\"goodiesPageKeywords\");\n        $__PAGE__DESC__ = $weblangs->trans(\"goodiesPageDescription\");\n    ?>\n    \n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"Goodies\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <section id=\"category_info_section\" contenteditable=\"true\">\n                	<div class=\"content_scene_cat\">\n                		<!-- Category image -->\n                		<div class=\"content_scene_cat_bg\">\n                			<div class=\"cat_desc\">\n                				<span class=\"category-name\"><?php print $root_cat_object->label; ?></span>\n                				<div class=\"rte\">\n                					<p><?php print strip_tags($root_cat_object->description); ?></p>\n                				</div>\n                			</div>\n                		</div>\n                		\n                		<div class=\"shop-container\">\n                            <div class=\"shop-image\">\n                                <img src=\"viewimage.php?modulepart=medias&entity=1&file=image/marketplace/img/goodies-shop.jpg\">\n                                <div class=\"shop-overlay\">\n                                    <button target=\"new\" class=\"shop-button\"><?php print $weblangs->trans(\"goodiesbuttonTitle\"); ?> <i class=\"icon-chevron-right\"></i></button>\n                                </div>\n                            </div>\n                        </div>\n            \n                	</div>\n                </section>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-11-19 14:59:06',NULL,'2024-11-19 16:13:09',NULL,NULL,'page','en',NULL,'','<script>\n    $(document).ready(function () {\n        // Redirect on button click\n        $(\'.shop-button\').on(\'click\', function () {\n            window.open(\'https://shop.spreadshirt.fr/dolibarr-goodies\', \'_blank\'); // Replace with your shop URL\n        });\n    });\n</script>',NULL,'','',0,NULL,NULL),
(113,37,'header','','header','header','','<?php // BEGIN PHP\n\nsession_start(); // start session\nincludeContainer(\'_library_page_lib.php\');\nsetSessionLang();\n$weblangs->load(\"marketplace@marketplace\", \"languages\");\n$langs->load(\"languages\");\n\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\n\n$mc_website_id = getDolGlobalInt(\"MARKETPLACE_WEBSITE_ID\");\nif (empty($mc_website_id)) {\n  print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_WEBSITE_ID\');\n  exit;\n}\n\n$mc_secret_key = getDolGlobalString(\"MARKETPLACE_SECRET_KEY\");\nif (empty($mc_secret_key)) {\n  print $weblangs->trans(\"variableNotDefined\", \'MARKETPLACE_SECRET_KEY\');\n  exit;\n}\n\nif (!(isModEnabled(\'paypal\') || isModEnabled(\'stripe\') || isModEnabled(\'paybox\'))) {\n    print $weblangs->trans(\"noPaymentModuleIsActivated\");\n    exit;\n}\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<script type=\"text/javascript\">\n  var shopping_cart_url = \"_service_page_ajax.php\";\n  //var shopping_cart_url = \"<?php //echo DOL_URL_ROOT . \'/custom/dolibarr-foundation/marketplace/doctemplates/websites/website_template-dolistore/containers/shopping_cart.php\'; ?>\";\n</script>\n<header id=\"header\">\n  <div class=\"nav\">\n    <div class=\"container\">\n      <div class=\"row\">\n        <nav>\n            <?php if (!empty($_SESSION[\'user\'][\'pseudo\'])): ?>\n                <div class=\"header_user_info\">\n                	<a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"viewMyCustomerAccount\"); ?>\" class=\"account\" rel=\"nofollow\"><span><?php print $_SESSION[\'user\'][\'pseudo\']; ?></span></a>\n                </div>\n            <?php endif ?>\n          <div class=\"header_user_info\">\n            <?php if (empty($_SESSION[\'user\'][\'id_user\'])): ?>\n                <a class=\"login\" href=\"login-register.php\" rel=\"nofollow\" title=\"<?php print $weblangs->trans(\"logInToYourCustomerAccount\"); ?>\"> <?php print $weblangs->trans(\"signIn\"); ?> </a>\n            <?php else: ?>\n                <a class=\"login\" href=\"myaccount.php?action=logout\" rel=\"nofollow\" title=\"<?php print $weblangs->trans(\"logOutFromYourCustomerAccount\"); ?>\"> <?php print $weblangs->trans(\"logOut\"); ?> </a>\n            <?php endif ?>\n            \n          </div>\n          <div id=\"languages-block-top\" class=\"languages-block\">\n            <div class=\"current\">\n              <span><?php print trim(explode(\'(\', $langs->trans(\"Language_\".$langs_code_shortcode[$_SESSION[\'lang\'][\'shortcode\']]))[0]); ?></span>\n            </div>\n            <ul id=\"first-languages\" class=\"languages-block_ul toogle_content\">\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 class=\"selected\">\n                            <span><?php print $value; ?></span>\n                        </li>\n                	<?php else: ?>\n                		<li>\n                          <form id=\"languageForm-<?php print $key; ?>\" method=\"post\" action=\"#\">\n                            <input type=\"hidden\" name=\"language\" value=\"<?php print $key; ?>\">\n                            <a href=\"#\" title=\"<?php print $langs->trans(\"Language_\".$langs_code_shortcode[$key]); ?>\" onclick=\"document.getElementById(\'languageForm-<?php print $key; ?>\').submit(); return false;\">\n                              <span><?php print $value ; ?></span>\n                            </a>\n                          </form>\n                        </li>\n                	<?php endif ?>\n                <?php endforeach ?>\n            </ul>\n          </div>\n        </nav>\n      </div>\n    </div>\n  </div>\n  <div>\n    <div class=\"container\">\n      <div class=\"row\">\n        <div id=\"header_logo\">\n          <?php\n          if(getDolGlobalString(\'MARKETPLACE_URL_FOR_LOGO\')){\n              $html_logo = \'<img class=\"logo img-responsive-logo img-responsive\" alt=\"\" widthold=\"520\" src=\"\'.getDolGlobalString(\'MARKETPLACE_URL_FOR_LOGO\').\'\">\';\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=\"\" widthold=\"520\" src=\"\' . DOL_URL_ROOT . \'/viewimage.php?modulepart=mycompany&file=logos/\'.$path.\'\">\';\n          }\n          ?>\n          <a href=\"index.php\" title=\"DoliStore\">\n            <?php print $html_logo; ?>\n          </a>\n        </div>\n        <div id=\"search_block_top\" class=\"col-sm-4 clearfix\">\n          <?php $test = \"11\"; ?>\n          <form id=\"searchbox\" method=\"get\" action=\"index.php\">\n            <input type=\"hidden\" name=\"controller\" value=\"search\" />\n            <input type=\"hidden\" name=\"orderby\" value=\"position\" />\n            <input type=\"hidden\" name=\"orderway\" value=\"desc\" />\n            <input type=\"hidden\" name=\"tag\" value=\"<?php (isset($tag)) ? print $tag : \'\'; ?>\" />\n            <input type=\"hidden\" name=\"website\" value=\"<?php print $websitekey; ?>\" />\n            <input class=\"search_query form-control\" type=\"text\" id=\"search_query_top\" name=\"search_query\" placeholder=\"<?php print $weblangs->trans(\"search\"); ?>\" value=\"<?php print GETPOST(\'search_query\', \'alpha\'); ?>\" />\n            <button type=\"submit\" name=\"submit_search\" class=\"btn btn-default button-search\">\n              <span><?php print $weblangs->trans(\"search\"); ?></span>\n            </button>\n          </form>\n          <?php (!empty($tag)) ? print $weblangs->trans(\"filteredByVersion\") . \' \' . $tag . \' <a href=\"index.php\">\' . $weblangs->trans(\"removeFilter\") . \'</a>\' : \'\'; ?>\n        </div>\n        <div class=\"col-sm-4 clearfix\">\n            \n        <?php if ($websitepage->ref != \"payment\"): ?>\n            <div class=\"shopping_cart\">\n            <a href=\"order.php\" title=\"<?php print $weblangs->trans(\"viewMyCart\"); ?>\" rel=\"nofollow\">\n              <b><?php print $weblangs->trans(\"Cart\"); ?></b>\n              <span class=\"ajax_cart_quantity unvisible\">0</span>\n              <span class=\"ajax_cart_product_txt unvisible\"><?php print $weblangs->trans(\"product\"); ?></span>\n              <span class=\"ajax_cart_product_txt_s unvisible\"><?php print $weblangs->trans(\"products\"); ?></span>\n              <span class=\"ajax_cart_total unvisible\"></span>\n                <?php if (!empty($_SESSION[\'products\'])): ?>\n                    <span class=\"ajax_cart_no_product\"><?php print count($_SESSION[\'products\']); ?></span> Product<?php if(count($_SESSION[\'products\']) > 1){ print \'s\';} ?>\n                <?php else: ?>\n                    <span class=\"ajax_cart_no_product\">0</span> <?php print $weblangs->trans(\"product\"); ?>\n                <?php endif ?>\n            </a>\n            <div class=\"cart_block block exclusive\">\n              <div class=\"block_content\">\n                <div class=\"cart_block_list\">\n                    <?php if (!$_SESSION[\'products\']): ?>\n                        <p class=\"cart_block_no_products\"> <?php print $weblangs->trans(\"noProducts\"); ?> </p>\n                    <?php else: ?>\n                        <?php $total = 0; ?>\n                        <?php foreach ($_SESSION[\'products\'] as $cart_product): ?>\n                            <dl class=\"products\">\n                               <dt class=\"item\" data-id=\"cart_block_product_<?php print $cart_product[\'product_id\']; ?>\" style=\"display: block;\">\n                                  <a class=\"cart-images\" href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\" title=\"<?php print $cart_product[\'product_name\']; ?>\"><img src=\"<?php print $cart_product[\'product_thumb\']; ?>\" alt=\"<?php print $cart_product[\'product_name\']; ?>\"></a>\n                                  <div class=\"cart-info\">\n                                     <div class=\"product-name\"><span class=\"quantity-formated\"><span class=\"quantity\"><?php print $cart_product[\'product_qty\']; ?></span>&nbsp;x&nbsp;</span><a href=\"product.php?id=<?php print $cart_product[\'product_id\']; ?>\" title=\"<?php print $cart_product[\'product_name\']; ?>\" class=\"cart_block_product_name truncate3\"><?php print $cart_product[\'product_name\']; ?></a></div>\n                                     <span class=\"price\"><?php print 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=\"<?php print $cart_product[\'product_id\']; ?>\"> </a></span>\n                               </dt>\n                            </dl>	\n                            <?php\n                                $subtotal = ($cart_product[\'product_price\'] * $cart_product[\'product_qty\']);\n                                $total = ($total + $subtotal);\n                            ?>\n                        <?php endforeach ?>\n                    <?php endif ?>\n\n\n                  <div class=\"cart-prices\">\n                    <div class=\"cart-prices-line first-line\">\n                      <span class=\"price cart_block_shipping_cost ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n                      <span> <?php print $weblangs->trans(\"shipping\"); ?> </span>\n                    </div>\n                    <div class=\"cart-prices-line last-line\">\n                      <span class=\"price cart_block_total ajax_block_cart_total\"><?php print $total; ?> €</span>\n                      <span><?php print $weblangs->trans(\"total\"); ?></span>\n                    </div>\n                    <p> <?php print $weblangs->trans(\"pricesMayVaryDependingOnYourCountry\"); ?> </p>\n                  </div>\n                  <p class=\"cart-buttons\">\n                    <a id=\"button_order_cart\" class=\"btn btn-default button button-small\" href=\"order.php\" title=\"Check out\" rel=\"nofollow\">\n                      <span> <?php print $weblangs->trans(\"checkOut\"); ?> <i class=\"icon-chevron-right right\"></i>\n                      </span>\n                    </a>\n                  </p>\n                </div>\n              </div>\n            </div>\n        </div>\n        <?php endif ?>\n        \n        \n        \n        </div>\n        <div id=\"layer_cart\" class=\"lightbox3\">\n            <div id=\"content3\">\n                <div class=\"clearfix\">\n            <div class=\"layer_cart_product col-xs-12 col-md-6\">\n              <span class=\"cross\" title=\"Close window\"></span>\n              <h2>\n                <i class=\"icon-ok\"></i><?php print $weblangs->trans(\"productAddedToCart\"); ?>\n              </h2>\n              <div class=\"product-image-container layer_cart_img\">\n                  \n              </div>\n              <div id=\"layer_cart_product_info\">\n                <span id=\"layer_cart_product_title\" class=\"product-name\"></span>\n                <span id=\"layer_cart_product_attributes\"></span>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"quantity\"); ?></strong>\n                  <span id=\"layer_cart_product_quantity\"></span>\n                </div>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"total\"); ?></strong>\n                  <span id=\"layer_cart_product_price\"></span>\n                </div>\n              </div>\n            </div>\n            <div class=\"layer_cart_cart col-xs-12 col-md-6\">\n              <h2>\n                <span class=\"ajax_cart_product_txt_s  unvisible\"> <?php print $weblangs->trans(\"nbrItemsInCart\"); ?> </span>\n                <span class=\"ajax_cart_product_txt \"> <?php print $weblangs->trans(\"thereIsItemInYourCart\"); ?> </span>\n              </h2>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_products_total\"></span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalShippingTaxIncl\"); ?> </strong>\n                <span class=\"ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"><?php print $weblangs->trans(\"tax\"); ?></strong>\n                <span class=\"price cart_block_tax_cost ajax_cart_tax_cost\">0,00 €</span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_cart_total\"></span>\n              </div>\n              <div class=\"button-container\">\n                <span class=\"continue btn btn-default button exclusive-medium\" title=\"<?php print $weblangs->trans(\"continueShopping\"); ?>\">\n                  <span>\n                    <i class=\"icon-chevron-left left\"></i><?php print $weblangs->trans(\"continueShopping\"); ?> </span>\n                </span>\n                <a class=\"btn btn-default button button-medium\" href=\"order.php\" title=\"<?php print $weblangs->trans(\"proceedToCheckout\"); ?>\" rel=\"nofollow\">\n                  <span> <?php print $weblangs->trans(\"proceedToCheckout\"); ?> <i class=\"icon-chevron-right right\"></i>\n                  </span>\n                </a>\n              </div>\n            </div>\n          </div>\n            </div>\n        </div>\n        <div id=\"layer_cart\">\n          <div class=\"clearfix\">\n            <div class=\"layer_cart_product col-xs-12 col-md-6\">\n              <span class=\"cross\" title=\"Close window\"></span>\n              <h2>\n                <i class=\"icon-ok\"></i><?php print $weblangs->trans(\"productAddedToCart\"); ?>\n              </h2>\n              <div class=\"product-image-container layer_cart_img\">\n                  \n              </div>\n              <div id=\"layer_cart_product_info\">\n                <span id=\"layer_cart_product_title\" class=\"product-name\"></span>\n                <span id=\"layer_cart_product_attributes\"></span>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"quantity\"); ?></strong>\n                  <span id=\"layer_cart_product_quantity\"></span>\n                </div>\n                <div>\n                  <strong class=\"dark\"><?php print $weblangs->trans(\"total\"); ?></strong>\n                  <span id=\"layer_cart_product_price\"></span>\n                </div>\n              </div>\n            </div>\n            <div class=\"layer_cart_cart col-xs-12 col-md-6\">\n              <h2>\n                <span class=\"ajax_cart_product_txt_s  unvisible\"> <?php print $weblangs->trans(\"nbrItemsInCart\"); ?> </span>\n                <span class=\"ajax_cart_product_txt \"> <?php print $weblangs->trans(\"thereIsItemInYourCart\"); ?> </span>\n              </h2>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalProductsTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_products_total\"></span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalShippingTaxIncl\"); ?> </strong>\n                <span class=\"ajax_cart_shipping_cost\"> <?php print $weblangs->trans(\"freeShipping\"); ?> </span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"><?php print $weblangs->trans(\"tax\"); ?></strong>\n                <span class=\"price cart_block_tax_cost ajax_cart_tax_cost\">0,00 €</span>\n              </div>\n              <div class=\"layer_cart_row\">\n                <strong class=\"dark\"> <?php print $weblangs->trans(\"totalTaxIncl\"); ?> </strong>\n                <span class=\"ajax_block_cart_total\"></span>\n              </div>\n              <div class=\"button-container\">\n                <span class=\"continue btn btn-default button exclusive-medium\" title=\"Continue shopping\">\n                  <span>\n                    <i class=\"icon-chevron-left left\"></i><?php print $weblangs->trans(\"continueShopping\"); ?> </span>\n                </span>\n                <a class=\"btn btn-default button button-medium\" href=\"order.php\" title=\"<?php print $weblangs->trans(\"proceedToCheckout\"); ?>\" rel=\"nofollow\">\n                  <span> <?php print $weblangs->trans(\"proceedToCheckout\"); ?> <i class=\"icon-chevron-right right\"></i>\n                  </span>\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class=\"crossseling\"></div>\n        </div>\n        <div class=\"layer_cart_overlay\"></div>\n      </div>\n    </div>\n  </div>\n  <div id=\"lightbox\" style=\"display: none;\"><p><?php print $weblangs->trans(\"clickToClose\"); ?></p><div id=\"content\"><img src=\"/dolibarr18/dolibarr/htdocs/viewimage.php?hashp=07LPiPOOQ674Ff3binNz0kgJG54vtxV2\"></div></div>\n</header>',1,'2024-02-02 16:48:47',NULL,'2024-12-12 16:33:38',NULL,NULL,'other','',NULL,'','',NULL,'','',0,NULL,NULL),
(114,37,'income-payments','','Income and Payments','','','<?php // BEGIN PHP\nsession_start(); // start session\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\ninclude_once DOL_DOCUMENT_ROOT.\'/core/class/html.form.class.php\';\n\nprint \'<script nonce=\"\'.getNonce().\'\" type=\"text/javascript\" src=\"\'.DOL_MAIN_URL_ROOT.\'/core/js/lib_head.js.php\"></script>\'.\"\\n\";\n\n$form = new Form($db);\n\n$date_start_timestamp = \'\';\n$date_end_timestamp = \'\';\nif (!empty(GETPOST(\'datestart\')) || !empty(GETPOST(\'dateend\'))) {\n    \n    $date_start = GETPOST(\'datestart\');\n    $date_end = GETPOST(\'dateend\');\n    \n    $date_start_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'datestartmonth\'), GETPOSTINT(\'datestartday\'), GETPOSTINT(\'datestartyear\'));\n    $date_end_timestamp = dol_mktime(0, 0, 0, GETPOSTINT(\'dateendmonth\'), GETPOSTINT(\'dateendday\'), GETPOSTINT(\'dateendyear\'));\n    \n    $error = 0;\n    $error_messages = array();\n    \n    if ((empty($date_start) && !empty($date_end)) || (!empty($date_start) && empty($date_end))) {\n        $error++;\n        $error_messages[] = \"oneDateEmpty\";\n    }\n    \n    if ($date_end_timestamp < $date_start_timestamp) {\n        $error++;\n        $error_messages[] = \"endDateMustBeGreater\";\n    }\n    \n    $filter = \'\';\n    if ($error == 0 && !empty($date_start) && !empty($date_end)) {\n        $filter = \" AND c.date_commande BETWEEN \'\".$db->idate($date_start_timestamp).\"\' AND \'\".$db->idate($date_end_timestamp).\"\'\";\n    }\n}\n\n\n\n$weblangs->load(\'companies\');\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\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// Get soc info.\n$socInfo = new Societe($db);\n$socInfo->fetch($customer_id);\n\n// Get account info\n$cContacts = $socInfo->contact_array_objects();\nforeach ($cContacts as $cContact) {\n    if ($cContact->ref_ext == $user_id) {\n        $customer_firstname = $cContact->firstname;\n        $customer_lastname = $cContact->lastname;\n        $customer_email = $cContact->email;\n        $customer_address = $cContact->address;\n    }\n}\n\n\n// To render view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\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	    \n        $customer_id = GETPOST(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = \".$website->id.\" limit 1\";\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n	}\n}\n\n// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// Get liste of products\n$products_ids = array();\n/*$sql = \'SELECT fk_product, datec FROM \'.MAIN_DB_PREFIX.\"product_fournisseur_price, \'.MAIN_DB_PREFIX.\'categorie_product AS cp WHERE fk_soc = \".((int) $customer_id). \" AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' GROUP BY fk_product ORDER BY datec DESC\";*/\n$sql = \'SELECT pf.fk_product, MIN(pf.datec) AS first_date\n        FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price as pf, \'.MAIN_DB_PREFIX.\'categorie_product AS cp \n        WHERE pf.fk_soc = \'.$customer_id.\' AND pf.fk_product = cp.fk_product \n        AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' \n        GROUP BY fk_product \n        ORDER BY first_date DESC\';\n\nif ($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\nif (!empty($products_ids_str)) {\n    $all_sells_period = \"SELECT SUM(d.qty) AS sells \";\n    $all_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $all_sells_period .= \"WHERE 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 OR c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    if (!empty($filter)) {\n       $all_sells_period .=  $filter;\n    }\n    $resql = $db->query($all_sells_period);\n    $all_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_sells_period = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells_period .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    if (!empty($filter)) {\n       $sum_all_sells_period .=  $filter;\n    }\n    $resql = $db->query($sum_all_sells_period);\n    $sum_all_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells_period = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells_period .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells_period .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $sum_all_validated_sells_period .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    if (!empty($filter)) {\n       $sum_all_validated_sells_period .=  $filter;\n    }\n    $resql = $db->query($sum_all_validated_sells_period);\n    $sum_all_validated_sells_period = $db->fetch_object($resql);\n    \n    $sum_all_sells = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_sells .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_sells .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and c.fk_statut IN (1,3) and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $resql = $db->query($sum_all_sells);\n    $sum_all_sells = $db->fetch_object($resql);\n    \n    $sum_all_validated_sells = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_validated_sells .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_validated_sells .= \"WHERE c.rowid = d.fk_commande and d.fk_product IN (\" . $products_ids_str . \") and (c.facture = 1 || c.ref_ext IS NOT NULL) and c.module_source = \'Marketplace\' \";\n    $sum_all_validated_sells .= \"AND c.date_commande < DATE_SUB(NOW(), INTERVAL 1 MONTH)\";\n    \n    $resql = $db->query($sum_all_validated_sells);\n    $sells_done_validated = $db->fetch_object($resql);\n    \n    // Calculate all discounts for this customer products\n    $TOTAL_DISCOUNTS = 0;\n    $like_conditions = [];\n    foreach ($products_ids as $product_id) {\n        $like_conditions[] = \"d.description LIKE \'\" . $product_id . \"# %\'\";\n    }\n    // Join all conditions with OR\n    $like_clause = implode(\' OR \', $like_conditions);\n    \n    $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n    $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n    $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n    $sum_all_discounts .= \"AND (\" . $like_clause . \") \";\n    $sum_all_discounts .= \"AND (c.facture = 1 OR c.ref_ext IS NOT NULL) \";\n    $sum_all_discounts .= \"AND c.module_source = \'Marketplace\' \";\n    $resql = $db->query($sum_all_discounts);\n    $sells_discounts = $db->fetch_object($resql);\n    $TOTAL_DISCOUNTS = $sells_discounts->total;\n\n    \n    \n    $sum_payment_done_before_2013 = \"SELECT SUM(f.total_ttc) as payment_done \";\n    $sum_payment_done_before_2013 .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done_before_2013 .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') and f.datef < \'2013-01-01\' \";\n    $resql = $db->query($sum_payment_done_before_2013);\n    $sum_payment_done_before_2013 = $db->fetch_object($resql);\n    \n    $sum_payment_done_after_2013 = \"SELECT SUM(f.total_ht) as payment_done \";\n    $sum_payment_done_after_2013 .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done_after_2013 .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') and f.datef > \'2013-01-01\' \";\n    $resql = $db->query($sum_payment_done_after_2013);\n    $sum_payment_done_after_2013 = $db->fetch_object($resql);\n    \n    \n    /*$sum_payment_done = \"SELECT SUM(f.total_ht) as payment_done \";\n    $sum_payment_done .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n    $sum_payment_done .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') \";\n    $resql = $db->query($sum_payment_done);\n    $sum_payment_done = $db->fetch_object($resql);*/\n    \n    $sum_payment_done = $sum_payment_done_before_2013->payment_done + $sum_payment_done_after_2013->payment_done;\n}\n\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"incomePaymentsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"myAccount\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"incomeAndPayments\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n        <div class=\"row\">\n            <!-- include lefet sidebar container -->\n            <?php includeContainer(\'sidebar\'); ?>\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n                <?php if (empty($products_ids_str)): ?>\n	                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n	                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noProductToDisplay\"); ?> </p>\n                <?php else: ?>\n                    <div class=\"clearfix\">\n                        <h1 class=\"page-heading\"><?php print $weblangs->trans(\"incomeAndPayments\"); ?></h1>\n                        <button class=\"btn btn-default button\" id=\"generate-csv\" onclick=\"generateCSV(<?php print $customer_id; ?>)\"><?php print $weblangs->trans(\"downloadAllSales\"); ?> <i class=\"icon-cloud-download\"></i></button>\n                        \n                        <div id=\"block-history\" class=\"block-center\">\n                            <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                                \n                                <div <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\">Info</h3>\n                                    <div class=\"row\">\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"firstname\"); ?> :</b> <?php print $customer_firstname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"lastname\"); ?> :</b> <?php print $customer_lastname; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Company\"); ?> :</b> <?php print $socInfo->name; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyEmail\"); ?> :</b> <?php print $customer_email; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"ThirdPartyAddress\"); ?> :</b> <?php print $customer_address; ?></p>\n                                        <p class=\"col-xs-6\"><b><?php print $weblangs->trans(\"Country\"); ?> :</b> <?php print $socInfo->country_code; ?></p>\n                                    </div>\n                                </div>\n                                \n                        		<div id=\"order-detail-content\" class=\"table_block table-responsive box\">\n                        		    <?php if (isset($error) && $error != 0): ?>\n                                		<div class=\'alert alert-danger\'>\n                                    		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n                		                    <p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n                                    		<ol>\n                                    		    <?php foreach ($error_messages as $key => $value): ?>\n                                            		<li><?php print $weblangs->trans($value); ?></li>\n                                            	<?php endforeach ?>\n                                    		</ol>\n                                    	</div>\n                                	<?php endif ?>\n                                	\n                                	<h3 class=\"page-subheading\">statistics</h3>\n            \n                        		    <form action=\"\" method=\"post\" id=\"account-creation_form\">\n                                        <div class=\"form-row align-items-center\">\n                                            <div class=\"col-xs-12 form-group row required inline-date-filter\">\n                                                <!--<span class=\"info-title col-form-label\"><b><?php //print $weblangs->trans(\"filterDateBetween\"); ?></b></span>-->\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate(($date_start_timestamp ? $date_start_timestamp : -1), \'datestart\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"from\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/marketplace/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                    <?php print $form->selectDate($date_end_timestamp ? $date_end_timestamp : -1, \'dateend\', 0, 0, 1, \'\', 1, 0, 0, \'\', \'\', \'\', \'\', 1, \'\', $weblangs->trans(\"to\"), \'auto\', DOL_URL_ROOT.\'/document.php?modulepart=medias&file=image/marketplace/img/datepicker/object_calendarday.png\'); ?>\n                                                </span>\n                                                <span class=\"\">\n                                                  <button type=\"submit\" class=\"btn-filter\"><?php print $weblangs->trans(\"submit\"); ?></button>\n                                                </span>\n                                            </div>\n                                        </div>\n                        		    </form>\n                                    <hr>\n                        		    <table class=\"table-no-border\">\n                        		        <?php\n                        		            // Check if there is an amount of coupons \n                        		            $TOTAL_REDUC_OLD_SYSTEM = 0;\n                            		        if (getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id)) {\n                            		            $TOTAL_REDUC_OLD_SYSTEM = getDolGlobalString(\"MARKETPLACE_TOTAL_REDUC_OLD_SYSTEM_\" . $customer_id);\n                            		        }\n                        		        ?>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfProducts\"); ?></td>\n                        		            <td><span><?php print count($products_ids); ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"numberOfPaidSells\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print $all_sells_period->sells; ?></span></td>\n                        		        </tr>\n                        		        <tr>\n                                            <td><?php print $weblangs->trans(\"totalOfSellsDone\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_sells_period->total); ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"***\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_sells_period->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                                        <tr>\n                                            <td><?php print $weblangs->trans(\"totalValidatedSells\"); ?></td>\n                                            <td>\n                                                80% x ( \n                                                <?php print price($sum_all_validated_sells_period->total); ?> \n                                                <?php if ($TOTAL_REDUC_OLD_SYSTEM) { \n                                                    print \" - \" . price($TOTAL_REDUC_OLD_SYSTEM) . \"**\"; \n                                                } ?> \n                                                <?php if ($TOTAL_DISCOUNTS) { \n                                                    print \" \" . price($TOTAL_DISCOUNTS) . \"***\"; \n                                                } ?> \n                                                ) = \n                                                <span class=\"span-blue\">\n                                                    <?php print price(($sum_all_validated_sells_period->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80, 0, \'\', 1, -1, 2); ?>€\n                                                </span> \n                                                <?php print $weblangs->trans(\"exclTax\"); ?>\n                                            </td>\n                                        </tr>\n                        		    </table>\n                                </div>\n                        		    \n            \n            \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"amountToClaim\"); ?></h3>\n                        		    <table class=\"table-no-border\">\n                        		        <tr>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountInOneMonth\"); ?></td>\n                        		            <td><span class=\"span-blue\"><?php print price((($sum_all_sells->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		        </tr>\n                        		        <tr>\n                        		            <?php\n                        		            $checkLastPaymentCount = \"SELECT COUNT(*) AS payment_count \";\n                                            $checkLastPaymentCount .= \"FROM \" . MAIN_DB_PREFIX . \"facture_fourn AS f \";\n                                            $checkLastPaymentCount .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" AND f.fk_statut = 2 AND f.paye = 1 \";\n                                            $checkLastPaymentCount .= \"AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') \";\n                                            $checkLastPaymentCount .= \"AND MONTH(f.datef) = MONTH(CURDATE()) AND YEAR(f.datef) = YEAR(CURDATE())\";\n                                            $resql = $db->query($checkLastPaymentCount);\n                                            $hasRecivedPaymentThisMonth = $db->fetch_object($resql);\n                        		            ?>\n                        		            <td><?php print $weblangs->trans(\"remainedAmountToday\"); ?></td>\n                        		            <?php if ($hasRecivedPaymentThisMonth->payment_count > 0): ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?> <small><?php print $weblangs->trans(\"aPaymentWasDoneThisMonth\"); ?></small></td>\n                        		            <?php else: ?>\n                        		                <td><span class=\"span-blue\"><?php print price((($sells_done_validated->total - $TOTAL_REDUC_OLD_SYSTEM + $TOTAL_DISCOUNTS) * 0.80) - $sum_payment_done, 0, \'\', 1, -1, 2); ?>€</span> <?php print $weblangs->trans(\"exclTax\"); ?></td>\n                        		            <?php endif ?>\n                        		            \n                        		            \n                        		        </tr>\n                        		        <?php if (getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\")): ?>\n                                            <tr>\n                            		            <td><small> * <?php print $weblangs->trans(\"minAmountToClaim\"); ?> : <?php print getDolGlobalInt(\"MARKETPLACE_MINIMUM_PAYOUT_AMOUNT\"); ?> €</small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		        <tr>\n                        		            <td><small> * <?php print $weblangs->trans(\"minAmountToClaimDesc\"); ?></small></td>\n                        		        </tr>\n                        		        <?php if ($TOTAL_REDUC_OLD_SYSTEM != 0): ?>\n                                            <tr>\n                            		            <td><small> ** <?php print $weblangs->trans(\"totalVouchersOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                                        <?php if ($TOTAL_DISCOUNTS != 0): ?>\n                                            <tr>\n                            		            <td><small> *** <?php print $weblangs->trans(\"totalDiscountsOffered\"); ?></small></td>\n                            		        </tr>\n                                        <?php endif ?>\n                        		    </table>\n                        		    \n                                </div>\n                                \n                                <div class=\"info-order box\">\n                                    <h3 class=\"page-subheading\"><?php print $weblangs->trans(\"paymentHistory\"); ?></h3>\n                        		    <table class=\"table table-bordered table-bordered-block-order-detail order-history table-payment-recap\">\n                        		        <thead>\n                        					<tr>\n                        						<th class=\"first_item\" width=\"60\">#</th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"date\"); ?></th>\n                        						<th class=\"item\" width=\"170\"><?php print $weblangs->trans(\"ref\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountHT\"); ?></th>\n                        						<th class=\"item\"><?php print $weblangs->trans(\"AmountTTC\"); ?></th>\n                        					</tr>\n                        				</thead>\n                        				<tbody>\n                        				    <?php\n                                            $payment_history = \"SELECT f.rowid, f.ref, f.fk_statut, f.fk_soc, f.datec, f.datef, f.date_closing, f.total_ht , f.total_ttc \";\n                                            $payment_history .= \"FROM \".MAIN_DB_PREFIX.\"facture_fourn as f \";\n                                            $payment_history .= \"WHERE f.fk_soc = \" . ((int) $customer_id) . \" and f.fk_statut = 2 and f.paye = 1 AND (f.libelle LIKE \'%vente%\' OR f.libelle LIKE \'%dolistore%\') ORDER BY f.datef DESC\";\n                        				    if ($result_payment_history = $db->query($payment_history)) {\n                        				        $i = 1;\n                        				        $total_ht = 0;\n                                                $total_ttc = 0;\n                        				        while ($payment = $result_payment_history->fetch_object()) {\n                        				            if (strcmp($payment->datef ,\'2013-01-01\') < 0) $payment->total_ht=$payment->total_ttc;\n                        				            $total_ht += $payment->total_ht;\n                                                    $total_ttc += $payment->total_ttc;\n                        				    ?>\n                                		        <tr>\n                                		            <td><?php print $i; ?></td>\n                                		            <td><?php print dol_print_date($payment->datef); ?></td>\n                                		            <td><?php print $payment->ref; ?></td>\n                                		            <td><?php print price($payment->total_ht); ?> €</td>\n                                		            <td><?php print price($payment->total_ttc); ?> €</td>\n                                		        </tr>\n                            		        <?php\n                        					    $i++;\n                                            	}\n                                            	?>\n                                            	<tr>\n                                                    <td colspan=\"3\"><strong><?php print $weblangs->trans(\"AmountTotal\"); ?></strong></td>\n                                                    <td><strong><?php print price($total_ht); ?> €</strong></td>\n                                                    <td><strong><?php print price($total_ttc); ?> €</strong></td>\n                                                </tr>\n                                            <?php\n                                            }\n                                            ?>\n                                        </tbody>\n            \n                        		    </table>\n                                </div>\n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		    \n                        		</div>\n                            </div>\n                    </div>\n                <?php endif ?>\n                <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n            </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-11 14:37:39',NULL,'2024-12-27 13:25:03',NULL,NULL,'page','',NULL,'','<script>\nvar generate_csv = \"_service_page_ajax.php\";\nfunction generateCSV(customerId) {\n    $.ajax({\n        url: generate_csv,\n        type: \'GET\',\n        data: {sells_history : 1 , id_customer: customerId},\n        dataType: \'json\',\n        success: function(response) {\n            if (response.filepath) {\n                downloadCSV(response.filepath);\n            }\n        },\n        error: function(xhr, status, error) {\n            console.error(\'Erreur lors de la génération du CSV:\', error);\n        }\n    });\n}\n\nfunction downloadCSV(filepath) {\n    var a = document.createElement(\'a\');\n    a.href = filepath;\n    a.download = filepath.split(\'/\').pop();\n    document.body.appendChild(a);\n    a.click();\n    document.body.removeChild(a);\n\n    $.ajax({\n        url: generate_csv,\n        type: \'POST\',\n        data: { filepath: filepath, action: \'remove_csv\' },\n        success: function(response) {\n            console.log(\'file deleted.\');\n        }\n    });\n}\n</script>',NULL,'','',0,NULL,NULL),
(115,37,'index','','Official market place for Dolibarr modules - DoliStore','Official market place for Dolibarr modules - DoliStore','shop, plugins, modules, addons, erp, crm, market, store, sell, product, dolibarr','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$cat_extid = GETPOST(\'extcat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php includeContainer(\'header\'); ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n      <?php includeContainer(\'breadcrumb\'); ?>\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n\n            <!-- include welcome message -->\n            <?php\n                $__PAGE__TITLE__ = $weblangs->trans(\"indexPageTitle\");\n                $__PAGE__KEYWORDS__ = $weblangs->trans(\"indexPageKeywords\");\n                $__PAGE__DESC__ = $weblangs->trans(\"indexPageDescription\");\n                \n                if (empty($tag) && empty($cat_id) && empty($cat_extid) && empty($search)) {\n                    $current_lang = $_SESSION[\'lang\'][\'shortcode\'];\n                    $welcome_message = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'pageurl\' => \'welcome-message\', \'status\' => \'1\', \'lang\' => $website->lang));\n                    if ($website->lang == $current_lang) {\n                        includeContainer($welcome_message[key($welcome_message)]->pageurl);\n                    } else {\n                        $trans_welcome_message = $websitepage->fetchAll($website->id, \'\', \'\', 0, 1, array(\'fk_page\' => $welcome_message[key($welcome_message)]->id, \'status\' => \'1\', \'lang\' => $current_lang));\n                        includeContainer($trans_welcome_message[key($trans_welcome_message)]->pageurl);\n                    }\n                } else {\n                    // Define SEO meta tags\n                    $root_cat_object = new Categorie($db);\n                    if (!empty($cat_extid)) {\n                        $result = $root_cat_object->fetch(\'\', \'\', Categorie::TYPE_PRODUCT, $cat_extid);\n            	    } \n            	    if (!empty($cat_id)) {\n            	        $result = $root_cat_object->fetch($cat_id,\"\");\n            	    }\n\n        	        $__PAGE__TITLE__ = $root_cat_object->label;\n                    $__PAGE__DESC__ = $root_cat_object->description;\n                    \n                    if (!empty($tag) || !empty($search)) {\n                        $__PAGE__TITLE__ = $weblangs->trans(\"search\");\n                    }\n\n                }\n                ?>\n            <!-- include product container -->\n            <?php includeContainer(\'products-list-grid\'); ?>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-02-02 16:48:47',NULL,'2024-09-20 18:58:29',NULL,NULL,'page','en',NULL,'https://www.dolistore.com/en/','',NULL,'','',0,NULL,NULL),
(116,37,'legal-notice-quienes-somos','','Legal Notice - Quiénes somos','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> Legal notice - About us\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Sobre nosotros – Política de privacidad</h2>\n                    	<p><span>Última actualización: 2024-03-09</span></p>\n                    	<p></p>\n                    	<h3>Presentación</h3>\n                    	<p>La asociación Dolibarr ofrece la plataforma DoliStore para ayudar a vendedores y compradores a encontrarse. La\n                    		fundación sólo ofrece el servicio de visibilidad de los productos vendidos. La fundación no garantiza nada sobre\n                    		la calidad de los productos adquiridos por el cliente.</p>\n                    	<p>La asociación DOLIBARR, a través de DOLISTORE, recauda en nombre de<br>pagos a los autores/editores por los\n                    		bienes vendidos y gestiona el pago de los fondos que se les adeudan. Como tal, la asociación actúa al amparo de\n                    		la exención de la autorización de entidad de pago prevista en el artículo L521-3 I 2° del Código Monetario y\n                    		Financiero.</p>\n                    	<p></p>\n                    	<h3>La asociación Dolibarr</h3>\n                    	<p>La asociación Dolibarr es una asociación francesa (Ley 1901) creada para contribuir a la promoción y desarrollo\n                    		del software ERP y CRM Dolibarr Open Source.</p>\n                    	<p>Información legal sobre la fundación:</p>\n                    	<ul>\n                    		<li>WALDEC: W452006878</li>\n                    		<li>SIRENA: 52033993800018</li>\n                    		<li>NAF: 9499Z</li>\n                    	</ul>\n                    	<p>Más información en la página <a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\"\n                    			target=\"_blank\">https://asso.dolibarr.org/index.php /Dolibarr_foundation </a></p>\n                    	<p></p>\n                    	<h3>Anfitrión de este sitio web</h3>\n                    	<p>Este sitio web está alojado en OVH, 2 rue Kellermann - 59100 Roubaix - Francia</p>\n                    	<p></p>\n                    	<p></p>\n                    	<h2>1. Información que recopilamos</h2>\n                    	<p>Podemos recopilar los siguientes tipos de información cuando utiliza DoliStore:</p>\n                    	<p></p>\n                    	<ul>\n                    		<li><strong>Información proporcionada por el usuario</strong>:<br>DoliStore recopila su nombre, dirección,\n                    			número de IVA, correo electrónico y contraseña de la cuenta. También guardamos la lista de módulos que\n                    			compraste en la plataforma con el precio.<br><br></li>\n                    		<li><strong>Información recopilada automáticamente</strong>:<br>DoliStore utiliza Matomo como herramienta\n                    			estadística. No se recopilan datos privados (incluso su dirección IP se anonimiza.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>2. Cómo utilizamos la información</h2>\n                    	<p>La información recopilada se utiliza con fines de facturación.</p>\n                    	<ul>\n                    		<li>Esta información se almacena en nuestra base de datos.</li>\n                    		<li>Puedes modificar esta información para tu cuenta</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>3. Intercambio de información</h2>\n                    	<ul>\n                    		<li>No se comparten datos con otros terceros. Sólo los miembros del equipo de la junta directiva de la Fundación\n                    			Dolibarr, con acceso al back office, tienen acceso a la información recopilada.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>4. Seguridad de datos</h2>\n                    	<p>Tomamos medidas razonables para proteger la información contra el acceso no autorizado, la modificación, la\n                    		divulgación o la destrucción. Las contraseñas de las cuentas se almacenan mediante un hash irreversible en la\n                    		base de datos.</p>\n                    	<p></p>\n                    	<h2>5. Tus derechos</h2>\n                    	<p>Tiene derecho a acceder, modificar o eliminar su información personal contenida en el sitio web. Consulte la\n                    		sección \"Contáctenos\" para esto.</p>\n                    	<p></p>\n                    	<h2>6. Cambios en nuestra política de privacidad</h2>\n                    	<p>Podemos actualizar esta política de privacidad de vez en cuando. Le notificaremos cualquier cambio publicando la\n                    		nueva política de privacidad en esta página.</p>\n                    	<p></p>\n                    	<h2>7. Contáctanos</h2>\n                    	<p>El propietario de la protección de datos (DPD) en el sentido del RGPD es el <strong>presidente de la fundación\n                    			Dolibarr</strong>. Deberías encontrar su nombre en esta página: <a\n                    			href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>\n                    	</p>\n                    	<p>Si tiene alguna pregunta sobre esta política de privacidad, contáctenos en: <b>dolistore@dolibarr.org</b></p>\n                    	<p></p>\n                    </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:19:33',NULL,'2024-05-06 19:26:28',NULL,NULL,'page','es',97,'','',NULL,'','',0,NULL,NULL),
(117,37,'login','','login','','','<?php\n    if(!empty(GETPOST(\'action\')) && GETPOST(\'action\') == \"login\") {\n        $customer_email = GETPOST(\'email\');\n        $customer_passwd = GETPOST(\'passwd\');\n        $back = GETPOST(\'back\');\n        \n        $login = ws_login($customer_email, $customer_passwd);\n\n		if (!empty($login[\'status\']) && $login[\'status\'] == 1) {\n        	session_start(); // start session\n        	if(isset($_SESSION[\'user\'])){  //if session var already exist\n                unset($_SESSION[\'user\']);\n            }\n    \n            $_SESSION[\'user\'][\'id_user\'] = $login[\'userid\'];\n            $_SESSION[\'user\'][\'pseudo\'] = $login[\'pseudo\'];\n            $_SESSION[\'user\'][\'email\'] = $login[\'login\'];\n            $_SESSION[\'user\'][\'is_preferred_member\'] = $login[\'is_preferred_member\'];\n            if($back == \'payement\'){\n                redirectToContainer(\'payment\');\n            }\n\n            ws_refreshCart($login[\'socid\']);\n            redirectToContainer(\'myaccount\');\n        }else{\n            $error++;\n    		$error_messages[] = $weblangs->trans(\"authError\");\n        }\n    }\n?>\n\n\n\n<?php\n    $back = GETPOST(\'back\');\n?>\n<div class=\"col-xs-12 col-sm-5\">\n	<form action=\"login-register.php\" method=\"post\" id=\"login_form\" class=\"box\">\n			<h3 class=\"page-subheading\"><?php print $weblangs->trans(\"alreadyRegistered\"); ?></h3>\n			<?php if (isset($error) && $error != 0): ?>\n        		<div class=\'alert alert-danger\'>\n            		<?php $add_s = ($error > 1) ? \"s\" : \"\"; ?>\n            		<p><?php print $weblangs->trans(\"errorsOccurred\", $error, $add_s); ?></p>\n            		<ol>\n            		    <?php foreach ($error_messages as $key => $value): ?>\n                    		<li><?php print $value; ?></li>\n                    	<?php endforeach ?>\n            		</ol>\n            	</div>\n        	<?php endif ?>\n			<div class=\"form_content clearfix\">\n				<div class=\"form-group\">\n					<label for=\"email\"><?php print $weblangs->trans(\"email\"); ?></label>\n					<input class=\"is_required validate account_input form-control\" data-validate=\"isEmail\" type=\"text\" id=\"email\" name=\"email\" value=\"<?php if (isset($customer_email)){print $customer_email;} ?>\">\n				</div>\n				<div class=\"form-group\">\n					<label for=\"passwd\"><?php print $weblangs->trans(\"password\"); ?></label>\n					<span><input class=\"is_required validate account_input form-control\" type=\"password\" data-validate=\"isPasswd\" id=\"passwd\" name=\"passwd\" value=\"<?php if (isset($customer_passwd)){print $customer_passwd;} ?>\"></span>\n				</div>\n				<input type=\"hidden\" name=\"action\" value=\"login\">\n				<input type=\"hidden\" name=\"back\" value=\"<?php print $back; ?>\">\n				<p class=\"lost_password form-group\"><a href=\"forgot-password.php\" title=\"<?php print $weblangs->trans(\"recoverPass\"); ?>\" rel=\"nofollow\"><?php print $weblangs->trans(\"forgotPassword\"); ?></a></p>\n				<p class=\"submit\">\n					<button type=\"submit\" id=\"SubmitLogin\" name=\"SubmitLogin\" class=\"button btn btn-default button-medium\">\n						<span>\n							<?php print $weblangs->trans(\"signIn\"); ?>\n							<i class=\"icon-chevron-right right\"></i>\n						</span>\n					</button>\n				</p>\n			</div>\n		</form>\n</div>\n',1,'2024-03-13 15:47:35',NULL,'2024-12-23 17:21:44',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(118,37,'login-register','','Login/Register','','','<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"loginRegisterPageTitle\");\n        $__PAGE__KEYWORDS__ = $weblangs->trans(\"loginRegisterPageKeywords\");\n        $__PAGE__DESC__ = $weblangs->trans(\"loginRegisterPageDescription\");\n    ?>\n    \n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"authentication\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n          <div class=\"clearfix\">\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"authentication\"); ?></h1>\n                <div class=\"row\">\n                    <?php includeContainer(\'login\'); ?>\n                    <?php includeContainer(\'register\'); ?>\n                </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-03-13 10:07:51',NULL,'2024-12-23 18:21:10',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(119,37,'manage-products','','manage-products','','','<?php // BEGIN PHP\nsession_start(); // start session\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\ninclude_once DOL_DOCUMENT_ROOT.\'/societe/class/societeaccount.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\"/commande/class/commande.class.php\";\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$current_lang = $_SESSION[\'lang\'][\'code\'];\n$weblangs->load(\"products\");\n\n\n// If not login redirect to login.\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n\n\n// Get Account ID.\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// Get customer ID.\n$customer = new Societe($db);\n$result = $customer->fetch($customer_id);\n\n// To render view of another user\nif (!empty(GETPOST(\'id_customer\'))) {\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	    \n        $customer_id = GETPOST(\'id_customer\');\n        // Get soc info.\n        $socInfo = new Societe($db);\n        $socInfo->fetch($customer_id);\n        \n        // Get soc acount email\n        $sql = \"select rowid from \".MAIN_DB_PREFIX.\"societe_account where fk_soc = \".$customer_id.\" AND fk_website = \".$website->id.\" limit 1\";\n        $result = $db->query($sql);\n        $objsql = $db->fetch_object($result);\n        \n        // Get account info\n        $cContacts = $socInfo->contact_array_objects();\n        foreach ($cContacts as $cContact) {\n            if ($cContact->ref_ext == $objsql->rowid) {\n                $customer_firstname = $cContact->firstname;\n                $customer_lastname = $cContact->lastname;\n                $customer_email = $cContact->email;\n                $customer_address = $cContact->address;\n            }\n        }\n	}\n}\n\n// Get liste of products\n$products_ids = array();\n\n$sql = \'SELECT pf.fk_product, MIN(pf.datec) AS first_date \';\n$sql .= \'FROM \'.MAIN_DB_PREFIX.\'product_fournisseur_price AS pf, \'.MAIN_DB_PREFIX.\'categorie_product AS cp \';\n$sql .= \'WHERE pf.fk_soc = \'.((int) $customer_id).\' \';\n$sql .= \'AND cp.fk_product = pf.fk_product \';\n$sql .= \'AND cp.fk_categorie = \'.getDolGlobalInt(\"MARKETPLACE_ROOT_CATEGORY_ID\").\' \';\n$sql .= \'GROUP BY pf.fk_product \';\n$sql .= \'ORDER BY first_date ASC\';\n\nif ($result_products = $db->query($sql)) {\n	while ($product_id = $result_products->fetch_object()) {\n        $products_ids[] = $product_id->fk_product;\n	}\n}\n\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php \n        includeContainer(\'header\'); \n        $__PAGE__TITLE__ = $weblangs->trans(\"manageProductsPageTitle\");\n    ?>\n  </div>\n\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <a href=\"myaccount.php\" title=\"<?php print $weblangs->trans(\"myAccount\"); ?>\" data-gg=\"\"><?php print $weblangs->trans(\"manageProducts\"); ?></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"ListOfProductsServices\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n            <?php if (empty($products_ids)): ?>\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"ListOfProductsServices\"); ?></h1>\n                <p class=\"alert alert-warning\"><?php print $weblangs->trans(\"noProductToDisplay\"); ?> </p>\n            <?php else: ?>\n                <div class=\"clearfix\">\n                    <h1 class=\"page-heading\"><?php print $weblangs->trans(\"ListOfProductsServices\"); ?></h1>\n                    <div id=\"block-history\" class=\"block-center\">\n                        <div id=\"block-order-detail\" class=\"unvisible\" style=\"display: block;\">\n                    		<div id=\"order-detail-content\" class=\"table_block table-responsive\">\n                    			<table class=\"table table-bordered table-bordered-block-order-detail order-history\">\n                    				<thead>\n                    					<tr>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"coverImage\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"product\"); ?></th>\n                    						<th class=\"item\"><?php print $weblangs->trans(\"Nb\"); ?></th>\n                    						<th class=\"item\" width=\"80\"><?php print $weblangs->trans(\"amountEarned\"); ?></th>\n                    						<th class=\"last_item\"></th>\n                    					</tr>\n                    				</thead>\n                    				<tbody>\n                    					<!-- Customized products -->\n                    					<!-- Classic products -->\n                    					<?php foreach ($products_ids as $products_id): ?>\n                    					    <?php\n                    					        $weblangs->load(\"products\");\n                                                // Get order object\n                                                $product = new Product($db);\n                                                $result = $product->fetch($products_id);\n                                                \n                                                // Get nbr of sales\n                                                $sql = \"SELECT sum(d.qty) as qty, sum(d.total_ht) as total_ht\";\n                                        		$sql .= \" FROM \".$db->prefix().\"commandedet as d, \".$db->prefix().\"commande as c, \".$db->prefix().\"societe as s\";\n                                        		$sql .= \" WHERE c.rowid = d.fk_commande\";\n                                        		$sql .= \" AND d.fk_product = \".((int) $product->id);\n                                        		$sql .= \" AND c.fk_soc = s.rowid\";\n                                        		$sql .= \" AND (c.facture = 1 OR c.note_private LIKE \'%Order imported%\')\";\n\n                                        		$resql = $db->query($sql);\n    		                                    $stats = $db->fetch_object($resql);\n    		                                    \n    		                                    // Calculate all discounts for this product\n                                                $TOTAL_DISCOUNTS = 0;\n                                                $sum_all_discounts = \"SELECT SUM(d.total_ht) as total \";\n                                                $sum_all_discounts .= \"FROM \".MAIN_DB_PREFIX.\"commande as c, \".MAIN_DB_PREFIX.\"commandedet as d \";\n                                                $sum_all_discounts .= \"WHERE c.rowid = d.fk_commande \";\n                                                $sum_all_discounts .= \"AND d.description LIKE \'\" . ((int) $product->id) . \"# %\' \";\n                                                $sum_all_discounts .= \"AND (c.facture = 1 OR c.note_private LIKE \'%Order imported%\' OR c.ref_ext IS NOT NULL) \";\n                                                $sum_all_discounts .= \"AND c.module_source = \'Marketplace\' \";\n                                                $resql = $db->query($sum_all_discounts);\n                                                $sells_discounts = $db->fetch_object($resql);\n                                                $TOTAL_DISCOUNTS = $sells_discounts->total;\n    		                                    \n    		                                    // Get package\n    		                                    $files_and_images = getPublicFilesOfObject($product);\n            			                        foreach ($files_and_images as $key => $file) {\n                                                    if ($file[\'position\'] == 100) {\n                                                        $virtual_product_file = $file;\n                                                    }\n                                                }\n                                            ?>\n                        					<tr class=\"item\">\n                        					    <td>\n                        					        <img class=\"img-responsive\" src=\"<?php print getImagePublicURLOfObject($product,0); ?>\" alt=\"<?php print $product->label; ?>\" title=\"<?php print $product->label; ?>\" width=\"160\" itemprop=\"image\" style=\"margin: auto;\" />\n                        					    </td>\n                        					    <td>\n                        						    <p>\n                        						        <b><?php print $product->label; ?> <?php print $product->array_options[\'options_marketplace_module_version\']; ?> </b> \n                        						        \n                        						        <small> (<?php print $product->array_options[\'options_marketplace_min_version\']; ?> - <?php print $product->array_options[\'options_marketplace_max_version\']; ?>)</small>\n                        						    </p>\n                        						    <p>\n                        						        <small class=\"cart_ref\">\n                        						            <?php print $product->description; ?><br><br>\n                        						            <?php print $weblangs->trans(\"CurrentProductPrice\"); ?>: <?php print price($product->price); ?> € <?php print $weblangs->trans(\"exclTax\"); ?>, <?php print price($product->price_ttc); ?> € <?php print $weblangs->trans(\"inclTax\"); ?> <br>\n                                                            <?php print $weblangs->trans(\"ref\"); ?>: <?php print $product->ref; ?><br>\n                                                            <?php print $weblangs->trans(\"status\"); ?>: <?php print ($product->status > 0) ? \'<span style = \"color: #28a745;\"> enabled </span>\' : \'<span style = \"color: #dc3545;\"> disabled </span>\'; ?><br>\n                                                            <?php if (!empty($virtual_product_file[\'url\'])) { ?>\n                                                                <?php print $weblangs->trans(\"file\"); ?>: <a href=\"<?php print $virtual_product_file[\'url\']; ?>\" target=\"_new\" ><?php print $virtual_product_file[\'filename\']; ?> <i class=\"icon-cloud-download\"></i></a><br>\n                                                            <?php } ?>\n                                                            <?php print $weblangs->trans(\"date\"); ?>: <?php print dol_print_date($product->date_creation, \'day\'); ?><br>\n                        						        </small>\n                        						    </p>\n                        						</td>\n                        						<td>\n                        						    <p><?php print $stats->qty; ?></p>\n    											</td>\n                        						<td width=\"160\">\n                        							<p><span class=\"price\"><?php print price($stats->total_ht + $TOTAL_DISCOUNTS); ?> €</span></p>\n                        						</td>\n                        						<td class=\"btn-table\">\n                        						    <a href=\"edit-module-product.php?id=<?php print $product->id; ?>\" class=\"btn btn-default button button-small\"><span title=\"<?php print $weblangs->trans(\"edit\"); ?>\"> <i class=\"icon-edit product-table-icons\"></i></span></a>\n                        						    <a href=\"product-statistics.php?id=<?php print $product->id; ?>\" class=\"btn btn-default button button-small\"><span title=\"<?php print $weblangs->trans(\"listOfSells\"); ?>\"> <i class=\"icon-shopping-cart product-table-icons\"></i></span></a>\n                        						</td>\n                        					</tr>\n                    					<?php endforeach ?>\n                    				</tbody>\n                    			</table>\n                    		</div>\n                        </div>\n                    </div>\n                    <ul class=\"footer_links clearfix\">\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"myaccount.php\">\n                    			<span>\n                    				<i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"backToYourAccount\"); ?>\n                    			</span>\n                    		</a>\n                    	</li>\n                    	<li>\n                    		<a class=\"btn btn-default button button-small\" href=\"index.php\">\n                    			<span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"home\"); ?></span>\n                    		</a>\n                    	</li>\n                    </ul>\n                </div>\n            <?php endif ?>\n          \n        </div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-07-03 08:34:43',NULL,'2024-12-27 16:21:13',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(120,37,'mensaje-de-bienvenida','','mensaje de bienvenida','mensaje de bienvenida','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"https://www.dolistore.com/modules/editorial/img/homepage_logo_1.jpg\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\">\n        <h3></h3>\n        <h3>Bienvenido</h3>\n        <p>Este sitio es el mercado oficial para encontrar módulos y complementos para el proyecto <a\n                href=\"https://www.dolibarr.org\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n            <li><span style=\"color: #bf6c00;\"><strong>Si usted es un usuario Dolibarr</strong>:</span></li>\n        </ul>\n        <p>Puede buscar funcionalidades complementarias y encontrar módulos o características adicionales. Navegue por las\n            categorías para encontrar su extensión o utilice el buscador en la parte superior La página ... La mayoría de\n            los complementos/módulos son gratuitos, algunos son de pago (Los miembros de la asociación Dolibarr se pueden\n            beneficiar de un descuento del 20% si la solicitud a la asociación se realiza una vez creada la cuenta en\n            DoliStore y antes de la compra)</p>\n        <ul>\n            <li><span style=\"color: #bf6c00;\"><strong>Si usted es desarrollador</strong>:</span></li>\n        </ul>\n        <p>Puede enviar sus módulos con el precio de venta de su elección (o gratuitos). Para ello, basta con crear una\n            cuenta y enviar el módulo.</p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 12:01:33',NULL,'2024-09-16 17:48:25',NULL,NULL,'banner','es',148,'','',NULL,'','',0,NULL,NULL),
(121,37,'mentions-legales-a-propos','','Mentions légales - Politique de confidentialité','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>À propos de nous – Politique de confidentialité</h2>\n                    	<p><span>Dernière mise à jour&nbsp;:&nbsp;2024-03-09</span></p>\n                    	<p></p>\n                    	<h3>Présentation</h3>\n                    	<p>L\'association Dolibarr propose la plateforme DoliStore pour aider vendeur et acheteur à se rencontrer. Seul le\n                    		service de visibilité des produits vendus est proposé par la fondation. La fondation ne garantit rien sur la\n                    		qualité des produits achetés par le client.</p>\n                    	<p></p>\n                    	<p><em>L’association DOLIBARR, via le DOLISTORE, collecte pour le compte des&nbsp;auteurs / éditeurs les paiements\n                    			des biens vendus et gère le reversement des&nbsp;fonds leur revenant. A ce titre, l’association agit sous le\n                    			couvert de l’exemption&nbsp;d’agrément d’établissement de paiement prévu à l’article L521-3 I 2° du\n                    			code&nbsp;monétaire et financier.</em></p>\n                    	<p></p>\n                    	<h3>L\'association Dolibarr</h3>\n                    	<p>L\'association Dolibarr est une association française (Loi 1901) créée pour contribuer à la promotion et au\n                    		développement du logiciel ERP et CRM Open Source Dolibarr.</p>\n                    	<p>Informations légales sur la fondation&nbsp;:</p>\n                    	<ul>\n                    		<li>WALDEC&nbsp;: W452006878</li>\n                    		<li>SIRÈNE&nbsp;: 52033993800018</li>\n                    		<li>NAF&nbsp;: 9499Z</li>\n                    	</ul>\n                    	<p>Plus d\'informations sur la page&nbsp;<a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\"\n                    			target=\"_blank\">https://asso.dolibarr.org/index.php/Dolibarr_foundation</a></p>\n                    	<p></p>\n                    	<h3>Hébergeur de ce site web</h3>\n                    	<p>Ce site web est hébergé par OVH, 2 rue Kellermann - 59100 Roubaix - France</p>\n                    	<p></p>\n                    	<p></p>\n                    	<h2>1. Informations que nous collectons</h2>\n                    	<p>Nous pouvons collecter les types d\'informations suivants lorsque vous utilisez DoliStore&nbsp;:</p>\n                    	<p></p>\n                    	<ul>\n                    		<li><strong>Informations fournies par l\'utilisateur</strong>&nbsp;:<br>DoliStore&nbsp;collecte votre nom,\n                    			adresse, email, numéro de TVA, identifiant professionnel (SIRET) et mot de passe du compte. Nous\n                    			enregistrons également la liste des modules que vous avez achetés sur la plateforme avec le prix.<br><br>\n                    		</li>\n                    		<li><strong>Informations collectées automatiquement</strong>&nbsp;:<br>DoliStore utilise Matomo pour son outil\n                    			statistique. Aucune donnée privée n\'est collectée (même votre adresse IP est anonymisée.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>2. Comment nous utilisons les informations</h2>\n                    	<p>Les informations collectées sont utilisées à des fins de facturation.</p>\n                    	<ul>\n                    		<li>Ces informations sont stockées dans notre base de données.</li>\n                    		<li>Vous pouvez modifier ces informations&nbsp;depuis&nbsp;votre compte</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>3. Partage d\'informations</h2>\n                    	<ul>\n                    		<li>Aucune donnée n\'est partagée avec d\'autres tiers. Seuls les membres de l\'équipe du conseil d\'administration\n                    			de la fondation Dolibarr, ayant accès au back-office, ont accès aux informations collectées.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>4. Sécurité des données</h2>\n                    	<p>Nous prenons des mesures raisonnables pour protéger les informations contre tout accès, modification, divulgation\n                    		ou destruction non autorisés. Les mots de passe des comptes sont stockés à l\'aide d\'un hachage irréversible dans\n                    		la base de données.</p>\n                    	<p></p>\n                    	<h2>5. Vos droits</h2>\n                    	<p>Vous avez le droit d\'accéder, de modifier ou de supprimer vos informations personnelles détenues par le site Web.\n                    		Voir la section « Nous contacter » pour cela.</p>\n                    	<p></p>\n                    	<h2>6. Modifications de notre politique de confidentialité</h2>\n                    	<p>Nous pouvons mettre à jour cette politique de confidentialité de temps à autre. Nous vous informerons de tout\n                    		changement en publiant la nouvelle politique de confidentialité sur cette page.</p>\n                    	<p></p>\n                    	<h2>7. Contactez-nous</h2>\n                    	<p>Le Propriétaire de la Protection des Données (DPD) au sens de la loi RGPD est le <strong>Président de\n                    			l\'association Dolibarr</strong>. Vous devriez trouver son nom sur cette page&nbsp;:&nbsp;<a\n                    			href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>\n                    	</p>\n                    	<p>Si vous avez des questions concernant cette politique de confidentialité, veuillez nous contacter\n                    		à&nbsp;:&nbsp;&nbsp;<b>dolistore@dolibarr.org</b></p>\n                    	<p></p>\n                    </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:12:53',NULL,'2024-05-06 20:58:27',NULL,NULL,'page','fr',97,'','',NULL,'','',0,NULL,NULL),
(122,37,'message-de-bienvenue','','message de bienvenue','message de bienvenue','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"https://www.dolistore.com/modules/editorial/img/homepage_logo_1.jpg\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\">\n        <h3></h3>\n        <h3>Bienvenue</h3>\n        <p>Ce site est la place de marché officielle pour trouver des modules et extensions au projet <a\n                href=\"http://www.dolibarr.fr\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n            <li><span style=\"color: #bf6c00;\"><strong>Si vous êtes utilisateur de Dolibarr</strong></span> :</li>\n        </ul>\n        <p>Vous pouvez rechercher des fonctionnalités supplémentaires et trouver des modules ou extensions diverses.\n            Naviguer dans les categories pour trouver votre extension ou utiliser le formulaire de recherche en haut de la\n            page...</p>\n        <p>La plupart des extensions/modules sont gratuits, certains sont payants (Les adhérents à l\'<a\n                title=\"Dolibarr foundation\" href=\"https://asso.dolibarr.org\" target=\"_blank\">association Dolibarr</a>\n            peuvent bénéficer de 20% de réduction si la demande est faite à l\'association une fois le compte DoliStore créé\n            et avant l\'achat)</p>\n        <ul>\n            <li><strong><span style=\"color: #bf6c00;\">Si vous êtes développeur :</span></strong></li>\n        </ul>\n        <p>Vous pouvez soumettre vos modules à la vente au prix de votre choix (ou gratuit). Pour cela, il vous suffit de\n            créer un compte, et soumettre votre module.</p>\n        <p></p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 10:58:10',NULL,'2024-09-16 17:48:40',NULL,NULL,'banner','fr',148,'','',NULL,'','',0,NULL,NULL),
(123,37,'messaggio-di-benvenuto','','messaggio di benvenuto','messaggio di benvenuto','','<section id=\"welcome_section\" contenteditable=\"true\">\n  <div id=\"editorial_block_center\" class=\"editorial_block\">\n    <a href=\"https://www.dolibarr.org\" title=\"\">\n      <img class=\"img-responsive\"\n        src=\"https://www.dolistore.com/modules/editorial/img/homepage_logo_1.jpg\"\n        alt=\"\" width=\"578\" height=\"160\" />\n    </a>\n    <div class=\"rte\"><h3></h3>\n        <h3>Benvenuto</h3>\n        <p>Questo è il marketplace ufficiale dove trovare moduli e plugin per&nbsp;<a href=\"https://www.dolibarr.org\" target=\"_blank\">Dolibarr ERP/CRM</a>.</p>\n        <ul>\n        <li>Se sei un utente Dolibarr:</li>\n        </ul>\n        <p>Puoi cercare funzionalità aggiuntive e trovare vari moduli o estensioni. Sfoglia&nbsp;le categorie o usa il modulo di ricerca in alto&nbsp;per trovare il plugin&nbsp;adatto alle tue necessità...</p>\n        <p>Molti modulsono gratuiti, altri sono a pagamento (I soci della <a href=\"https://asso.dolibarr.org\">Dolibarr Foundation</a>&nbsp;hanno diritto ad uno sconto del 20% facendo richiesta all\'associazione dopo aver creato il proprio account DoliStore. Per ricevere lo sconto del 20% bisogna attendere l\'approvazione della richiesta prima di effettuare gli acquisti)</p>\n        <ul>\n        <li><strong>Se sei uno sviluppatore:</strong></li>\n        </ul>\n        <p>Puoi pubblicare i tuoi moduli stabilendo&nbsp;tu il prezzo (se è gratis ancora meglio). Ti basta creare un account e inviare il tuo modulo usando il menu a sinistra.</p>\n        <p></p>\n    </div>\n  </div>\n</section>',1,'2024-05-12 11:59:51',NULL,'2024-09-16 17:48:53',NULL,NULL,'banner','it',148,'','',NULL,'','',0,NULL,NULL),
(124,37,'myaccount','','myaccount','','','<?php\nrequire_once DOL_DOCUMENT_ROOT . \'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT . \'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n$action = GETPOST(\'action\', \'alpha\');\nsession_start(); // start session\nif(!empty($action) && $action == \"logout\"){\n    unset($_SESSION[\'user\']);\n    redirectToContainer(\'index\');\n}\nif(empty($_SESSION[\'user\'][\'id_user\'])){\n    redirectToContainer(\'login-register\');\n}\n// END PHP \n?>\n<div id=\"page\">\n  <div class=\"header-container\">\n    <?php\n        includeContainer(\'header\');\n        $__PAGE__TITLE__ = $weblangs->trans(\"myAccountPageTitle\");\n    ?>\n  </div>\n  <div class=\"columns-container\">\n    <div id=\"columns\" class=\"container\">\n        <!--  Breadcrumb  -->\n        <div class=\"breadcrumb clearfix\">\n        	<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n        	<span class=\"navigation-pipe\">&gt;</span> <?php print $weblangs->trans(\"myAccount\"); ?>\n        </div>\n        <!--  Breadcrumb  -->\n      <div id=\"slider_row\" class=\"row\">\n        <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n      </div>\n      <div class=\"row\">\n        <!-- include lefet sidebar container -->\n        <?php includeContainer(\'sidebar\'); ?>\n        <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n            <div id=\"my-account\">\n                <h1 class=\"page-heading\"><?php print $weblangs->trans(\"myAccount\"); ?></h1>\n                <p class=\"info-account\"><?php print $weblangs->trans(\"welcomeToYourAccount\"); ?></p>\n                <div class=\"row addresses-lists\">\n                	<div class=\"col-xs-12 col-sm-6 col-lg-6\">\n                		<ul class=\"myaccount-link-list\">\n                		    <li><a href=\"account-information.php\" title=\"<?php print $weblangs->trans(\"personalInfo\"); ?>\"><i class=\"icon-user\"></i><span><?php print $weblangs->trans(\"personalInfo\"); ?></span></a></li>\n                            <li><a href=\"order-history.php\" title=\"<?php print $weblangs->trans(\"orderHistoryDetails\"); ?>\"><i class=\"icon-list-ol\"></i><span><?php print $weblangs->trans(\"orderHistoryDetails\"); ?></span></a></li>\n                        </ul>\n                	</div>\n                	<div class=\"col-xs-12 col-sm-6 col-lg-6\">\n                        <ul class=\"myaccount-link-list\">\n                		    <li><a href=\"edit-module-product.php\" title=\"<?php print $weblangs->trans(\"newModuleProduct\"); ?>\"><i class=\"icon-add\"></i><span><?php print $weblangs->trans(\"newModuleProduct\"); ?></span></a></li>\n                		    <li><a href=\"manage-products.php\" title=\"<?php print $weblangs->trans(\"manageProducts\"); ?>\"><i class=\"icon-manage\"></i><span><?php print $weblangs->trans(\"manageProducts\"); ?></span></a></li>\n                            <li><a href=\"income-payments.php\" title=\"<?php print $weblangs->trans(\"incomeAndPayments\"); ?>\"><i class=\"icon-euro\"></i><span><?php print $weblangs->trans(\"incomeAndPayments\"); ?></span></a></li>\n                        </ul>\n                    </div>\n                </div>\n                <ul class=\"footer_links clearfix\">\n                    <li><a class=\"btn btn-default button button-small\" href=\"https://www.dolistore.com/\" title=\"<?php print $weblangs->trans(\"home\"); ?>\"><span><i class=\"icon-chevron-left\"></i> <?php print $weblangs->trans(\"home\"); ?></span></a></li>\n                </ul>\n            </div>\n		</div>\n      </div>\n    </div>\n  </div>\n  <!-- .columns-container -->\n  <div class=\"footer-container\">\n    <?php includeContainer(\'footer\'); ?>\n  </div>\n</div>',1,'2024-03-18 12:14:17',NULL,'2024-09-20 19:50:06',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(125,37,'myproducts','','myproducts','','','',1,'2024-06-30 13:45:26',NULL,'2024-06-30 13:45:26',NULL,NULL,'page','',NULL,'','',NULL,'','',0,NULL,NULL),
(126,37,'nota-legale-chi-siamo','','Nota legale - Chi siamo','','','<script src=\"/document.php?modulepart=medias&file=js/tools.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/all.js\"></script>\n<script src=\"/document.php?modulepart=medias&file=js/treeManagement.js\"></script>\n<?php // BEGIN PHP\nrequire_once DOL_DOCUMENT_ROOT.\'/categories/class/categorie.class.php\';\nrequire_once DOL_DOCUMENT_ROOT.\'/core/lib/categories.lib.php\';\n\n$tag = GETPOST(\'tag\', \'alpha\');\n$cat_id = GETPOST(\'cat\', \'alpha\');\n$search = GETPOST(\'search_query\', \'alpha\');\n// END PHP ?> <html lang=\"en\">\n  \n  <!-- File generated by Dolibarr website module editor -->\n  <body id=\"cms\" class=\"bodywebsite cms cms-2 cms-legal-notice-about-us hide-right-column lang_en\">\n    <div id=\"page\">\n      <div class=\"header-container\">\n        <?php includeContainer(\'header\'); ?>\n      </div>\n      <div class=\"columns-container\">\n        <div id=\"columns\" class=\"container\">\n		\n		<!--  Breadcrumb  -->\n		<div class=\"breadcrumb clearfix\">\n			<a class=\"home\" href=\"index.php\" title=\"Return to Home\"><i class=\"icon-home\"></i></a>\n			<span class=\"navigation-pipe\">&gt;</span> <?php print $websitepage->title; ?>\n		</div>\n        <!--  Breadcrumb  -->\n        \n\n\n\n\n          <div id=\"slider_row\" class=\"row\">\n            <div id=\"top_column\" class=\"center_column col-xs-12 col-sm-12\"></div>\n          </div>\n          <div class=\"row\">\n            <!-- include lefet sidebar container -->           \n            <?php includeContainer(\'sidebar\'); ?>\n\n            <div id=\"center_column\" class=\"center_column col-xs-12 col-sm-9\">\n              <div class=\"clearfix\">\n                <section id=\"Legal_notice_section\" contenteditable=\"true\">\n				    <div class=\"rte\">\n                    	<h2>Chi siamo – Informativa sulla privacy</h2>\n                    	<p><span>Ultimo aggiornamento: 09-03-2024</span></p>\n                    	<p></p>\n                    	<h3>Presentazione</h3>\n                    	<p>L\'associazione Dolibarr offre la piattaforma DoliStore per aiutare venditori e acquirenti a incontrarsi. La\n                    		fondazione offre esclusivamente il servizio di visibilità dei prodotti venduti. La fondazione non garantisce\n                    		nulla sulla qualità dei prodotti acquistati dal cliente.</p>\n                    	<p>L\'associazione DOLIBARR, tramite DOLISTORE, raccoglie per conto di<br>pagamenti agli autori/editori per i beni\n                    		venduti e gestisce il pagamento dei fondi loro dovuti. In quanto tale, l\'associazione agisce in regime di\n                    		esenzione dall\'approvazione degli istituti di pagamento prevista dall\'articolo L521-3 I 2° del Codice monetario\n                    		e finanziario.</p>\n                    	<h3>L\'associazione Dolibarr</h3>\n                    	<p>L\'associazione Dolibarr è un\'associazione francese (legge 1901) creata per contribuire alla promozione e allo\n                    		sviluppo del software ERP e CRM Open Source Dolibarr.</p>\n                    	<p>Informazioni legali sulla fondazione:</p>\n                    	<ul>\n                    		<li>WALDEC: W452006878</li>\n                    		<li>SIRENA: 52033993800018</li>\n                    		<li>NAF: 9499Z</li>\n                    	</ul>\n                    	<p>Maggiori informazioni alla pagina <a href=\"https://asso.dolibarr.org/index.php/Dolibarr_foundation\"\n                    			target=\"_blank\">https://asso.dolibarr.org/index.php /Dolibarr_foundation </a></p>\n                    	<p></p>\n                    	<h3>Host di questo sito web</h3>\n                    	<p>Questo sito web è ospitato da OVH, 2 rue Kellermann - 59100 Roubaix - Francia</p>\n                    	<p></p>\n                    	<p></p>\n                    	<h2>1. Informazioni che raccogliamo</h2>\n                    	<p>Potremmo raccogliere i seguenti tipi di informazioni quando utilizzi DoliStore:</p>\n                    	<p></p>\n                    	<ul>\n                    		<li><strong>Informazioni fornite dall\'utente</strong>:<br>DoliStore raccoglie il tuo nome, indirizzo, partita\n                    			IVA, email e password dell\'account. Salviamo anche l\'elenco dei moduli che hai acquistato sulla piattaforma\n                    			con il prezzo.<br><br></li>\n                    		<li><strong>Informazioni raccolte automaticamente</strong>:<br>DoliStore utilizza Matomo per il suo strumento\n                    			statistico. Non vengono raccolti dati privati ​​(anche il tuo indirizzo IP è reso anonimo.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>2. Come utilizziamo le informazioni</h2>\n                    	<p>Le informazioni raccolte vengono utilizzate per scopi di fatturazione.</p>\n                    	<ul>\n                    		<li>Queste informazioni sono archiviate nel nostro database.</li>\n                    		<li>Puoi modificare queste informazioni per il tuo account</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>3. Condivisione delle informazioni</h2>\n                    	<ul>\n                    		<li>Nessun dato viene condiviso con altre terze parti. Solo i membri del team del consiglio di amministrazione\n                    			della Fondazione Dolibarr, con accesso al back office, hanno accesso alle informazioni raccolte.</li>\n                    	</ul>\n                    	<p></p>\n                    	<h2>4. Sicurezza dei dati</h2>\n                    	<p>Adottiamo misure ragionevoli per proteggere le informazioni da accesso, modifica, divulgazione o distruzione non\n                    		autorizzati. Le password degli account vengono archiviate utilizzando un hash irreversibile nel database.</p>\n                    	<p></p>\n                    	<h2>5. I tuoi diritti</h2>\n                    	<p>Hai il diritto di accedere, modificare o eliminare le tue informazioni personali conservate dal sito web.\n                    		Consulta la sezione \"Contattaci\" per questo.</p>\n                    	<p></p>\n                    	<h2>6. Modifiche alla nostra politica sulla privacy</h2>\n                    	<p>Potremmo aggiornare la presente informativa sulla privacy di tanto in tanto. Ti informeremo di eventuali\n                    		modifiche pubblicando la nuova politica sulla privacy in questa pagina.</p>\n                    	<p></p>\n                    	<h2>7. Contattaci</h2>\n                    	<p>Il titolare della protezione dei dati (DPD) ai sensi della legge GDPR è il <strong>Presidente della fondazione\n                    			Dolibarr</strong>. Dovresti trovare il suo nome su questa pagina: <a\n                    			href=\"https://wiki.dolibarr.org/index.php/Office_and_Board_Members\">https://wiki.dolibarr.org/index.php/Office_and_Board_Members</a>\n                    	</p>\n                    	<p>Se avete domande riguardanti la presente informativa sulla privacy, contattateci all\'indirizzo:\n                    		<b>dolistore@dolibarr.org</b></p>\n                    	<p></p>\n                    </div>\n				</section>\n\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <!-- .columns-container -->\n      <div class=\"footer-container\">\n        <?php includeContainer(\'footer\'); ?>\n      </div>\n    </div>\n  </body>\n</html>',1,'2024-05-06 19:20:07',NULL,'2024-05-06 20:59:08',NULL,NULL,'page','it',97,'','',NULL,'','',0,NULL,NULL),
