2009-04-07 17:44:17 +00:00
< ? php
2009-07-21 15:08:08 +00:00
if ( ! $_SESSION [ 'connected' ]) die ();
2009-04-07 17:44:17 +00:00
2009-04-16 16:34:13 +00:00
$tabInfo = $_SESSION [ 'tabInfo' ];
2009-04-07 17:44:17 +00:00
$identifier = $_REQUEST [ 'identifier' ];
2009-04-20 12:41:56 +00:00
$pays = $_SESSION [ 'graydon' ][ 'pays' ];
2009-05-11 09:52:19 +00:00
$mode = $_SESSION [ 'graydon' ][ 'mode' ];
2009-04-07 17:44:17 +00:00
2009-04-20 16:32:11 +00:00
require_once 'i18n/cleanchar.php' ;
2009-04-07 17:44:17 +00:00
require_once 'graydon/graydonws.php' ;
2009-05-04 16:58:12 +00:00
require_once 'graydon/pays.php' ;
2009-05-07 14:31:17 +00:00
require_once 'graydon/graydon_log.php' ;
2009-05-04 16:58:12 +00:00
require_once 'dbbootstrap.php' ;
2009-06-08 12:34:04 +00:00
$tabIdentifiers = getCompanyMatchIdentifiers ( $pays );
2009-05-04 16:58:12 +00:00
$firephp -> log ( $tabIdentifiers , 'tabIdentifiers' );
2009-04-20 12:41:56 +00:00
/** Recup des produits de la company **/
2009-06-08 12:34:04 +00:00
$Companyproducts = getCompanyProducts ( $identifier );
$company = $Companyproducts [ 'Company' ];
$products = $Companyproducts [ 'Products' ];
2009-04-20 16:32:11 +00:00
2009-05-07 14:31:17 +00:00
if ( isset ( $company )){
$firephp -> log ( $products , 'products' );
2009-07-21 15:08:08 +00:00
2009-04-20 16:32:11 +00:00
?>
2009-04-20 12:41:56 +00:00
< div id = " center " >
2009-07-21 15:08:08 +00:00
< h1 class = " titre " > IDENTIT & Eacute ; INTERNATIONALE DE L ' ENTREPRISE </ h1 >
< table >
2009-04-20 12:41:56 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Fiche identit<EFBFBD> simplifi<EFBFBD> < br /></ td >
< td >
< ? php
2009-04-07 17:44:17 +00:00
$count = count ( $products );
if ( $count == 1 ){
$products [] = $products ;
}
2009-04-20 16:32:11 +00:00
$noReport = TRUE ;
2009-04-23 06:53:26 +00:00
?>
< u >< b > Acc<EFBFBD> s <EFBFBD> la fiche identit<EFBFBD> approfondie :</ b ></ u >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-23 06:53:26 +00:00
$tabReport = array ();
$tabProductIdentifier = array ();
$countProducts = 0 ;
2009-04-07 17:44:17 +00:00
foreach ( $products as $product ){
2009-04-23 06:53:26 +00:00
//Rapport en mode normal
if ( $product -> ServiceSpeed == 'Normal' && $product -> Type == 'Investigation' && $product -> Level == 4 ){
$tabReport [ $countProducts ] = 'Normal' ;
$tabProducts [ $countProducts ][ 'identifier' ] = $product -> CompanyProductIdentifier ;
$tabProducts [ $countProducts ][ 'DaysFrom' ] = $product -> DaysFrom ;
$tabProducts [ $countProducts ][ 'DaysTo' ] = $product -> DaysTo ;
$countProducts ++ ;
2009-07-21 15:08:08 +00:00
}
2009-05-14 16:44:01 +00:00
//Rapport en mode Superflash
2009-04-23 06:53:26 +00:00
if ( $product -> ServiceSpeed == 'Superflash' && $product -> Type == 'Investigation' && $product -> Level == 4 ){
$tabReport [] = 'Superflash' ;
$tabProducts [ $countProducts ][ 'identifier' ] = $product -> CompanyProductIdentifier ;
$tabProducts [ $countProducts ][ 'DaysFrom' ] = $product -> DaysFrom ;
$tabProducts [ $countProducts ][ 'DaysTo' ] = $product -> DaysTo ;
$countProducts ++ ;
2009-07-21 15:08:08 +00:00
}
2009-04-23 06:53:26 +00:00
//Rapport disponible avec mise <20> jour
if ( $product -> ServiceSpeed == 'ImmediateWithUpdate' && $product -> Type == 'Database' && $product -> Level == 3 ){
2009-05-15 09:47:28 +00:00
require_once 'phpmailer/class.phpmailer.php' ;
2009-07-21 15:08:08 +00:00
$mail = new PHPMailer ();
2009-04-27 15:16:02 +00:00
$mail -> From = " contact@scores-decisions.com " ;
$mail -> FromName = " Serveur SD-13408 " ;
$mail -> Host = " mail.scores-decisions.com " ;
$mail -> Mailer = " smtp " ;
$mail -> Subject = " Rapport International " ;
$body = " ImmediateWithUpdate disponible \n " ;
2009-07-21 15:08:08 +00:00
$body .= " Identifiant : " . $identifier . " " ;
2009-04-27 15:16:02 +00:00
$mail -> MsgHTML ( $body );
$mail -> AddAddress ( EMAIL_SUPPORTDEV , " Support " );
$mail -> Send ();
2009-07-21 15:08:08 +00:00
2009-04-27 15:16:02 +00:00
//Don't display ImmediateWithUpdate
/*
2009-04-20 12:41:56 +00:00
$mimetype = FALSE ;
if ( is_array ( $product -> MimeTypes -> MimeType )){
if ( in_array ( 'xml' , $product -> MimeTypes -> MimeType )){ $mimetype = TRUE ;}
} else {
if ( $product -> MimeTypes -> MimeType == 'xml' ){ $mimetype = TRUE ;}
}
if ( $mimetype == TRUE ){
2009-04-23 06:53:26 +00:00
$tabReport [] = 'ImmediateWithUpdate' ;
$tabProducts [ $countProducts ][ 'identifier' ] = $product -> CompanyProductIdentifier ;
$tabProducts [ $countProducts ][ 'DaysFrom' ] = $product -> DaysFrom ;
$tabProducts [ $countProducts ][ 'DaysTo' ] = $product -> DaysTo ;
$countProducts ++ ;
2009-04-20 12:41:56 +00:00
}
2009-04-27 15:16:02 +00:00
*/
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
}
2009-04-23 06:53:26 +00:00
//Rapport disponible en ligne
if ( $product -> ServiceSpeed == 'Immediate' && $product -> Type == 'Database' && $product -> Level == 3 ){
$mimetype = FALSE ;
if ( is_array ( $product -> MimeTypes -> MimeType )){
if ( in_array ( 'xml' , $product -> MimeTypes -> MimeType )){ $mimetype = TRUE ;}
2009-07-21 15:08:08 +00:00
else {
2009-04-27 15:16:02 +00:00
require_once 'phpmailer/class.phpmailer.php' ;
2009-07-21 15:08:08 +00:00
$mail = new PHPMailer ();
2009-04-27 15:16:02 +00:00
$mail -> From = " contact@scores-decisions.com " ;
$mail -> FromName = " Serveur SD-13408 " ;
$mail -> Host = " mail.scores-decisions.com " ;
$mail -> Mailer = " smtp " ;
$mail -> Subject = " Rapport International " ;
2009-06-03 09:36:53 +00:00
$body = " Rapport international disponible dans un autre format que le XML \n " ;
2009-07-21 15:08:08 +00:00
$body .= " Identifiant : " . $identifier . " " ;
2009-04-27 15:16:02 +00:00
$mail -> MsgHTML ( $body );
$mail -> AddAddress ( EMAIL_SUPPORTDEV , " Support " );
$mail -> Send ();
}
2009-04-23 06:53:26 +00:00
} else {
if ( $product -> MimeTypes -> MimeType == 'xml' ){ $mimetype = TRUE ;}
2009-04-27 15:16:02 +00:00
else {
require_once 'phpmailer/class.phpmailer.php' ;
2009-07-21 15:08:08 +00:00
$mail = new PHPMailer ();
2009-04-27 15:16:02 +00:00
$mail -> From = " contact@scores-decisions.com " ;
$mail -> FromName = " Serveur SD-13408 " ;
$mail -> Host = " mail.scores-decisions.com " ;
$mail -> Mailer = " smtp " ;
$mail -> Subject = " Rapport International " ;
2009-06-03 09:36:53 +00:00
$body = " Rapport international disponible dans un autre format que le XML \n " ;
2009-07-21 15:08:08 +00:00
$body .= " Identifiant : " . $identifier . " " ;
2009-04-27 15:16:02 +00:00
$mail -> MsgHTML ( $body );
$mail -> AddAddress ( EMAIL_SUPPORTDEV , " Support " );
$mail -> Send ();
}
2009-04-23 06:53:26 +00:00
}
if ( $mimetype == TRUE ){
$tabReport [] = 'Immediate' ;
$tabProducts [ $countProducts ][ 'identifier' ] = $product -> CompanyProductIdentifier ;
$countProducts ++ ;
}
2009-07-21 15:08:08 +00:00
}
2009-04-07 17:44:17 +00:00
}
2009-07-21 15:08:08 +00:00
$firephp -> log ( $tabProducts , 'tabProducts' );
2009-04-23 06:53:26 +00:00
if ( count ( $tabReport ) == 0 ){
2009-07-21 15:08:08 +00:00
?>
2009-04-23 06:53:26 +00:00
( Aucun rapport disponible pour cette soci<EFBFBD> t<EFBFBD> )
2009-06-03 09:36:53 +00:00
< ? php
2009-10-13 16:34:46 +00:00
}
else
{
2009-05-12 10:01:34 +00:00
//R<> cup<75> ration des tarifs propre au pays
2009-05-13 16:05:50 +00:00
setDbConn ( 'graydon' );
2009-05-12 10:01:34 +00:00
$q = Doctrine_Query :: create ( $conn )
-> from ( 'Price p' )
-> leftJoin ( 'p.Country c' )
2009-05-13 16:05:50 +00:00
-> where ( 'c.graydon_country = ?' , $pays );
2009-07-21 15:08:08 +00:00
2009-05-12 10:01:34 +00:00
$tabPaysPrix = $q -> fetchArray ();
$firephp -> log ( $tabPaysPrix , 'tableau' );
2009-10-13 16:34:46 +00:00
$href = array ();
2009-05-14 16:44:01 +00:00
if ( in_array ( 'Normal' , $tabReport )){
$key = array_search ( 'Normal' , $tabReport );
2009-04-23 06:53:26 +00:00
$pidentifier = $tabProducts [ $key ][ 'identifier' ];
$daysFrom = $tabProducts [ $key ][ 'DaysFrom' ];
$daysTo = $tabProducts [ $key ][ 'DaysTo' ];
2009-06-03 09:36:53 +00:00
//V<> rification des droits
if ( preg_match ( '/international/i' , $_SESSION [ 'tabInfo' ][ 'droits' ])){
2009-10-13 16:34:46 +00:00
$href [ 'normal' ] = './?page=international_enquete&speed=normal&identifier=' . $identifier . '&pidentifier=' . $pidentifier ;
2009-06-03 09:36:53 +00:00
} else {
2009-10-13 16:34:46 +00:00
$href [ 'normal' ] = '#' ;
}
}
if ( isset ( $href [ 'normal' ]))
{
if ( $href [ 'normal' ] == '#' ){
2009-06-03 09:36:53 +00:00
print '<br/><br/><a href="#" title="Vous n\'avez pas les droits n<> cessaires pour commander un rapport international">Commander le rapport en mode normal</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'normal' ] . ' €)</i>' ;
2009-10-13 16:34:46 +00:00
} else {
print '<br/><br/><a href="' . $href [ 'normal' ] . '">Commander le rapport en mode normal</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'normal' ] . ' €)</i>' ;
//print '<br/><br/><a href="#" title="Fonctionnalit<69> s d<> sactiv<69> es">Commander le rapport en mode normal</a><br/><i>(D<> lais : '.$daysFrom.' <20> '.$daysTo.' Jours, Tarif : '.$tabPaysPrix[0]['normal'].' €)</i>';
2009-06-03 09:36:53 +00:00
}
2009-04-23 06:53:26 +00:00
}
2009-10-13 16:34:46 +00:00
else
{
print '<br/><br/><a href="#" title="Type de commande indisponible">Rapport en mode normal indisponible</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'normal' ] . ' €)</i>' ;
}
2009-05-14 16:44:01 +00:00
//Affichage des diff<66> rents rapports dans l'ordre
if ( in_array ( 'Superflash' , $tabReport )){
$key = array_search ( 'Superflash' , $tabReport );
2009-04-23 06:53:26 +00:00
$pidentifier = $tabProducts [ $key ][ 'identifier' ];
$daysFrom = $tabProducts [ $key ][ 'DaysFrom' ];
$daysTo = $tabProducts [ $key ][ 'DaysTo' ];
2009-06-03 09:36:53 +00:00
//V<> rification des droits
if ( preg_match ( '/international/i' , $_SESSION [ 'tabInfo' ][ 'droits' ])){
2009-10-13 16:34:46 +00:00
$href [ 'superflash' ] = './?page=international_enquete&speed=superflash&identifier=' . $identifier . '&pidentifier=' . $pidentifier ;
2009-06-03 09:36:53 +00:00
} else {
2009-10-13 16:34:46 +00:00
$href [ 'superflash' ] = '#' ;
}
}
if ( isset ( $href [ 'superflash' ]))
{
if ( $href [ 'normal' ] == '#' ){
2009-06-03 09:36:53 +00:00
print '<br/><br/><a href="#" title="Vous n\'avez pas les droits n<> cessaires pour commander un rapport international">Commander le rapport en mode rapide</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'superflash' ] . ' €)</i>' ;
2009-10-13 16:34:46 +00:00
} else {
print '<br/><br/><a href="' . $href [ 'superflash' ] . '">Commander le rapport en mode rapide</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'superflash' ] . ' €)</i>' ;
//print '<br/><br/><a href="#" title="Fonctionnalit<69> s d<> sactiv<69> es">Commander le rapport en mode rapide</a><br/><i>(D<> lais : '.$daysFrom.' <20> '.$daysTo.' Jours, Tarif : '.$tabPaysPrix[0]['superflash'].' €)</i>';
2009-06-03 09:36:53 +00:00
}
2009-04-23 06:53:26 +00:00
}
2009-10-13 16:34:46 +00:00
else
{
print '<br/><br/><a href="#" title="Type de commande indisponible">Rapport imm<6D> diat indisponible</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'normal' ] . ' €)</i>' ;
}
2009-04-23 06:53:26 +00:00
if ( in_array ( 'Immediate' , $tabReport )){
$key = array_search ( 'Immediate' , $tabReport );
$pidentifier = $tabProducts [ $key ][ 'identifier' ];
2009-06-03 09:36:53 +00:00
//V<> rification des droits
if ( preg_match ( '/international/i' , $_SESSION [ 'tabInfo' ][ 'droits' ])){
2009-10-13 16:34:46 +00:00
$href [ 'immediate' ] = './?page=international_identitec&identifier=' . $identifier . '&pidentifier=' . $pidentifier ;
2009-06-03 09:36:53 +00:00
} else {
2009-10-13 16:34:46 +00:00
$href [ 'immediate' ] = '#' ;
}
}
if ( isset ( $href [ 'immediate' ]))
{
if ( $href [ 'normal' ] == '#' ){
2009-06-03 09:36:53 +00:00
print '<br/><br/><a href="#" title="Vous n\'avez pas les droits n<> cessaires pour commander un rapport international">Consutler le rapport disponible</a><br/><i>(D<> lais : Imm<6D> diat, Tarif : ' . $tabPaysPrix [ 0 ][ 'immediate' ] . ' €)</i>' ;
2009-10-13 16:34:46 +00:00
} else {
print '<br/><br/><a href="' . $href [ 'immediate' ] . '">Consutler le rapport disponible</a><br/><i>(D<> lais : Imm<6D> diat, Tarif : ' . $tabPaysPrix [ 0 ][ 'immediate' ] . ' €)</i>' ;
2009-06-03 09:36:53 +00:00
}
2009-04-23 06:53:26 +00:00
}
2009-10-13 16:34:46 +00:00
else
{
print '<br/><br/><a href="#" title="Type de commande indisponible">Rapport imm<6D> diat indisponible</a><br/><i>(D<> lais : ' . $daysFrom . ' <20> ' . $daysTo . ' Jours, Tarif : ' . $tabPaysPrix [ 0 ][ 'normal' ] . ' €)</i>' ;
}
2009-07-21 15:08:08 +00:00
}
2009-06-03 09:36:53 +00:00
?>
2009-04-07 17:44:17 +00:00
</ td >
</ tr >
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-07 17:44:17 +00:00
$count = count ( $company -> CompanyIdentifiers -> CompanyIdentifier );
if ( $count > 1 ){
$identifiers = $company -> CompanyIdentifiers -> CompanyIdentifier ;
} elseif ( $count == 1 ){
$identifiers [] = $company -> CompanyIdentifiers -> CompanyIdentifier ;
}
foreach ( $identifiers as $identifier ){
if ( $identifier -> Type != 'Internal' ){
2009-07-21 15:08:08 +00:00
?>
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-07 17:44:17 +00:00
$identifierDescription = FALSE ;
2009-06-10 16:14:11 +00:00
if ( is_array ( $tabIdentifiers )){
2009-04-07 17:44:17 +00:00
foreach ( $tabIdentifiers as $tabIdentifier ){
2009-05-06 17:04:22 +00:00
if ( $tabIdentifier -> Type == $identifier -> Type ){
print $tabIdentifier -> Description ;
2009-04-07 17:44:17 +00:00
$identifierDescription = TRUE ;
}
}
2009-06-03 09:36:53 +00:00
}
2009-07-21 15:08:08 +00:00
if ( $identifierDescription == FALSE ){
2009-04-07 17:44:17 +00:00
print $identifier -> Type ;
}
//@TODO : Tester si la condition <20> bien <20> t<EFBFBD> remplie
?>
</ td >
< td width = " 350 " class = " StyleInfoData " >
2009-05-12 16:57:43 +00:00
< ? php print " 1 " . $identifier -> Identifier ; ?> </td>
2009-07-21 15:08:08 +00:00
</ tr >
2009-04-07 17:44:17 +00:00
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
2009-07-21 15:08:08 +00:00
</ tr >
< ? php
2009-04-07 17:44:17 +00:00
}
}
?>
2009-04-20 12:41:56 +00:00
</ table >
< h2 > Raison sociale et coordonn<EFBFBD> es : </ h2 >
< table >
2009-10-13 16:34:46 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Raison Sociale </ td >
< td width = " 350 " class = " StyleInfoData " >
< ? php
if ( $company -> Name != '' ){
$name = $company -> Name ;
} else {
$name = $_REQUEST [ 'name' ];
}
$_SESSION [ 'graydon' ][ 'name' ] = $name ;
print cleanutf8 ( $name );
?>
</ td >
</ tr >
< tr >
2009-04-07 17:44:17 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Adresse Compl<EFBFBD> te </ td >
2009-04-20 16:32:11 +00:00
< td width = " 350 " class = " StyleInfoData " >< ? php print cleanutf8 ( $company -> RegisteredAddress -> EntireAddress ); ?> </td>
2009-04-07 17:44:17 +00:00
</ tr >
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Adresse </ td >
2009-04-20 16:32:11 +00:00
< td width = " 350 " class = " StyleInfoData " >< ? php print cleanutf8 ( $company -> RegisteredAddress -> Building . ', ' . $company -> RegisteredAddress -> Street ); ?> </td>
2009-04-07 17:44:17 +00:00
</ tr >
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Code Postal </ td >
< td width = " 350 " class = " StyleInfoData " >< ? php print $company -> RegisteredAddress -> PostCode ; ?> </td>
</ tr >
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Ville </ td >
2009-04-20 16:32:11 +00:00
< td width = " 350 " class = " StyleInfoData " >< ? php print cleanutf8 ( $company -> RegisteredAddress -> City ); ?> </td>
2009-04-07 17:44:17 +00:00
</ tr >
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Pays </ td >
< td width = " 350 " class = " StyleInfoData " >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-07 17:44:17 +00:00
if ( isset ( $company -> RegisteredAddress -> Country )){
2009-07-21 15:08:08 +00:00
print $company -> RegisteredAddress -> Country ;
2009-04-07 17:44:17 +00:00
} else {
print $pays ;
}
?>
</ td >
</ tr >
2009-07-21 15:08:08 +00:00
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > T<EFBFBD> l<EFBFBD> phone </ td >
< td width = " 350 " class = " StyleInfoData " >< ? php print $company -> Telephone ; ?> </td>
</ tr >
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
2009-07-21 15:08:08 +00:00
</ table >
2009-04-20 12:41:56 +00:00
2009-07-21 15:08:08 +00:00
< h2 > Activit<EFBFBD> ( s ) de l ' entreprise : </ h2 >
< table >
< ? php
2009-04-07 17:44:17 +00:00
$count = count ( $company -> Activites -> Activity );
if ( $count > 1 ){
$activites = $company -> Activites -> Activity ;
} elseif ( $count == 1 ){
$activites [] = $company -> Activites -> Activity ;
}
if ( $count > 0 ){
foreach ( $activites as $activity ){
2009-07-21 15:08:08 +00:00
?>
2009-04-07 17:44:17 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Code < ? php print $activity -> Type ; ?> </td>
2009-04-20 16:32:11 +00:00
< td width = " 350 " class = " StyleInfoData " >< ? php print $activity -> Code ; ?> - <?php print cleanutf8($activity->Description);?></td>
2009-04-07 17:44:17 +00:00
</ tr >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-07 17:44:17 +00:00
}
} else {
?>
2009-04-20 12:41:56 +00:00
< tr >
2009-04-07 17:44:17 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td colspan = " 2 " class = " StyleInfoData " > Aucune information disponible </ td >
</ tr >
2009-07-21 15:08:08 +00:00
< ? php
2009-04-07 17:44:17 +00:00
}
?>
< tr >
< td colspan = " 3 " >& nbsp ; </ td >
</ tr >
</ table >
2009-04-24 09:48:19 +00:00
2009-07-21 15:08:08 +00:00
< h2 > G<EFBFBD> olocalisation : </ h2 >
< ? php
2009-04-24 09:48:19 +00:00
/*
$adresse = $company -> RegisteredAddress -> Building ;
$codePostal = $company -> RegisteredAddress -> PostCode ;
$ville = $company -> RegisteredAddress -> City ;
*/
2009-07-21 15:08:08 +00:00
2009-05-04 16:58:12 +00:00
/*
try {
2009-07-21 15:08:08 +00:00
$geoCodeResult = $client -> geoCode ( '19 rue de saulnier' , '75009' , 'paris' , 'france' );
2009-05-04 16:58:12 +00:00
$firephp -> log ( $geoCodeResult , 'geocode' );
} catch ( SoapFault $fault ){
print '<pre>' ;
print $client -> __getLastResponse ();
print '</pre>' ;
}
*/
2009-07-21 15:08:08 +00:00
2009-05-04 16:58:12 +00:00
/*
* R<EFBFBD> cup<EFBFBD> ration du geoCode
* La page est charg<EFBFBD> alors par javascript on load en ajax
* Chargement de la carte ( nouvelle page loadMap . php ? ? )
* loadMap => On v<EFBFBD> rifie la session
* => On envoi le geocode ? ? les markers suppl<EFBFBD> mentaires
*/
2009-07-21 15:08:08 +00:00
2009-04-24 09:48:19 +00:00
?>
2009-07-21 15:08:08 +00:00
< ? php
2009-04-20 12:41:56 +00:00
} else {
2009-07-21 15:08:08 +00:00
?>
2009-04-20 12:41:56 +00:00
< table >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td colspan = " 2 " class = " StyleInfoData " > Aucune information disponible </ td >
</ tr >
</ table >
< ? php
2009-07-21 15:08:08 +00:00
}
2009-04-07 17:44:17 +00:00
?>
2009-04-20 12:41:56 +00:00
</ div >