Bonjour à tous,

voila, j'ai quelques petits problèmes. Je suis en train de créer un formulaire avec pas mal d'informations et j'y ai inséré une image. Malheureusement, même avec un CSS qui me parait plutot correct, il ne veut pas m'afficher le dégradé de bleu ciel à sable de haut en bas comme je lui demande.

Voici mes formulaires :

OTV.php
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!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=iso-5589-6" />
    <title>Opération Tranquillité Vacances</title>
<link rel="stylesheet" type="text/css" href="F:\Madiba\htdocs\application\OTV\OTV.css" media="all"/>
<script type="text/javascript">
	function func(){
	if(document.getElementById('maison').checked == true){
		document.getElementById('appartement-content').style.display = "none";
		document.getElementById('maison-content').style.display = "block";
		}else if (document.getElementById('appartement').checked == true){
			document.getElementById('maison-content').style.display = "none";
			document.getElementByid('appartement-content').style.display = "block";
		}
	}
	</script>
<body>
<div class="body">
</div>
	<?php
 
########################################################
//on définie les constantes qui permettent d'accèder à l'api joomla25
//A modifier en fonction du lieu d'installation du site
define( '_JEXEC', 1 );
define('JPATH_BASE', 'F:\madiba\htdocs\joomla25');
define( 'DS', DIRECTORY_SEPARATOR );
 
//On inclue les librairies de joomla25
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php');
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php');
 
//On sélectionne quelle application on veut taper (site ou administration), ici site.
$mainframe = JFactory::getApplication('site');
 
//on définie la variable user avec les données de joomla
$user = JFactory::getUser();
 
/*  
*   On vérifie l'état de $user
*   si l'utilisateur est un invité(guest)
*   on le redirige vers le site pour se connecter.
*/
if($user->guest){
    echo "vous n'êtes pas connecté. ";
    header('Location: ../../joomla25');
    exit(); 
    }
else {
    /*echo*/ $user->nom."</br>";
    /*echo*/ $user->Prenom."</br>";
    /*echo*/ $user->grade."</br>";
    /*echo*/ $user->username."</br>"; //matricule en faite
    /*echo*/ $user->csp."</br>";
    /*echo*/ $user->service."</br>";
    /*echo*/ $user->applications."</br>";
    /*echo*/ $user->groupe."</br>";
    /*echo*/ "</br>";
    /*echo*/ "</br>";
    /*echo*/ "</br>";
    //......
    //on peut voir  tout ce qu'il y a dans $user 
    //var_dump($user);
    if (isset($_POST['site'])){
        $_SESSION['site'] = $_POST['site'];
    }
    else{
        $_SESSION['site'] = "Rouen";
    }
    // echo "<a href=\"test.php?action=modifier&id=1372060652\">test modif</a></br>";
    }
mysql_connect('localhost','root','') or exit(mysql_error());
mysql_select_db('otvbase') or exit(mysql_error());
$id_ville = array('Rouen' => 1, 'Bolbec' => 2, 'Havre' => 3, 'Fecamp' => 4, 'Dieppe' => 5);
$csp = array("Rouen" => "otv_rouen", "Bolbec" => "otv_bolbec", "Havre" => "otv_havre", "Fecamp" => "otv_fecamp", "Dieppe" => "otv_dieppe");
 
if(isset($_GET['action']) && $_GET['action'] == "modifier")
{
    // $titre = 'Mettre à jour la fiche pour O.T.V de $site';
    $tag = $_GET['id'];
    $site = $_SESSION['site'];
    $sql = "SELECT * FROM $csp[$site] WHERE tag = '$tag'";
    $resultat = mysql_query($sql) or exit(mysql_error());
    $lignes = mysql_fetch_array($resultat);
 
 
    $depart = explode("-", $lignes['absentdu']);
    $retour = explode("-", $lignes['absentau']);
 
    $ville = $lignes['ville'];
    $nom = $lignes['nom'];
    $prenom = $lignes['prenom'];
    $tel1 = $lignes['tel1'];
    $tel2 = $lignes['tel2'];
    $adresse = $lignes['adresse'];
    $absentdu = $lignes['absent'];
    $absentau = $lignes['au'];
    $persaprev = $lignes['persaprev'];
    $maiouim = $lignes ['maiouim'];
    $chien = $lignes ['chien'];
    $alarme = $lignes ['alarme'];
    $digicode = $lignes ['digicode'];
    $personne = $lignes['personne'];
    $observations = $lignes['observations'];
    $tag = "<input name='tag' type='hidden' value='".$_GET['id']."'>";
    $formulaire_cible = "?action=OTV2.php";
    $bouton = "<input name='enregistrer' type='submit' value='Mettre à jour la fiche'>";
    }
else {
    $titre = "<h1>Nouvelle fiche pour O.T.V.</h1>";
    $formulaire_cible = "?action=validation_formulaire_otv";
    $bouton = "<input name='enregistrer' type='submit' value='Enregistrer la fiche'>";
	}
// ********************************************************************************************
echo $titre;
// Liste des villes relative à l'id selectionnée sur la carte de la DDSP
$site = $_SESSION['site'];
$query = "SELECT ville FROM villes WHERE id = '$id_ville[$site]' ORDER BY ville ASC";
$result = mysql_query($query) or die(mysql_error());
$rows = mysql_fetch_array($result);
 
$menu_deroulant_choix_site = "<form action = 'test.php' method='post'>
	<select name='site'>
	<option value='Rouen'>CSP Rouen-Elbeuf</option>
	<option value='Havre'>CSP Le Havre</option>
	<option value='Bolbec'>CSP de Bolbec</option>
	<option value='Fecamp'>CSP de Fécamp</option>
	<option value='Dieppe'>CSP Dieppe</option>
	</select><input type='submit'/></form>";
?>
<!-- Affichage du Form !-->
<img src="OTV.png"/>
<?php echo $menu_deroulant_choix_site;?>
<form action='$formulaire_cible' method='post' enctype='application/x-www-form-urlencoded' name='formulaireOTV'>
<table border='1' id='tableauOTV'>
    <tr>
        <td align = 'center'><p><h2>Nom:</h2></td></p>
        <br/>
        <td colspan='1'><input type='text' name='nom' size='60' value="<?php echo $nom;?>"
        onChange='javascript:this.value=this.value.substring(0,1).toUpperCase()+this.value.substring(1, this.length);'/>
    </tr>
    <tr>
        <td align='center'><p><h2>Prénom :</h2></td></p>
        <td colspan ='1'><input type='text' name='prenom' size='60' value='<?php echo $prenom; ?>'/>
    </tr>
    <tr>
        <td align='center'><p><h2>Téléphone 1 :</h2></td></p>
		<td align='center'><p><h2>Téléphone 2 :</h2></td></p>
        <tr><td colspan='1'><input type='text' name='tel' size='60' value='<?php echo $tel1;?>'>
        <td colspan='1'><input type='text' name='tel' size='60' value='<?php echo $tel2;?>'></tr>
    </tr>
    <tr>
        <td align='center'><p><h2>Ville :</h2></td></p>
        <td colspan='1'><select name='ville' size='10'>
        <?php echo "<option value='$ville'>$ville</option>";
        do {
            echo "<option value='".$rows['ville']."'>".$rows['ville']."</option>";
        }
        while($rows = mysql_fetch_array($result)); ?>
        </select></td>
    </tr>
    <tr>
        <td align='center'><p><h2>Adresse :</h2></td></p>
        <td colspan='1'><input name='adresse' type='text' size='60' value='<?php echo $adresse;?>'>
    </tr>
    <tr>
        <td align='center'><p><h2>Maison ou Appartement :</h2></p>
        <td><input name='maiouim' type='radio' value='maison' checked="checked" id="maison" onClick="func()"><h3>Maison</h3><br/>
        <input name='maiouim' type='radio' value='appartement' id="appartement" onClick="func()"><h3>Appartement</h3><td><br/>
		<div id="maison-content" align='center'><p><h4>Pas de digicode pour une maison</h4></div></p>
		<div id="appartement-content">
        <td align='center'><p><h2>Présence d'un digicode:</h2></p>
		<input name='digicode' type='radio' value='oui'>Oui<br/>
        <input name='digicode' type='radio' value='non'>Non
		<td colspan ='3' align='center'><p><h2>Code :</h2></p>
        <input type='text' name='code' size='60' value=''/></td>
		</div>
    </tr>
    <tr>
            <td align='center'><p><h2>Absent du :</h2></p></td><td><select name='debut_jour'>
                    <option value='<?php echo $depart[2];?>'></option>
                    <?php
                    for ($i = 1; $i != 31; $i++) {
                        echo '<option value="'.$i.'">'.$i.'</option>';
                    }?>
                </select><select name='debut_mois'>
                    <option value='<?php echo $depart[1];?>'></option>
                    <?php
                    for ($i = 1; $i != 12; $i++) {
                        echo '<option value="'.$i.'">'.$i.'</option>';
                    }?>
                </select><select name='debut_annee'>
                    <option value='<?php echo $depart[0];?>'></option>
                    <option value='2012'>2012</option>
                    <option value='2013'>2013</option>
                    <option value='2014'>2014</option>
                    <option value='2015'>2015</option>
                    <option value='2016'>2016</option>
                    <option value='2017'>2017</option>
                </select></td>
 
            <td align="center"><h2>Au :</h2></td><td><select name='fin_jour'>
                    <option value='<?php echo $retour[2];?>'></option>
                    <?php
                    for ($i = 1; $i != 31; $i++) {
                        echo '<option value="'.$i.'">'.$i.'</option>';
                    }?>
 
                </select><select name='fin_mois'>
                    <option value='<?php echo $retour[1];?>'></option>
                    <?php
                    for ($i = 1; $i != 12; $i++) {
                        echo '<option value="'.$i.'">'.$i.'</option>';
                    }?>
                </select><select name='fin_annee'>
                    <option value='<?php echo $retour[0];?>'></option>
                    <option value='2014'>2014</option>
                    <option value='2015'>2015</option>
                    <option value='2016'>2016</option>
                    <option value='2017'>2017</option>
					<option value='2018'>2018</option>
                </select></td>
        </tr>
    <tr>
        <td align='center'><p><h2>Personne à prévenir :</h2></td></p>
	</tr>
	<tr>
        <td align='center'><p><Textarea name='personne' rows=1 cols=40></textarea></td></p>
    </tr>
    <tr>
        <td colspan='2' align='center'><p><h1>DETAILS :</h1></p></td>
    </tr>
    <tr>
        <td align='center'><p><h2>Présence d'un chien :</h2></td></p>
        <td align='center'><input name='chien' type='radio' value='oui'>Oui<br/>
        <input name='chien' type='radio' value='<?php echo $chien;?>'>Non</td>
    </tr>
    <tr>
        <td align='center'><p><h2>Présence d'une alarme:</h2></td></p>
        <td align='center'><input name='alarme' type='radio' value='oui'>Oui<br/>
        <input name='alarme' type='radio' value='non'>Non</td>
    </tr>
	<tr>
		<td align='center'><p><h2>Observations supplémentaires ?</h2></td></p>
	</tr>
	<tr>
		<td><textarea name="obs" cols="50" rows="10"></textarea></td>
	</tr>
    <tr>
        <td colspan='4' align='center'><div>
            <input name='tag' type='hidden' value='".$_GET"'['id']>
            <input name='enregistrer' type='submit' value='Enregistrer la fiche'>
        </div></td>
    </tr>
</table>
</form>
</body>
</html>

et mon OTV.css
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
html, body{
		padding:0;
		margin:0;
		height:100%;
	}
.body {
	/* Anciens navigateurs */
	background: darkkhaki url("body-bg.png") repeat-x top;
	-o-background-size: 100% 100%;
	font-family: Trebuchet MS, Verdana, Arial;
	-moz-background-size: 100% 100%;
	-webkit-background-size: 100% 100%;
	background-size: 100% 100%;
	/* Internet Explorer */
	*background: darkkhaki;
	background: darkkhaki\0/;
	filter;
progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr=#FF00BFFF, endColorstr=#FFBDB76B);
	/* Navigateurs récents */
	background-image: -webkit-gradient(
		linear,
		left top, left bottom,
		from(deepskyblue),
		to(darkkhaki)
	);
	background-image: -webkit-linear-gradient(
		top,
		deepskyeblue,
		darkkhaki
	);
	background-image: -moz-linear-gradient(
		top,
		deepskyblue,
		darkkhaki
	);
	background-image: -o-linear-gradient(
		top,
		deepskyblue,
		darkkhaki
	);
	background-image: linear-gradient(
		to bottom,
		#3399cc,
		#E0CDA9,
	);
}
Merci pour votre aide d'avance