modification code pour utilisation soap features SOAP_SINGLE_ELEMENT_ARRAYS

This commit is contained in:
Michael RICOIS 2009-10-26 16:53:30 +00:00
parent b980a0e619
commit e4320283a0
2 changed files with 15 additions and 12 deletions

View File

@ -8,7 +8,8 @@ require_once 'graydon/graydon.php';
require_once 'dbbootstrap.php';
/* Affichage du formulaire de recherche */
if($vue=='recherche'){
if($vue=='recherche')
{
?>
<script type="text/javascript">
$(document).ready(function(){
@ -110,7 +111,7 @@ elseif($vue=='list')
//Get the list of companies
$demoCompaniesCountry = $result->DemoCompanies->CountryAndCompany[0]->Country;
$demoCompanies = array();
$demoCompanies = $demoCompaniesCountry->Companies->Company;
$demoCompanies = $result->DemoCompanies->CountryAndCompany[0]->Companies->Company;
$firephp->log($demoCompanies,'demoCompanies');
?>
<br/>
@ -150,7 +151,9 @@ elseif($vue=='list')
}
}
//*********** Mode normal
}elseif($_REQUEST['mode']=='normal'){
}
elseif($_REQUEST['mode']=='normal')
{
$paysCode = $_REQUEST['frmRecherche']['CountryCode'];
//Lire le libélé du pays graydon en fonction du code
setDbConn('graydon');

View File

@ -3,7 +3,8 @@ if(!isset($mode)){
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : 'normal';
}
if($mode=='normal'){
if($mode=='normal')
{
$pays = $_REQUEST['pays'];
$paysCode = $_SESSION['graydon']['paysCode'];
$_SESSION['graydon']['mode'] = 'normal';
@ -50,12 +51,12 @@ if($mode=='normal'){
foreach($tabPaysComplete as $kPays){
$selected = '';
//Test des la présence du pays dans chaque partenaires
$graydon = FALSE;
$intersud = FALSE;
if(count($tabPaysGraydon)>0 && in_array($kPays['codPays'], $tabPaysGraydon)){ $graydon = TRUE; }
if(count($tabPaysIntersud)>0 && in_array($kPays['codPays'], $tabPaysIntersud)){ $intersud = TRUE; }
$graydonPays = FALSE;
$intersudPays = FALSE;
if(count($tabPaysGraydon)>0 && in_array($kPays['codPays'], $tabPaysGraydon)){ $graydonPays = TRUE; }
if(count($tabPaysIntersud)>0 && in_array($kPays['codPays'], $tabPaysIntersud)){ $intersudPays = TRUE; }
if($graydon || $intersud){
if($graydonPays || $intersudPays){
if( isset($paysCode) && $paysCode==$kPays['codPays'] ){ $selected = ' selected'; }
print '<option value="'.$kPays['codPays'].'"'.$selected.'>'.$kPays['libPaysEN'].'</option>\n';
}
@ -66,9 +67,8 @@ foreach($tabPaysComplete as $kPays){
</div>
<div id="method">
<?php
if(isset($method)){
require_once './pages/graydon/methodfield.php';
}elseif(!isset($method) && $_SESSION['graydon']['paysCode']){
if(isset($method) || $_SESSION['graydon']['paysCode'])
{
require_once './pages/graydon/methodfield.php';
}
?>