Eléphant du PHP |
152 Messages
18 juil. 2005, 11:43
<html>
<head>
<title>MVM - Manufacture Vosgienne de Meubles</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
h1, h3
{
text-align:center;
}
h3
{
background-color:blue;
color:black;
font-size:0.9em;
margin-bottom:0px;
}
.news p
{
background-color:black;
margin-top:0px;
}
.news
{
width:70%;
margin:auto;
}
</style>
<style>
.popper
{
position : absolute;
visibility : hidden;
}
</style>
<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
var fromtop=120
function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+fromtop}
else {eval(document.object1.top=eval(window.pageYOffset+fromtop));}
setTimeout("makeStatic()",0);}
</script>
<style>
.nounderline {
text-decoration:none
}
.hl {
background-Color : yellow;
cursor:hand;
}
.n {
cursor:hand;
}
-->
</style>
</head>
<body>
<table width="979" height="512" border="0" bgcolor="eef2f2" >
<tr>
<td width="711"bgcolor="eef2f2" ><font size=-6" face="Verdana, Arial, Helvetica, sans-serif"><img src="logo.jpg" width="62" height="62"><img src="menu_02.gif" width="587" height="62"><img src="index4_02.gif" width="62" height="62"><img src="menu_13.gif" width="711" height="33"></font></td>
<td width="250" height="98" align="middle" valign="middle" background="vuemvm.jpg">
<p><font size="-6" face="Verdana, Arial, Helvetica, sans-serif"> <br>
</font></p></td>
</tr>
<tr align="center">
<td colspan="2" align="center" border="0"> <p align="center"><font face="Times New Roman, Times, serif"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b></font></p>
<p align="center"><font size="-6" face="Times New Roman, Times, serif">
<?
$date = date("d-m-Y");
Print("Nous sommes le $date");
?>
,
<?
$heure = date("H:i");
Print("il est $heure");
?>
</font></p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><font color="#CC0099" size="5" face="Times New Roman, Times, serif" ><u>News
du Site</u></font></p>
<p align="center"> </p>
<font size="-1" face="Times New Roman, Times, serif">
<?
mysql_connect("localhost", "root", "");
mysql_select_db("news");
$retour = mysql_query('SELECT * FROM news ORDER BY id DESC LIMIT 0, 5');
while ($donnees = mysql_fetch_array($retour))
{
?>
</font> <div class="news">
<h3> <font size="-1" face="Times New Roman, Times, serif"><? echo $donnees['titre']; ?>
<em>le <? echo date('d/m/Y \à H\hi', $donnees['timestamp']); ?></em>
</font></h3>
<font size="-1" face="Times New Roman, Times, serif">
<?
$contenu = nl2br(stripslashes($donnees['contenu']));
echo $contenu;
?>
</font></div>
<p><font size="-1" face="Times New Roman, Times, serif">
<?
}
?>
</font></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
</body>
<DIV ID="topdeck" CLASS="popper"> </DIV>
<SCRIPT>
var nav = (document.layers);
var iex = (document.all);
var skn = (nav) ? document.topdeck : topdeck.style;
if (nav) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = get_mouse;
function pop(msg,bak) {
var content ="<TABLE WIDTH=130 BORDER=2 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#000080><TR><TD><TABLE WIDTH=100% BORDER=2 CELLPADDING=2 CELLSPACING=0 BGCOLOR="+bak+"><TR><TD><FONT COLOR=#000000 SIZE=2><CENTER>"+msg+"</CENTER></FONT></TD></TR></TABLE></TD></TR></TABLE>";
if (nav) {
skn.document.write(content);
skn.document.close();
skn.visibility = "visible";
}
else if (iex)
{
document.all("topdeck").innerHTML = content;
skn.visibility = "visible";
}
}
function get_mouse(e)
{
var x = (nav) ? e.pageX : event.x+document.body.scrollLeft;
var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
skn.left = x - 60;
skn.top = y+20;
}
function kill()
{
skn.visibility = "hidden";
}
</SCRIPT>
<LAYER visibility="hide" top="20" name="object1" bgcolor="black" left="0" onmouseover="move(214)" onmouseout="move(-214)">
<script language="JavaScript1.2">
function positionmenu(){
move(-214)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 10px ;Z-Index : 20" onmouseover="move(214)" onmouseout="move(-214)">')}
</script>
<table border="0" cellpadding="0" cellspacing="1" width="230" bgcolor="#CC0099">
<tr><td bgcolor="#0099FF"> <font size="3" face="Arial"><b>Menu</b></font></td>
<script language="JavaScript1.2">
document.write('<td align="center" rowspan="214" width="16" bgcolor=""><span style="font-size:11px"><p align="center"><font face="Arial"><B>C<br>o<br>n<br>t<br>e<br>n<BR>u<BR></B></font></p></span></TD>')
</script>
</tr>
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}
var text=new Array();
var thelink=new Array();
text[0]="Liste des News"
text[1]="Rediger des News";
text[2]="3";
text[3]="Site MVM-PARISOT";
text[4]="Site PARISOT";
thelink[0]="bbb.php";
thelink[1]="identification2.php";
thelink[2]="1";
thelink[3]="http://www.mvm-parisot.com";
thelink[4]="http://www.parisot.com";
var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}
for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
</LAYER>
</html>