Se connecter avec
S'enregistrer | Connectez-vous

Dreamweaver et tableau

Dernière réponse : dans Programmation

Bonjour, et désolé pour le sujet un peu "table" d'aujourd'hui. J'ai développé ce site la semaine dernière (mon premier :)  ) pour le service informatique auquel j'appartiens (petit Intranet).
Très pris par la mise en place, la sécurisation et la documentation du serveur qui hébergera ce site et surtout par ma fonction je souhaite conserver ce site en l'état un petit moment, mon problème (sous IE7 mais pas sous FF) est le suivant :



Tout se décale malgré le dimensionnement fixe des cellules ... J'ai laissé une ligne avec hauteur libre pour quelle sois redimensionné lorsque l'on remplie la cellule du milieu.




  1. <?php
  2. //initialize the session
  3. if (!isset($_SESSION)) {
  4. session_start();
  5. }
  6.  
  7.  
  8. ?>
  9. <?php virtual('/Connections/locale.php'); ?><?php
  10. // *** Validate request to login to this site.
  11. if (!isset($_SESSION)) {
  12. session_start();
  13. }
  14.  
  15. $loginFormAction = $_SERVER['PHP_SELF'];
  16. if (isset($_GET['accesscheck'])) {
  17. $_SESSION['PrevUrl'] = $_GET['accesscheck'];
  18. }
  19.  
  20. if (isset($_POST['login'])) {
  21. $loginUsername=$_POST['login'];
  22. $password=$_POST['password'];
  23. $MM_fldUserAuthorization = "";
  24. $MM_redirectLoginSuccess = "/perso.php";
  25. $MM_redirectLoginFailed = "/connexion.php";
  26. $MM_redirecttoReferrer = false;
  27. mysql_select_db($database_locale, $locale);
  28.  
  29. $LoginRS__query=sprintf("SELECT login, passe FROM membre WHERE login='%s' AND passe='%s'",
  30. get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
  31.  
  32. $LoginRS = mysql_query($LoginRS__query, $locale) or die(mysql_error());
  33. $loginFoundUser = mysql_num_rows($LoginRS);
  34. if ($loginFoundUser) {
  35. $loginStrGroup = "";
  36.  
  37. //declare two session variables and assign them
  38. $_SESSION['MM_Username'] = $loginUsername;
  39. $_SESSION['MM_UserGroup'] = $loginStrGroup;
  40.  
  41. if (isset($_SESSION['PrevUrl']) && false) {
  42. $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
  43. }
  44. header("Location: " . $MM_redirectLoginSuccess );
  45. }
  46. else {
  47. header("Location: ". $MM_redirectLoginFailed );
  48. }
  49. }
  50. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
  51. <html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">
  52. <head>
  53. <?php
  54. // ** Logout the current user. **
  55. $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
  56. if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
  57. $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
  58. }
  59.  
  60. if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
  61. //to fully log out a visitor we need to clear the session varialbles
  62. $_SESSION['MM_Username'] = NULL;
  63. $_SESSION['MM_UserGroup'] = NULL;
  64. $_SESSION['PrevUrl'] = NULL;
  65. unset($_SESSION['MM_Username']);
  66. unset($_SESSION['MM_UserGroup']);
  67. unset($_SESSION['PrevUrl']);
  68.  
  69.  
  70. }
  71. ?>
  72. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  73. <!-- TemplateBeginEditable name="doctitle" -->
  74. <title>serma info</title>
  75. <!-- TemplateEndEditable -->
  76. <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
  77. <style type="text/css">
  78. <!--
  79. -->
  80. </style>
  81. <link href="../css/principal.css" rel="stylesheet" type="text/css" />
  82. <style type="text/css">
  83. <!--
  84. #Layer1 {
  85. position:absolute;
  86. width:200px;
  87. height:115px;
  88. z-index:1;
  89. left: 591px;
  90. top: 269px;
  91. }
  92.  
  93. -->
  94. </style>
  95. </head>
  96.  
  97. <body>
  98. <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  99. <tr>
  100. <td height="50" colspan="3"><img src="../images/banner.jpg" alt="banner" width="780" height="120" /></td>
  101. </tr>
  102. <tr>
  103. <td height="25" colspan="3" align="left" valign="top" class="barrelogin">
  104. <p>
  105. <?php
  106. if(isset($_SESSION['MM_Username']))
  107. {
  108. echo "Bonjour ". $_SESSION['MM_Username'] ;
  109. echo "<a href='$logoutAction'>Déconnecter</a></p>";
  110. }
  111. else
  112. {
  113. ?>
  114. <form id="form1" method="POST" action="<?php echo $loginFormAction; ?>">
  115. <table width="537" height="31" border="0" cellpadding="0" cellspacing="0">
  116. <tr>
  117. <td>Login</td>
  118. <td><input name="login" type="text" id="login" /></td>
  119. <td>password</td>
  120. <td><input name="password" type="password" id="password" /></td>
  121. <td><input name="envoyez" type="submit" id="envoyez" value="Envoyer" /></td>
  122. <td> </td>
  123. </tr>
  124. </table>
  125. <?php } ?>
  126. </form> </td>
  127. </tr>
  128. <tr>
  129. <td width="160" height="22" align="left" valign="top" class="MenuAG"> </td>
  130. <td width="485" height="22" align="left" valign="top" background="/connexion.php" class="Menucentre"><a href="/connexion.php">Connexion</a> - <a href="../index.php">Accueil</a> - <a href="../forum.php">Forum</a> - <a href="../aides.php">Aides</a> - <a href="../videos.php">Videos</a> - <a href="../contacts.php">Contacts</a> - <a href="../telechargement.php">Téléchargements</a> </td>
  131. <td width="135" align="center" valign="top" class="MenuAD"> </td>
  132. </tr>
  133. <tr>
  134. <td height="60" align="left" valign="top" class="MenuHG">Aides et<br />
  135. procédures : </td>
  136. <td align="left" valign="top" class="Menucentre"><!-- TemplateBeginEditable name="Titres" -->Téléchargement<!-- TemplateEndEditable --></td>
  137. <td align="center" valign="top" class="MenuHD">Top 5 des<br />
  138. procédures : </td>
  139. </tr>
  140. <tr>
  141. <td height="22" align="left" valign="top" class="MenuinterG"> </td>
  142. <td width="485" align="left" valign="top" class="Menucentre"> </td>
  143. <td align="center" valign="top" class="MenuinterD"> </td>
  144. </tr>
  145. <tr>
  146. <td height="60" align="left" valign="top" class="MenuG"><p class="Style1">Recherche par catégorie</p> </td>
  147. <td rowspan="6" align="left" valign="top" class="Menucentre"><!-- TemplateBeginEditable name="Contenu" -->
  148. <p> </p>
  149. <!-- TemplateEndEditable --></td>
  150. <td rowspan="5" align="center" valign="top" class="MenuD"> </td>
  151. </tr>
  152. <tr>
  153. <td height="60" align="left" valign="top" class="MenuG"><span class="Style1">Recherche par mot clé</span></td>
  154. </tr>
  155. <tr>
  156. <td height="60" align="left" valign="top" class="MenuG"><a href="../videos.php">Procédures en vidéo</a></td>
  157. </tr>
  158. <tr>
  159. <td height="60" align="left" valign="top" class="MenuG"><a href="../phpBB2/index.php">Forum</a></td>
  160. </tr>
  161. <tr>
  162. <td height="60" class="MenuG">Administration</td>
  163. </tr>
  164. <tr>
  165. <td class="MenuinterG"></td>
  166. <td class="MenuD"> </td>
  167. </tr>
  168. <tr>
  169. <td height="22" class="menuBG"> </td>
  170. <td height="22" class="Menucentre"><span class="MentionLegal">© 2007 serma technologies | <a href="../contacts.php">Contacts</a> | Plan du site </span></td>
  171. <td height="22" class="menuBD"> </td>
  172. </tr>
  173. </table>
  174. <p> </p>
  175. <p> </p>
  176. <p> </p>
  177. </body>
  178. </html>

PS : Pas taper ! :jap: 

Autres pages sur : dreamweaver tableau

Lassé par la pub ? Créez un compte
Lassé par la pub ? Créez un compte