|
gilbau 486
| Posté : 22-11-2006 16:50
j'aimerai récupérer le code de
et n'avoir ce form avec un hauteur la plus petite possible car quand j'utilise ......... , voir message suivant pour le code php |  Profil www
|
|
gilbau 486
| Posté : 22-11-2006 16:53
Suite du message précédent :
Donc quand j'utilise ce bout de code
!PHP!<!--meta
<?php
//menu des forums
if ($SuperCache) {
$cache_clef="forum-jump-to";
$CACHE_TIMINGS[$cache_clef]=600;
$cache_obj->startCachingBlock($cache_clef);
}
if (($cache_obj->genereting_output==1) or ($cache_obj->genereting_output==-1) or (!$SuperCache)) {
echo "<form action=\"viewforum.php\" method=\"post\">";
echo "<select class=\"TEXTBOX_STANDARD\" name=\"forum\" onchange=\"submit();\"><option value=\"-1\">".translate("Select a Forum")."</option>";
$sub_sql = "SELECT forum_id, forum_name, forum_type, fo rum_pass FROM forums ORDER BY cat_id,forum_index,forum _id";
if ($res = mysql_query($su b_sql)) {
while (list($forum _id, $forum_name, $forum_type, $forum_pass)=mysql_fetch_array($r es)) {
if&nb sp;(($forum_type != "9") or ($userdata)) {
  ; if (($forum_type == "7") or ($forum_type == "5")) {
  ; $ok_affich=false;
  ; } else {
  ; $ok_affich=true;
  ; }
  ; if ($ok_affich) echo "<option value=\"$forum_id\"> ".stripslashes($forum_name)."</option>\n";
}
}
}
echo "</select></form>";
}
if ($SuperCache) {
$cache_obj->endCachingBlock($cache_clef);
}
?>
meta-->
J'ai une hauteur de 10 pixels environs qui se rajoute en dessous de la zone formulaire
Je ne sais pas comment maintenir cette zone forumaire de choix a une hauteur voulue fixe |  Profil www
|
|
developpeur 24581
| Posté : 22-11-2006 23:14
c'est souvant le /form qui fait cela ... la solution DIV ou ben un tabaleau avec le /form bloqué entre un /td et le /tr (c'est htmllement faux mais ca le fait) |  Profil E-mail www
|
|
gilbau 486
| Posté : 22-11-2006 23:46
J'ai essayé d'encadrer avec un div en plus mais ca ne le fait pas
<tr><div><td valign="bottom" align="right" bgcolor="#3D7EBE" height="20"><font color="#EBF5FE">
!PHP!<!--meta
<?php
//menu des forums
if ($SuperCache) {
$cache_clef="forum-jump-to";
$CACHE_TIMINGS[$cache_clef]=600;
$cache_obj->startCachingBlock($cache_clef);
}
if (($cache_obj->genereting_output==1) or ($cache_obj->genereting_output==-1) or (!$SuperCache)) {
echo "<form action=\"viewforum.php\" method=\"post\">";
echo "<select class=\"TEXTBOX_STANDARD\" name=\"forum\" onchange=\"submit();\"><option value=\"-1\">".translate("Select a Forum")."</option>";
$sub_sql = "SELECT forum_id, forum_name, forum_type, fo rum_pass FROM forums ORDER BY cat_id,forum_index,forum _id";
if ($res = mysql_query($su b_sql)) {
while (list($forum _id, $forum_name, $forum_type, $forum_pass)=mysql_fetch_array($r es)) {
if&nb sp;(($forum_type != "9") or ($userdata)) {
  ; if (($forum_type == "7") or ($forum_type == "5")) {
  ; $ok_affich=false;
  ; } else {
  ; $ok_affich=true;
  ; }
  ; if ($ok_affich) echo "<option value=\"$forum_id\"> ".stripslashes($forum_name)."</option>\n";
}
}
}
echo "</select></form>";
}
if ($SuperCache) {
$cache_obj->endCachingBlock($cache_clef);
}
?>
meta-->
</font></td></div></tr>
|  Profil www
|
|
developpeur 24581
| Posté : 29-11-2006 22:46
essaie avec le déplacement du /form |  Profil E-mail www
|
|