- Code: Select all
-<?
class actions_calculate_selected {
function handle(&$params){
--- beginning of the function cut for better viewing--
echo "<br>Temps total des sélections : ". sec_to_time($ElapsedTimeSeconds);
echo "<br>Coût forfaitaire total des sélections : ". $Money_forfait ."€";
echo "<br>Coût salarial des sélections : ". $Money_salaire ."€";
echo "<br>Frais d'hébergement total des sélections : ". $Money_sleeping ."€";
//Affichage des noms de chantiers des lignes choisies
echo "<br>Résumé sur les chantiers : ";
while($row = mysql_fetch_row($cout_global))
{
echo "<br> <tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo " <td>$cell</td> ";
echo "</tr>\n";
}
while($row = mysql_fetch_row($materiel_global))
{
echo "<br> <tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo " <td>$cell</td> ";
echo "</tr>\n";
}
It works but it displays on a blank page : I suppose I have to deal with df_display() to solve my problem because I would like to have my results displayed in the xataface standard template. I read that for doing that, we must retunr an array in the df_display but 1) I don't know how to handle by foreach loop with df_display and secondly I would like to shape my results in a table inserted in the xataface standard frame : anyone can help please?
Thanx
