From 95650f60aeee1e957042041e942054e538789564 Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Thu, 31 Mar 2011 15:25:21 +0000 Subject: [PATCH] Modification d'acces au information formatage des affichages Part 1 --- .../Class/rapport/CompanyIdentitie.Class.php | 91 +++++++++----- includes/giant/modulesGiants/Functions.php | 3 + .../templates/rapport/AnnualAccounts.tpl.php | 42 +++---- .../templates/rapport/Associated.tpl.php | 87 ++++++------- includes/giant/templates/rapport/Bank.tpl.php | 57 +++++---- .../giant/templates/rapport/Branch.tpl.php | 32 +++++ .../giant/templates/rapport/Capital.tpl.php | 41 +++++++ .../rapport/CreditRecommendation.tpl.php | 115 +++++++++++------- .../giant/templates/rapport/Employees.tpl.php | 49 +++----- .../rapport/FinancialSummary.tpl.php | 74 ++++++----- .../giant/templates/rapport/LegalForm.tpl.php | 62 +++++++--- .../templates/rapport/Operations.tpl.php | 36 +++--- .../giant/templates/rapport/Position.tpl.php | 90 ++++++++------ 13 files changed, 472 insertions(+), 307 deletions(-) create mode 100644 includes/giant/templates/rapport/Branch.tpl.php create mode 100644 includes/giant/templates/rapport/Capital.tpl.php diff --git a/includes/giant/modulesGiants/Class/rapport/CompanyIdentitie.Class.php b/includes/giant/modulesGiants/Class/rapport/CompanyIdentitie.Class.php index d1834e80a..d949a162d 100644 --- a/includes/giant/modulesGiants/Class/rapport/CompanyIdentitie.Class.php +++ b/includes/giant/modulesGiants/Class/rapport/CompanyIdentitie.Class.php @@ -92,47 +92,65 @@ Class CompanyIdentitie case 'Auditor': self::_AuditorShow($params); break; + case 'Branch': + self::_BranchShow($params); + break; } } + public function _BranchShow($Branch) { + if(isset($Branch)) + require_once ('../includes/giant/templates/rapport/Branch.tpl.php'); + } + public function _AuditorShow($Auditor) { - echo 'In developpement'; + if(isset($Auditor)) + echo 'In developpement'; } public function _LiabilityDeclarationShow($LiabilityDeclaration) { - echo 'In developpement'; + if(isset($LiabilityDeclaration)) + echo 'In developpement'; } public function _BankShow($Bank) { - require_once ('../includes/giant/templates/rapport/Bank.tpl.php'); + if(isset($Bank)) + require_once ('../includes/giant/templates/rapport/Bank.tpl.php'); } public function _EventShow($Even) { - require_once ('../includes/giant/templates/rapport/Event.tpl.php'); + if(isset($Even)) + require_once ('../includes/giant/templates/rapport/Event.tpl.php'); } public function _PositionShow($Position) { - require_once ('../includes/giant/templates/rapport/Position.tpl.php'); + if(isset($Position)) + require_once ('../includes/giant/templates/rapport/Position.tpl.php'); } public function _EmployeesShow($Employees) { - require_once ('../includes/giant/templates/rapport/Employees.tpl.php'); + if(isset($Employees)) + require_once ('../includes/giant/templates/rapport/Employees.tpl.php'); } public function _CreditRecommendationShow($CreditRecommendation){ - require_once ('../includes/giant/templates/rapport/CreditRecommendation.tpl.php'); + if(isset($CreditRecommendation)) + require_once ('../includes/giant/templates/rapport/CreditRecommendation.tpl.php'); } public function _AssociatedShow($Associated) { - require_once ('../includes/giant/templates/rapport/Associated.tpl.php'); + if(isset($Associated)) + require_once ('../includes/giant/templates/rapport/Associated.tpl.php'); } public function _FinancialSummaryShow($FinancialSummary) { - require_once ('../includes/giant/templates/rapport/FinancialSummary.tpl.php'); + if(isset($FinancialSummary)) + require_once ('../includes/giant/templates/rapport/FinancialSummary.tpl.php'); } public function _AnnualAccountsShow($AnnualAccounts) { - require_once ('../includes/giant/templates/rapport/AnnualAccounts.tpl.php'); + if(isset($AnnualAccounts)) + require_once ('../includes/giant/templates/rapport/AnnualAccounts.tpl.php'); } public function _PaymentBehaviourShow($PaymentBehaviour) { @@ -140,69 +158,86 @@ Class CompanyIdentitie } public function _PeerGroupShow($PeerGroup) { - echo 'En developpement...'; + if(isset($PeerGroup)) + echo 'En developpement...'; } public function _CapitalShow($Capital) { - echo $Capital->AuthorizedCapital->_ . ' €'; + if(isset($Capital)) + require_once ('../includes/giant/templates/rapport/Capital.tpl.php'); } public function _OperationsShow($Operations) { - require_once ('../includes/giant/templates/rapport/Operations.tpl.php'); + if(isset($Operations)) + require_once ('../includes/giant/templates/rapport/Operations.tpl.php'); } public function _LegalFormShow($LegalForm) { - require_once('../includes/giant/templates/rapport/LegalForm.tpl.php'); + if(isset($LegalForm)) + require_once('../includes/giant/templates/rapport/LegalForm.tpl.php'); } public function _CompanyStatusShow($CompanyStatus) { - require_once('../includes/giant/templates/rapport/CompanyStatus.tpl.php'); + if(isset($CompanyStatus)) + require_once('../includes/giant/templates/rapport/CompanyStatus.tpl.php'); } public function _TelephoneNumberShow($TelephoneNumber) { - require_once('../includes/giant/templates/rapport/TelephoneNumber.tpl.php'); + if(isset($TelephoneNumber)) + require_once('../includes/giant/templates/rapport/TelephoneNumber.tpl.php'); } - public function _CompanyIdShow($params) { - echo $params; + public function _CompanyIdShow($CompanyId) { + if(isset($CompanyId)) + echo $CompanyId; } public function _VatShow($Vat){ - require_once('../includes/giant/templates/rapport/Vat.tpl.php'); + if(isset($Vat)) + require_once('../includes/giant/templates/rapport/Vat.tpl.php'); } public function _CompanyRegistryShow($CompanyRegistry) { - require_once('../includes/giant/templates/rapport/Registry.tpl.php'); + if(isset($CompanyRegistry)) + require_once('../includes/giant/templates/rapport/Registry.tpl.php'); } public function _CompanyNameShow($CompanyName) { - require_once('../includes/giant/templates/rapport/CompanyName.tpl.php'); + if(isset($CompanyName)) + require_once('../includes/giant/templates/rapport/CompanyName.tpl.php'); } public function _TradeNameShow($TradeName) { - require_once('../includes/giant/templates/rapport/TradeName.tpl.php'); + if(isset($TradeName)) + require_once('../includes/giant/templates/rapport/TradeName.tpl.php'); } public function _CompanyAddressShow($CompanyAddress) { - require_once('../includes/giant/templates/rapport/CompanyAddress.tpl.php'); + if(isset($CompanyAddress)) + require_once('../includes/giant/templates/rapport/CompanyAddress.tpl.php'); } public function _IncorporationDateShow($IncorporationDate) { - $date = _setDateWithGiant($IncorporationDate->format, $IncorporationDate->_); - echo $date[0].' / '.$date[1].' / '.$date[2]; + if(isset($IncorporationDate)) { + $date = _setDateWithGiant($IncorporationDate->format, $IncorporationDate->_); + echo $date[0].' / '.$date[1].' / '.$date[2]; + } } public function _WebAddressShow($WebAddress) { - echo ''.$WebAddress.''; + if(isset($WebAddress)) + echo ''.$WebAddress.''; } public function _EmailAddressShow($EmailAddress) { - echo ''.$EmailAddress.''; + if(isset($EmailAddress)) + echo ''.$EmailAddress.''; } public function _TelefaxShow($Telefax) { - echo $Telefax; + if(isset($Telefax)) + echo $Telefax; } } ?> \ No newline at end of file diff --git a/includes/giant/modulesGiants/Functions.php b/includes/giant/modulesGiants/Functions.php index 493fd3328..5ae56ff88 100644 --- a/includes/giant/modulesGiants/Functions.php +++ b/includes/giant/modulesGiants/Functions.php @@ -47,6 +47,9 @@ function _getLient($champ) case 'Associated': return ('group.png'); break; + case 'Branch': + return ('attach.png'); + break; } return (false); } diff --git a/includes/giant/templates/rapport/AnnualAccounts.tpl.php b/includes/giant/templates/rapport/AnnualAccounts.tpl.php index 594e869c9..825fa3230 100644 --- a/includes/giant/templates/rapport/AnnualAccounts.tpl.php +++ b/includes/giant/templates/rapport/AnnualAccounts.tpl.php @@ -1,30 +1,18 @@ - -
-Cliquez pour afficher la liste -
- -
+
+ Cliquez pour afficher la liste +
+ +
\ No newline at end of file diff --git a/includes/giant/templates/rapport/Associated.tpl.php b/includes/giant/templates/rapport/Associated.tpl.php index ba8950feb..6663990e4 100644 --- a/includes/giant/templates/rapport/Associated.tpl.php +++ b/includes/giant/templates/rapport/Associated.tpl.php @@ -1,52 +1,43 @@ - -
-Cliquez pour afficher la liste -
- +
+ Cliquez pour afficher la liste +
+ +
-
-