Remove deprecated code

This commit is contained in:
Michael RICOIS 2013-09-23 07:34:10 +00:00
parent 1074a10866
commit cf6236def1
2 changed files with 16 additions and 261 deletions

View File

@ -3,6 +3,10 @@ class SaisieController extends Zend_Controller_Action
{
protected $wDate;
protected $countries;
protected $currencies;
/**
* Enter description here ...
* @var unknown_type
@ -76,259 +80,6 @@ class SaisieController extends Zend_Controller_Action
'Societe' => 'STE'
);
/**
* Liste des pays
* @var array
*/
protected $selectPays = array(
'FRA' => "France",
'AND' => "Andorre",
'ARE' => "Emirats Arabes Unis",
'AFG' => "Afghanistan",
'ATG' => "Antigua",
'AIA' => "Anguilla",
'ALB' => "Albanie",
'ARM' => "Arménie",
'ANT' => "Antilles Néerlandaises",
'AGO' => "Angola",
'ATA' => "Antarctique",
'ARG' => "Argentine",
'ASM' => "Samoa Américaines",
'AUT' => "Autriche",
'AUS' => "Australie",
'ABW' => "Aruba",
'AZE' => "Azerbaïdjan",
'BIH' => "Bosnie-Herzégovine",
'BRB' => "Barbade",
'BGD' => "Bangladesh",
'BEL' => "Belgique",
'BFA' => "Burkina Faso",
'BGR' => "Bulgarie",
'BHR' => "Bahreïn",
'BDI' => "Burundi",
'BEN' => "Bénin",
'BMU' => "Bermudes",
'BRN' => "Brunei",
'BOL' => "Bolivie",
'BRA' => "Brésil",
'BHS' => "Bahamas",
'BTN' => "Bhoutan",
'BVT' => "Iles Bouvet",
'BWA' => "Botswana",
'BLR' => "Biélorussie",
'BLZ' => "Bélize",
'CAN' => "Canada",
'CCK' => "Iles Cocos",
'CAF' => "République Centrafricaine",
'COG' => "Congo",
'CHE' => "Suisse",
'CIV' => "Côte d\'Ivoire",
'COK' => "Iles Cook",
'CHL' => "Chili",
'CMR' => "Cameroun",
'CHN' => "Chine",
'COL' => "Colombie",
'CRI' => "Costa Rica",
'CSK' => "Tchécoslovaquie",
'CUB' => "Cuba",
'CPV' => "Cap-Vert",
'CXR' => "Ile Christmas",
'CYP' => "Chypre",
'CZE' => "Rébublique Tchèque",
'DDR' => "République Démocratique Allemande",
'DEU' => "Allemagne",
'DJI' => "Djibouti",
'DNK' => "Danemark",
'DMA' => "Dominique",
'DOM' => "République Dominicaine",
'DZA' => "Algérie",
'ECU' => "Equateur",
'EST' => "Estonie",
'EGY' => "Egypte",
'ESH' => "Sahara Occidental",
'ERI' => "Eritrea",
'ESP' => "Espagne",
'ETH' => "Ethiopie",
'FIN' => "Finlande",
'FJI' => "Iles Fidji",
'FLK' => "Iles Malouines",
'FSM' => "Etats Fédérés de Micronésie",
'FRO' => "Iles Féroé",
'GAB' => "Gabon",
'GBR' => "Royaume-Uni",
'GRD' => "Grenade",
'GEO' => "Géorgie",
'GUF' => "Guinée française",
'GHA' => "Ghana",
'GIB' => "Gibraltar",
'GRL' => "Groënland",
'GMB' => "Gambie",
'GIN' => "Guinée",
'GLP' => "Guadeloupe",
'GNQ' => "Guinée Equatoriale",
'GRC' => "Grèce",
'SGS' => "Géorgie du sud & Iles Sandwich",
'GTM' => "Guatemala",
'GUM' => "Guam",
'GNB' => "Guinée-Bissau",
'GUY' => "Guyane",
'HKG' => "Hong Kong",
'HMD' => "Iles Heard et Mc Donald",
'HND' => "Honduras",
'HRV' => "Croatie",
'HTI' => "Haïti",
'HUN' => "Hongrie",
'IDN' => "Indonésie",
'IRL' => "Irlande",
'ISR' => "Israël",
'IND' => "Inde",
'IOT' => "Iles Vierges Britanniques",
'IRQ' => "Irak",
'IRN' => "Iran",
'ISL' => "Islande",
'ITA' => "Italie",
'JAM' => "Jamaïque",
'JOR' => "Jordanie",
'JPN' => "Japon",
'KEN' => "Kenya",
'KGZ' => "Kirghizistan",
'KHM' => "Cambodge",
'KIR' => "Kiribati",
'COM' => "Comores",
'KNA' => "Saint-Kitts",
'PRK' => "Corée",
'KOR' => "République de Corée",
'KWT' => "Koweït",
'CYM' => "Iles Caïman",
'KAZ' => "Kazakhstan",
'LAO' => "Laos",
'LBN' => "Liban",
'LCA' => "Sainte-Lucie",
'LIE' => "Liechtenstein",
'LKA' => "Sri Lanka",
'LBR' => "Libéria",
'LSO' => "Lesotho",
'LTU' => "Lithuanie",
'LUX' => "Luxembourg",
'LVA' => "Lettonie",
'LBY' => "Libye",
'MAR' => "Maroc",
'MCO' => "Monaco",
'MDA' => "Moldavie",
'MDG' => "Madagascar",
'MHL' => "Iles Marshall",
'MKD' => "Macédoine",
'MLI' => "Mali",
'MMR' => "Myanmar",
'MNG' => "Mongolie",
'MAC' => "Macao",
'MNP' => "Iles Mariannes",
'MTQ' => "Martinique",
'MRT' => "Mauritanie",
'MNE' => "Monténégro",
'MSR' => "Montserrat",
'MLT' => "Malte",
'MUS' => "Ile Maurice",
'MDV' => "Maldives",
'MWI' => "Malawi",
'MEX' => "Mexique",
'MYS' => "Malaisie",
'MOZ' => "Mozambique",
'NAM' => "Namibie",
'NCL' => "Nouvelle Calédonie",
'NER' => "Niger",
'NFK' => "Iles Norfolk",
'NGA' => "Nigeria",
'NIC' => "Nicaragua",
'NLD' => "Pays-Bas",
'NOR' => "Norvège",
'NPL' => "Népal",
'NRU' => "Nauru",
'NTZ' => "Zone Neutre",
'NIU' => "Niue",
'NZL' => "Nouvelle Zélande",
'OMN' => "Oman",
'PAN' => "Panama",
'PER' => "Pérou",
'PYF' => "Polynésie Francaise",
'PNG' => "Papouasie Nouvelle-Guinée",
'PHL' => "Philippines",
'PAK' => "Pakistan",
'POL' => "Pologne",
'SPM' => "Saint Pierre et Miquelon",
'PCN' => "Pitcairn",
'PRI' => "Porto Rico",
'PRT' => "Portugal",
'PLW' => "Palau",
'PRY' => "Paraguay",
'QAT' => "Qatar",
'REU' => "Ile de la Réunion",
'ROM' => "Roumanie",
'RUS' => "Russie",
'RWA' => "Rwanda",
'SAU' => "Arabie Saoudite",
'SLB' => "Iles Salomon",
'SRB' => "Serbie",
'SYC' => "Seychelles",
'SDN' => "Soudan",
'SWE' => "Suède",
'SGP' => "Singapour",
'SHN' => "Sainte-Hélène",
'SVN' => "Slovénie",
'SJM' => "Spitsberg et lle Jan Mayen",
'SVK' => "Slovaquie",
'SLE' => "Sierra Leone",
'SMR' => "Saint-Marin",
'SEN' => "Sénégal",
'SOM' => "Somalie",
'SUR' => "Surinam",
'STP' => "São Tomé et Principe",
'SUN' => "URSS",
'SLV' => "Salvador",
'SYR' => "Syrie",
'SWZ' => "Swaziland",
'TCA' => "Iles Turques et Caïques",
'TCD' => "Tchad",
'ATF' => "Terres Australes Francaises",
'TGO' => "Togo",
'THA' => "Thaïlande",
'TJK' => "Tadjikistan",
'TKL' => "Iles Tokélaou",
'TKM' => "Turkménistan",
'TUN' => "Tunisie",
'TON' => "Tonga",
'TMP' => "Timor Oriental",
'TUR' => "Turquie",
'TTO' => "Trinité-et-Tobago",
'TUV' => "Tuvalu",
'TWN' => "Taïwan, République de Chine",
'TZA' => "Tanzanie",
'UKR' => "Ukraine",
'UGA' => "Ouganda",
'UMI' => "Iles mineures éloignées des E.U",
'USA' => "Etats Unis",
'URY' => "Uruguay",
'UZB' => "Ouzbékistan",
'VAT' => "Vatican",
'VCT' => "Saint Vincent et les Grenadines",
'VEN' => "Vénézuéla",
'VGB' => "Iles Vierges Britaniques",
'VIR' => "Iles Vierges U.S",
'VNM' => "Vietnam",
'VUT' => "Vanuatu",
'WLF' => "Wallis et Futuna",
'WSM' => "Samoa Américaines",
'XBA' => "Rép. Turque de Chypre",
'YMD' => "Yémen (République Démocratique)",
'YEM' => "Yemen",
'MYT' => "Mayotte",
'YUG' => "Yougoslavie",
'ZAF' => "Afrique du sud",
'ZMB' => "Zambie",
'ZAR' => "Zaïre",
'ZWE' => "Zimbabwe",
);
public function init()
{
require_once 'Scores/WsScores.php';
@ -338,6 +89,7 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores();
$this->wDate = new WDate();
//codPays3 (index), libPays, devise
$countries = json_decode($ws->getCatalogCountry(),true);
if ($countries!==false) {
$lib = array();
@ -348,6 +100,7 @@ class SaisieController extends Zend_Controller_Action
$this->countries = $countries;
}
//devIso (index), devNom
$currencies = json_decode($ws->getCatalogCurrency(),true);
if ($currencies!==false) {
$lib = array();
@ -364,7 +117,10 @@ class SaisieController extends Zend_Controller_Action
/**
* Index
*/
public function indexAction(){}
public function indexAction()
{
//Do nothing
}
/**
* Affichage du formulaire de saisie
@ -394,7 +150,8 @@ class SaisieController extends Zend_Controller_Action
$sessionSaisie = new Zend_Session_Namespace('saisie');
$sessionSaisie->tabSaisie['tribunal'] = $infos->TribunalCode;
$this->view->assign('selectPays', $this->selectPays);
//@todo : Change
$this->view->assign('selectPays', $this->countries);
$this->view->assign('siret', $siret);
$this->view->assign('id', $id);

View File

@ -71,8 +71,6 @@ $report_email = $c->profil->mail->email->support;
$report_subject = 'Traitement des actes '.date('Y-m-d H:i:s');
$report_txt = '';
require_once 'common/ftp.php';
function sendMail($commande, $nomCible){
$subject = "Actes ou Statuts disponible pour ".$commande['siren'];
$message = "Le document commandé pour le siren ".$commande['siren']." est disponible en téléchargement sur le site de Scores & Décisions à l'adresse suivante :\r\n\r\n";