Eléphant du PHP |
168 Messages
11 avr. 2005, 08:16
Comment aligne t on au centre de la feuille un code en Java script? voici le code
<html>
<head>
<title> CONFIRMATION DE L'IMPRESSION </title>
</head>
<body>
<br>
<h2 align=center> CONFIRMATION DE L'IMPRESSION </h2>
<br>
<?
$user=$_POST['ligne'];
$img_fond="image_fond/1.jpg";
$img_fond_lar="100%";
$img_fond_haut="100%";
echo"<BODY BGCOLOR=\"blue\" TEXT=\"white\" LINK=\"white\" VLINK=\"white\" ALINK=\"white\"
WIDTH=\"$img_fond_lar\" HEIGHT=\"$img_fond_haut\" BACKGROUND=\"$img_fond\" >";
Include("sql.inc");
mysql_connect($nom_hote, $nom_utilisateur,$password);
$base=mysql_select_db("adresse");
if(!$base)
{
echo"connexion impossible";
}
echo "<h3>Vous allez imprimer la fiche correspondant aux données suivantes : </h3>";
$plus=0;
$table=mysql_query("select * from donnée where id='$user'");
while ($ligne=mysql_fetch_object($table))
{
$plus=$plus+1;
$option="option['$plus']";
echo"<b>- Nom d'utilisateur : </B>" ,$ligne->user,"";
echo"<br>";
echo"<b>- Machine : </B>" ,$ligne->machine,"";
echo"<br>";
echo"<b>- Vitesse : </B>" ,$ligne->vitesse ,"";
echo"<br>";
echo"<b>- Adresse IP : </B>" ,$ligne->ip,"";
echo"<br>";
echo"<b>- Adresse MAC : </B>" ,$ligne->mac,"";
echo"<br>";
echo"<b>- Système d'Exploitation : </B>" ,$ligne->os,"";
echo"<br>";
echo"<b>- Switch N° : </B>" ,$ligne->switch,"";
echo"<br>";
echo"<b>- Port N° : </B>" ,$ligne->port,"";
echo"<br>";
echo"<b>- Type de la machine : </B>" ,$ligne->type,"";
}
echo"<br>";
?>
<br>
<a href="javascript:window.print();"><img src="image_fond/1.gif" border="0"></a>
<br>
<?
echo"<br>";
$lien1="./page2.php";
$text1="accueil";
$lien2="./page10_1.php";
$text2="precedent";
$lien3="./index.php";
$text3="sortir";
echo"<table width=100%>";
echo"<tr>";
echo"<td width=25% align=left>";
echo"<b><a href=\" $lien2\">$text2</a></b>";
echo"</td>";
echo"<td width=50% align=center>";
echo"<b><a href=\" $lien1\">$text1</a></b>";
echo"</td>";
echo"<td width=25% align=right>";
echo"<b><a href=\" $lien3\">$text3</a></b>";
echo"</td></tr></table>";
?>
</body>
Merci de vos reponses
Tous les hommes aspirent à être heureux, mais personne ne s'entend sur la définition du bonheur.
Celui qui a un ami véritable n'a pas besoin d'un miroir.