Bonsoir,
Svp, je suis un simple web"designer", je n'arrive pas donc a trouver la faille dans mon code, pouvez vous m'aider ????
à Savoir sur mac cela fonctionné nickel
Site : http://www.leysinsport.ch/index2.php
CSS :
PHP :
Merci
Modifié par heder Neves de Souza (19 Nov 2009 - 09:42)
Svp, je suis un simple web"designer", je n'arrive pas donc a trouver la faille dans mon code, pouvez vous m'aider ????
à Savoir sur mac cela fonctionné nickel
Site : http://www.leysinsport.ch/index2.php
CSS :
html {
height: 100px;
}
body {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 80%;
font-style: normal;
font-weight: normal;
font-variant: normal;
background-color: #6799C8;
background-image: url(../images/bkgd.gif);
background-repeat: repeat-x;
overflow-y: hidden;
}
a img {
border: 0;
}
html, body, ol, ul, form, fieldset {
margin: 0;
padding: 0;
}
fieldset {
border: 0;
}
textarea {
font: inherit;
}
#print {
display:none;
}
.clear {
clear: both;
}
#content table.styled tr:nth-child(odd) td, #content table.styled tr:nth-child(odd) th {
background: #ddd;
}
#content table.styled tr:nth-child(even) td, #content table.styled tr:nth-child(even) th {
background: #eee;
}
a {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
}
a:hover, a:focus, a:active {
text-decoration: underline;
}
#global {
width: 950px;
margin-top: 0;
margin-right: auto;
margin-left: auto;
}
#entete {
background-color: #FFFFFF;
margin-right: 25%;
margin-left: 25%;
padding-top: 150px;
}
#centre {
position: absolute; /* Voir -> Note 1 */
width: 950px;
background-image: url(../images/fondDeco.png);
background-repeat: no-repeat;
background-position: center bottom;
bottom: 0px;
height: 99%;
}
.visuel {
position: absolute;
bottom: 0px;
font-size: 11px;
color: #BBDEF4;
}
#navigation {
position: absolute;
width: 950px;
background-image: url(../images/logo.png);
background-repeat: no-repeat;
margin-top: 110px;
z-index: 6;
padding-top: 100px;
background-position: center;
}
{
position: absolute;
width: 300px;
height: 150px;
z-index: 4;
height: 130px;
margin-top: 150px;
padding-left: 745px;
}
#keypass {
position: absolute;
width: 200px;
background-image: url(../images/keypass_marron.png);
height: 150px;
padding-top: 35px;
padding-right: 25px;
padding-bottom: 0px;
padding-left: 789px;
background-repeat: no-repeat;
margin-top: 244px;
z-index: 5;
text-align: center;
font-size: 14px;
font-weight: 400;
background-position: right;
}
PHP :
<?
include($_SERVER['DOCUMENT_ROOT']."/includes/connexion.php");
$therubID = 1;
if(isset($_GET['rubID'])){
$therubID = $_GET['rubID'];
}
if(isset($_POST['rubID'])){
$therubID = $_POST['rubID'];
}
$thelan = "fr";
if(isset($_GET['lan'])){
$thelan = $_GET['lan'];
}
if(isset($_POST['lan'])){
$thelan = $_POST['lan'];
}
$data = getPageDatas($therubID, $thelan);
while($data['rubContent']=="" AND empty($data['rubModule'])){
$SQLFirst = "SELECT * FROM cms_rub WHERE rubPID=".$data['rubID']." ORDER BY rubOrder ASC";
$RSFirst = mysql_query($SQLFirst);
if(mysql_num_rows($RSFirst)>0){
$dataFirst = mysql_fetch_array($RSFirst);
$therubID = $dataFirst['rubID'];
$data = getPageDatas($therubID, $thelan);
}else{
break;
}
}
//$data['rubContent']= preg_replace('^\[INTERNAL_([0-9]*)\]^', $theIndexPage."?rubID=$1&lan=".$thelan, $data['rubContent']);
$navIDs = getRubs($therubID, $thelan);
$themainRubID = $navIDs[0];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
<? if(!empty($data['rubHeadTitle'])){ echo $data['rubHeadTitle']; } else { echo $defaultHeaderTitle[$thelan]; } ?>
</title>
<meta name="keywords" content="<? if(!empty($data['rubHeadKeywords'])){ echo $data['rubHeadKeywords']; } else { echo $defaultHeaderKeywords[$thelan]; } ?>" />
<meta name="description" content="<? if(!empty($data['ruhHeadDescription'])){ echo $data['ruhHeadDescription']; } else { echo $defaultHeaderDescription[$thelan]; } ?>" />
<link href="css/global_home.css" rel="stylesheet" type="text/css" />
<LINK REL="SHORTCUT ICON" HREF="http://www.leysinsport.ch/images/favicon.ico">
</head>
<body>
<div id="global">
<div id="navigation"> </div>
<div id="secondaire_img">
<?php
$type="home";
include ($_SERVER['DOCUMENT_ROOT']."/modules/random_image.php"); ?>
</div>
<div id="keypass">
<p>choice your language<br />
<br />
<a href="/page.php?lan=fr">français</a> | <a href="/page.php?lan=en">english</a></p>
</div>
<div id="entete">
<div class="titre"></div>
</div>
<div id="centre"> <a href="http://www.visuel.ch/" target="_blank" class="visuel">by <strong>visuel</strong>.ch</a></div>
</div>
</body>
</html>
Merci
Modifié par heder Neves de Souza (19 Nov 2009 - 09:42)