".$lang_label["visual_console"]." > ";
echo $lang_label["summary"]."";
$sql="SELECT * FROM tlayout";
$res=mysql_query($sql);
if (mysql_num_rows($res)) {
echo "
";
echo "
".$lang_label["name"]." |
".$lang_label["group"]." |
".$lang_label["elements"]." |
".$lang_label["view"]." | ";
$color=1;
while ($row = mysql_fetch_array($res)){
// Calculate table line color
if ($color == 1){
$tdcolor = "datos";
$color = 0;
}
else {
$tdcolor = "datos2";
$color = 1;
}
echo "
";
// Name
echo "".$row["name"]." | ";
$id_layout = $row["id"];
// Group
echo " | ";
// # elements
$sql2="SELECT COUNT(*) FROM tlayout_data WHERE id_layout = $id_layout";
$res2=mysql_query($sql2);
$row2 = mysql_fetch_array($res2);
echo "".$row2[0]." | ";
// View icon
echo " |
";
}
echo "
";
} else {
echo "".$lang_label["no_layout_def"]."
";
}
?>