2011-02-21 08:45:13 +00:00
|
|
|
<?php
|
|
|
|
class SaisieController extends Zend_Controller_Action
|
|
|
|
{
|
2011-05-06 09:36:52 +00:00
|
|
|
protected $tabEvent = array(
|
|
|
|
'1100' => 'Ouverture sauvegarde',
|
|
|
|
'1200' => 'Redressement Judiciaire',
|
|
|
|
'1201' => 'Conversion sauvegarde en Redressement Judiciaire',
|
|
|
|
'1300' => 'Conversion Redressement Judiciaire en Liquidation Judiciaire',
|
|
|
|
'1301' => 'Ouverture Liquidation Judiciaire',
|
|
|
|
'1302' => 'Ouverture Liquidation Judiciaire Simplifiée',
|
|
|
|
'1303' => 'Ouverture Liquidation Judiciaire sur résolution du plan',
|
|
|
|
'1304' => 'Réouverture Liquidation Judiciaire',
|
|
|
|
'1305' => 'Liquidation Judiciaire',
|
|
|
|
'1306' => 'Liquidation Judiciaire simplifiée',
|
|
|
|
'1307' => 'Conversion sauvegarde en Liquidation Judiciaire',
|
|
|
|
'1308' => 'Fin du régime de Liquidation Judiciaire Simplifiée',
|
|
|
|
'1309' => 'Conversion Liquidation Judiciaire en Liquidation Judiciaire Simplifiée',
|
|
|
|
'1310' => 'Procédure d\'insolvabilité européenne',
|
|
|
|
'1311' => 'Liquidation Judiciaire par extension au(x) gérant(s)',
|
|
|
|
'1312' => 'Liquidation Judiciaire avec continuation d\'exploitation',
|
|
|
|
'1408' => 'Modification du plan de cession',
|
|
|
|
'1411' => 'Arrêt du plan de cession',
|
|
|
|
'1412' => 'Arrêt du plan de cession partielle',
|
|
|
|
'1413' => 'Arrêt du plan de continuation',
|
|
|
|
'1414' => 'Arrêt du plan de redressement',
|
|
|
|
'1415' => 'Prolongement du plan de cession',
|
|
|
|
'1511' => 'Résolution du plan de cession',
|
|
|
|
'1502' => 'Clôture de la procédure pour extinction du passif',
|
|
|
|
'1503' => 'Clôture de la procédure pour insuffisance d\'actif',
|
|
|
|
'1512' => 'Résolution du plan de continuation',
|
|
|
|
'1600' => 'Faillite personnelle',
|
|
|
|
'1601' => 'Interdiction de gérer',
|
|
|
|
'1999' => 'Autre procédure collective',
|
|
|
|
'2102' => 'Augmentation du capital social',
|
|
|
|
'2100' => 'Diminution du capital social',
|
|
|
|
'2202' => 'Dissolution',
|
|
|
|
'2206' => 'Mise en sommeil',
|
|
|
|
'2319' => 'Poursuite de l\'activité malgré perte > moitié du capital social',
|
|
|
|
'2315' => 'Modification de l\'administration',
|
|
|
|
'2313' => 'Modification de l\'activité',
|
|
|
|
'2305' => 'Modification de la dénomination',
|
|
|
|
'2307' => 'Modification de la forme juridique',
|
|
|
|
'2303' => 'Modification de la date de clôture de l\'exercice',
|
|
|
|
'2306' => 'Modification de la durée de la société',
|
|
|
|
'2901' => 'Transfert de siège',
|
|
|
|
'5500' => 'Vente/cession : Entreprise réalisant la vente',
|
|
|
|
'6700' => 'Radiation',
|
|
|
|
'1010' => 'Déclaration de cessation de paiement',
|
|
|
|
'1050' => 'Homologation de la conciliation',
|
|
|
|
'1055' => 'Résolution de la conciliation',
|
|
|
|
);
|
2011-02-21 08:45:13 +00:00
|
|
|
|
2011-05-06 15:31:13 +00:00
|
|
|
protected $coursAppel = array(
|
|
|
|
array( "triId"=>"1756", "triCode"=>"AIXPRL", "triNom"=>"Cour d'Appel d'Aix-en-Provence", "triCP"=>"13616" ),
|
|
|
|
array( "triId"=>"1757", "triCode"=>"AMIENL", "triNom"=>"Cour d'Appel d'Amiens", "triCP"=>"80027" ),
|
|
|
|
array( "triId"=>"1758", "triCode"=>"ANGERL", "triNom"=>"Cour d'Appel d'Angers", "triCP"=>"49043" ),
|
|
|
|
array( "triId"=>"1759", "triCode"=>"BASSEL", "triNom"=>"Cour d'Appel de Basse-Terre", "triCP"=>"97109" ),
|
|
|
|
array( "triId"=>"1760", "triCode"=>"BASTIL", "triNom"=>"Cour d'Appel de Bastia", "triCP"=>"20407" ),
|
|
|
|
array( "triId"=>"1761", "triCode"=>"BESANL", "triNom"=>"Cour d'Appel de Besançon", "triCP"=>"25017" ),
|
|
|
|
array( "triId"=>"1762", "triCode"=>"BORDEL", "triNom"=>"Cour d'Appel de Bordeaux", "triCP"=>"33077" ),
|
|
|
|
array( "triId"=>"1763", "triCode"=>"BOURGL", "triNom"=>"Cour d'Appel de Bourges", "triCP"=>"18023" ),
|
|
|
|
array( "triId"=>"1764", "triCode"=>"CAENL", "triNom"=>"Cour d'Appel de Caen", "triCP"=>"14050" ),
|
|
|
|
array( "triId"=>"1765", "triCode"=>"CHAMBL", "triNom"=>"Cour d'Appel de Chambéry", "triCP"=>"73018" ),
|
|
|
|
array( "triId"=>"1766", "triCode"=>"COLMAL", "triNom"=>"Cour d'Appel de Colmar", "triCP"=>"68027" ),
|
|
|
|
array( "triId"=>"1767", "triCode"=>"DIJONL", "triNom"=>"Cour d'Appel de Dijon", "triCP"=>"21034" ),
|
|
|
|
array( "triId"=>"1768", "triCode"=>"DOUAIL", "triNom"=>"Cour d'Appel de Douai", "triCP"=>"59507" ),
|
|
|
|
array( "triId"=>"1769", "triCode"=>"FORTFL", "triNom"=>"Cour d'Appel de Fort-de-France", "triCP"=>"97200" ),
|
|
|
|
array( "triId"=>"1770", "triCode"=>"GRENOL", "triNom"=>"Cour d'Appel de Grenoble", "triCP"=>"38019" ),
|
|
|
|
array( "triId"=>"1771", "triCode"=>"LIMOGL", "triNom"=>"Cour d'Appel de Limoges", "triCP"=>"87031" ),
|
|
|
|
array( "triId"=>"1772", "triCode"=>"LYONL", "triNom"=>"Cour d'Appel de Lyon", "triCP"=>"69321" ),
|
|
|
|
array( "triId"=>"1773", "triCode"=>"METZL", "triNom"=>"Cour d'Appel de Metz", "triCP"=>"57036" ),
|
|
|
|
array( "triId"=>"1774", "triCode"=>"MONTPL", "triNom"=>"Cour d'Appel de Montpellier", "triCP"=>"34023" ),
|
|
|
|
array( "triId"=>"1775", "triCode"=>"NANCYL", "triNom"=>"Cour d'Appel de Nancy", "triCP"=>"54035" ),
|
|
|
|
array( "triId"=>"1776", "triCode"=>"NIMESL", "triNom"=>"Cour d'Appel de Nîmes", "triCP"=>"30031" ),
|
|
|
|
array( "triId"=>"1777", "triCode"=>"NOUMEL", "triNom"=>"Cour d'Appel de Nouméa", "triCP"=>"98848" ),
|
|
|
|
array( "triId"=>"1778", "triCode"=>"PAPEEL", "triNom"=>"Cour d'Appel de Papeete", "triCP"=>"98714" ),
|
|
|
|
array( "triId"=>"1779", "triCode"=>"PARISL", "triNom"=>"Cour d'Appel de Paris", "triCP"=>"75055" ),
|
|
|
|
array( "triId"=>"1780", "triCode"=>"PAUL", "triNom"=>"Cour d'Appel de Pau", "triCP"=>"64034" ),
|
|
|
|
array( "triId"=>"1781", "triCode"=>"POITIL", "triNom"=>"Cour d'Appel de Poitiers", "triCP"=>"86020" ),
|
|
|
|
array( "triId"=>"1782", "triCode"=>"REIMSL", "triNom"=>"Cour d'Appel de Reims", "triCP"=>"51096" ),
|
|
|
|
array( "triId"=>"1783", "triCode"=>"RENNEL", "triNom"=>"Cour d'Appel de Rennes", "triCP"=>"35064" ),
|
|
|
|
array( "triId"=>"1784", "triCode"=>"RIOML", "triNom"=>"Cour d'Appel de Riom", "triCP"=>"63201" ),
|
|
|
|
array( "triId"=>"1785", "triCode"=>"ROUENL", "triNom"=>"Cour d'Appel de Rouen", "triCP"=>"76037" ),
|
|
|
|
array( "triId"=>"1786", "triCode"=>"STDENL", "triNom"=>"Cour d'Appel de Saint-Denis-de-La Réunion", "triCP"=>"97488" ),
|
|
|
|
array( "triId"=>"1787", "triCode"=>"TOULOL", "triNom"=>"Cour d'Appel de Toulouse", "triCP"=>"31068" ),
|
|
|
|
array( "triId"=>"1788", "triCode"=>"VERSAL", "triNom"=>"Cour d'Appel de Versailles", "triCP"=>"78011" ),
|
|
|
|
array( "triId"=>"1789", "triCode"=>"ORLEAL", "triNom"=>"Cour d'Appel d'Orléans", "triCP"=>"45044" ),
|
|
|
|
array( "triId"=>"1790", "triCode"=>"CAYENL", "triNom"=>"Chambre Détachée de la Cour d'Appel de Fort de France à Cayenne", "triCP"=>"97300" ),
|
|
|
|
array( "triId"=>"1798", "triCode"=>"AGENL", "triNom"=>"Cour d'Appel d'Agen", "triCP"=>"47916" ),
|
|
|
|
);
|
|
|
|
|
|
|
|
protected $strSelectDir='<option value="0000" selected>-</option>
|
|
|
|
<option value="0900">Gérant</option>
|
|
|
|
<option value="0209">Associé-gérant</option>
|
|
|
|
<option value="0400">Co-gérant</option>
|
|
|
|
<option value="0100">Administrateur</option>
|
|
|
|
<option value="1300">Président</option>
|
|
|
|
<option value="1900">Liquidateur</option>
|
|
|
|
<option value="0709">DG</option>
|
|
|
|
<option value="1306">Président conseil admin.</option>
|
|
|
|
<option value="0704">Directeur gén. délégué</option>
|
|
|
|
<option value="1301">PDG</option>
|
|
|
|
<option value="1800">Vice-président</option>
|
|
|
|
<option value="1401">Représentant soc. étrangère</option>
|
|
|
|
<option value="0603">Contrôleur gestion</option>
|
|
|
|
<option value="1307">Président conseil surv.</option>
|
|
|
|
<option value="1308">Président directoire</option>
|
|
|
|
<option value="0713">Dir. général non admin.</option>
|
|
|
|
<option value="0108">Admin. provisoire</option>
|
|
|
|
<option value="0708">DG unique</option>
|
|
|
|
<option value="0101">Admin. délégué</option>
|
|
|
|
<option value="0912">Gérant non associé</option>
|
|
|
|
<option value="0200">Associé</option>
|
|
|
|
<option value="1651">Sous Gouverneur</option>
|
|
|
|
<option value="0701">DG Adjoint</option>
|
|
|
|
<option value="0705">DG et administrateur</option>
|
|
|
|
<option value="0300">CAC</option>
|
|
|
|
<option value="0303">Commissaire aux comptes suppléant</option>
|
|
|
|
<option value="1650">Gouverneur</option>
|
|
|
|
<option value="0500">Conj. Collaborateur</option>
|
|
|
|
<option value="1600">Secrétaire</option>
|
|
|
|
<option value="1601">Vice-secrétaire</option>
|
|
|
|
<option value="1700">Trésorier</option>
|
|
|
|
<option value="1701">Vice-trésorier</option>';
|
|
|
|
|
|
|
|
protected $strSelectGenre='<option value="" selected>-</option>
|
|
|
|
<option value="M.">M</option>
|
|
|
|
<option value="Mme">Mme</option>
|
|
|
|
<option value="Mlle">Mlle</option>
|
|
|
|
<option value="Societe">STE</option>';
|
|
|
|
|
|
|
|
protected $strSelectPays='<option value="XXX" selected>-</option>
|
|
|
|
<option value="FRA">France</option>
|
|
|
|
<option value="AND">Andorre</option>
|
|
|
|
<option value="ARE">Emirats Arabes Unis</option>
|
|
|
|
<option value="AFG">Afghanistan</option>
|
|
|
|
<option value="ATG">Antigua</option>
|
|
|
|
<option value="AIA">Anguilla</option>
|
|
|
|
<option value="ALB">Albanie</option>
|
|
|
|
<option value="ARM">Arménie</option>
|
|
|
|
<option value="ANT">Antilles Néerlandaises</option>
|
|
|
|
<option value="AGO">Angola</option>
|
|
|
|
<option value="ATA">Antarctique</option>
|
|
|
|
<option value="ARG">Argentine</option>
|
|
|
|
<option value="ASM">Samoa Américaines</option>
|
|
|
|
<option value="AUT">Autriche</option>
|
|
|
|
<option value="AUS">Australie</option>
|
|
|
|
<option value="ABW">Aruba</option>
|
|
|
|
<option value="AZE">Azerbaïdjan</option>
|
|
|
|
<option value="BIH">Bosnie-Herzégovine</option>
|
|
|
|
<option value="BRB">Barbade</option>
|
|
|
|
<option value="BGD">Bangladesh</option>
|
|
|
|
<option value="BEL">Belgique</option>
|
|
|
|
<option value="BFA">Burkina Faso</option>
|
|
|
|
<option value="BGR">Bulgarie</option>
|
|
|
|
<option value="BHR">Bahreïn</option>
|
|
|
|
<option value="BDI">Burundi</option>
|
|
|
|
<option value="BEN">Bénin</option>
|
|
|
|
<option value="BMU">Bermudes</option>
|
|
|
|
<option value="BRN">Brunei</option>
|
|
|
|
<option value="BOL">Bolivie</option>
|
|
|
|
<option value="BRA">Brésil</option>
|
|
|
|
<option value="BHS">Bahamas</option>
|
|
|
|
<option value="BTN">Bhoutan</option>
|
|
|
|
<option value="BVT">Iles Bouvet</option>
|
|
|
|
<option value="BWA">Botswana</option>
|
|
|
|
<option value="BLR">Biélorussie</option>
|
|
|
|
<option value="BLZ">Bélize</option>
|
|
|
|
<option value="CAN">Canada</option>
|
|
|
|
<option value="CCK">Iles Cocos</option>
|
|
|
|
<option value="CAF">République Centrafricaine</option>
|
|
|
|
<option value="COG">Congo</option>
|
|
|
|
<option value="CHE">Suisse</option>
|
|
|
|
<option value="CIV">Côte d\'Ivoire</option>
|
|
|
|
<option value="COK">Iles Cook</option>
|
|
|
|
<option value="CHL">Chili</option>
|
|
|
|
<option value="CMR">Cameroun</option>
|
|
|
|
<option value="CHN">Chine</option>
|
|
|
|
<option value="COL">Colombie</option>
|
|
|
|
<option value="CRI">Costa Rica</option>
|
|
|
|
<option value="CSK">Tchécoslovaquie</option>
|
|
|
|
<option value="CUB">Cuba</option>
|
|
|
|
<option value="CPV">Cap-Vert</option>
|
|
|
|
<option value="CXR">Ile Christmas</option>
|
|
|
|
<option value="CYP">Chypre</option>
|
|
|
|
<option value="CZE">Rébublique Tchèque</option>
|
|
|
|
<option value="DDR">République Démocratique Allemande</option>
|
|
|
|
<option value="DEU">Allemagne</option>
|
|
|
|
<option value="DJI">Djibouti</option>
|
|
|
|
<option value="DNK">Danemark</option>
|
|
|
|
<option value="DMA">Dominique</option>
|
|
|
|
<option value="DOM">République Dominicaine</option>
|
|
|
|
<option value="DZA">Algérie</option>
|
|
|
|
<option value="ECU">Equateur</option>
|
|
|
|
<option value="EST">Estonie</option>
|
|
|
|
<option value="EGY">Egypte</option>
|
|
|
|
<option value="ESH">Sahara Occidental</option>
|
|
|
|
<option value="ERI">Eritrea</option>
|
|
|
|
<option value="ESP">Espagne</option>
|
|
|
|
<option value="ETH">Ethiopie</option>
|
|
|
|
<option value="FIN">Finlande</option>
|
|
|
|
<option value="FJI">Iles Fidji</option>
|
|
|
|
<option value="FLK">Iles Malouines</option>
|
|
|
|
<option value="FSM">Etats Fédérés de Micronésie</option>
|
|
|
|
<option value="FRO">Iles Féroé</option>
|
|
|
|
<option value="GAB">Gabon</option>
|
|
|
|
<option value="GBR">Royaume-Uni</option>
|
|
|
|
<option value="GRD">Grenade</option>
|
|
|
|
<option value="GEO">Géorgie</option>
|
|
|
|
<option value="GUF">Guinée française</option>
|
|
|
|
<option value="GHA">Ghana</option>
|
|
|
|
<option value="GIB">Gibraltar</option>
|
|
|
|
<option value="GRL">Groënland</option>
|
|
|
|
<option value="GMB">Gambie</option>
|
|
|
|
<option value="GIN">Guinée</option>
|
|
|
|
<option value="GLP">Guadeloupe</option>
|
|
|
|
<option value="GNQ">Guinée Equatoriale</option>
|
|
|
|
<option value="GRC">Grèce</option>
|
|
|
|
<option value="SGS">Géorgie du sud & Iles Sandwich</option>
|
|
|
|
<option value="GTM">Guatemala</option>
|
|
|
|
<option value="GUM">Guam</option>
|
|
|
|
<option value="GNB">Guinée-Bissau</option>
|
|
|
|
<option value="GUY">Guyane</option>
|
|
|
|
<option value="HKG">Hong Kong</option>
|
|
|
|
<option value="HMD">Iles Heard et Mc Donald</option>
|
|
|
|
<option value="HND">Honduras</option>
|
|
|
|
<option value="HRV">Croatie</option>
|
|
|
|
<option value="HTI">Haïti</option>
|
|
|
|
<option value="HUN">Hongrie</option>
|
|
|
|
<option value="IDN">Indonésie</option>
|
|
|
|
<option value="IRL">Irlande</option>
|
|
|
|
<option value="ISR">Israël</option>
|
|
|
|
<option value="IND">Inde</option>
|
|
|
|
<option value="IOT">Iles Vierges Britanniques</option>
|
|
|
|
<option value="IRQ">Irak</option>
|
|
|
|
<option value="IRN">Iran</option>
|
|
|
|
<option value="ISL">Islande</option>
|
|
|
|
<option value="ITA">Italie</option>
|
|
|
|
<option value="JAM">Jamaïque</option>
|
|
|
|
<option value="JOR">Jordanie</option>
|
|
|
|
<option value="JPN">Japon</option>
|
|
|
|
<option value="KEN">Kenya</option>
|
|
|
|
<option value="KGZ">Kirghizistan</option>
|
|
|
|
<option value="KHM">Cambodge</option>
|
|
|
|
<option value="KIR">Kiribati</option>
|
|
|
|
<option value="COM">Comores</option>
|
|
|
|
<option value="KNA">Saint-Kitts</option>
|
|
|
|
<option value="PRK">Corée</option>
|
|
|
|
<option value="KOR">République de Corée</option>
|
|
|
|
<option value="KWT">Koweït</option>
|
|
|
|
<option value="CYM">Iles Caïman</option>
|
|
|
|
<option value="KAZ">Kazakhstan</option>
|
|
|
|
<option value="LAO">Laos</option>
|
|
|
|
<option value="LBN">Liban</option>
|
|
|
|
<option value="LCA">Sainte-Lucie</option>
|
|
|
|
<option value="LIE">Liechtenstein</option>
|
|
|
|
<option value="LKA">Sri Lanka</option>
|
|
|
|
<option value="LBR">Libéria</option>
|
|
|
|
<option value="LSO">Lesotho</option>
|
|
|
|
<option value="LTU">Lithuanie</option>
|
|
|
|
<option value="LUX">Luxembourg</option>
|
|
|
|
<option value="LVA">Lettonie</option>
|
|
|
|
<option value="LBY">Libye</option>
|
|
|
|
<option value="MAR">Maroc</option>
|
|
|
|
<option value="MCO">Monaco</option>
|
|
|
|
<option value="MDA">Moldavie</option>
|
|
|
|
<option value="MDG">Madagascar</option>
|
|
|
|
<option value="MHL">Iles Marshall</option>
|
|
|
|
<option value="MKD">Macédoine</option>
|
|
|
|
<option value="MLI">Mali</option>
|
|
|
|
<option value="MMR">Myanmar</option>
|
|
|
|
<option value="MNG">Mongolie</option>
|
|
|
|
<option value="MAC">Macao</option>
|
|
|
|
<option value="MNP">Iles Mariannes</option>
|
|
|
|
<option value="MTQ">Martinique</option>
|
|
|
|
<option value="MRT">Mauritanie</option>
|
|
|
|
<option value="MSR">Montserrat</option>
|
|
|
|
<option value="MLT">Malte</option>
|
|
|
|
<option value="MUS">Ile Maurice</option>
|
|
|
|
<option value="MDV">Maldives</option>
|
|
|
|
<option value="MWI">Malawi</option>
|
|
|
|
<option value="MEX">Mexique</option>
|
|
|
|
<option value="MYS">Malaisie</option>
|
|
|
|
<option value="MOZ">Mozambique</option>
|
|
|
|
<option value="NAM">Namibie</option>
|
|
|
|
<option value="NCL">Nouvelle Calédonie</option>
|
|
|
|
<option value="NER">Niger</option>
|
|
|
|
<option value="NFK">Iles Norfolk</option>
|
|
|
|
<option value="NGA">Nigeria</option>
|
|
|
|
<option value="NIC">Nicaragua</option>
|
|
|
|
<option value="NLD">Pays-Bas</option>
|
|
|
|
<option value="NOR">Norvège</option>
|
|
|
|
<option value="NPL">Népal</option>
|
|
|
|
<option value="NRU">Nauru</option>
|
|
|
|
<option value="NTZ">Zone Neutre</option>
|
|
|
|
<option value="NIU">Niue</option>
|
|
|
|
<option value="NZL">Nouvelle Zélande</option>
|
|
|
|
<option value="OMN">Oman</option>
|
|
|
|
<option value="PAN">Panama</option>
|
|
|
|
<option value="PER">Pérou</option>
|
|
|
|
<option value="PYF">Polynésie Francaise</option>
|
|
|
|
<option value="PNG">Papouasie Nouvelle-Guinée</option>
|
|
|
|
<option value="PHL">Philippines</option>
|
|
|
|
<option value="PAK">Pakistan</option>
|
|
|
|
<option value="POL">Pologne</option>
|
|
|
|
<option value="SPM">Saint Pierre et Miquelon</option>
|
|
|
|
<option value="PCN">Pitcairn</option>
|
|
|
|
<option value="PRI">Porto Rico</option>
|
|
|
|
<option value="PRT">Portugal</option>
|
|
|
|
<option value="PLW">Palau</option>
|
|
|
|
<option value="PRY">Paraguay</option>
|
|
|
|
<option value="QAT">Qatar</option>
|
|
|
|
<option value="REU">Ile de la Réunion</option>
|
|
|
|
<option value="ROM">Roumanie</option>
|
|
|
|
<option value="RUS">Russie</option>
|
|
|
|
<option value="RWA">Rwanda</option>
|
|
|
|
<option value="SAU">Arabie Saoudite</option>
|
|
|
|
<option value="SLB">Iles Salomon</option>
|
|
|
|
<option value="SYC">Seychelles</option>
|
|
|
|
<option value="SDN">Soudan</option>
|
|
|
|
<option value="SWE">Suède</option>
|
|
|
|
<option value="SGP">Singapour</option>
|
|
|
|
<option value="SHN">Sainte-Hélène</option>
|
|
|
|
<option value="SVN">Slovénie</option>
|
|
|
|
<option value="SJM">Spitsberg et lle Jan Mayen</option>
|
|
|
|
<option value="SVK">Slovaquie</option>
|
|
|
|
<option value="SLE">Sierra Leone</option>
|
|
|
|
<option value="SMR">Saint-Marin</option>
|
|
|
|
<option value="SEN">Sénégal</option>
|
|
|
|
<option value="SOM">Somalie</option>
|
|
|
|
<option value="SUR">Surinam</option>
|
|
|
|
<option value="STP">São Tomé et Principe</option>
|
|
|
|
<option value="SUN">URSS</option>
|
|
|
|
<option value="SLV">Salvador</option>
|
|
|
|
<option value="SYR">Syrie</option>
|
|
|
|
<option value="SWZ">Swaziland</option>
|
|
|
|
<option value="TCA">Iles Turques et Caïques</option>
|
|
|
|
<option value="TCD">Tchad</option>
|
|
|
|
<option value="ATF">Terres Australes Francaises</option>
|
|
|
|
<option value="TGO">Togo</option>
|
|
|
|
<option value="THA">Thaïlande</option>
|
|
|
|
<option value="TJK">Tadjikistan</option>
|
|
|
|
<option value="TKL">Iles Tokélaou</option>
|
|
|
|
<option value="TKM">Turkménistan</option>
|
|
|
|
<option value="TUN">Tunisie</option>
|
|
|
|
<option value="TON">Tonga</option>
|
|
|
|
<option value="TMP">Timor Oriental</option>
|
|
|
|
<option value="TUR">Turquie</option>
|
|
|
|
<option value="TTO">Trinité-et-Tobago</option>
|
|
|
|
<option value="TUV">Tuvalu</option>
|
|
|
|
<option value="TWN">Taïwan, République de Chine</option>
|
|
|
|
<option value="TZA">Tanzanie</option>
|
|
|
|
<option value="UKR">Ukraine</option>
|
|
|
|
<option value="UGA">Ouganda</option>
|
|
|
|
<option value="UMI">Iles mineures éloignées des E.U</option>
|
|
|
|
<option value="USA">Etats Unis</option>
|
|
|
|
<option value="URY">Uruguay</option>
|
|
|
|
<option value="UZB">Ouzbékistan</option>
|
|
|
|
<option value="VAT">Vatican</option>
|
|
|
|
<option value="VCT">Saint Vincent et les Grenadines</option>
|
|
|
|
<option value="VEN">Vénézuéla</option>
|
|
|
|
<option value="VGB">Iles Vierges Britaniques</option>
|
|
|
|
<option value="VIR">Iles Vierges U.S</option>
|
|
|
|
<option value="VNM">Vietnam</option>
|
|
|
|
<option value="VUT">Vanuatu</option>
|
|
|
|
<option value="WLF">Wallis et Futuna</option>
|
|
|
|
<option value="WSM">Samoa Américaines</option>
|
|
|
|
<option value="XBA">Rép. Turque de Chypre</option>
|
|
|
|
<option value="YMD">Yémen (République Démocratique)</option>
|
|
|
|
<option value="YEM">Yemen</option>
|
|
|
|
<option value="MYT">Mayotte</option>
|
|
|
|
<option value="YUG">Yougoslavie</option>
|
|
|
|
<option value="ZAF">Afrique du sud</option>
|
|
|
|
<option value="ZMB">Zambie</option>
|
|
|
|
<option value="ZAR">Zaïre</option>
|
|
|
|
<option value="ZWE">Zimbabwe</option>';
|
|
|
|
|
|
|
|
|
2011-05-06 09:36:52 +00:00
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
require_once 'Scores/WsScores.php';
|
|
|
|
require_once 'Scores/Utilisateur.php';
|
|
|
|
require_once 'Scores/SessionEntreprise.php';
|
|
|
|
require_once 'Scores/IdentiteEntreprise.php';
|
|
|
|
require_once 'common/dates.php';
|
|
|
|
|
|
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/saisie.css', 'all');
|
|
|
|
}
|
2011-02-21 08:45:13 +00:00
|
|
|
|
2011-05-06 14:17:44 +00:00
|
|
|
public function indexAction(){}
|
|
|
|
|
2011-06-07 09:59:39 +00:00
|
|
|
/**
|
|
|
|
* Afficahge du formulaire de saisie
|
|
|
|
*/
|
2011-05-06 14:17:44 +00:00
|
|
|
public function ficheAction()
|
2011-05-06 09:36:52 +00:00
|
|
|
{
|
|
|
|
$this->view->headScript()
|
|
|
|
->appendFile('/themes/default/scripts/saisie.js', 'text/javascript');
|
|
|
|
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$siret = $request->getParam('siret');
|
|
|
|
$id = $request->getParam('id', 0);
|
|
|
|
|
|
|
|
$ws = new WsScores();
|
|
|
|
$infos = $ws->getIdentite($siret, $id);
|
|
|
|
$devisesReponse = $ws->getDevises();
|
|
|
|
$devises = $devisesReponse->result->item;
|
|
|
|
|
|
|
|
//Mise en session
|
|
|
|
$session = new SessionEntreprise($siret, $id, true);
|
|
|
|
$session->setInfoEntrep($infos);
|
|
|
|
|
|
|
|
//$identite = new IdentiteEntreprise($infos, $this->view);
|
|
|
|
|
|
|
|
$saisie = new stdClass();
|
|
|
|
$saisie->tribunal = $infos->TribunalCode;
|
|
|
|
Zend_Registry::set('saisie', $saisie);
|
|
|
|
|
|
|
|
$this->view->assign('siret', $siret);
|
|
|
|
$this->view->assign('id', $id);
|
|
|
|
$this->view->assign('devises', $devises);
|
|
|
|
$this->view->assign('etab', $infos);
|
|
|
|
}
|
2011-06-23 07:20:15 +00:00
|
|
|
|
2011-06-07 09:59:39 +00:00
|
|
|
/**
|
|
|
|
* Retourne le formulaire bodacc
|
|
|
|
*/
|
2011-05-06 09:36:52 +00:00
|
|
|
public function formAction()
|
|
|
|
{
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$siret = $request->getParam('siret');
|
|
|
|
$id = $request->getParam('id', 0);
|
|
|
|
|
|
|
|
$session = new SessionEntreprise($siret, $id);
|
|
|
|
|
|
|
|
$ws = new WsScores();
|
|
|
|
|
|
|
|
$reponse = $ws->getListeJalCollecte();
|
|
|
|
$listeJalCollecte = $reponse->result->item;
|
|
|
|
$this->view->assign('ListeJalCollecte', $listeJalCollecte);
|
|
|
|
|
|
|
|
$saisie = new stdClass();
|
|
|
|
if(Zend_Registry::isRegistered('saisie')){
|
|
|
|
$saisie = Zend_Registry::get('saisie');
|
|
|
|
}
|
|
|
|
$this->view->assign('saisie', $saisie);
|
|
|
|
Zend_Registry::get('firebug')->info($saisie);
|
|
|
|
|
|
|
|
$eventNum = isset($saisie->eventNum) ? $saisie->eventNum : '0000' ;
|
|
|
|
$this->view->assign('eventNum', $eventNum);
|
|
|
|
|
|
|
|
//Si le code tribunal n'est pas défini dans la fiche identité
|
|
|
|
//alors en sélectionner un par défault suivant le code INSEE
|
|
|
|
$tribunal = isset($saisie->tribunal) ? $saisie->tribunal : '' ;
|
|
|
|
$this->view->assign('codeTribunalCmp', $tribunal);
|
|
|
|
|
|
|
|
$listeCompetences = array();
|
|
|
|
if ($tribunal=='') {
|
|
|
|
$siret = $session->getSiret();
|
|
|
|
$codeCommune = $session->getCodeCommune();
|
|
|
|
$reponse = $ws->getListeCompetences($siret, 'tri', $codeCommune);
|
|
|
|
$listeCompetences = $reponse->result->item;
|
|
|
|
}
|
|
|
|
$this->view->assign('ListeCompetences', $listeCompetences);
|
|
|
|
|
|
|
|
$reponse = $ws->getTribunaux( array('C','I','G','M','P') );
|
|
|
|
$listeTribunaux = array();
|
|
|
|
if (count($reponse->result->item)>0) {
|
|
|
|
foreach($reponse->result->item as $item) {
|
|
|
|
$listeTribunaux[$item->code] = $item->nom;
|
|
|
|
}
|
|
|
|
asort($listeTribunaux);
|
|
|
|
}
|
|
|
|
$this->view->assign('ListeTribunaux', $listeTribunaux);
|
|
|
|
$tabEvent = $this->tabEvent;
|
|
|
|
asort($tabEvent);
|
|
|
|
$this->view->assign('tabEvent', $tabEvent);
|
|
|
|
}
|
|
|
|
|
2011-06-07 09:59:39 +00:00
|
|
|
/**
|
|
|
|
* Retourne le formulaire correspondant à l'évenement
|
|
|
|
*/
|
2011-05-06 09:36:52 +00:00
|
|
|
public function evenAction()
|
|
|
|
{
|
|
|
|
$request = $this->getRequest();
|
|
|
|
if ( $request->isPost() ){
|
|
|
|
$this->_helper->layout->disableLayout();
|
|
|
|
}
|
|
|
|
$num = $request->getParam('num', '0000');
|
2011-05-06 15:31:13 +00:00
|
|
|
$siren = $request->getParam('siren', '');
|
|
|
|
$nic = $request->getParam('nic', '');
|
|
|
|
$tribunal = $request->getParam('tribunal', '');
|
|
|
|
switch($num) {
|
|
|
|
case '5500':
|
|
|
|
//Liste des établissements
|
|
|
|
$ws = new WsScores();
|
|
|
|
$reponse = $ws->getListeEtablissements($siren);
|
|
|
|
$listeEtablissements = $reponse->result->item;
|
|
|
|
$this->view->assign('ListeEtablissements', $listeEtablissements);
|
|
|
|
break;
|
|
|
|
case '6700':
|
|
|
|
//Liste des établissements
|
|
|
|
$ws = new WsScores();
|
|
|
|
$reponse = $ws->getListeEtablissements($siren);
|
|
|
|
$listeEtablissements = $reponse->result->item;
|
|
|
|
$this->view->assign('ListeEtablissements', $listeEtablissements);
|
|
|
|
//Assign constantes
|
|
|
|
$this->view->assign('strSelectDir', $this->strSelectDir);
|
|
|
|
$this->view->assign('strSelectGenre',$this->strSelectGenre);
|
|
|
|
break;
|
|
|
|
case '2202':
|
|
|
|
//Assign constantes
|
|
|
|
$this->view->assign('strSelectDir', $this->strSelectDir);
|
|
|
|
$this->view->assign('strSelectGenre',$this->strSelectGenre);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
$this->view->assign('siren', $siren);
|
|
|
|
$this->view->assign('nic', $nic);
|
|
|
|
$this->view->assign('tribunal', $tribunal);
|
2011-05-06 09:36:52 +00:00
|
|
|
$this->renderScript('saisie/even/'.$num.'.phtml');
|
|
|
|
}
|
2011-06-07 09:59:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Affiche un champ de formulaire
|
|
|
|
*/
|
2011-05-06 09:36:52 +00:00
|
|
|
public function champsAction()
|
|
|
|
{
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$champ = $request->getParam('champ', '');
|
|
|
|
$this->renderScript('saisie/champs/'.$champ.'.phtml');
|
|
|
|
}
|
|
|
|
|
2011-06-07 09:59:39 +00:00
|
|
|
/**
|
|
|
|
* Retourne les informations de l'établissements
|
|
|
|
*/
|
2011-05-06 15:47:21 +00:00
|
|
|
public function etabnicAction()
|
|
|
|
{
|
|
|
|
$this->_helper->layout->disableLayout();
|
|
|
|
$this->_helper->viewRenderer->setNoRender();
|
|
|
|
|
|
|
|
$request = $this->getRequest();
|
|
|
|
$siret = $request->getParam('siret', '');
|
|
|
|
if($siret!='') {
|
|
|
|
$ws = new WsScores();
|
|
|
|
$etab = $ws->getIdentite($siret);
|
|
|
|
if($etab->Siret==$siret){
|
|
|
|
echo $etab->Adresse.' '.$etab->CP.' '.$etab->Ville.' ('. $etab->Nic.')';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-05-06 09:36:52 +00:00
|
|
|
|
2011-06-07 09:59:39 +00:00
|
|
|
/**
|
|
|
|
* Retourne le formulaire d'opposition insee
|
|
|
|
*/
|
|
|
|
public function oppositioninseeAction()
|
|
|
|
{
|
|
|
|
//Nothing
|
|
|
|
}
|
2011-05-06 09:36:52 +00:00
|
|
|
|
|
|
|
//Génération courrier pour demande d'actes aux greffes concernées
|
|
|
|
public function gencourrierAction(){}
|
|
|
|
|
|
|
|
//Gestion des logos
|
|
|
|
public function logoUploadAction(){}
|
|
|
|
public function logoCropAction(){}
|
|
|
|
public function logoSaveAction(){}
|
|
|
|
public function logoUrlAction(){}
|
|
|
|
public function logoDeleteAction(){}
|
|
|
|
public function logoAfficheAction(){}
|
|
|
|
|
2011-06-23 07:20:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Enter description here ...
|
|
|
|
*/
|
|
|
|
public function annonceAction(){}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Affiche le fomulaire d'edition/suppression/copie d'annonce
|
|
|
|
*/
|
|
|
|
public function annoncedialog(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-05-06 09:36:52 +00:00
|
|
|
public function acteAction(){}
|
2011-02-21 08:45:13 +00:00
|
|
|
}
|