コード例 #1
0
ファイル: mem_postes.php プロジェクト: japila/nomi
        if ($couleur == "#EBEBEB") {
            $couleur = "#FFFFFF";
        } else {
            $couleur = "#EBEBEB";
        }
        $nomTemp = $nomPre;
    }
    $posteNom = stripslashes($per->sgiPoste_nom);
    if ($posteNom == "Directeur du département des génies civil, géologique et des mines") {
        $posteNom = "Département CGM";
    }
    if ($posteNom == "Directeur du département de génie informatique et génie logiciel") {
        $posteNom = "Département GIGL";
    }
    if ($posteNom == "Directeur du département de mathématiques et génie industriel") {
        $posteNom = "Département MAGI";
    }
    print "   <tr bgcolor = '{$couleur}'>";
    print "      <td>" . stripslashes($per->nom) . "</td>";
    print "      <td>" . stripslashes($per->prenom) . "</td>";
    print "      <td>" . stripslashes($per->instance_id) . "</td>";
    print "      <td>" . $per->sgiPoste_no . "</td>";
    print "      <td>" . $posteNom . "</td>";
    print "      <td>" . $per->date_arrivee . "</td>";
    print "      <td>" . $per->date_depart . "</td>";
    print "   </tr>";
}
print "</table>";
print Html3("bas");
?>
	
コード例 #2
0
ファイル: budgets.php プロジェクト: japila/budget
        //print_rhtml($totalCte);
        print "   <tr>\n";
        print '      <th>no cte' . "\n";
        print '      <th>intitul&eacute; de compte</th>' . "\n";
        //print('      <th align="right">montant</th>'. "\n");
        print '      <th>produits</th>' . "\n";
        print '      <th>charges</th>' . "\n";
        print '   </tr>';
        foreach ($totalCte as $key => $value) {
            // if($value != 0) {
            print "   <tr>\n";
            print '      <td>' . $key . '</td>' . "\n";
            print '      <td>' . $listeComptes2[$key] . '</td>' . "\n";
            if (substr($key, 0, 1) == "4") {
                print '      <td align="right">' . number_format($value, 2, ',', ' ') . '</td>' . "\n";
                print "      <td>&nbsp;</td>";
            } else {
                print "      <td>&nbsp;</td>";
                print '      <td align="right">' . number_format($value, 2, ',', ' ') . '</td>' . "\n";
            }
            print '   </tr>';
            //print($key . "-" . $listeComptes2[$key] . " = " . $value . "<br />");
            //print($key . " = " . $value . "<br />");
            //}
        }
        print '<caption> produits = ' . number_format($totalProduits, 2, ',', ' ') . '&nbsp; &nbsp; charges = ' . number_format($totalCharges, 2, ',', ' ') . '</caption>';
        print "</table>\n\n";
        print "<br /><br />";
        print Html3("bas", $css);
        break;
}