Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > CakePHP
CakePHP Forum d'entraide sur le framework PHP CakePHP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 20/07/2007, 09h57   #1
Candidat au titre de Membre du Club
 
Inscription : mai 2005
Messages : 41
Détails du profil
Informations forums :
Inscription : mai 2005
Messages : 41
Points : 14
Points : 14
Par défaut [cakephp] Problème d'affichage des input tag

Bonjour à tous,

Je rencontre un problème avec tag input du htmlhelper

Mon code me semble bon, je ne vois pas de soucis particulier dans la source et pourtant l'affichage est incohérent : le contenu des input s'affichent en dehors des input

Mon code :

Code :
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
 
<p class='retour'><?php echo $html->link('Retour vers la liste des intervenants', '/intervenants/index'); ?></p>
 
<?php
echo $html->tagErrorMsg('Intervenant/nom', 'Le nom de l\'intervenant est obligatoire.');
echo $html->tagErrorMsg('Intervenant/telephone', 'Le t&eacute;l&eacute;phone de l\'intervenant est obligatoire.');
echo $html->tagErrorMsg('Intervenant/email', 'L\'email de l\'intervenant n\'est pas correct.');
 
echo $html->formTag('/intervenants/update/'.$this->data['Intervenant']['id'].'', 'POST');
?>
 
<table id='view'>
	<tr>
		<td class='titre_v'>Nom</td>
		<td><?php echo $html->input('Intervenant/nom'); ?></td>
	</tr>
	<tr>
		<td class='titre_v'>T&eacute;l&eacute;phone</td>
		<td><?php echo $html->input('Intervenant/telephone'); ?></td>
	</tr>
	<tr>
		<td class='titre_v'>Email</td>
		<td><?php echo $html->input('Intervenant/email'); ?></td>
	</tr>	
	<tr>
		<td colspan='2' class='form_btn'><?php echo $html->submit('Modifier'); ?></td>
	</tr>
</table>
 
</form>
La source générée :

Citation:
<!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>
<title>Application Client</title>
<link rel="icon" href="/appli_client/app/webroot/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/appli_client/app/webroot/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/appli_client/app/webroot/css/ac.css" /></head>
<body>
<div id='ac_titre'>Application Client</div>
<div id="container">
<div id="content">
<p class='retour'><a href="/appli_client/index.php/intervenants/index" >Retour vers la liste des intervenants</a></p>

<form action="/appli_client/index.php/intervenants/update/1" method="post">
<table id='view'>
<tr>
<td class='titre_v'>Nom</td>
<td><input name="data[Intervenant][nom]" value="toto" type="text" id="IntervenantNom" /></td>
</tr>
<tr>
<td class='titre_v'>T&eacute;l&eacute;phone</td>

<td><input name="data[Intervenant][telephone]" value="00000000" type="text" id="IntervenantTelephone" /></td>
</tr>
<tr>
<td class='titre_v'>Email</td>
<td><input name="data[Intervenant][email]" value="email@email.com" type="text" id="IntervenantEmail" /></td>
</tr>
<tr>
<td colspan='2' class='form_btn'><input type="submit" value="Modifier" /></td>
</tr>

</table>

</form> </div>
</div>
</body>
</html>
Ce que ça me donne :



Le plus étrange c'est que si je reactualise, certaines fois tout devient normal puis je reactulaise et le contenu ressort de l'input...

Je ne comprends pas
Rei Itchido est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/07/2007, 15h18   #2
Candidat au titre de Membre du Club
 
Inscription : mai 2005
Messages : 41
Détails du profil
Informations forums :
Inscription : mai 2005
Messages : 41
Points : 14
Points : 14
Je viens de trouver la cause de cet étrange comportement...

Les input avais cette propriété css :
display:block;

En l'enlevant tout redevient normal.
Fallait trouver...
Rei Itchido est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 04h01.


 
 
 
 
Partenaires

Hébergement Web