<?
	include "header.php3";

	$strSelectPseudo="select mail, mailvisible, icq, homepage from food__GensProduit where pseudo like \"$otherpseudo\"";
	$rsPseudo=mysql_query($strSelectPseudo);
	$nRecPseudo=mysql_num_rows($rsPseudo);

	$mail=mysql_result($rsPseudo,0,"mail");
	$mailvisible=mysql_result($rsPseudo,0,"mailvisible");
	$icq=mysql_result($rsPseudo,0,"icq");
	$homepage=mysql_result($rsPseudo,0,"homepage");

?>
<html>
	<head>
<?
	print "		<title>Profile de $otherpseudo</title>";
?>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="refresh" content="120" />
		<meta http-equiv="cache-control" content="no-cache" />
		<link href="http://www.whiler.com/standard.css" rel="stylesheet" />
<?
	print "		<title>Profile de $otherpseudo</title>";
?>
		<link href="file:///D:/Work/GestComm/theme/Master.css" rel="stylesheet" type="text/css" />
<?
	$DefaultText = "Profile de $otherpseudo";
	include "clickdroit.php3"
?>
	</head>
	<body text="#000000" vlink="#2f2f4f" alink="#800000" link="#000080" bgcolor="#ffffff" onload="ClearStatusBar()">
		<table width="100%" height="80%" border="0">
			<tr>
				<td valign="middle" align="center">
					<table cellspacing="0" bordercolordark="#ffffff" cellpadding="4" width="40%" bordercolorlight="#c0c0c0" border="1">
			  <tbody>
					<tr bgcolor="#FFFF99">
				      <td colspan="2" align="center">
				      	<FONT face="Verdana, Arial" color="#000080" size="2">
								Informations sur le profil de
<?
	print ucfirst($otherpseudo);
?>
							</FONT>
					</td>
						<tr>
							<td bgcolor="#dedfdf">
								<FONT face="Verdana, Arial" size=1>
									Nom :
								</FONT>
							</td>
							<td bgcolor="#f7f7f7"><FONT face="Verdana, Arial" color="#000080" size="1">
<?
	print ucfirst($otherpseudo);
?>
</FONT></td>
						</tr>
<?
	if ($mailvisible==1) {
		print "						<tr>\r\n";
		print "							<td bgcolor=\"#dedfdf\">";
		print "<FONT face=\"Verdana, Arial\" size=1>";
		print "Mail :";
		print "</font>";
		print "</td>\r\n";
		print "							<td bgcolor=\"#f7f7f7\">";
		print "<FONT face=\"Verdana, Arial\" color=#000080 size=1>";
		print "<a class=\"food\" href=\"mailto:$mail\">$mail</a>";
		print "</font>";
		print "</td>\r\n";
		print "						</tr>\r\n";
	}
?>
						<tr>
							<td bgcolor="#dedfdf">
								<FONT face="Verdana, Arial" size="1">
									Nombre d'aliments saisis :
								</FONT>
							</td>
							<td bgcolor="#f7f7f7">
								<FONT face="Verdana, Arial" color=#000080 size=1>
<?
	$strSelectNbAliment="select count(*) as nb from food__Produit where pseudo like '$otherpseudo' and IDTypeProduit='ALI'";
	$rsNbAliment=mysql_query($strSelectNbAliment);
	$nRecNbAliment=mysql_result($rsNbAliment,0,"nb");
	print $nRecNbAliment;
?>
								</FONT>
							</td>
						</tr>
						<tr>
							<td bgcolor="#dedfdf">
								<FONT face="Verdana, Arial" size="1">
									Nombre de boissons saisies :
								</FONT>
							</td>
							<td bgcolor="#f7f7f7">
								<FONT face="Verdana, Arial" color=#000080 size=1>
<?
	$strSelectNbBoisson="select count(*) as nb from food__Produit where pseudo like '$otherpseudo' and IDTypeProduit='BOI'";
	$rsNbBoisson=mysql_query($strSelectNbBoisson);
	$nRecNbBoisson=mysql_result($rsNbBoisson,0,"nb");
	print $nRecNbBoisson;
?>
								</FONT>
							</td>
						</tr>
						<tr>
							<td bgcolor="#dedfdf">
								<FONT face="Verdana, Arial" size=1>
									N° ICQ :
								</FONT>
							</td>
							<td bgcolor="#f7f7f7"><FONT face="Verdana, Arial" color=#000080 size=1>
<?
	if (strlen($icq)>0) {
		print "<a class=\"food\" href=\"http://msg.mirabilis.com/scripts/contact.dll?msgto=$icq\">$icq</a>";
	}
	else {
		print "&nbsp;";
	}
?>
</FONT></td>
						</tr>
						<tr>
							<td bgcolor="#dedfdf">
								<FONT face="Verdana, Arial" size=1>
									Homepage :
								</FONT>
							</td>
							<td bgcolor="#f7f7f7">
								<FONT face="Verdana, Arial" color=#000080 size=1>
<?
	if (strlen($homepage)>0) {
		print "<a class=\"food\" href=\"".str_replace("http://http://","http://",("http://".$homepage))."\">$homepage</a>\r\n";
	}
	else {
		print "&nbsp;";
	}
?>
</font></td>
						</tr>
					</table>
					<br />
					<FONT face="Verdana, Arial" size=1>
						<a class="food" href="javascript:window.close();">Fermer cette fen&ecirc;tre</a>
					</FONT>
				</td>
			</tr>
		</table>
<?
	include "footer.php3";
?>
	</body>
</html>