par
webmaster_ism_infomaster » 30 avr. 2006, 18:41
<?php require_once('Connections/shop.php'); ?>
<?php
mysql_select_db($database_shop, $shop);
$query_rsTheme = "SELECT * FROM rubriques ORDER BY theme ASC";
$rsTheme = mysql_query($query_rsTheme, $shop) or die(mysql_error());
$row_rsTheme = mysql_fetch_assoc($rsTheme);
$totalRows_rsTheme = mysql_num_rows($rsTheme);
$coltitre_rsCatalogue = "meheri";
if (isset($_GET['VARtitre'])) {
$coltitre_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtitre'] : addslashes($_GET['VARtitre']);
}
$coltheme_rsCatalogue = "1";
if (isset($_GET['VARtheme'])) {
$coltheme_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtheme'] : addslashes($_GET['VARtheme']);
}
mysql_select_db($database_shop, $shop);
$query_rsCatalogue = sprintf("SELECT rubriques.theme, articles.reference, articles.titre, articles.auteur, articles.prix FROM articles, rubriques WHERE rubriqueID=%s AND rubriques.ID=articles.rubriqueID AND titre LIKE '%%%s%%'", $coltheme_rsCatalogue,$coltitre_rsCatalogue);
$rsCatalogue = mysql_query($query_rsCatalogue, $shop) or die(mysql_error());
$row_rsCatalogue = mysql_fetch_assoc($rsCatalogue);
$totalRows_rsCatalogue = mysql_num_rows($rsCatalogue);
$colreference_rsFiche = "AUTOJMD1";
if (isset($_GET['reference'])) {
$colreference_rsFiche = (get_magic_quotes_gpc()) ? $_GET['reference'] : addslashes($_GET['reference']);
}
mysql_select_db($database_shop, $shop);
$query_rsFiche = sprintf("SELECT articles.reference, articles.titre, articles.auteur, articles.description, articles.prix, articles.photo, rubriques.theme FROM articles, rubriques WHERE rubriques.ID=articles.rubriqueID AND articles.reference='%s'", $colreference_rsFiche);
$rsFiche = mysql_query($query_rsFiche, $shop) or die(mysql_error());
$row_rsFiche = mysql_fetch_assoc($rsFiche);
$totalRows_rsFiche = mysql_num_rows($rsFiche);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0048)http://css.alsacreations.com/modeles/modele5.htm -->
<HTML lang=fr xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Achat en ligne de Design et d'application web</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>
BODY {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 0.8em; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
#header {
HEIGHT: 100%; BACKGROUND-COLOR: #666666}
#conteneur {
LEFT: 50%; MARGIN-LEFT: -375px; WIDTH: 750px; POSITION: absolute; BACKGROUND-COLOR: #CCCCCC}
#centre {
MARGIN-LEFT: 150px; MARGIN-RIGHT: 150px; BACKGROUND-COLOR: #999999}
#gauche {
LEFT: 0px; WIDTH: 150px; POSITION: absolute
}
#droite {
RIGHT: 0px; WIDTH: 150px; POSITION: absolute
}
#pied {
HEIGHT: 100%; BACKGROUND-COLOR: #666666}
.menugauche {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.menugauche LI {
MARGIN-BOTTOM: 5px
}
.menugauche A {
MARGIN: 0px 2px; COLOR: #000000; TEXT-DECORATION: underline
}
.menugauche A:hover {
TEXT-DECORATION: none
}
.menudroit {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.menudroit LI {
MARGIN-BOTTOM: 5px
}
.menudroit A {
MARGIN: 0px 2px; COLOR: #000000; TEXT-DECORATION: underline
}
.menudroit A:hover {
TEXT-DECORATION: none
}
P {
MARGIN: 0px 0px 10px
}
.Style3 {color: #0099FF; font-weight: bold; }
.Style4 {color: #0000FF}
.Style6 {
color: #666666;
font-weight: bold;
}
</STYLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV id=conteneur>
<DIV id=header>
<div align="left"><em><strong><img src="images/baniere.jpg" width="750" height="65"></strong></em></div>
</DIV>
<DIV id=gauche>
<form name="form1" method="post" action="">
<label>
<div align="center"><strong>E-mail
</strong>
<input name="login" type="text" id="login">
<strong>Pass
<input name="pass" type="password" id="pass">
<input type="submit" name="Submit" value="Connection">
</strong> </div>
</label>
<br><div align="center"><strong>Incription <a href="#">içi </a></strong> </div>
</form>
<div align="center"><strong>Menu</strong></div>
<div align="center"><span class="Style3"><a href="index.php">Accueil</a></span><br>
<span class="Style3"><strong><a href="#">KitGraphik</a></strong></span></div>
</DIV>
<DIV id=droite>
<form name="form2" method="get" action="rechercher.php">
<label>
<div align="center"><strong>Rechercher
</strong>
<input name="VARtitre" type="text" id="VARtitre">
<input type="submit" name="Submit2" value="Rechercher">
</div>
</label>
</form>
<form name="form4" method="post" action="">
<P align="center"><strong>Votre caddy:<img src="images/panier.png" alt="h" width="14" height="12"> <br>
<span class="Style4"><?php echo $row_rsFiche['prix']; ?>€<br>
</span>
<select name="select">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
articles</strong></P>
<P align="center"><strong>Votre compte</strong><br>
<span class="Style6">[Aucun]</span><br><br>
<input type="submit" name="Submit4" value="Vider">
<input type="submit" name="Submit5" value="Acheter">
</P>
</form>
<P align="center"> </P>
<P align="center"> </P>
</DIV>
<DIV id=centre>
<p align="center"><strong>KitGraphik</strong></p>
<p align="center"> </p>
<form name="form3" method="get" action="rechercher.php">
<label> Sélectionnez
<select name="VARtheme" id="VARtheme">
<?php
do {
?>
<option value="<?php echo $row_rsTheme['ID']?>"><?php echo $row_rsTheme['theme']?></option>
<?php
} while ($row_rsTheme = mysql_fetch_assoc($rsTheme));
$rows = mysql_num_rows($rsTheme);
if($rows > 0) {
mysql_data_seek($rsTheme, 0);
$row_rsTheme = mysql_fetch_assoc($rsTheme);
}
?>
</select>
</label>
<label>ou saisissez un titre
<input name="VARtitre" type="text" id="VARtitre" size="10">
</label>
<input type="submit" name="Submit3" value="Go">
</form>
<table width="100%" border="0">
<!--DWLayoutTable-->
<tr>
<td rowspan="6"><div align="center"><img src="./images/<?php echo $row_rsFiche['photo']; ?>"></div></td>
<td width="107"><div align="right"><strong>Titre:</strong></div></td>
<td width="272"><?php echo $row_rsFiche['titre']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Auteur:</strong></div></td>
<td><?php echo $row_rsFiche['auteur']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Thème:</strong></div></td>
<td><?php echo $row_rsFiche['theme']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Descriptif</strong>:</div></td>
<td><?php echo $row_rsFiche['description']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Prix:</strong></div></td>
<td><?php echo $row_rsFiche['prix']; ?>€</td>
</tr>
<tr>
<td height="16" colspan="2" valign="top"><div align="center"><a href="#">L'article à bien été rajouté à votre caddy </a> </div></td>
</tr>
</table>
<p align="center"> </p>
<p><BR>
</p>
</DIV>
<DIV id=pied>
<div align="center">©2005-2006 Ism-Infomaster.com | Tous droits réservés</div>
</DIV>
</DIV>
</BODY></HTML>
<?php
mysql_free_result($rsTheme);
mysql_free_result($rsCatalogue);
mysql_free_result($rsFiche);
?>
j ai un réelle pb quelque par je n arrive pa a trouvé le systeme pour affiché le total de la somme
Votre caddy:<img src="images/panier.png" alt="h" width="14" height="12"> <br>
<span class="Style4"><?php echo $row_rsFiche['prix']; ?>€<br>
</span>
<select name="select">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
articles
Comment je peut faire?
[php]<?php require_once('Connections/shop.php'); ?>
<?php
mysql_select_db($database_shop, $shop);
$query_rsTheme = "SELECT * FROM rubriques ORDER BY theme ASC";
$rsTheme = mysql_query($query_rsTheme, $shop) or die(mysql_error());
$row_rsTheme = mysql_fetch_assoc($rsTheme);
$totalRows_rsTheme = mysql_num_rows($rsTheme);
$coltitre_rsCatalogue = "meheri";
if (isset($_GET['VARtitre'])) {
$coltitre_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtitre'] : addslashes($_GET['VARtitre']);
}
$coltheme_rsCatalogue = "1";
if (isset($_GET['VARtheme'])) {
$coltheme_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtheme'] : addslashes($_GET['VARtheme']);
}
mysql_select_db($database_shop, $shop);
$query_rsCatalogue = sprintf("SELECT rubriques.theme, articles.reference, articles.titre, articles.auteur, articles.prix FROM articles, rubriques WHERE rubriqueID=%s AND rubriques.ID=articles.rubriqueID AND titre LIKE '%%%s%%'", $coltheme_rsCatalogue,$coltitre_rsCatalogue);
$rsCatalogue = mysql_query($query_rsCatalogue, $shop) or die(mysql_error());
$row_rsCatalogue = mysql_fetch_assoc($rsCatalogue);
$totalRows_rsCatalogue = mysql_num_rows($rsCatalogue);
$colreference_rsFiche = "AUTOJMD1";
if (isset($_GET['reference'])) {
$colreference_rsFiche = (get_magic_quotes_gpc()) ? $_GET['reference'] : addslashes($_GET['reference']);
}
mysql_select_db($database_shop, $shop);
$query_rsFiche = sprintf("SELECT articles.reference, articles.titre, articles.auteur, articles.description, articles.prix, articles.photo, rubriques.theme FROM articles, rubriques WHERE rubriques.ID=articles.rubriqueID AND articles.reference='%s'", $colreference_rsFiche);
$rsFiche = mysql_query($query_rsFiche, $shop) or die(mysql_error());
$row_rsFiche = mysql_fetch_assoc($rsFiche);
$totalRows_rsFiche = mysql_num_rows($rsFiche);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0048)http://css.alsacreations.com/modeles/modele5.htm -->
<HTML lang=fr xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Achat en ligne de Design et d'application web</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>
BODY {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 0.8em; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
#header {
HEIGHT: 100%; BACKGROUND-COLOR: #666666}
#conteneur {
LEFT: 50%; MARGIN-LEFT: -375px; WIDTH: 750px; POSITION: absolute; BACKGROUND-COLOR: #CCCCCC}
#centre {
MARGIN-LEFT: 150px; MARGIN-RIGHT: 150px; BACKGROUND-COLOR: #999999}
#gauche {
LEFT: 0px; WIDTH: 150px; POSITION: absolute
}
#droite {
RIGHT: 0px; WIDTH: 150px; POSITION: absolute
}
#pied {
HEIGHT: 100%; BACKGROUND-COLOR: #666666}
.menugauche {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.menugauche LI {
MARGIN-BOTTOM: 5px
}
.menugauche A {
MARGIN: 0px 2px; COLOR: #000000; TEXT-DECORATION: underline
}
.menugauche A:hover {
TEXT-DECORATION: none
}
.menudroit {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
.menudroit LI {
MARGIN-BOTTOM: 5px
}
.menudroit A {
MARGIN: 0px 2px; COLOR: #000000; TEXT-DECORATION: underline
}
.menudroit A:hover {
TEXT-DECORATION: none
}
P {
MARGIN: 0px 0px 10px
}
.Style3 {color: #0099FF; font-weight: bold; }
.Style4 {color: #0000FF}
.Style6 {
color: #666666;
font-weight: bold;
}
</STYLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV id=conteneur>
<DIV id=header>
<div align="left"><em><strong><img src="images/baniere.jpg" width="750" height="65"></strong></em></div>
</DIV>
<DIV id=gauche>
<form name="form1" method="post" action="">
<label>
<div align="center"><strong>E-mail
</strong>
<input name="login" type="text" id="login">
<strong>Pass
<input name="pass" type="password" id="pass">
<input type="submit" name="Submit" value="Connection">
</strong> </div>
</label>
<br><div align="center"><strong>Incription <a href="#">içi </a></strong> </div>
</form>
<div align="center"><strong>Menu</strong></div>
<div align="center"><span class="Style3"><a href="index.php">Accueil</a></span><br>
<span class="Style3"><strong><a href="#">KitGraphik</a></strong></span></div>
</DIV>
<DIV id=droite>
<form name="form2" method="get" action="rechercher.php">
<label>
<div align="center"><strong>Rechercher
</strong>
<input name="VARtitre" type="text" id="VARtitre">
<input type="submit" name="Submit2" value="Rechercher">
</div>
</label>
</form>
<form name="form4" method="post" action="">
<P align="center"><strong>Votre caddy:<img src="images/panier.png" alt="h" width="14" height="12"> <br>
<span class="Style4"><?php echo $row_rsFiche['prix']; ?>€<br>
</span>
<select name="select">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
articles</strong></P>
<P align="center"><strong>Votre compte</strong><br>
<span class="Style6">[Aucun]</span><br><br>
<input type="submit" name="Submit4" value="Vider">
<input type="submit" name="Submit5" value="Acheter">
</P>
</form>
<P align="center"> </P>
<P align="center"> </P>
</DIV>
<DIV id=centre>
<p align="center"><strong>KitGraphik</strong></p>
<p align="center"> </p>
<form name="form3" method="get" action="rechercher.php">
<label> Sélectionnez
<select name="VARtheme" id="VARtheme">
<?php
do {
?>
<option value="<?php echo $row_rsTheme['ID']?>"><?php echo $row_rsTheme['theme']?></option>
<?php
} while ($row_rsTheme = mysql_fetch_assoc($rsTheme));
$rows = mysql_num_rows($rsTheme);
if($rows > 0) {
mysql_data_seek($rsTheme, 0);
$row_rsTheme = mysql_fetch_assoc($rsTheme);
}
?>
</select>
</label>
<label>ou saisissez un titre
<input name="VARtitre" type="text" id="VARtitre" size="10">
</label>
<input type="submit" name="Submit3" value="Go">
</form>
<table width="100%" border="0">
<!--DWLayoutTable-->
<tr>
<td rowspan="6"><div align="center"><img src="./images/<?php echo $row_rsFiche['photo']; ?>"></div></td>
<td width="107"><div align="right"><strong>Titre:</strong></div></td>
<td width="272"><?php echo $row_rsFiche['titre']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Auteur:</strong></div></td>
<td><?php echo $row_rsFiche['auteur']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Thème:</strong></div></td>
<td><?php echo $row_rsFiche['theme']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Descriptif</strong>:</div></td>
<td><?php echo $row_rsFiche['description']; ?></td>
</tr>
<tr>
<td><div align="right"><strong>Prix:</strong></div></td>
<td><?php echo $row_rsFiche['prix']; ?>€</td>
</tr>
<tr>
<td height="16" colspan="2" valign="top"><div align="center"><a href="#">L'article à bien été rajouté à votre caddy </a> </div></td>
</tr>
</table>
<p align="center"> </p>
<p><BR>
</p>
</DIV>
<DIV id=pied>
<div align="center">©2005-2006 Ism-Infomaster.com | Tous droits réservés</div>
</DIV>
</DIV>
</BODY></HTML>
<?php
mysql_free_result($rsTheme);
mysql_free_result($rsCatalogue);
mysql_free_result($rsFiche);
?>
[/php]
j ai un réelle pb quelque par je n arrive pa a trouvé le systeme pour affiché le total de la somme
[php]Votre caddy:<img src="images/panier.png" alt="h" width="14" height="12"> <br>
<span class="Style4"><?php echo $row_rsFiche['prix']; ?>€<br>
</span>
<select name="select">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
articles[/php][b]Comment je peut faire?[/b]