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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
else{
require('config.php');
//require('funciones.php');
$sqlr = "SELECT * ";
$sqlr.= "FROM tb_ads WHERE tipo='ads' and category='$indice' ORDER BY fechainicia DESC";
$rsr = mysql_query($sqlr, $con);
mysql_close($con);
if(mysql_num_rows($rsr)>0)
{
// Nous avons lu le contenu du modèle sujets
$templater = implode("", file("titulos1.php"));
while($rowr = mysql_fetch_assoc($rsr))
{
$rowr["total"]=$rowr["outside"] + $rowr["members"];
$bold=$rowr["bold"];
if ($bold=="1")
{
$rowr["bold"]="<b>";
$rowr["boldc"]="</b>";
}
$highlight=$rowr["highlight"];
if ($highlight=="1")
{
$rowr["highlight"]="#cccccc";
$rowr["highlight"]="#cccccc";
}
$ji=$rowr["members"];
$jo=$rowr["plan"];
if ($ji >= $jo)
{
$rowr["description"]="";
$rowr["members"]="";
$rowr["outside"]="";
$rowr["total"]="";
$rowr["id"]="";
}
mostrarTemplate($templater, $rowr);
} |