Merge from branch 1.3 to remove config
This commit is contained in:
commit
99d1117f80
@ -1,58 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
|
||||
resources.session.gc_maxlifetime = 86400
|
||||
resources.session.cookie_lifetime = 86400
|
||||
resources.session.remember_me_seconds = 86400
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
|
||||
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
|
||||
resources.frontController.plugins.Comptage = "Application_Controller_Plugin_Comptage"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views/default"
|
||||
resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
autoloaderNamespaces[] = "Scores_"
|
||||
autoloaderNamespaces[] = "Form_"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = development
|
||||
profil.webservice.location = sdsrvdev01
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.free.fr
|
||||
profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
profil.path.data = "d:\www\dataciblage"
|
||||
profil.db.ciblage.adapter=mysqli
|
||||
profil.db.ciblage.params.host=127.0.0.1
|
||||
profil.db.ciblage.params.username=root
|
||||
profil.db.ciblage.params.password=bj10sx
|
||||
profil.db.ciblage.params.dbname=ciblage
|
||||
profil.db.ciblage.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.db.jo.adapter=mysqli
|
||||
profil.db.jo.params.host=192.168.78.230
|
||||
profil.db.jo.params.username=ciblage
|
||||
profil.db.jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
profil.db.jo.params.dbname=jo
|
||||
profil.db.jo.params.persistent = true
|
||||
profil.db.jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.sphinx.host=192.168.78.252
|
||||
profil.sphinx.port=3312
|
||||
|
||||
[staging : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
@ -1,57 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
|
||||
resources.session.gc_maxlifetime = 86400
|
||||
resources.session.cookie_lifetime = 86400
|
||||
resources.session.remember_me_seconds = 86400
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
|
||||
resources.frontController.plugins.Comptage = "Application_Controller_Plugin_Comptage"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views/default"
|
||||
resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
autoloaderNamespaces[] = "Scores_"
|
||||
autoloaderNamespaces[] = "Form_"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = Odea
|
||||
profil.webservice.location = celeste
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.celeste.fr
|
||||
profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
profil.path.data = "/home/vhosts/data"
|
||||
profil.db.ciblage.adapter=mysqli
|
||||
profil.db.ciblage.params.host=127.0.0.1
|
||||
profil.db.ciblage.params.username=ciblage
|
||||
profil.db.ciblage.params.password=z7jq8AhvrwqQJ4Yb
|
||||
profil.db.ciblage.params.dbname=ciblage
|
||||
profil.db.ciblage.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.db.jo.adapter=mysqli
|
||||
profil.db.jo.params.host=192.168.3.30
|
||||
profil.db.jo.params.username=ciblage
|
||||
profil.db.jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
profil.db.jo.params.dbname=jo
|
||||
profil.db.jo.params.persistent = true
|
||||
profil.db.jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.sphinx.host=127.0.0.1
|
||||
profil.sphinx.port=3312
|
||||
|
||||
[staging : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
@ -1,37 +0,0 @@
|
||||
[server]
|
||||
name = Odea
|
||||
|
||||
[webservice]
|
||||
location = celeste
|
||||
|
||||
[databases]
|
||||
db.adapter=mysqli
|
||||
db.params.host=127.0.0.1
|
||||
db.params.username=ciblage
|
||||
db.params.password=z7jq8AhvrwqQJ4Yb
|
||||
db.params.dbname=ciblage
|
||||
db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
jo.adapter=mysqli
|
||||
jo.params.host=192.168.3.30
|
||||
jo.params.username=ciblage
|
||||
jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
jo.params.dbname=jo
|
||||
jo.params.persistent = true
|
||||
jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[sphinx]
|
||||
host = 127.0.0.1
|
||||
port = 3312
|
||||
|
||||
[mail]
|
||||
method = smtp
|
||||
smpt_port =
|
||||
smtp_host = smtp.celeste.fr
|
||||
support = supportdev@scores-decisions.com
|
||||
supportdev = supportdev@scores-decisions.com
|
||||
contact = supportdev@scores-decisions.com
|
||||
production = supportdev@scores-decisions.com
|
||||
|
||||
[path]
|
||||
data = "/home/vhosts/data"
|
@ -1,8 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `ciblage_comptages` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idDefinition` int(11) NOT NULL,
|
||||
`resultat` int(11) NOT NULL,
|
||||
`uniteInsee` int(11) NOT NULL,
|
||||
`dateAjout` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Résultat des comptages';
|
@ -1,12 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `ciblage_criteres` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` int(11) NOT NULL,
|
||||
`login` varchar(20) NOT NULL,
|
||||
`reference` varchar(50) NOT NULL,
|
||||
`criteres` longtext NOT NULL,
|
||||
`parent` int(11) NOT NULL,
|
||||
`dateAjout` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `reference` (`reference`),
|
||||
KEY `login` (`login`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Sauvegarde des critères pour les comptages' ;
|
@ -1,18 +0,0 @@
|
||||
CREATE TABLE `customer_params` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` int(11) NOT NULL,
|
||||
`service` varchar(100) NOT NULL,
|
||||
`filterRNCS` tinyint(1) NOT NULL COMMENT 'Filtrer sur le perimetre RNCS ',
|
||||
`licenceINSEE` tinyint(1) NOT NULL COMMENT 'Le client possède une licence INSEE',
|
||||
`immediatExtract` int(11) NOT NULL DEFAULT '0' COMMENT 'Nombre de ligne maximum pour une extraction immédiate',
|
||||
`dateContrat` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date de debut du contrat',
|
||||
`periodContrat` int(2) NOT NULL COMMENT 'Durée du contrat en mois',
|
||||
`periodPaiement` int(2) NOT NULL COMMENT 'Durée en mois pour l''emission de la facture (1,3,6,12)',
|
||||
`priceLine` float NOT NULL DEFAULT '0',
|
||||
`forfait` int(11) NOT NULL DEFAULT '0' COMMENT 'Montant du forfait pour décompte',
|
||||
`limitLines` int(11) NOT NULL DEFAULT '0' COMMENT 'Limiter à un nombre de ligne sur la période du contrat',
|
||||
`limitFiles` int(11) NOT NULL DEFAULT '0' COMMENT 'Limiter à un nombre de fichier sur la durée du contrat',
|
||||
`criteres` text NOT NULL,
|
||||
`dateAdded` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Paramètres de facturation';
|
@ -1,5 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `customer_prefs` (
|
||||
`login` varchar(255) NOT NULL,
|
||||
`json` text NOT NULL,
|
||||
PRIMARY KEY (`login`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
@ -1,16 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `enrichissement_fichiers` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idProfil` int(11) NOT NULL,
|
||||
`reference` varchar(50) NOT NULL,
|
||||
`identifiants` longtext NOT NULL,
|
||||
`nbLigneTotales` int(11) NOT NULL,
|
||||
`nbLigneTraites` int(11) NOT NULL,
|
||||
`uniteInsee` int(11) NOT NULL DEFAULT '0',
|
||||
`error` varchar(100) NOT NULL,
|
||||
`dateAdded` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`dateStart` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`dateStop` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`fichierIn` varchar(100) NOT NULL,
|
||||
`fichierOut` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
@ -1,17 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS `enrichissement_identifiants` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idComptage` int(11) NOT NULL,
|
||||
`idCriteres` int(11) NOT NULL DEFAULT '0',
|
||||
`idProfil` int(11) NOT NULL,
|
||||
`reference` varchar(50) NOT NULL,
|
||||
`identifiants` longtext NOT NULL,
|
||||
`nbLigneTotales` int(11) NOT NULL,
|
||||
`nbLigneTraites` int(11) NOT NULL,
|
||||
`uniteInsee` int(11) NOT NULL DEFAULT '0',
|
||||
`error` varchar(100) NOT NULL,
|
||||
`dateAdded` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`dateStart` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`dateStop` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`fichier` varchar(100) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
@ -1,14 +0,0 @@
|
||||
CREATE TABLE `enrichissement_profils` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`idClient` int(11) NOT NULL,
|
||||
`service` varchar(25) NOT NULL,
|
||||
`login` varchar(50) NOT NULL,
|
||||
`reference` varchar(50) NOT NULL,
|
||||
`criteres` text NOT NULL,
|
||||
`dataInsee` tinyint(4) NOT NULL,
|
||||
`dateAjout` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`dateSuppr` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`actif` tinyint(4) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idClient` (`idClient`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Profil d''extraction';
|
File diff suppressed because it is too large
Load Diff
@ -1,126 +0,0 @@
|
||||
--
|
||||
-- Structure de la table `departements`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `fields_departements` (
|
||||
`numdep` char(3) NOT NULL DEFAULT '0',
|
||||
`libdep` varchar(30) NOT NULL DEFAULT '',
|
||||
`numreg` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`codeRegionInsee` tinyint(2) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`numdep`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Contenu de la table `departements`
|
||||
--
|
||||
|
||||
INSERT INTO `fields_departements` (`numdep`, `libdep`, `numreg`, `codeRegionInsee`) VALUES
|
||||
('03', 'Allier', 3, 83),
|
||||
('04', 'Alpes-de-Haute-Provence', 21, 93),
|
||||
('02', 'Aisne', 19, 26),
|
||||
('01', 'Ain', 22, 82),
|
||||
('05', 'Hautes-Alpes', 21, 93),
|
||||
('06', 'Alpes-Maritimes', 21, 93),
|
||||
('07', 'Ardèche', 22, 82),
|
||||
('08', 'Ardennes', 7, 21),
|
||||
('09', 'Ariège', 15, 73),
|
||||
('10', 'Aube', 7, 21),
|
||||
('11', 'Aude', 11, 91),
|
||||
('12', 'Aveyron', 15, 73),
|
||||
('13', 'Bouches-du-Rhône', 21, 93),
|
||||
('14', 'Calvados', 18, 25),
|
||||
('15', 'Cantal', 3, 83),
|
||||
('16', 'Charente', 20, 54),
|
||||
('17', 'Charente-Maritime', 20, 54),
|
||||
('18', 'Cher', 6, 24),
|
||||
('19', 'Corrèze', 12, 74),
|
||||
('2A', 'Corse-du-Sud', 8, 94),
|
||||
('20', 'Corse', 8, 94),
|
||||
('21', 'Côte-d''Or', 4, 26),
|
||||
('22', 'Côtes-d''Armor', 5, 53),
|
||||
('23', 'Creuse', 12, 74),
|
||||
('24', 'Dordogne', 2, 72),
|
||||
('25', 'Doubs', 9, 43),
|
||||
('26', 'Drôme', 22, 82),
|
||||
('27', 'Eure', 17, 23),
|
||||
('28', 'Eure-et-Loir', 6, 24),
|
||||
('29', 'Finistère', 5, 53),
|
||||
('30', 'Gard', 11, 91),
|
||||
('33', 'Gironde', 2, 72),
|
||||
('32', 'Gers', 15, 73),
|
||||
('34', 'Hérault', 11, 91),
|
||||
('31', 'Haute-Garonne', 15, 73),
|
||||
('36', 'Indre', 6, 24),
|
||||
('37', 'Indre-et-Loire', 6, 24),
|
||||
('35', 'Ille-et-Vilaine', 5, 53),
|
||||
('39', 'Jura', 9, 43),
|
||||
('38', 'Isère', 22, 82),
|
||||
('40', 'Landes', 2, 72),
|
||||
('41', 'Loir-et-Cher', 6, 24),
|
||||
('42', 'Loire', 22, 82),
|
||||
('43', 'Haute-Loire', 3, 83),
|
||||
('44', 'Loire-Atlantique', 13, 52),
|
||||
('45', 'Loiret', 6, 24),
|
||||
('46', 'Lot', 15, 73),
|
||||
('47', 'Lot-et-Garonne', 2, 72),
|
||||
('48', 'Lozère', 11, 91),
|
||||
('49', 'Maine-et-Loire', 13, 52),
|
||||
('53', 'Mayenne', 13, 52),
|
||||
('51', 'Marne', 7, 21),
|
||||
('50', 'Manche', 18, 25),
|
||||
('52', 'Haute-Marne', 7, 21),
|
||||
('54', 'Meurthe-et-Moselle', 14, 41),
|
||||
('56', 'Morbihan', 5, 53),
|
||||
('55', 'Meuse', 14, 41),
|
||||
('57', 'Moselle', 14, 41),
|
||||
('58', 'Nièvre', 4, 26),
|
||||
('59', 'Nord', 16, 31),
|
||||
('60', 'Oise', 19, 26),
|
||||
('62', 'Pas-de-Calais', 16, 31),
|
||||
('61', 'Orne', 18, 25),
|
||||
('63', 'Puy-de-Dôme', 3, 83),
|
||||
('67', 'Bas-Rhin', 1, 42),
|
||||
('68', 'Haut-Rhin', 1, 42),
|
||||
('69', 'Rhône', 22, 82),
|
||||
('64', 'Pyrénées-Atlantiques', 2, 72),
|
||||
('65', 'Hautes-Pyrénées', 15, 73),
|
||||
('66', 'Pyrénées-Orientales', 11, 91),
|
||||
('70', 'Haute-Saône', 9, 43),
|
||||
('71', 'Saône-et-Loire', 4, 26),
|
||||
('72', 'Sarthe', 13, 52),
|
||||
('73', 'Savoie', 22, 82),
|
||||
('74', 'Haute-Savoie', 22, 82),
|
||||
('75', 'Paris', 10, 11),
|
||||
('76', 'Seine-Maritime', 17, 23),
|
||||
('77', 'Seine-et-Marne', 10, 11),
|
||||
('78', 'Yvelines', 10, 11),
|
||||
('79', 'Deux-Sèvres', 20, 54),
|
||||
('80', 'Somme', 19, 26),
|
||||
('81', 'Tarn', 15, 73),
|
||||
('82', 'Tarn-et-Garonne', 15, 73),
|
||||
('83', 'Var', 21, 93),
|
||||
('84', 'Vaucluse', 21, 93),
|
||||
('85', 'Vendée', 13, 52),
|
||||
('86', 'Vienne', 20, 54),
|
||||
('87', 'Haute-Vienne', 12, 74),
|
||||
('88', 'Vosges', 14, 41),
|
||||
('89', 'Yonne', 4, 26),
|
||||
('90', 'Territoire de Belfort', 9, 43),
|
||||
('91', 'Essonne', 10, 11),
|
||||
('92', 'Hauts-de-Seine', 10, 11),
|
||||
('93', 'Seine-Saint-Denis', 10, 11),
|
||||
('94', 'Val-de-Marne', 10, 11),
|
||||
('95', 'Val-d''Oise', 10, 11),
|
||||
('971', 'Guadeloupe', 23, 1),
|
||||
('972', 'Martinique', 23, 2),
|
||||
('973', 'Guyane', 23, 3),
|
||||
('974', 'Réunion', 24, 4),
|
||||
('200', 'Corse-du-Sud', 8, 94),
|
||||
('201', 'Corse-du-Sud', 8, 94),
|
||||
('202', 'Haute-Corse', 8, 94),
|
||||
('976', 'Mayotte', 0, 0),
|
||||
('988', 'Nouvelle-Calédonie', 0, 0),
|
||||
('987', 'Polynésie-Française', 0, 0),
|
||||
('975', 'Saint-Pierre-et-Miquelon', 0, 0),
|
||||
('986', 'Wallis-et-Futuna', 0, 0),
|
||||
('2B', 'Haute-Corse', 8, 94);
|
@ -1,338 +0,0 @@
|
||||
--
|
||||
-- Structure de la table `fields_formejuridique`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `fields_formejuridique` (
|
||||
`fjCode` int(4) NOT NULL,
|
||||
`fjLibelle` varchar(100) NOT NULL,
|
||||
`fjInsee` tinyint(1) NOT NULL,
|
||||
KEY `fjCode` (`fjCode`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Contenu de la table `formejuridique`
|
||||
--
|
||||
|
||||
INSERT INTO `fields_formejuridique` (`fjCode`, `fjLibelle`, `fjInsee`) VALUES
|
||||
(0, 'Indéterminée', 0),
|
||||
(1, 'Personne physique', 1),
|
||||
(2, 'Groupement de droit privé non doté de la personnalité morale', 1),
|
||||
(3, 'Personne morale de droit étranger', 1),
|
||||
(4, 'Personne morale de droit public soumise au droit commercial', 1),
|
||||
(5, 'Société commerciale', 1),
|
||||
(6, 'Autre personne morale immatriculée au RCS', 1),
|
||||
(7, 'Personne morale et organisme soumis au droit administratif', 1),
|
||||
(8, 'Organisme privé spécialisé', 1),
|
||||
(9, 'Groupement de droit privé', 1),
|
||||
(11, 'Artisan Commerçant', 1),
|
||||
(12, 'Commerçant', 1),
|
||||
(13, 'Artisan', 1),
|
||||
(14, 'Officier public ou ministériel', 1),
|
||||
(15, 'Profession libérale', 1),
|
||||
(16, 'Exploitant agricole', 1),
|
||||
(17, 'Agent commercial', 1),
|
||||
(18, 'Associé Gérant de société', 1),
|
||||
(19, '(Autre) personne physique', 1),
|
||||
(21, 'Indivision', 1),
|
||||
(22, 'Société créée de fait', 1),
|
||||
(23, 'Société en participation', 1),
|
||||
(27, 'Paroisse hors zone concordataire', 1),
|
||||
(29, 'Autre groupement de droit privé non doté de la personnalité morale', 1),
|
||||
(31, 'Personne morale de droit étranger, immatriculée au RCS (registre du commerce et des sociétés)', 1),
|
||||
(32, 'Personne morale de droit étranger, non immatriculée au RCS', 1),
|
||||
(41, 'Établissement public ou régie à caractère industriel ou commercial', 1),
|
||||
(51, 'Société coopérative commerciale particulière', 1),
|
||||
(52, 'Société en nom collectif', 1),
|
||||
(53, 'Société en commandite', 1),
|
||||
(54, 'Société à responsabilité limité', 1),
|
||||
(55, 'Société anonyme à conseil d''administration', 1),
|
||||
(56, 'Société anonyme à directoire', 1),
|
||||
(57, 'Société par actions simplifiée', 1),
|
||||
(61, 'Caisse d''épargne et de prévoyance', 1),
|
||||
(62, 'Groupement d''intérêt économique', 1),
|
||||
(63, 'Société coopérative agricole', 1),
|
||||
(64, 'Société d''assurance mutuelle', 1),
|
||||
(65, 'Société civile', 1),
|
||||
(69, 'Autre personne morale de droit privé inscrite au registre du commerce et des sociétés', 1),
|
||||
(71, 'Administration de l''état', 1),
|
||||
(72, 'Collectivité territoriale', 1),
|
||||
(73, 'Établissement public administratif', 1),
|
||||
(74, 'Autre personne morale de droit public administratif', 1),
|
||||
(81, 'Organisme gérant un régime de protection sociale à adhésion obligatoire', 1),
|
||||
(82, 'Organisme mutualiste', 1),
|
||||
(83, 'Comité d''entreprise', 1),
|
||||
(84, 'Organisme professionnel', 1),
|
||||
(91, 'Syndicat de propriétaires', 1),
|
||||
(92, 'Association loi 1901 ou assimilé', 1),
|
||||
(93, 'Fondation', 1),
|
||||
(99, 'Autre personne morale de droit privé', 1),
|
||||
(1000, 'Entrepreneur Individuel à Responsabilité Limité', 0),
|
||||
(1100, 'Artisan Commerçant', 1),
|
||||
(1200, 'Commerçant', 1),
|
||||
(1300, 'Artisan', 1),
|
||||
(1400, 'Officier public ou ministériel', 1),
|
||||
(1500, 'Profession libérale', 1),
|
||||
(1600, 'Exploitant agricole', 1),
|
||||
(1700, 'Agent commercial', 1),
|
||||
(1800, 'Associé Gérant de société', 1),
|
||||
(1900, '(Autre) personne physique', 1),
|
||||
(2100, 'Indivision', 0),
|
||||
(2110, 'Indivision entre personnes physiques', 1),
|
||||
(2120, 'Indivision avec personne morale', 1),
|
||||
(2200, 'Société créée de fait', 0),
|
||||
(2210, 'Société créée de fait entre personnes physiques', 1),
|
||||
(2220, 'Société créée de fait avec personne morale', 1),
|
||||
(2300, 'Société en participation', 0),
|
||||
(2310, 'Société en participation entre personnes physiques', 1),
|
||||
(2320, 'Société en participation avec personne morale', 1),
|
||||
(2385, 'Société en participation de professions libérales', 1),
|
||||
(2400, 'Fiducie', 1),
|
||||
(2700, 'Paroisse hors zone concordataire', 1),
|
||||
(2900, 'Autre groupement de droit privé non doté de la personnalité morale', 1),
|
||||
(3110, 'Représentation ou agence commerciale d''état ou organisme public étranger immatriculé au RCS', 1),
|
||||
(3120, 'Société étrangère immatriculée au RCS', 1),
|
||||
(3205, 'Organisation internationale', 1),
|
||||
(3210, 'État collectivité ou établissement public étranger', 1),
|
||||
(3220, 'Société étrangère non immatriculée au RCS', 1),
|
||||
(3290, '(Autre) personne morale de droit étranger', 1),
|
||||
(4110, 'Établissement public national à caractère industriel ou commercial doté d''un comptable public', 1),
|
||||
(4120, 'Établissement public national à caractère industriel ou commercial non doté d''un comptable public', 1),
|
||||
(4130, 'Exploitant public', 1),
|
||||
(4140, 'Établissement public local à caractère industriel ou commercial', 1),
|
||||
(4150, 'Régie d''une collectivité locale à caractère industriel ou commercial', 1),
|
||||
(4160, 'Institution Banque de France', 1),
|
||||
(5191, 'Société de caution mutuelle', 1),
|
||||
(5192, 'Société coopérative de banque populaire', 1),
|
||||
(5193, 'Caisse de crédit maritime mutuel', 1),
|
||||
(5194, 'Caisse (fédérale) de crédit mutuel', 1),
|
||||
(5195, 'Association coopérative inscrite ( droit local Alsace Moselle )', 1),
|
||||
(5196, 'Caisse d''épargne et de prévoyance à forme coopérative', 1),
|
||||
(5202, 'Société en nom collectif', 1),
|
||||
(5203, 'Société en nom collectif coopérative', 1),
|
||||
(5306, 'Société en commandite simple', 1),
|
||||
(5307, 'Société en commandite simple coopérative', 1),
|
||||
(5308, 'Société en commandite par actions', 1),
|
||||
(5309, 'Société en commandite par actions coopérative', 1),
|
||||
(5385, 'Société d''exercice libéral en commandite par action', 1),
|
||||
(5410, 'SARL nationale', 1),
|
||||
(5415, 'SARL d''économie mixte', 1),
|
||||
(5422, 'SARL immobilière pour le commerce et l''industrie (SICOMI)', 1),
|
||||
(5426, 'Société immobilière de gestion', 1),
|
||||
(5430, 'Safer en SARL', 1),
|
||||
(5431, 'SARL mixte d''intérêt agricole', 1),
|
||||
(5432, 'SARL d''intérêt collectif agricole', 1),
|
||||
(5442, 'SARL d''attribution', 1),
|
||||
(5443, 'SARL coopérative de construction', 1),
|
||||
(5451, 'SARL coopérative de consommation', 1),
|
||||
(5453, 'SARL coopérative artisanale', 1),
|
||||
(5454, 'SARL coopérative d''intérêt maritime', 1),
|
||||
(5455, 'SARL coopérative de transports', 1),
|
||||
(5458, 'SARL coopérative ouvrière de production et de crédit', 1),
|
||||
(5459, 'SARL union de sociétés coopératives', 1),
|
||||
(5460, 'Autre SARL coopérative', 1),
|
||||
(5485, 'Société d''exercice libéral à responsabilité limitée', 1),
|
||||
(5488, 'Entreprise Unipersonnelle à Responsabilité Limitée', 1),
|
||||
(5498, 'SARL unipersonnelle', 1),
|
||||
(5499, 'Autre société à responsabilité limitée', 1),
|
||||
(5505, 'SA à participation ouvrière à conseil d''administration', 1),
|
||||
(5510, 'SA nationale à conseil d''administration', 1),
|
||||
(5515, 'SA d''économie mixte à conseil d''administration', 1),
|
||||
(5520, 'Société d''investissement à capital variable (SICAV) à conseil d''administration', 1),
|
||||
(5522, 'Société anonyme immobilière pour le commerce et l''industrie (SICOMI) à conseil d''administration', 1),
|
||||
(5525, 'Société anonyme immobilière d''investissement à conseil d''administration', 1),
|
||||
(5530, 'Safer anonyme à conseil d''administration', 1),
|
||||
(5531, 'Société anonyme mixte d''intérêt agricole (SMIA) à conseil d''administration', 1),
|
||||
(5532, 'Société anonyme mixte d''intérêt collectif agricole (SICA) à conseil d''administration', 1),
|
||||
(5542, 'Société anonyme d''attribution à conseil d''administration', 1),
|
||||
(5543, 'Société anonyme coopérative de construction à conseil d''administration', 1),
|
||||
(5546, 'SA de HLM à conseil d''administration', 1),
|
||||
(5547, 'SA coopérative de production de HLM à conseil d''administration', 1),
|
||||
(5548, 'SA de crédit immobilier à conseil d''administration', 1),
|
||||
(5551, 'SA coopérative de consommation à conseil d''administration', 1),
|
||||
(5552, 'SA coopérative de commerçants détaillants à conseil d''administration', 1),
|
||||
(5553, 'SA coopérative artisanale à conseil d''administration', 1),
|
||||
(5554, 'SA coopérative (d''intérêt) maritime à conseil d''administration', 1),
|
||||
(5555, 'SA coopérative de transports à conseil d''administration', 1),
|
||||
(5558, 'SA coopérative ouvrière de production et de crédit (SCOP) à conseil d''administration', 1),
|
||||
(5559, 'SA union de sociétés coopératives à conseil d''administration', 1),
|
||||
(5560, 'Autre SA coopérative à conseil d''administration', 1),
|
||||
(5585, 'Société d''exercice libéral à forme anonyme à conseil d''administration', 1),
|
||||
(5599, 'Autre SA à conseil d''administration', 1),
|
||||
(5605, 'SA à participation ouvrière à directoire', 1),
|
||||
(5610, 'SA nationale à directoire', 1),
|
||||
(5615, 'SA d''économie mixte à directoire', 1),
|
||||
(5620, 'Société d''investissement à capital variable (SICAV) à directoire', 1),
|
||||
(5622, 'Société immobilière pour le commerce et l''industrie (SICOMI) anonyme à directoire', 1),
|
||||
(5625, 'Société immobilière d''investissement anonyme à directoire', 1),
|
||||
(5630, 'Safer anonyme à directoire', 1),
|
||||
(5631, 'Société anonyme mixte d''intérêt agricole', 1),
|
||||
(5632, 'Société anonyme d''intérêt collectif agricole', 1),
|
||||
(5642, 'Société anonyme d''attribution à directoire', 1),
|
||||
(5643, 'Société anonyme coopérative de construction à directoire', 1),
|
||||
(5646, 'Société anonyme de HLM à directoire', 1),
|
||||
(5647, 'Société coopérative de production de HLM anonyme à directoire', 1),
|
||||
(5648, 'SA de crédit immobilier à directoire', 1),
|
||||
(5651, 'SA coopérative de consommation à directoire', 1),
|
||||
(5652, 'SA coopérative de commerçants détaillants à directoire', 1),
|
||||
(5653, 'SA coopérative artisanale à directoire', 1),
|
||||
(5654, 'SA coopérative (d''intérêt) maritime à directoire', 1),
|
||||
(5655, 'SA coopérative de transport à directoire', 1),
|
||||
(5658, 'SA coopérative ouvrière de production et de crédit (SCOP) à directoire', 1),
|
||||
(5659, 'SA union de sociétés coopératives à directoire', 1),
|
||||
(5660, '(Autre) SA coopérative à directoire', 1),
|
||||
(5685, 'Société d''exercice libéral à forme anonyme à directoire', 1),
|
||||
(5699, 'Autre SA à directoire', 1),
|
||||
(5710, 'Société par actions simplifiée', 1),
|
||||
(5720, 'Société par actions simplifiée à associé unique ou société par actions simplifiée unipersonnelle', 1),
|
||||
(5785, 'Société d’exercice libéral par action simplifiée', 1),
|
||||
(5800, 'Société européenne', 1),
|
||||
(6100, 'Caisse d’épargne et de prévoyance', 1),
|
||||
(6200, 'Groupement d''intérêt économique', 0),
|
||||
(6210, 'Groupement européen d’intérêt économique', 1),
|
||||
(6220, 'Groupement d’intérêt économique', 1),
|
||||
(6316, 'Coopérative d’utilisation de matériel agricole en commun', 1),
|
||||
(6317, 'Société coopérative agricole', 1),
|
||||
(6318, 'Union de sociétés coopératives agricoles', 1),
|
||||
(6411, 'Société d’assurance mutuelle', 1),
|
||||
(6412, 'Société mutuelle d''assurance', 1),
|
||||
(6413, 'Union de sociétés mutuelles d''assurances', 1),
|
||||
(6414, 'Autre société non commerciale d''assurance', 1),
|
||||
(6521, 'Société civile de placement collectif immobilier', 1),
|
||||
(6532, 'Société civile d’intérêt collectif agricole', 1),
|
||||
(6533, 'Groupement agricole d’exploitation en commun', 1),
|
||||
(6534, 'Groupement foncier agricole', 1),
|
||||
(6535, 'Groupement agricole foncier', 1),
|
||||
(6536, 'Groupement forestier', 1),
|
||||
(6537, 'Groupement pastoral', 1),
|
||||
(6538, 'Groupement foncier rural', 1),
|
||||
(6539, 'Société civile foncière', 1),
|
||||
(6540, 'Société civile immobilière', 1),
|
||||
(6541, 'Société civile immobilière de construction vente', 1),
|
||||
(6542, 'Société civile d’attribution', 1),
|
||||
(6543, 'Société civile coopérative de construction', 1),
|
||||
(6544, 'Société immobilière d''accession progressive à la propriété', 1),
|
||||
(6551, 'Société civile coopérative de consommation', 1),
|
||||
(6554, 'Société civile coopérative (d’intérêt) maritime', 1),
|
||||
(6558, 'Société civile coopérative entre médecins', 1),
|
||||
(6560, 'Autre société civile coopérative', 1),
|
||||
(6561, 'SCP d’avocats', 1),
|
||||
(6562, 'SCP d’avocats aux conseil', 1),
|
||||
(6563, 'SCP d’avoués d’appel', 1),
|
||||
(6564, 'SCP d’huissiers', 1),
|
||||
(6565, 'SCP de notaires', 1),
|
||||
(6566, 'SCP de commissaires-priseurs', 1),
|
||||
(6567, 'SCP de greffiers de tribunal de commerce', 1),
|
||||
(6568, 'SCP de conseils juridiques', 1),
|
||||
(6569, 'SCP de commissaires aux comptes', 1),
|
||||
(6571, 'SCP de médecins', 1),
|
||||
(6572, 'SCP de dentistes', 1),
|
||||
(6573, 'SCP d’infirmiers', 1),
|
||||
(6574, 'SCP de masseurs kinésithérapeutes', 1),
|
||||
(6575, 'SCP de directeurs de laboratoire d’analyse médicale', 1),
|
||||
(6576, 'SCP de vétérinaires', 1),
|
||||
(6577, 'SCP de géomètres-experts', 1),
|
||||
(6578, 'SCP d’architectes', 1),
|
||||
(6585, '(Autres) Société Civile professionnelle', 1),
|
||||
(6588, 'Société civile laitière', 0),
|
||||
(6589, 'Société civile de moyens', 1),
|
||||
(6595, 'Caisse (locale) de crédit mutuel', 1),
|
||||
(6596, 'Caisse de crédit agricole mutuel', 1),
|
||||
(6597, 'Société civile d’exploitation agricole', 1),
|
||||
(6598, 'Exploitation agricole à responsabilité limitée', 1),
|
||||
(6599, 'Autre société civile', 1),
|
||||
(6901, 'Autres personnes de droit privé inscrites au registre du commerce et des sociétés', 1),
|
||||
(7111, 'Autorité constitutionnelle', 1),
|
||||
(7112, 'Autorité administrative indépendante', 1),
|
||||
(7113, 'Ministère', 1),
|
||||
(7120, 'Service central d’un ministère', 1),
|
||||
(7130, 'Service du ministère des Postes et Télécommunications', 1),
|
||||
(7150, 'Service du ministère de la Défense', 1),
|
||||
(7160, 'Service déconcentré à compétence nation. D’un ministère (hors Défense)', 1),
|
||||
(7171, 'Service déconcentré de l’État à compétence (inter) régionale', 1),
|
||||
(7172, 'Service déconcentré de l’État à compétence (inter) départementale', 1),
|
||||
(7179, '(Autre) Service déconcentré de l’État à compétence territoriale', 1),
|
||||
(7190, 'Ecole nationale non dotée de la personnalité morale', 1),
|
||||
(7210, 'Commune', 1),
|
||||
(7220, 'Département', 1),
|
||||
(7225, 'Territoire d’Outre-mer', 1),
|
||||
(7229, '(Autre) Collectivité territoriale', 1),
|
||||
(7230, 'Région', 1),
|
||||
(7312, 'Commune associée', 1),
|
||||
(7313, 'Section de commune', 1),
|
||||
(7314, 'Ensemble urbain', 1),
|
||||
(7321, 'Association syndicale autorisée', 1),
|
||||
(7322, 'Association foncière urbaine', 1),
|
||||
(7323, 'Association foncière de remembrement', 1),
|
||||
(7331, 'Établissement public local d’enseignement', 1),
|
||||
(7341, 'Secteur de commune', 1),
|
||||
(7342, 'District urbain', 1),
|
||||
(7343, 'Communauté urbaine', 1),
|
||||
(7345, 'Syndicat intercommunal à vocation multiple', 1),
|
||||
(7346, 'Communauté de communes', 1),
|
||||
(7347, 'Communauté de villes', 1),
|
||||
(7348, 'Communauté d''agglomération', 1),
|
||||
(7349, 'Autre établissement public local de coopération non spécialisé ou entente', 1),
|
||||
(7351, 'Institution interdépartemental ou entente', 1),
|
||||
(7352, 'Institution interrégionale ou entente', 1),
|
||||
(7353, 'Syndicat intercommunal à vocation unique', 1),
|
||||
(7354, 'Syndicat mixte communal', 1),
|
||||
(7355, 'Autre syndicat mixte', 1),
|
||||
(7356, 'Commission syndicale pour la gestion des biens indivis des communes', 1),
|
||||
(7361, 'Centre communal d''action sociale', 1),
|
||||
(7362, 'Caisse des écoles', 1),
|
||||
(7363, 'Caisse de crédit municipal', 1),
|
||||
(7364, 'Établissement d''hospitalisation', 1),
|
||||
(7365, 'Syndicat inter hospitalier', 1),
|
||||
(7366, 'Établissement public local social et médico-social', 1),
|
||||
(7371, 'Office public d''habitation à loyer modéré', 1),
|
||||
(7372, 'Service départemental d''incendie', 1),
|
||||
(7373, 'Établissement public local culturel', 1),
|
||||
(7378, 'Régie d''une collectivité locale à caractère administratif', 1),
|
||||
(7379, '(Autre) Établissement public administratif local', 1),
|
||||
(7381, 'Organisme consulaire', 1),
|
||||
(7382, 'Établissement public national ayant fonction d''administration centrale', 1),
|
||||
(7383, 'Établissement public national à caractère scientifique culturel et professionnel', 1),
|
||||
(7384, 'Autre établissement public national d''enseignement', 1),
|
||||
(7385, 'Autre établissement public national administratif à compétence territoriale limitée', 1),
|
||||
(7389, 'Établissement public national à caractère administratif', 1),
|
||||
(7410, 'Groupement d''intérêt public', 1),
|
||||
(7430, 'Établissement public des cultes d''Alsace-Lorraine', 1),
|
||||
(7450, 'Etablissement public administratif, cercle et foyer dans les armées', 1),
|
||||
(7470, 'Groupement de coopération sanitaire à gestion publique', 1),
|
||||
(7490, 'Autre personne morale de droit administratif', 1),
|
||||
(7510, 'Service d''une collectivité locale à comptabilité distincte', 1),
|
||||
(7520, 'Régie d''une collectivité locale non dotée de la personnalité morale', 1),
|
||||
(8110, 'Régime général de la sécurité sociale', 1),
|
||||
(8120, 'Régime spécial de sécurité sociale', 1),
|
||||
(8130, 'Institution de retraite complémentaire', 1),
|
||||
(8140, 'Mutualité sociale agricole', 1),
|
||||
(8150, 'Régime maladie des non-salariés non agricoles', 1),
|
||||
(8160, 'Régime vieillesse ne dépendant pas du régime général de la sécurité sociale', 1),
|
||||
(8170, 'Régime d''assurance chômage', 1),
|
||||
(8190, 'Autre régime de prévoyance sociale', 1),
|
||||
(8210, 'Mutuelle', 1),
|
||||
(8250, 'Assurance mutuelle agricole', 1),
|
||||
(8290, 'Autre organisme mutualiste', 1),
|
||||
(8310, 'Comité central d''entreprise', 1),
|
||||
(8311, 'Comité d''établissement', 1),
|
||||
(8410, 'Syndicat de salariés', 1),
|
||||
(8420, 'Syndicat patronal', 1),
|
||||
(8450, 'Ordre professionnel ou assimilé', 1),
|
||||
(8470, 'Centre technique industriel ou comité professionnel du développement économique', 1),
|
||||
(8490, 'Autre organisme professionnel', 1),
|
||||
(8510, 'Institution de prévoyance', 1),
|
||||
(8520, 'Institution de retraite supplémentaire ', 1),
|
||||
(9110, 'Syndicat de copropriété', 1),
|
||||
(9150, 'Association syndicale libre', 1),
|
||||
(9210, 'Association non déclarée', 1),
|
||||
(9220, 'Association déclarée', 1),
|
||||
(9221, 'Association déclarée "entreprises d''insertion par l''économique"', 1),
|
||||
(9222, 'Association intermédiaire', 1),
|
||||
(9223, 'Groupement d''employeurs', 1),
|
||||
(9224, 'Association d''avocats à responsabilité professionnelle individuelle', 1),
|
||||
(9230, 'Association déclarée reconnue d''utilité publique', 1),
|
||||
(9240, 'Congrégation', 1),
|
||||
(9260, 'Association de droit local', 1),
|
||||
(9300, 'Fondation', 1),
|
||||
(9900, 'Autre personne morale de droit privé', 1),
|
||||
(9970, 'Groupement de coopération sanitaire à gestion privée', 1);
|
@ -1,5 +0,0 @@
|
||||
CREATE TABLE `fields_minmax` (
|
||||
`cle` VARCHAR(20) PRIMARY KEY NOT NULL,
|
||||
`min` INTEGER NOT NULL,
|
||||
`max` BIGINT NOT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;;
|
File diff suppressed because it is too large
Load Diff
@ -1,46 +0,0 @@
|
||||
--
|
||||
-- Structure de la table `regions`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `fields_regions` (
|
||||
`REGION` tinyint(2) unsigned zerofill NOT NULL,
|
||||
`CHEFLIEU` char(5) NOT NULL,
|
||||
`TNCC` char(1) NOT NULL,
|
||||
`NC` char(30) NOT NULL,
|
||||
`NCCENR` char(30) NOT NULL,
|
||||
PRIMARY KEY (`REGION`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Contenu de la table `regions`
|
||||
--
|
||||
|
||||
INSERT INTO `fields_regions` (`REGION`, `CHEFLIEU`, `TNCC`, `NC`, `NCCENR`) VALUES
|
||||
(01, '97105', '3', 'GUADELOUPE', 'Guadeloupe'),
|
||||
(02, '97209', '3', 'MARTINIQUE', 'Martinique'),
|
||||
(03, '97302', '3', 'GUYANE', 'Guyane'),
|
||||
(04, '97411', '0', 'LA REUNION', 'La Réunion'),
|
||||
(11, '75056', '1', 'ILE-DE-FRANCE', 'Île-de-France'),
|
||||
(21, '51108', '0', 'CHAMPAGNE-ARDENNE', 'Champagne-Ardenne'),
|
||||
(22, '80021', '0', 'PICARDIE', 'Picardie'),
|
||||
(23, '76540', '0', 'HAUTE-NORMANDIE', 'Haute-Normandie'),
|
||||
(24, '45234', '2', 'CENTRE', 'Centre'),
|
||||
(25, '14118', '0', 'BASSE-NORMANDIE', 'Basse-Normandie'),
|
||||
(26, '21231', '0', 'BOURGOGNE', 'Bourgogne'),
|
||||
(31, '59350', '2', 'NORD-PAS-DE-CALAIS', 'Nord-Pas-de-Calais'),
|
||||
(41, '57463', '0', 'LORRAINE', 'Lorraine'),
|
||||
(42, '67482', '1', 'ALSACE', 'Alsace'),
|
||||
(43, '25056', '0', 'FRANCHE-COMTE', 'Franche-Comté'),
|
||||
(52, '44109', '4', 'PAYS DE LA LOIRE', 'Pays de la Loire'),
|
||||
(53, '35238', '0', 'BRETAGNE', 'Bretagne'),
|
||||
(54, '86194', '2', 'POITOU-CHARENTES', 'Poitou-Charentes'),
|
||||
(72, '33063', '1', 'AQUITAINE', 'Aquitaine'),
|
||||
(73, '31555', '0', 'MIDI-PYRENEES', 'Midi-Pyrénées'),
|
||||
(74, '87085', '2', 'LIMOUSIN', 'Limousin'),
|
||||
(82, '69123', '2', 'RHONE-ALPES', 'Rhône-Alpes'),
|
||||
(83, '63113', '1', 'AUVERGNE', 'Auvergne'),
|
||||
(91, '34172', '2', 'LANGUEDOC-ROUSSILLON', 'Languedoc-Roussillon'),
|
||||
(93, '13055', '0', 'PROVENCE-ALPES-COTE D''AZUR', 'Provence-Alpes-Côte d''Azur'),
|
||||
(94, '2A004', '0', 'CORSE', 'Corse'),
|
||||
(98, '', '', 'TERRITOIRES D''OUTRE-MER', 'Territoires d''outre-mer'),
|
||||
(99, '', '', 'ETRANGER', 'Etranger');
|
@ -1,73 +0,0 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
//error_reporting(E_ALL & ~E_NOTICE);
|
||||
|
||||
// Define path to application directory
|
||||
defined('APPLICATION_PATH')
|
||||
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
|
||||
|
||||
// Define application environment
|
||||
defined('APPLICATION_ENV')
|
||||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
|
||||
|
||||
// Ensure library/ is on include_path
|
||||
set_include_path(implode(PATH_SEPARATOR, array(
|
||||
realpath(APPLICATION_PATH . '/../library'),
|
||||
get_include_path(),
|
||||
)));
|
||||
|
||||
/** Zend_Application */
|
||||
require_once 'Zend/Application.php';
|
||||
|
||||
// Create application, bootstrap, and run
|
||||
$application = new Zend_Application(
|
||||
APPLICATION_ENV,
|
||||
APPLICATION_PATH . '/configs/application.ini'
|
||||
);
|
||||
|
||||
try {
|
||||
$opts = new Zend_Console_Getopt(
|
||||
//Options
|
||||
array(
|
||||
'help|?' => "Affiche les informations d'utilisation",
|
||||
'check' => "Vérifie la configuration suivant le fichier de config installé",
|
||||
'install' => "Installe et configure",
|
||||
)
|
||||
);
|
||||
$opts->parse();
|
||||
} catch (Zend_Console_Getopt_Exception $e) {
|
||||
echo $e->getUsageMessage();
|
||||
exit;
|
||||
}
|
||||
|
||||
//Usage
|
||||
if(isset($opts->help))
|
||||
{
|
||||
echo $opts->getUsageMessage();
|
||||
exit;
|
||||
}
|
||||
|
||||
$configDir = realpath(dirname(__FILE__));
|
||||
$appconfigDir = APPLICATION_PATH.'/configs';
|
||||
$hostname = exec('echo $(hostname)');
|
||||
|
||||
if(isset($opts->check))
|
||||
{
|
||||
|
||||
}
|
||||
elseif(isset($opts->install))
|
||||
{
|
||||
//Copie de la configuration
|
||||
passthru('cp -v '.
|
||||
$configDir.'/'.$hostname.'/configuration.ini' . ' ' .
|
||||
$appconfigDir.'/configuration.ini');
|
||||
|
||||
//Création du répertoire de stockage des sessions
|
||||
passthru('mkdir '.APPLICATION_PATH.'/../cache');
|
||||
passthru('mkdir '.APPLICATION_PATH.'/../cache/sessions');
|
||||
|
||||
//Modification des permissions
|
||||
passthru('chown -R www-data: '.APPLICATION_PATH.'/../');
|
||||
passthru('chmod +x '.APPLICATION_PATH.'/../batch/cron.php');
|
||||
passthru('chmod +x '.APPLICATION_PATH.'/../batch/enrichissement.php');
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
|
||||
resources.session.gc_maxlifetime = 86400
|
||||
resources.session.cookie_lifetime = 86400
|
||||
resources.session.remember_me_seconds = 86400
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
|
||||
resources.frontController.plugins.Comptage = "Application_Controller_Plugin_Comptage"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views/default"
|
||||
resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
autoloaderNamespaces[] = "Scores_"
|
||||
autoloaderNamespaces[] = "Form_"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = development
|
||||
profil.webservice.location = sdsrvdev01
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.free.fr
|
||||
profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
profil.path.data = "d:\www\dataciblage"
|
||||
profil.db.ciblage.adapter=mysqli
|
||||
profil.db.ciblage.params.host=127.0.0.1
|
||||
profil.db.ciblage.params.username=user
|
||||
profil.db.ciblage.params.password=pass
|
||||
profil.db.ciblage.params.dbname=ciblage
|
||||
profil.db.ciblage.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.db.jo.adapter=mysqli
|
||||
profil.db.jo.params.host=192.168.78.230
|
||||
profil.db.jo.params.username=ciblage
|
||||
profil.db.jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
profil.db.jo.params.dbname=jo
|
||||
profil.db.jo.params.persistent = true
|
||||
profil.db.jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.sphinx.host=192.168.78.252
|
||||
profil.sphinx.port=3312
|
||||
|
||||
[staging : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
@ -1,37 +0,0 @@
|
||||
[server]
|
||||
name = sdsrvdev01
|
||||
|
||||
[webservice]
|
||||
location = local
|
||||
|
||||
[databases]
|
||||
db.adapter=mysqli
|
||||
db.params.host=127.0.0.1
|
||||
db.params.username=ciblage
|
||||
db.params.password=z7jq8AhvrwqQJ4Yb
|
||||
db.params.dbname=ciblage
|
||||
db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
jo.adapter=mysqli
|
||||
jo.params.host=192.168.78.230
|
||||
jo.params.username=ciblage
|
||||
jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
jo.params.dbname=jo
|
||||
jo.params.persistent = true
|
||||
jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[sphinx]
|
||||
host = 192.168.78.252
|
||||
port = 3312
|
||||
|
||||
[mail]
|
||||
method = smtp
|
||||
smpt_port =
|
||||
smtp_host = smtp.free.fr
|
||||
support = mricois@scores-decisions.com
|
||||
supportdev = mricois@scores-decisions.com
|
||||
contact = mricois@scores-decisions.com
|
||||
production = mricois@scores-decisions.com
|
||||
|
||||
[path]
|
||||
data = "d:\www\dataciblage"
|
@ -1,57 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.session.save_path = APPLICATION_PATH "/../data/sessions"
|
||||
resources.session.gc_maxlifetime = 86400
|
||||
resources.session.cookie_lifetime = 86400
|
||||
resources.session.remember_me_seconds = 86400
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
|
||||
resources.frontController.plugins.Comptage = "Application_Controller_Plugin_Comptage"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views/default"
|
||||
resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
autoloaderNamespaces[] = "Scores_"
|
||||
autoloaderNamespaces[] = "Form_"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = sdsrvdev01
|
||||
profil.webservice.location = sdsrvdev01
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.free.fr
|
||||
profil.mail.email.support = supportdev@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.mail.email.contact = supportdev@scores-decisions.com
|
||||
profil.mail.email.production = supportdev@scores-decisions.com
|
||||
profil.path.data = "/sites/dataciblage"
|
||||
profil.db.ciblage.adapter=mysqli
|
||||
profil.db.ciblage.params.host=127.0.0.1
|
||||
profil.db.ciblage.params.username=root
|
||||
profil.db.ciblage.params.password=bj10sx
|
||||
profil.db.ciblage.params.dbname=ciblage
|
||||
profil.db.ciblage.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.db.jo.adapter=mysqli
|
||||
profil.db.jo.params.host=192.168.78.230
|
||||
profil.db.jo.params.username=ciblage
|
||||
profil.db.jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
profil.db.jo.params.dbname=jo
|
||||
profil.db.jo.params.persistent = true
|
||||
profil.db.jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
profil.sphinx.host=192.168.78.252
|
||||
profil.sphinx.port=3312
|
||||
|
||||
[staging : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
resources.frontController.params.displayExceptions = 1
|
@ -1,37 +0,0 @@
|
||||
[server]
|
||||
name = sdsrvdev01
|
||||
|
||||
[webservice]
|
||||
location = sdsrvdev01
|
||||
|
||||
[databases]
|
||||
db.adapter=mysqli
|
||||
db.params.host=127.0.0.1
|
||||
db.params.username=ciblage
|
||||
db.params.password=z7jq8AhvrwqQJ4Yb
|
||||
db.params.dbname=ciblage
|
||||
db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
jo.adapter=mysqli
|
||||
jo.params.host=192.168.78.230
|
||||
jo.params.username=ciblage
|
||||
jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
jo.params.dbname=jo
|
||||
jo.params.persistent = true
|
||||
jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[sphinx]
|
||||
host = 192.168.78.252
|
||||
port = 3312
|
||||
|
||||
[mail]
|
||||
method = smtp
|
||||
smpt_port =
|
||||
smtp_host = smtp.free.fr
|
||||
support = supportdev@scores-decisions.com
|
||||
supportdev = supportdev@scores-decisions.com
|
||||
contact = supportdev@scores-decisions.com
|
||||
production = supportdev@scores-decisions.com
|
||||
|
||||
[path]
|
||||
data = "/sites/dataciblage"
|
546
public/libs/editable/jquery.jeditable.js
Normal file
546
public/libs/editable/jquery.jeditable.js
Normal file
@ -0,0 +1,546 @@
|
||||
/*
|
||||
* Jeditable - jQuery in place edit plugin
|
||||
*
|
||||
* Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul
|
||||
*
|
||||
* Licensed under the MIT license:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Project home:
|
||||
* http://www.appelsiini.net/projects/jeditable
|
||||
*
|
||||
* Based on editable by Dylan Verheul <dylan_at_dyve.net>:
|
||||
* http://www.dyve.net/jquery/?editable
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Version 1.7.2-dev
|
||||
*
|
||||
* ** means there is basic unit tests for this parameter.
|
||||
*
|
||||
* @name Jeditable
|
||||
* @type jQuery
|
||||
* @param String target (POST) URL or function to send edited content to **
|
||||
* @param Hash options additional options
|
||||
* @param String options[method] method to use to send edited content (POST or PUT) **
|
||||
* @param Function options[callback] Function to run after submitting edited content **
|
||||
* @param String options[name] POST parameter name of edited content
|
||||
* @param String options[id] POST parameter name of edited div id
|
||||
* @param Hash options[submitdata] Extra parameters to send when submitting edited content.
|
||||
* @param String options[type] text, textarea or select (or any 3rd party input type) **
|
||||
* @param Integer options[rows] number of rows if using textarea **
|
||||
* @param Integer options[cols] number of columns if using textarea **
|
||||
* @param Mixed options[height] 'auto', 'none' or height in pixels **
|
||||
* @param Mixed options[width] 'auto', 'none' or width in pixels **
|
||||
* @param String options[loadurl] URL to fetch input content before editing **
|
||||
* @param String options[loadtype] Request type for load url. Should be GET or POST.
|
||||
* @param String options[loadtext] Text to display while loading external content.
|
||||
* @param Mixed options[loaddata] Extra parameters to pass when fetching content before editing.
|
||||
* @param Mixed options[data] Or content given as paramameter. String or function.**
|
||||
* @param String options[indicator] indicator html to show when saving
|
||||
* @param String options[tooltip] optional tooltip text via title attribute **
|
||||
* @param String options[event] jQuery event such as 'click' of 'dblclick' **
|
||||
* @param String options[submit] submit button value, empty means no button **
|
||||
* @param String options[cancel] cancel button value, empty means no button **
|
||||
* @param String options[cssclass] CSS class to apply to input form. 'inherit' to copy from parent. **
|
||||
* @param String options[style] Style to apply to input form 'inherit' to copy from parent. **
|
||||
* @param String options[select] true or false, when true text is highlighted ??
|
||||
* @param String options[placeholder] Placeholder text or html to insert when element is empty. **
|
||||
* @param String options[onblur] 'cancel', 'submit', 'ignore' or function ??
|
||||
*
|
||||
* @param Function options[onsubmit] function(settings, original) { ... } called before submit
|
||||
* @param Function options[onreset] function(settings, original) { ... } called before reset
|
||||
* @param Function options[onerror] function(settings, original, xhr) { ... } called on error
|
||||
*
|
||||
* @param Hash options[ajaxoptions] jQuery Ajax options. See docs.jquery.com.
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.editable = function(target, options) {
|
||||
|
||||
if ('disable' == target) {
|
||||
$(this).data('disabled.editable', true);
|
||||
return;
|
||||
}
|
||||
if ('enable' == target) {
|
||||
$(this).data('disabled.editable', false);
|
||||
return;
|
||||
}
|
||||
if ('destroy' == target) {
|
||||
$(this)
|
||||
.unbind($(this).data('event.editable'))
|
||||
.removeData('disabled.editable')
|
||||
.removeData('event.editable');
|
||||
return;
|
||||
}
|
||||
|
||||
var settings = $.extend({}, $.fn.editable.defaults, {target:target}, options);
|
||||
|
||||
/* setup some functions */
|
||||
var plugin = $.editable.types[settings.type].plugin || function() { };
|
||||
var submit = $.editable.types[settings.type].submit || function() { };
|
||||
var buttons = $.editable.types[settings.type].buttons
|
||||
|| $.editable.types['defaults'].buttons;
|
||||
var content = $.editable.types[settings.type].content
|
||||
|| $.editable.types['defaults'].content;
|
||||
var element = $.editable.types[settings.type].element
|
||||
|| $.editable.types['defaults'].element;
|
||||
var reset = $.editable.types[settings.type].reset
|
||||
|| $.editable.types['defaults'].reset;
|
||||
var callback = settings.callback || function() { };
|
||||
var onedit = settings.onedit || function() { };
|
||||
var onsubmit = settings.onsubmit || function() { };
|
||||
var onreset = settings.onreset || function() { };
|
||||
var onerror = settings.onerror || reset;
|
||||
|
||||
/* Show tooltip. */
|
||||
if (settings.tooltip) {
|
||||
$(this).attr('title', settings.tooltip);
|
||||
}
|
||||
|
||||
settings.autowidth = 'auto' == settings.width;
|
||||
settings.autoheight = 'auto' == settings.height;
|
||||
|
||||
return this.each(function() {
|
||||
|
||||
/* Save this to self because this changes when scope changes. */
|
||||
var self = this;
|
||||
|
||||
/* Inlined block elements lose their width and height after first edit. */
|
||||
/* Save them for later use as workaround. */
|
||||
var savedwidth = $(self).width();
|
||||
var savedheight = $(self).height();
|
||||
|
||||
/* Save so it can be later used by $.editable('destroy') */
|
||||
$(this).data('event.editable', settings.event);
|
||||
|
||||
/* If element is empty add something clickable (if requested) */
|
||||
if (!$.trim($(this).html())) {
|
||||
$(this).html(settings.placeholder);
|
||||
}
|
||||
|
||||
$(this).bind(settings.event, function(e) {
|
||||
|
||||
/* Abort if element is disabled. */
|
||||
if (true === $(this).data('disabled.editable')) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Prevent throwing an exeption if edit field is clicked again. */
|
||||
if (self.editing) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Abort if onedit hook returns false. */
|
||||
if (false === onedit.apply(this, [settings, self])) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Prevent default action and bubbling. */
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
/* Remove tooltip. */
|
||||
if (settings.tooltip) {
|
||||
$(self).removeAttr('title');
|
||||
}
|
||||
|
||||
/* Figure out how wide and tall we are, saved width and height. */
|
||||
/* Workaround for http://dev.jquery.com/ticket/2190 */
|
||||
if (0 == $(self).width()) {
|
||||
settings.width = savedwidth;
|
||||
settings.height = savedheight;
|
||||
} else {
|
||||
if (settings.width != 'none') {
|
||||
settings.width =
|
||||
settings.autowidth ? $(self).width() : settings.width;
|
||||
}
|
||||
if (settings.height != 'none') {
|
||||
settings.height =
|
||||
settings.autoheight ? $(self).height() : settings.height;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove placeholder text, replace is here because of IE. */
|
||||
if ($(this).html().toLowerCase().replace(/(;|"|\/)/g, '') ==
|
||||
settings.placeholder.toLowerCase().replace(/(;|"|\/)/g, '')) {
|
||||
$(this).html('');
|
||||
}
|
||||
|
||||
self.editing = true;
|
||||
self.revert = $(self).html();
|
||||
$(self).html('');
|
||||
|
||||
/* Create the form object. */
|
||||
var form = $('<form />');
|
||||
|
||||
/* Apply css or style or both. */
|
||||
if (settings.cssclass) {
|
||||
if ('inherit' == settings.cssclass) {
|
||||
form.attr('class', $(self).attr('class'));
|
||||
} else {
|
||||
form.attr('class', settings.cssclass);
|
||||
}
|
||||
}
|
||||
|
||||
if (settings.style) {
|
||||
if ('inherit' == settings.style) {
|
||||
form.attr('style', $(self).attr('style'));
|
||||
/* IE needs the second line or display wont be inherited. */
|
||||
form.css('display', $(self).css('display'));
|
||||
} else {
|
||||
form.attr('style', settings.style);
|
||||
}
|
||||
}
|
||||
|
||||
/* Add main input element to form and store it in input. */
|
||||
var input = element.apply(form, [settings, self]);
|
||||
|
||||
/* Set input content via POST, GET, given data or existing value. */
|
||||
var input_content;
|
||||
|
||||
if (settings.loadurl) {
|
||||
var t = setTimeout(function() {
|
||||
input.disabled = true;
|
||||
content.apply(form, [settings.loadtext, settings, self]);
|
||||
}, 100);
|
||||
|
||||
var loaddata = {};
|
||||
loaddata[settings.id] = self.id;
|
||||
if ($.isFunction(settings.loaddata)) {
|
||||
$.extend(loaddata, settings.loaddata.apply(self, [self.revert, settings]));
|
||||
} else {
|
||||
$.extend(loaddata, settings.loaddata);
|
||||
}
|
||||
$.ajax({
|
||||
type : settings.loadtype,
|
||||
url : settings.loadurl,
|
||||
data : loaddata,
|
||||
async : false,
|
||||
success: function(result) {
|
||||
window.clearTimeout(t);
|
||||
input_content = result;
|
||||
input.disabled = false;
|
||||
}
|
||||
});
|
||||
} else if (settings.data) {
|
||||
input_content = settings.data;
|
||||
if ($.isFunction(settings.data)) {
|
||||
input_content = settings.data.apply(self, [self.revert, settings]);
|
||||
}
|
||||
} else {
|
||||
input_content = self.revert;
|
||||
}
|
||||
content.apply(form, [input_content, settings, self]);
|
||||
|
||||
input.attr('name', settings.name);
|
||||
|
||||
/* Add buttons to the form. */
|
||||
buttons.apply(form, [settings, self]);
|
||||
|
||||
/* Add created form to self. */
|
||||
$(self).append(form);
|
||||
|
||||
/* Attach 3rd party plugin if requested. */
|
||||
plugin.apply(form, [settings, self]);
|
||||
|
||||
/* Focus to first visible form element. */
|
||||
$(':input:visible:enabled:first', form).focus();
|
||||
|
||||
/* Highlight input contents when requested. */
|
||||
if (settings.select) {
|
||||
input.select();
|
||||
}
|
||||
|
||||
/* discard changes if pressing esc */
|
||||
input.keydown(function(e) {
|
||||
if (e.keyCode == 27) {
|
||||
e.preventDefault();
|
||||
reset.apply(form, [settings, self]);
|
||||
}
|
||||
});
|
||||
|
||||
/* Discard, submit or nothing with changes when clicking outside. */
|
||||
/* Do nothing is usable when navigating with tab. */
|
||||
var t;
|
||||
if ('cancel' == settings.onblur) {
|
||||
input.blur(function(e) {
|
||||
/* Prevent canceling if submit was clicked. */
|
||||
t = setTimeout(function() {
|
||||
reset.apply(form, [settings, self]);
|
||||
}, 500);
|
||||
});
|
||||
} else if ('submit' == settings.onblur) {
|
||||
input.blur(function(e) {
|
||||
/* Prevent double submit if submit was clicked. */
|
||||
t = setTimeout(function() {
|
||||
form.submit();
|
||||
}, 200);
|
||||
});
|
||||
} else if ($.isFunction(settings.onblur)) {
|
||||
input.blur(function(e) {
|
||||
settings.onblur.apply(self, [input.val(), settings]);
|
||||
});
|
||||
} else {
|
||||
input.blur(function(e) {
|
||||
/* TODO: maybe something here */
|
||||
});
|
||||
}
|
||||
|
||||
form.submit(function(e) {
|
||||
|
||||
if (t) {
|
||||
clearTimeout(t);
|
||||
}
|
||||
|
||||
/* Do no submit. */
|
||||
e.preventDefault();
|
||||
|
||||
/* Call before submit hook. */
|
||||
/* If it returns false abort submitting. */
|
||||
if (false !== onsubmit.apply(form, [settings, self])) {
|
||||
/* Custom inputs call before submit hook. */
|
||||
/* If it returns false abort submitting. */
|
||||
if (false !== submit.apply(form, [settings, self])) {
|
||||
|
||||
/* Check if given target is function */
|
||||
if ($.isFunction(settings.target)) {
|
||||
var str = settings.target.apply(self, [input.val(), settings]);
|
||||
$(self).html(str);
|
||||
self.editing = false;
|
||||
callback.apply(self, [self.innerHTML, settings]);
|
||||
/* TODO: this is not dry */
|
||||
if (!$.trim($(self).html())) {
|
||||
$(self).html(settings.placeholder);
|
||||
}
|
||||
} else {
|
||||
/* Add edited content and id of edited element to POST. */
|
||||
var submitdata = {};
|
||||
submitdata[settings.name] = input.val();
|
||||
submitdata[settings.id] = self.id;
|
||||
/* Add extra data to be POST:ed. */
|
||||
if ($.isFunction(settings.submitdata)) {
|
||||
$.extend(submitdata, settings.submitdata.apply(self, [self.revert, settings]));
|
||||
} else {
|
||||
$.extend(submitdata, settings.submitdata);
|
||||
}
|
||||
|
||||
/* Quick and dirty PUT support. */
|
||||
if ('PUT' == settings.method) {
|
||||
submitdata['_method'] = 'put';
|
||||
}
|
||||
|
||||
/* Show the saving indicator. */
|
||||
$(self).html(settings.indicator);
|
||||
|
||||
/* Defaults for ajaxoptions. */
|
||||
var ajaxoptions = {
|
||||
type : 'POST',
|
||||
data : submitdata,
|
||||
dataType: 'html',
|
||||
url : settings.target,
|
||||
success : function(result, status) {
|
||||
if (ajaxoptions.dataType == 'html') {
|
||||
$(self).html(result);
|
||||
}
|
||||
self.editing = false;
|
||||
callback.apply(self, [result, settings]);
|
||||
if (!$.trim($(self).html())) {
|
||||
$(self).html(settings.placeholder);
|
||||
}
|
||||
},
|
||||
error : function(xhr, status, error) {
|
||||
onerror.apply(form, [settings, self, xhr]);
|
||||
}
|
||||
};
|
||||
|
||||
/* Override with what is given in settings.ajaxoptions. */
|
||||
$.extend(ajaxoptions, settings.ajaxoptions);
|
||||
$.ajax(ajaxoptions);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Show tooltip again. */
|
||||
$(self).attr('title', settings.tooltip);
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
/* Privileged methods */
|
||||
this.reset = function(form) {
|
||||
/* Prevent calling reset twice when blurring. */
|
||||
if (this.editing) {
|
||||
/* Before reset hook, if it returns false abort reseting. */
|
||||
if (false !== onreset.apply(form, [settings, self])) {
|
||||
$(self).html(self.revert);
|
||||
self.editing = false;
|
||||
if (!$.trim($(self).html())) {
|
||||
$(self).html(settings.placeholder);
|
||||
}
|
||||
/* Show tooltip again. */
|
||||
if (settings.tooltip) {
|
||||
$(self).attr('title', settings.tooltip);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
$.editable = {
|
||||
types: {
|
||||
defaults: {
|
||||
element : function(settings, original) {
|
||||
var input = $('<input type="hidden"></input>');
|
||||
$(this).append(input);
|
||||
return(input);
|
||||
},
|
||||
content : function(string, settings, original) {
|
||||
$(':input:first', this).val(string);
|
||||
},
|
||||
reset : function(settings, original) {
|
||||
original.reset(this);
|
||||
},
|
||||
buttons : function(settings, original) {
|
||||
var form = this;
|
||||
if (settings.submit) {
|
||||
/* If given html string use that. */
|
||||
if (settings.submit.match(/>$/)) {
|
||||
var submit = $(settings.submit).click(function() {
|
||||
if (submit.attr("type") != "submit") {
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
/* Otherwise use button with given string as text. */
|
||||
} else {
|
||||
var submit = $('<button type="submit" />');
|
||||
submit.html(settings.submit);
|
||||
}
|
||||
$(this).append(submit);
|
||||
}
|
||||
if (settings.cancel) {
|
||||
/* If given html string use that. */
|
||||
if (settings.cancel.match(/>$/)) {
|
||||
var cancel = $(settings.cancel);
|
||||
/* otherwise use button with given string as text */
|
||||
} else {
|
||||
var cancel = $('<button type="cancel" />');
|
||||
cancel.html(settings.cancel);
|
||||
}
|
||||
$(this).append(cancel);
|
||||
|
||||
$(cancel).click(function(event) {
|
||||
if ($.isFunction($.editable.types[settings.type].reset)) {
|
||||
var reset = $.editable.types[settings.type].reset;
|
||||
} else {
|
||||
var reset = $.editable.types['defaults'].reset;
|
||||
}
|
||||
reset.apply(form, [settings, original]);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
text: {
|
||||
element : function(settings, original) {
|
||||
var input = $('<input />');
|
||||
if (settings.width != 'none') { input.attr('width', settings.width); }
|
||||
if (settings.height != 'none') { input.attr('height', settings.height); }
|
||||
/* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */
|
||||
//input[0].setAttribute('autocomplete','off');
|
||||
input.attr('autocomplete','off');
|
||||
$(this).append(input);
|
||||
return(input);
|
||||
}
|
||||
},
|
||||
textarea: {
|
||||
element : function(settings, original) {
|
||||
var textarea = $('<textarea />');
|
||||
if (settings.rows) {
|
||||
textarea.attr('rows', settings.rows);
|
||||
} else if (settings.height != "none") {
|
||||
textarea.height(settings.height);
|
||||
}
|
||||
if (settings.cols) {
|
||||
textarea.attr('cols', settings.cols);
|
||||
} else if (settings.width != "none") {
|
||||
textarea.width(settings.width);
|
||||
}
|
||||
$(this).append(textarea);
|
||||
return(textarea);
|
||||
}
|
||||
},
|
||||
select: {
|
||||
element : function(settings, original) {
|
||||
var select = $('<select />');
|
||||
$(this).append(select);
|
||||
return(select);
|
||||
},
|
||||
content : function(data, settings, original) {
|
||||
/* If it is string assume it is json. */
|
||||
if (String == data.constructor) {
|
||||
eval ('var json = ' + data);
|
||||
} else {
|
||||
/* Otherwise assume it is a hash already. */
|
||||
var json = data;
|
||||
}
|
||||
for (var key in json) {
|
||||
if (!json.hasOwnProperty(key)) {
|
||||
continue;
|
||||
}
|
||||
if ('selected' == key) {
|
||||
continue;
|
||||
}
|
||||
var option = $('<option />').val(key).append(json[key]);
|
||||
$('select', this).append(option);
|
||||
}
|
||||
/* Loop option again to set selected. IE needed this... */
|
||||
$('select', this).children().each(function() {
|
||||
if ($(this).val() == json['selected'] ||
|
||||
$(this).text() == $.trim(original.revert)) {
|
||||
$(this).attr('selected', 'selected');
|
||||
}
|
||||
});
|
||||
/* Submit on change if no submit button defined. */
|
||||
if (!settings.submit) {
|
||||
var form = this;
|
||||
$('select', this).change(function() {
|
||||
form.submit();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Add new input type */
|
||||
addInputType: function(name, input) {
|
||||
$.editable.types[name] = input;
|
||||
}
|
||||
};
|
||||
|
||||
/* Publicly accessible defaults. */
|
||||
$.fn.editable.defaults = {
|
||||
name : 'value',
|
||||
id : 'id',
|
||||
type : 'text',
|
||||
width : 'auto',
|
||||
height : 'auto',
|
||||
event : 'click.editable',
|
||||
onblur : 'cancel',
|
||||
loadtype : 'GET',
|
||||
loadtext : 'Loading...',
|
||||
placeholder: 'Click to edit',
|
||||
loaddata : {},
|
||||
submitdata : {},
|
||||
ajaxoptions: {}
|
||||
};
|
||||
|
||||
})(jQuery);
|
@ -1,37 +0,0 @@
|
||||
[server]
|
||||
name = Odea
|
||||
|
||||
[webservice]
|
||||
location = celeste
|
||||
|
||||
[databases]
|
||||
db.adapter=mysqli
|
||||
db.params.host=127.0.0.1
|
||||
db.params.username=ciblage
|
||||
db.params.password=z7jq8AhvrwqQJ4Yb
|
||||
db.params.dbname=ciblage
|
||||
db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
jo.adapter=mysqli
|
||||
jo.params.host=192.168.3.30
|
||||
jo.params.username=ciblage
|
||||
jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
jo.params.dbname=jo
|
||||
jo.params.persistent = true
|
||||
jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[sphinx]
|
||||
host = 127.0.0.1
|
||||
port = 3312
|
||||
|
||||
[mail]
|
||||
method = smtp
|
||||
smpt_port =
|
||||
smtp_host = smtp.celeste.fr
|
||||
support = supportdev@scores-decisions.com
|
||||
supportdev = supportdev@scores-decisions.com
|
||||
contact = supportdev@scores-decisions.com
|
||||
production = supportdev@scores-decisions.com
|
||||
|
||||
[path]
|
||||
data = "/home/vhosts/data"
|
@ -1,37 +0,0 @@
|
||||
[server]
|
||||
name = sdsrvdev01
|
||||
|
||||
[webservice]
|
||||
location = sdsrvdev01
|
||||
|
||||
[databases]
|
||||
db.adapter=mysqli
|
||||
db.params.host=127.0.0.1
|
||||
db.params.username=ciblage
|
||||
db.params.password=z7jq8AhvrwqQJ4Yb
|
||||
db.params.dbname=ciblage
|
||||
db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
jo.adapter=mysqli
|
||||
jo.params.host=192.168.78.230
|
||||
jo.params.username=ciblage
|
||||
jo.params.password=z7jq8AhvrwqQJ4Yb
|
||||
jo.params.dbname=jo
|
||||
jo.params.persistent = true
|
||||
jo.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[sphinx]
|
||||
host = 192.168.78.252
|
||||
port = 3312
|
||||
|
||||
[mail]
|
||||
method = smtp
|
||||
smpt_port =
|
||||
smtp_host = smtp.free.fr
|
||||
support = supportdev@scores-decisions.com
|
||||
supportdev = supportdev@scores-decisions.com
|
||||
contact = supportdev@scores-decisions.com
|
||||
production = supportdev@scores-decisions.com
|
||||
|
||||
[path]
|
||||
data = "/sites/dataciblage"
|
Loading…
Reference in New Issue
Block a user