Index du Forum » » Le coin des codeurs

Auteur

Bug help variable ....
Hotfirenet
1738       
 

  Posté : 20-10-2003 08:56

Voila mon prob suite a une publication qu'il ya eu par dans la parti theme dynamic ....
pour que la colonne de bloc gauche soit differente de celle de droite .....

Voila ....

function themesidebox($title, $content) {
global $theme;

if ($themeTMP=="1")
{ function themesideboxgauche();
}else{
if ($themeTMP=="2")
{ function themesideboxdroite();
}
}
function themesideboxgauche($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#3E4D37\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
. "<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n&qu ot;
."</tr></table></td></tr></table>&l t;/td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
." ;<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr>&l t;td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."&l t;/tr></table></td></tr></table></td></tr&g t;</table>\n";

}
function themesideboxdroite($title, $content) {
global $theme;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<tr><td width=\"100%\" bgcolor=\"#c0c0c0\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" width=\"100%\" bgcolor=\"#c0c0c0c\" background=\"themes/$theme/images/grbackmenu.gif\">\n"
. "<tr><td width=\"15\"><p align=\"center\">\n"
."<img border=\"0\" src=\"themes/$theme/images/cross.gif\" align=\"left\" width=\"15\" height=\"15\"></td>\n"
."<td width=\"135\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" bgcolor=\"#000000\">\n"
."<tr><td width=\"100%\" bgcolor=\"#D3DCD1\"><font size=\"2\"><b> $title</b></font></td>\n&qu ot;
."</tr></table></td></tr></table>&l t;/td></tr><tr><td width=\"100%\" background=\"themes/$theme/images/lines.gif\">\n"
." ;<img border=\"0\" src=\"themes/$theme/images/lines.gif\" width=\"150\" height=\"8\"></td></tr>"
."<tr>&l t;td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td width=\"100%\"><font size=\"2\">$content</font></td>\n"
."&l t;/tr></table></td></tr></table></td></tr&g t;</table>\n";

}


Mais ca buggg

[ Message édité par : Hotfirenet : 20-10-2003 08:56 ]



Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=8120&forum=5