1 pièce(s) jointe(s)
imbriquer des frames avec php pour gérer mes graph camembert php
bonjour,
j'aimerais pouvoir imbriquer plusieurs frames en fonction de ma variable $a
je vois, cela ne veut pas...
peut-être la solution est proche du bout de mon nez...
qu'en pensez vous ?
Merci.
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
|
<?php
$a=5;
echo"<FRAMESET ROWS='100%,100%' border='0' scrolling=yes target=_'self'>";
echo"<FRAME SRC='#'>";
for($i=0;$i<$a;$i++){
// pour chacun des question on cree un frame
$frameheight1=strval(100/$a);
$frameheight1=$frameheight1.'%';
//echo"$frameheight1";
$frameheight2=strval(100-100/$a);
$frameheight2=$frameheight2.'%';
//echo"$frameheight2";
echo"<FRAMESET ROWS='170,*' border='0' target=_'self'>";
//echo"<div>";
echo"<FRAME SRC='graph-camembert-petit.php'>";
//include("graph-camembert-petit.php");
//echo"</div>";
}
echo"</frame>";
?> |
en fait ce que j'aimerais exactement,
c'est obtenir $a frame de 100 pixels de haut chacune.
merci.
Guillaume.
exactement j'aimerais obtenir ca mais avec une scrollling bar pour voir tous mes camemberts...
Pièce jointe 249393
merci de votre aide.
je rebalance le code toto
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
| <?php
$a=5;
echo"<FRAMESET ROWS='100%,100%' border='0' scrolling=yes target=_'self'>";
echo"<FRAME SRC='#'>";
for($i=0;$i<$a;$i++){
// pour chacun des question on cree un frame
$frameheight1=strval(100/$a);
$frameheight1=$frameheight1.'%';
//echo"$frameheight1";
$frameheight2=strval(100-100/$a);
$frameheight2=$frameheight2.'%';
//echo"$frameheight2";
echo"<FRAMESET ROWS='170,*' border='0' target=_'self'>";
//echo"<div>";
echo"<FRAME SRC='graph-camembert-petit.php'>";
//include("graph-camembert-petit.php");
//echo"</div>";
}
echo"</frame>";
?> |
Bonjour, mon code actuel me limite à
3 graphiques et ceci est bien sûr fonction de la résolution de mon écran... Le problème est que j'appelle un script php générant une image (header) donc impossible d'afficher autre chose...
Je me disais donc que pour contourner le problème, j'allais afficher autant de pages que de graphiques à afficher...
C'est possible mais pour cela il me faudrait une scrolling bar de toutes ces pages...
Tu comprends ?