コード例 #1
0
ファイル: ajax.php プロジェクト: bsdroot/speervi
function RemplirFormEchange()
{
    $Laechange = getEnregistrement('echange', $_REQUEST['id_echange']);
    if ($Laechange) {
        header('Content-type: application/json');
        ?>
  {
      "date": "<?php 
        echo datefrFrancaise($Laechange->date_echange);
        ?>
" ,
	  "commentaire": "<?php 
        echo utf8_encode($Laechange->commentaire);
        ?>
" ,
	  "type_echange": "<?php 
        echo $Laechange->type_echange;
        ?>
" ,
	  "id_echange": "<?php 
        echo $Laechange->id;
        ?>
"
  }
  <?php 
    } else {
        //echo "id_echange : ".$_REQUEST['id_echange'];
    }
    ?>
  <?php 
    exit(0);
}
コード例 #2
0
ファイル: planning-old.php プロジェクト: bsdroot/speervi
<?php

include 'header.php';
if (isset($_REQUEST["rv"])) {
    $id_rencontre = $_REQUEST["rv"];
    $LaRencontreSel = getEnregistrement('rencontre', $id_rencontre);
    $LaSocieteSel = getEnregistrement('societe', $LaRencontreSel->id_societe);
}
?>
<div id="contenu">
    <div id="liste_planning">
		
		<?php 
$datejour = '';
echo '<ul>';
foreach (GetListeRencontresFutures() as $LaRencontre) {
    $nouveaudatejour = datefrSansHeure($LaRencontre->date_rencontre);
    if ($nouveaudatejour != $datejour) {
        echo '</ul> <div class="jour_planning">' . dateFrancaiseLitterale($LaRencontre->date_rencontre) . '</div><ul>';
        $datejour = $nouveaudatejour;
    }
    if (isset($id_rencontre) && $LaRencontre->id == $id_rencontre) {
        $class_li = 'class="class_li"';
    } else {
        $class_li = '';
    }
    echo '<li ' . $class_li . '><a href="planning.php?rv=' . $LaRencontre->id . '">' . HeurefrFrancaise($LaRencontre->date_rencontre) . ' <br/> ' . NomSocieteDId($LaRencontre->id_societe) . '</a></li>';
}
?>
		</ul>