UNIVERSIDAD TECNOLOGÍCA DEL VALLE DE TOLUCA
Dirección de Carrera de Tecnologías de la Información y Comunicación
Ingeniería en Tecnologías de la Información y Comunicación, Área Sistemas Informáticos
Presenta Morales Ortiz Diana Gabriela
221111338
Ruiz Munguía Andrea
221111305
Villavicencio Ponce Juan Daniel
221110969
Profesor ISE. Raúl Arturo García Martínez Materia Desarrollo de Aplicaciones Web Grupo ITIC-91 Fecha Jueves, 05 de junio de 2014
Rss.php <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <form action="rss.php" method="get"> <?php echo"<SELECT NAME='selCombo' SIZE=1 onChange='javascript:alert('prueba');'> <OPTION VALUE='http://noticias.terra.com.mx/rss/Controller?channelid=bc9d5d96caded210 VgnVCM10000098f154d0RCRD&ctName=atomo-noticia'>Terra</OPTION> <OPTION VALUE='http://www.eluniversal.com.mx/rss/edomex.xml'>Universal</OPTION> <OPTION VALUE='http://sports.espn.go.com/espn/rss/news'>Sports</OPTION> <OPTION VALUE='http://excelsior.feedsportal.com/c/33879/f/656214/index.rss'>Excelsior</O PTION> <OPTION VALUE='http://www.noroeste.com.mx/rss/portada.xml'>Noreste</OPTION> </SELECT> "; echo" <p><input type='submit' /></p> </form>"; $url=$_GET["selCombo"]; echo"<table cellpadding='10' frame='border' border='1' bgcolor= '#00FFFF'>"; $rss = simplexml_load_file($url); if($rss) { echo '<td><h1>'.$rss->channel->title.'</h1></td><tr>'; echo '<td><li>'.$rss->channel->pubDate.'</li><td/><tr>'; $items = $rss->channel->item; $image = $rss->channel->image->url; echo '<td><img src='.$image.'></td><tr>'; foreach($items as $item){ $title = $item->title; $link = $item->link; $published_on = $item->pubDate; $description = $item->description; $image = $item->image; echo '<td><h3><a href="'.$link.'">'.$title.'</a></h3></td><tr>'; echo '<td><span>('.$published_on.')</span></td><tr>'; echo '<td><p>'.$description.'</p><td><tr>'; } } ?>
Terra
El universal
Sports
ExcĂŠlsior
Noroeste