alpha_full/pages/informations/kisn.php
2026-04-06 22:58:51 +02:00

122 lines
6.5 KiB
PHP
Executable File

<style>
.map-responsive {
position:relative;
margin:5px;
}
.map-responsive iframe {
left:0;
top:0;
bottom:0;
position:relative;
padding-top:5px;
}
</style>
<?php
include_once ($includePath. "/req/13-init.contactMsgList.php");
if ( $affMContext === true ) echo '<div id="tablePages"' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'tablePages\', 1, \'contact\', 8, 9, event );" >';
else echo '<div id="tablePages" >';
if ( $affMContext === true ) echo '<div class="tableInfos"' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'tableInfos\', 1, \'contact\', 8, 9, event );" >';
else echo '<div class="tableInfos" >';
// ---------------------------------------------------
// Titre de la page
// ---------------------------------------------------
// msg titre ==> ksm
// ---------------------------------------------------
echo '<h1 class="titresInfos" >';
dynamiqItemImage (0,0,'titresInfos', 'span','-','menu', 17, 'icones','-','-');
echo '</h1>';
// -------------- image/ page contenu inculdée
if ( $affMContext === true ) echo '<div class="msgInfos"' .$mouseOverMenuContext. ' onContextMenu="return mContextuel( this, \'msgInfos\', \'contact\', 2, event );">';
else echo '<div class="msgInfos" >';
include ("./Publication/information/menuKisn_" .$lg. ".php");
echo '</div>';
// -------------- raison sociale
if($contactAfficher[0]==1 || $contactAfficher[9]==1) {
if ( $affMContext === true ) echo '<div class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 9, event );" >';
else echo '<div class="libInfosCell">';
if($contactAfficher[0]==1) dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 0, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'champsInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 9, '-');
echo '</div>';
}
// -------------- adresse
if($contactAfficher[3]==1 || $contactAfficher[12]==1) {
if ( $affMContext === true ) echo '<div class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 12, event );" >';
else echo '<div class="libInfosCell" >';
// -------------- addresse
if($contactAfficher[3]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 3, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 12, '-');
// -------------- cp
if($contactAfficher[5]==1 || $contactAfficher[14]==1) {
if($contactAfficher[5]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 5, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 14, '-');
}
// -------------- ville
if($contactAfficher[4]==1 || $contactAfficher[13]==1) {
if($contactAfficher[4]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 4, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 13, '-');
}
// -------------- pays
if($contactAfficher[6]==1 || $contactAfficher[15]==1) {
if($contactAfficher[6]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 6, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 15, '-');
}
echo '</div>';
}
// -------------- tel
if($contactAfficher[7]==1 || $contactAfficher[16]==1) {
if ( $affMContext === true ) echo '<div class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 16, event );" >';
else echo '<div class="libInfosCell">';
if($contactAfficher[7]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 7, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'champsInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 16, '-');
echo '</div>';
}
// -------------- siret
if($contactAfficher[2]==1 || $contactAfficher[11]==1) {
if ( $affMContext === true ) echo '<div class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 11, event );" >';
else echo '<div class="libInfosCell" >';
if($contactAfficher[2]==1)dynamiqItemMessage( 0, 0, 'libInfosCell', '-', 'span', 'libInfos', '-action-', 'contact', 2, '-');
if($contactAfficher[9]==1) dynamiqItemMessage( 0, 0, 'champsInfosCell', '-', 'span', 'champsInfos', '-action-', 'contact', 11, '-');
echo '</div>';
}
// -------------- map
$typeOfCommercant=1;
$adresse='';
include ("./admin/options/commercant/commercant.reqSelect.php");
$continue=1;
for ($a=1; $a<count($idContTab); $a++) {
if ($contactMsg[$a]=="-") $continue=0;
if ($idContTab[$a]==192) $adresse=$adresse.str_replace(" ", "+", $contactMsg[$a]);
if ($idContTab[$a]==193) $adresse=$adresse. "+".str_replace(" ", "+", $contactMsg[$a]);
if ($idContTab[$a]==194) $adresse=$adresse. "+".str_replace(" ", "+", strip_tags(trim($contactMsg[$a]))). '';
if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .= monDebug(1,['contactId' => $idContTab[$a], 'msgInfos' => $contactMsg[$a] ],'kisn.php');
}
$test=false;
$test=strpos($adresse,"a compléter");
if ($test!==false) {$adresse="";}
$test=false;
$test=strpos($adresse,"Town");
if ($test!==false) {$adresse="";}
if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .= monDebug(1,['adresse' => $adresse ],'kisn.php');
if ($adresse!="" && $adresse!="-" && !empty($adresse) && $adresse!="-+-+-" && $continue=1 ) {
echo '<div class="map-responsive" >';
// https://www.embed-map.com/
echo '<iframe src="https://www.google.com/maps/embed/v1/place?q=' .$adresse. '&key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>';
echo '</div>';
}
echo '</div>';
echo '</div>'; //tablePages
?>