<?php require_once "resources/config.php"; require_once "resources/library/db_functions.php"; //echo $config['db']['dbname']; if (isset($_GET['nid'])) { $id = $_GET['nid']; echo $id; } $idioma = "ca"; if (isset($_GET['idioma'])) { $idioma = $_GET['idioma']; echo $idioma; } echo "Noticies:<br>"; $noticies = getNoticies($config['db'], $idioma); $counter = 0; while ($row = mysql_fetch_array($noticies)) { echo "noticias[" . $counter . "]= " . $row['title'] . "," . $row['body'] . "<br>"; $counter = $counter + 1; } echo "<br><br><hr><hr><hr><hr><hr>"; $tipusServei = getTipusDeEspectacle($config['db'], $id, $idioma); echo "Tipus de espectacle: " . $tipusServei . "<br><br>"; $tipusPublic = getTipusDePublic($config['db'], $id, $idioma); echo "Tipus de public: " . $tipusPublic . "<br><br>"; $duracio = getDuracio($config['db'], $id); echo "Duració: " . $duracio . "<br><br>"; $nodeInfo = getNode($config['db'], $id); while ($row = mysql_fetch_array($nodeInfo)) { echo " Titol:" . $row['title'] . "<br>";
</head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head> <title>News</title> <!-- <body bgcolor="#F0F0F0" text="#000000" onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="NewsScrollStart();"> --> <body bgcolor="#FFFFFF" text="#000000" onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="NewsScrollStart();"> <div id="NewsDiv"> <table cellpadding="5" cellspacing="0" border="0" width="100%"><tr><td> <?php $noticies = getNoticies($config['db'], 'es'); $counter = 0; while ($row = mysql_fetch_array($noticies)) { echo "<span class='title'>" . $row['title'] . "<br></span><div style='width:170px;'>" . $row['body'] . "</div><br><br><br>"; } ?> </td></tr></table> <!-- YOU DO NOT NEED TO EDIT BELOW THIS LINE -->
</head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head> <title>News</title> <!-- <body bgcolor="#F0F0F0" text="#000000" onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="NewsScrollStart();"> --> <body bgcolor="#FFFFFF" text="#000000" onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="NewsScrollStart();"> <div id="NewsDiv"> <table cellpadding="5" cellspacing="0" border="0" width="100%"><tr><td> <?php $noticies = getNoticies($config['db'], 'ca'); $counter = 0; while ($row = mysql_fetch_array($noticies)) { echo "<span class='title'>" . $row['title'] . "<br></span>" . $row['body'] . "<br><br><br>"; } ?> </td></tr></table> <!-- YOU DO NOT NEED TO EDIT BELOW THIS LINE -->