par
Lilou000 » 25 mars 2011, 12:08
Merci mais après plusieurs essais, je n'y arrive toujours pas ...
Voilà mon code pour plus d'infos peut-être ?
Et donc ce que je veux formater en Français c'est <td>".$result->date."</td>
Code : Tout sélectionner
//connection au serveur
$cnx = mysql_connect( "********", ""********", ", ""********", " ) ;
//requête SQL:
$sql = "SELECT *
FROM formulaire_reprise WHERE statut_offre = 'EN COURS' OR statut_offre = 'NON TRAITEE'
ORDER BY id DESC LIMIT $limit_start, $pagination" ;
//exécution de la requête:
$requete = mysql_query( $sql, $cnx ) ;
echo("<table class=\"table1\" cellspacing=\"0\">");
echo("<tr><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\">DATE DE LA DEMANDE</th><th scope=\"col\">ID</th><th scope=\"col\">VENDEUR AFFECTE</th><th scope=\"col\">PRICER</th><th scope=\"col\">MARQUE</th><th scope=\"col\">MODELE</th><th scope=\"col\">VERSION</th><th scope=\"col\">IMMAT</th><th scope=\"col\">MEC</th><th scope=\"col\">ENERGIE</th><th scope=\"col\">TYPE</th><th scope=\"col\">BV</th><th scope=\"col\">NB PORTES</th><th scope=\"col\">KMS</th><th scope=\"col\">COULEUR EXT</th><th scope=\"col\">COULEUR INT</th><th scope=\"col\">OPTIONS</th><th scope=\"col\">ETAT GENERAL</th><th scope=\"col\">1ERE MAIN</th><th scope=\"col\">ORIGINE FRANCE</th><th scope=\"col\">CARNET ENTRETIEN</th><th scope=\"col\">FACTURES</th><th scope=\"col\">VO REPEINT</th><th scope=\"col\">VO ACCIDENTE</th><th scope=\"col\">COURROIE EFFECTUEE</th><th scope=\"col\">DERNIERE REVISION</th><th scope=\"col\">MOTEUR CHANGE</th><th scope=\"col\">EMBRAYAGE CHANGE</th><th scope=\"col\">BV CHANGEE</th><th scope=\"col\">COMPTEUR CHANGE</th><th scope=\"col\">ENGAGEMENT CT</th><th scope=\"col\">COMMENTAIRE</th><th scope=\"col\">OFFRE DE REPRISE</th><th scope=\"col\">STATUT OFFRE</th></tr>");
//affichage des données:
while( $result = mysql_fetch_object( $requete ) )
{
echo(
"<tr onclick=\"this.style.background='#edffa5'\" ><td><a rel=\"prettyPhoto\" href=\"modification2.php?id=".$result->id."&iframe=true&width=60%&height=100%\"><img src=\"ajout-offre-de-reprise.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"defauts2.php?id=".$result->id."&iframe=true&width=60%&height=70%\"><img src=\"affiche_defauts.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"affichage-coordonnees-client.php?id=".$result->id."&iframe=true&width=70%&height=100%\"><img src=\"info-client.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"essai.php?id=".$result->id."&iframe=true&width=60%&height=100%\"><img src=\"envoi-vendeur.png\" /></a></td><td>".$result->date."</td><td>".$result->id."</td><td>".$result->vendeur."</td><td>".$result->pricer."</td><td>".$result->marque."</td><td>".$result->modele."</td><td>".$result->version."</td><td>".$result->immatriculation."</td><td>".$result->date_mec."</td><td>".$result->energie."</td><td>".$result->carrosserie."</td><td>".$result->boite_de_vitesses."</td><td>".$result->nombre_de_portes."</td><td>".$result->kilometrage."</td><td>".$result->couleur_exterieure."</td><td>".$result->couleur_interieure."</td><td>".$result->options."</td><td>".$result->etat_general."</td><td>".$result->premiere_main."</td><td>".$result->origine_france."</td><td>".$result->presence_carnet_entretien."</td><td>".$result->presence_factures."</td><td>".$result->vehicule_deja_repeint."</td><td>".$result->vehicule_deja_accidente."</td><td>".$result->courroie_de_distribution_effectuee."</td><td>".$result->kilometrage_lors_de_la_derniere_revision."</td><td>".$result->moteur_change."</td><td>".$result->embrayage_change."</td><td>".$result->boite_de_vitesse_change."</td><td>".$result->compteur_change."</td><td>".$result->engagement_client_ct."</td><td>".$result->commentaire."</td><td style=\"font-size:14px; font-weight:bold; background-image:url(no.jpg); background-color:#f2ba8e; color:#333333;\">".$result->offre_de_reprise." €</td><td style=\"font-size:14px; font-weight:bold; background-image:url(no.jpg); background-color:#f2ba8e; color:#333333;\">".$result->statut_offre."</td><td><a href=\"#\" onClick=\"confirme('".$result->id."')\" ><img src=\"suppr.png\" /></a></td></tr>\n"
) ;
}
echo("</table>");
Merci mais après plusieurs essais, je n'y arrive toujours pas ...
Voilà mon code pour plus d'infos peut-être ?
Et donc ce que je veux formater en Français c'est <td>".$result->date."</td>
[code]
//connection au serveur
$cnx = mysql_connect( "********", ""********", ", ""********", " ) ;
//requête SQL:
$sql = "SELECT *
FROM formulaire_reprise WHERE statut_offre = 'EN COURS' OR statut_offre = 'NON TRAITEE'
ORDER BY id DESC LIMIT $limit_start, $pagination" ;
//exécution de la requête:
$requete = mysql_query( $sql, $cnx ) ;
echo("<table class=\"table1\" cellspacing=\"0\">");
echo("<tr><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\"></th><th scope=\"col\">DATE DE LA DEMANDE</th><th scope=\"col\">ID</th><th scope=\"col\">VENDEUR AFFECTE</th><th scope=\"col\">PRICER</th><th scope=\"col\">MARQUE</th><th scope=\"col\">MODELE</th><th scope=\"col\">VERSION</th><th scope=\"col\">IMMAT</th><th scope=\"col\">MEC</th><th scope=\"col\">ENERGIE</th><th scope=\"col\">TYPE</th><th scope=\"col\">BV</th><th scope=\"col\">NB PORTES</th><th scope=\"col\">KMS</th><th scope=\"col\">COULEUR EXT</th><th scope=\"col\">COULEUR INT</th><th scope=\"col\">OPTIONS</th><th scope=\"col\">ETAT GENERAL</th><th scope=\"col\">1ERE MAIN</th><th scope=\"col\">ORIGINE FRANCE</th><th scope=\"col\">CARNET ENTRETIEN</th><th scope=\"col\">FACTURES</th><th scope=\"col\">VO REPEINT</th><th scope=\"col\">VO ACCIDENTE</th><th scope=\"col\">COURROIE EFFECTUEE</th><th scope=\"col\">DERNIERE REVISION</th><th scope=\"col\">MOTEUR CHANGE</th><th scope=\"col\">EMBRAYAGE CHANGE</th><th scope=\"col\">BV CHANGEE</th><th scope=\"col\">COMPTEUR CHANGE</th><th scope=\"col\">ENGAGEMENT CT</th><th scope=\"col\">COMMENTAIRE</th><th scope=\"col\">OFFRE DE REPRISE</th><th scope=\"col\">STATUT OFFRE</th></tr>");
//affichage des données:
while( $result = mysql_fetch_object( $requete ) )
{
echo(
"<tr onclick=\"this.style.background='#edffa5'\" ><td><a rel=\"prettyPhoto\" href=\"modification2.php?id=".$result->id."&iframe=true&width=60%&height=100%\"><img src=\"ajout-offre-de-reprise.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"defauts2.php?id=".$result->id."&iframe=true&width=60%&height=70%\"><img src=\"affiche_defauts.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"affichage-coordonnees-client.php?id=".$result->id."&iframe=true&width=70%&height=100%\"><img src=\"info-client.png\" /></a></td><td><a rel=\"prettyPhoto\" href=\"essai.php?id=".$result->id."&iframe=true&width=60%&height=100%\"><img src=\"envoi-vendeur.png\" /></a></td><td>".$result->date."</td><td>".$result->id."</td><td>".$result->vendeur."</td><td>".$result->pricer."</td><td>".$result->marque."</td><td>".$result->modele."</td><td>".$result->version."</td><td>".$result->immatriculation."</td><td>".$result->date_mec."</td><td>".$result->energie."</td><td>".$result->carrosserie."</td><td>".$result->boite_de_vitesses."</td><td>".$result->nombre_de_portes."</td><td>".$result->kilometrage."</td><td>".$result->couleur_exterieure."</td><td>".$result->couleur_interieure."</td><td>".$result->options."</td><td>".$result->etat_general."</td><td>".$result->premiere_main."</td><td>".$result->origine_france."</td><td>".$result->presence_carnet_entretien."</td><td>".$result->presence_factures."</td><td>".$result->vehicule_deja_repeint."</td><td>".$result->vehicule_deja_accidente."</td><td>".$result->courroie_de_distribution_effectuee."</td><td>".$result->kilometrage_lors_de_la_derniere_revision."</td><td>".$result->moteur_change."</td><td>".$result->embrayage_change."</td><td>".$result->boite_de_vitesse_change."</td><td>".$result->compteur_change."</td><td>".$result->engagement_client_ct."</td><td>".$result->commentaire."</td><td style=\"font-size:14px; font-weight:bold; background-image:url(no.jpg); background-color:#f2ba8e; color:#333333;\">".$result->offre_de_reprise." €</td><td style=\"font-size:14px; font-weight:bold; background-image:url(no.jpg); background-color:#f2ba8e; color:#333333;\">".$result->statut_offre."</td><td><a href=\"#\" onClick=\"confirme('".$result->id."')\" ><img src=\"suppr.png\" /></a></td></tr>\n"
) ;
}
echo("</table>"); [/code]