<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4457529761307825175</id><updated>2024-10-11T16:52:18.717-07:00</updated><title type='text'>Web Controler</title><subtitle type='html'>Recursos, tutoriales y consejos sobre el diseño y programación de páginas web.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-5250248569527545014</id><published>2010-08-03T07:03:00.000-07:00</published><updated>2010-08-03T07:03:19.344-07:00</updated><title type='text'>Motivación</title><content type='html'>La motivación es algo muy importante al momento de iniciar un proyecto web.&lt;br /&gt;
&lt;br /&gt;
Muchos lo hacen por dinero, otros por obligación, pero hay proyectos Open Source, sin ánimo de lucro.&lt;br /&gt;
&lt;br /&gt;
Dónde obtienen ellos su motivación?, por qué lo hacen?&lt;br /&gt;
&lt;br /&gt;
Aquí la opinión de algunos webmasters:&amp;nbsp;&lt;a href=&quot;http://blog.webtorio.com/motivacion&quot;&gt;http://blog.webtorio.com/motivacion&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Si eres webmaster, envia tu motivación como comentario!</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/5250248569527545014/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2010/08/motivacion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5250248569527545014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5250248569527545014'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2010/08/motivacion.html' title='Motivación'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-2278297859112032665</id><published>2010-05-22T08:07:00.000-07:00</published><updated>2010-05-22T08:07:08.621-07:00</updated><title type='text'>Google y su genial propuesta de logo</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1O3IOUYjxOvm4mOWzF8b-xlwOQeIw0-ByvYaBpu7bXN_wL9IqlwYMYKWccfgua5QIOVusPFexQZWzt2tTBU1TfBVvzE2Ev0cLM_e71l-WyKgygf_Vp78Pd563wIjeY6JDVPMDd3r2Fi9Z/s1600/Dibujo.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1O3IOUYjxOvm4mOWzF8b-xlwOQeIw0-ByvYaBpu7bXN_wL9IqlwYMYKWccfgua5QIOVusPFexQZWzt2tTBU1TfBVvzE2Ev0cLM_e71l-WyKgygf_Vp78Pd563wIjeY6JDVPMDd3r2Fi9Z/s320/Dibujo.bmp&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Muchos hemos visto cómo cambia el logo de Google dependiendo de alguna fecha importante, como las olimpiadas, el mundial, días de independencia o cumpleaños de algún personaje famoso.&lt;br /&gt;
&lt;br /&gt;
Esta vez, Google celebra el aniversario número 30 del famoso juego Pacman.&lt;br /&gt;
&lt;br /&gt;
Pero esta vez no es un simple logo, ya que puedes jugar, ganar puntos y todo igual al original juego de pacman!!! Y también cambió el botón de &quot;Voy a tener suerte&quot; por &quot;Insertar moneda&quot;.&lt;br /&gt;
&lt;br /&gt;
Ahora, tenemos que esperar a ver qué nuevas sorpresas nos trae Google.&lt;br /&gt;
&lt;br /&gt;
Que te parece?</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/2278297859112032665/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2010/05/google-y-su-genial-propuesta-de-logo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/2278297859112032665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/2278297859112032665'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2010/05/google-y-su-genial-propuesta-de-logo.html' title='Google y su genial propuesta de logo'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1O3IOUYjxOvm4mOWzF8b-xlwOQeIw0-ByvYaBpu7bXN_wL9IqlwYMYKWccfgua5QIOVusPFexQZWzt2tTBU1TfBVvzE2Ev0cLM_e71l-WyKgygf_Vp78Pd563wIjeY6JDVPMDd3r2Fi9Z/s72-c/Dibujo.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-815570861033799914</id><published>2010-05-20T12:09:00.000-07:00</published><updated>2010-05-20T12:11:11.722-07:00</updated><title type='text'>Hablando sobre el Software Libre :: Entrevista</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;En bloggeandolo.blogspot.com le han realizado una &lt;a href=&quot;http://bloggeandolo.blogspot.com/2010/05/platicando-sobre-software-libre.html&quot;&gt;entrevista&lt;/a&gt; a uno de los desarrolladores del nuevo software de foros &lt;a href=&quot;http://linkenforos.com.ar/&quot;&gt;LinKen&lt;/a&gt; sobre el Open Source.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Tal vez hayamos encontrado comentarios y puntos de vista provenientes de quienes usan o modifican el software libre.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Pero esta vez,&amp;nbsp;hablaremos&amp;nbsp;con quién lo desarrolla directamente ;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;La entrevista se realizó a Alan, alias &quot;Kenichi&quot;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;encargado del diseño y la programación de la interfaz gráfica en LinKen foros.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana;&quot;&gt;Enlace:&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium;&quot;&gt;&lt;a href=&quot;http://bloggeandolo.blogspot.com/2010/05/platicando-sobre-software-libre.html&quot;&gt;http://bloggeandolo.blogspot.com/2010/05/platicando-sobre-software-libre.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana;&quot;&gt;Saludos!!!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/815570861033799914/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2010/05/hablando-sobre-el-software-libre.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/815570861033799914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/815570861033799914'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2010/05/hablando-sobre-el-software-libre.html' title='Hablando sobre el Software Libre :: Entrevista'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-4925839352836593103</id><published>2010-05-17T17:32:00.000-07:00</published><updated>2010-05-17T17:47:18.466-07:00</updated><title type='text'>LinKen Foros v1.3</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.linkenforos.com.ar/linken2.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 250px; height: 70px;&quot; src=&quot;http://www.linkenforos.com.ar/linken2.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Como ya lo habrán notado, he estado ausente por mucho tiempo; pues he estado muy ocupado con mis otras obligaciones y algunos proyectos web más profesionales (&lt;a href=&quot;http://www.fashiongall.com/&quot;&gt;http://www.fashiongall.com/&lt;/a&gt;, &lt;a href=&quot;http://www.webtorio.co.cc/&quot;&gt;http://www.webtorio.co.cc/&lt;/a&gt;).&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pero hoy les traigo una nueva noticia.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Se trata de la nueva versión del sistema de foros LinKen. El número de esta versión es 1.3 y se han solucionado todos los bugs de las versiones anteriores.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Además de que hay muchas mejoras en comparación con la versión 0.5 RC1, cuenta con unos de los instaladores más fáciles de utilizar que se hayan creado. Nueva apariencia y un sistema de administración simple para que cualquiera pueda utilizarlo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recientemente se publicó la &lt;a href=&quot;http://www.linkenforos.com.ar/comunidad/ver_tema.php?c=34&amp;amp;f=1&quot;&gt;Guia de instalacion actualizada&lt;/a&gt; para su más reciente versión &lt;a href=&quot;http://www.linkenforos.com.ar/comunidad/ver_tema.php?c=31&amp;amp;f=1&quot;&gt;LinKen v1.3&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Se encuentran preparando la versión 2.0; la cual planea añadir más opciones y mejorar las ya existentes; &lt;a href=&quot;http://linkenforos.com.ar/comunidad/ver_tema.php?c=24&amp;amp;f=1&quot;&gt;ver lista&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Se espera mucho de este nuevo proyecto que poco a poco...se está abriendo camino.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Página oficial: &lt;a href=&quot;http://linkenforos.com.ar/comunidad/ver_tema.php?c=24&amp;amp;f=1&quot;&gt;http://linkenforos.com.ar/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Descargar: &lt;a href=&quot;http://www.linkenforos.com.ar/descargar.php&quot;&gt;http://www.linkenforos.com.ar/descargar.php&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Y a partir de esta publicación escribiré más seguido....saludos!!!&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/4925839352836593103/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2010/05/linken-foros-v13.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/4925839352836593103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/4925839352836593103'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2010/05/linken-foros-v13.html' title='LinKen Foros v1.3'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-5305500999080545045</id><published>2009-11-11T14:50:00.000-08:00</published><updated>2009-11-11T15:01:47.277-08:00</updated><title type='text'>Webtorio :: Tu directorio de páginas web</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjowJAGr3nMSK6pkuwJhtjeAbqZhyphenhyphenf2k14D_C3HUKC9Jw-CkLMvKWFAbubS4q-Fqymg1LO0iQO9OUrK1mICUL10h81wR2TGu9-TtWucJmXcZIUUcgDKigaw4OtwnRiqOk-u92RPeUdJB5fE/s1600-h/Dibujo.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 242px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjowJAGr3nMSK6pkuwJhtjeAbqZhyphenhyphenf2k14D_C3HUKC9Jw-CkLMvKWFAbubS4q-Fqymg1LO0iQO9OUrK1mICUL10h81wR2TGu9-TtWucJmXcZIUUcgDKigaw4OtwnRiqOk-u92RPeUdJB5fE/s320/Dibujo.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5402983010138991106&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Hoy les presento un nuevo directorio de páginas web. Se trata de &lt;a href=&quot;http://www.webtorio.co.cc&quot;&gt;Webtorio&lt;/a&gt;, un pequeño proyecto con grandes metas.&lt;div&gt;Es un proyecto que está en crecimiento, y que necesita el apoyo para poder avanzar.&lt;/div&gt;&lt;div&gt;Tiene varias opciones interesantes, ideales para dar a conocer nuevas páginas web, votación semanal y control total de las páginas registradas.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Su agradable diseño, lo hace ideal para los que quieren encontrar nuevas páginas del internet, compartirlas en las redes sociales más famosas: Twitter, Facebook, Reddit, Digg, etc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Además se adelanta la sección de códigos HTML, una sección en la que se econtrará códigos para colocar en tu web y conseguir más votos. También se espera un pequeño libro de visitas, para recibir los comentarios de los visitantes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Podemos enviar nuestro comentarios, dudas y sugerencias a través del formulario de contacto:&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.webtorio.co.cc/contacto.php&quot;&gt;http://www.webtorio.co.cc/contacto.php&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;También tiene un buscador, en el que podemos encontrar lo que buscamos.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Enlace: &lt;a href=&quot;http://www.webtorio.co.cc/&quot;&gt;http://www.webtorio.co.cc/&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/5305500999080545045/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/11/webtorio-tu-directorio-de-paginas-web.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5305500999080545045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5305500999080545045'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/11/webtorio-tu-directorio-de-paginas-web.html' title='Webtorio :: Tu directorio de páginas web'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjowJAGr3nMSK6pkuwJhtjeAbqZhyphenhyphenf2k14D_C3HUKC9Jw-CkLMvKWFAbubS4q-Fqymg1LO0iQO9OUrK1mICUL10h81wR2TGu9-TtWucJmXcZIUUcgDKigaw4OtwnRiqOk-u92RPeUdJB5fE/s72-c/Dibujo.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-7508772024047409364</id><published>2009-08-28T10:08:00.000-07:00</published><updated>2009-08-28T10:52:28.421-07:00</updated><title type='text'>Resetear estilos Css</title><content type='html'>Mucho nos hemos topado con las diferencias entre los navegadores al momento de diseñar nuestras páginas web. Estos problemas se dan por los valores predeterminados de los navegadores, ya que no todos son iguales.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Podemos mejorar la compatibilidad de nuestras páginas usando métodos para &lt;i&gt;resetar&lt;/i&gt; los estilos.&lt;/div&gt;&lt;div&gt;Hay varios método propuestos. Uno de ellos, el más básico es este:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#660000;&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;{&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;code&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;padding: &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF6666;&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;margin: &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF6666;&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;&lt;/code&gt;&lt;div&gt;&lt;code&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Otras más avanzadas, como las propuestas en este &lt;a href=&quot;http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/&quot;&gt;Post de Pinceladas Web&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;O también, podríamos usar el método que propone Yahoo! en Developer Network: &lt;a href=&quot;http://developer.yahoo.com/yui/reset/&quot;&gt;http://developer.yahoo.com/yui/reset/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:&#39;Courier New&#39;, helvetica, clean, sans-serif;color:#0000FF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; line-height: 13px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;Estos métodos nos pueden ayudar al momento de diseñar nuestras páginas.</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/7508772024047409364/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/resetear-estilos-css.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/7508772024047409364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/7508772024047409364'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/resetear-estilos-css.html' title='Resetear estilos Css'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-9153804481652906021</id><published>2009-08-27T06:26:00.000-07:00</published><updated>2009-08-27T06:39:27.140-07:00</updated><title type='text'>ComoCrearTuWeb.com</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://comocreartuweb.com/comun/objetos/como-crear-tu-web.gif&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 247px; height: 71px;&quot; src=&quot;http://comocreartuweb.com/comun/objetos/como-crear-tu-web.gif&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.comocreartuweb.com/&quot;&gt;Cómo Crear Tu Web&lt;/a&gt; es una página perfecta para quienes desean iniciarse en el diseño web. Los tutoriales y cursos parten totalmente desde cero. Esta web tiene ya varios años de estar en línea.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Tiene varios cursos, uno de ellos, el que yo recomiendo es el &lt;a href=&quot;http://comocreartuweb.com/html-kit-tutorial/tutorial-html-kit-introducion.html&quot;&gt;Curso Completo Paso a Paso&lt;/a&gt;, en este curso se explica desde cero todo sobre el diseño web; trabaja con el editor HTML-Kit (el cual es gratuito) y mientras se aprende, se va construyendo una web, con el mismo diseño.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;También cuenta con un &lt;a href=&quot;http://www.comocreartuweb.com/phpBB2/&quot;&gt;Foro&lt;/a&gt; en que se podrá poner cualquier pregunta o duda que se tenga, tiene varios colaboradores que te responderán lo más rápido posible.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Recientemente no se han añadido nuevas lecciones; pero su creador, &lt;i&gt;Jorgens&lt;/i&gt;, está trabajado en ellas.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Enlace a la web: &lt;a href=&quot;http://www.comocreartuweb.com/&quot;&gt;http://www.comocreartuweb.com/&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Enlace al foro: &lt;a href=&quot;http://www.comocreartuweb.com/phpBB2/&quot;&gt;http://www.comocreartuweb.com/phpBB2/&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hasta la próxima!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/9153804481652906021/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/comocreartuwebcom.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/9153804481652906021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/9153804481652906021'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/comocreartuwebcom.html' title='ComoCrearTuWeb.com'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-8277632929229883513</id><published>2009-08-24T18:55:00.000-07:00</published><updated>2009-08-24T20:06:56.656-07:00</updated><title type='text'>Recomendaciones para encriptar con Php</title><content type='html'>Php cuenta con varias funciones para encriptar cadenas de texto, estas funciones se usan para proteger datos, ya que la mayoría no tienen reversa, es decir, si encriptamos la cadena &quot;Hola Mundo&quot; obtenemos otra cadena; pero esta no se puede desencriptar.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La funcion md5 (abreviatura de &lt;i&gt;Message-Digest Algorithm 5&lt;/i&gt;, Algoritmo de resumen del mensaje 5) era la más usada en php, devuelve un número de 128 bits de 32 dígitos hexadecimal. Luego se empezó a usar la familia de funciones SHA (abreviatura de &lt;i&gt;Secure Hash Algorithm&lt;/i&gt;, Algoritmo de hash seguro). El primer miembro de esta función en Php es SHA-1, produce una salida resumen de 160 bits.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;Más seguridad&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;Para aumentar la seguridad, podemos combinar varias de estas funciones; por ejemplo, podríamos poner: &lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;$cadena &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;hola mundo&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$codigo &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;sha1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;md5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$cadena&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;Aquí encriptamos &quot;hola mundo&quot; com md5 y a esa cadena la volvemos a encriptar con sha1.&lt;div&gt;Podemos también a la cadena original aumentarle una palabra clave que sólo nosotros la sabremos:&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;$cadena &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;hola mundo&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$clave &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;mi clave&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$codigo &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;sha1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;md5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$cadena&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$clave&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;Con esto, podemos hacer nuestra pequeña funcion de encriptamiento:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;encriptar&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$cadena&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;){&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$clave &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;@!#$%&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$codigo &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;sha1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;md5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$cadena&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$clave&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;));&lt;br /&gt; return &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$codigo&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;Y hacemos uso de ella con un simple &lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;encriptar&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;hola mundo&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;Espero sus comentarios y sugerencias.</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/8277632929229883513/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/recomendaciones-para-encriptar-con-php.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/8277632929229883513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/8277632929229883513'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/recomendaciones-para-encriptar-con-php.html' title='Recomendaciones para encriptar con Php'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-3715134192559251509</id><published>2009-08-11T06:20:00.000-07:00</published><updated>2009-08-11T06:39:07.568-07:00</updated><title type='text'>Twitter y Blogger</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://a1.twimg.com/a/1249943174/images/logo.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 224px; height: 55px;&quot; src=&quot;http://a1.twimg.com/a/1249943174/images/logo.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Twitter es un servicio gratuito de microbloging, actua al mismo tiempo como red social y permite a los usuarios enviar microentradas de texto llamadas tweets, de un máximo de 140 caracteres.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Estas se usan para decir que se está haciendo en estos momentos, y se les envía a todos los seguidores.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Twitter en Blogger&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Tal vez se nos haya ocurrido poner nuestras entradas de Twitter en un blog de blogger. Pues Twitter tiene un widget que permite hacerlo. Simplemente se necesita tener una cuenta en Twitter y una en Blogger e ir a la dirección &lt;a href=&quot;http://twitter.com/badges/blogger&quot;&gt;http://twitter.com/badges/blogger&lt;/a&gt; y seguir las instrucciones.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Blogger en Twitter&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Tambien es posible hacer lo contrario, que nuestras entradas del blog se vayan a twitter.&lt;/div&gt;&lt;div&gt;Para eso hay varios servicios extra. Como &lt;a href=&quot;http://twitterfeed.com/&quot;&gt;http://twitterfeed.com/&lt;/a&gt;, simplemente hay que registrarse, registrar el blog y adecuarlo a nuestro gusto: cada cuánto tiempo se va a actualizar, servicio para acortar urls, etc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Puedes seguirnos en Twitter: &lt;a href=&quot;http://twitter.com/webcontroler&quot;&gt;http://twitter.com/webcontroler&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Hasta la próxima!&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/3715134192559251509/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/twitter-y-blogger.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/3715134192559251509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/3715134192559251509'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/twitter-y-blogger.html' title='Twitter y Blogger'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-3186182188970327666</id><published>2009-08-10T09:37:00.000-07:00</published><updated>2009-08-10T10:00:43.079-07:00</updated><title type='text'>Galería de imágenes con Css::Experimento</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd69Oxf3gZi9B6Rqf8OMiV4vEwMDoklAmHt-R95DbeIsUc_fGNbvZPuVhpYyAOOdWPGKP2abqwQ8KZmRi4rHiw-ZzdN5n5d2lkIqu_G1QHt-E-Be1xHcUvR26mTEh_4WRokAS9FYIUyIPN/s1600-h/Dibujo.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 152px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd69Oxf3gZi9B6Rqf8OMiV4vEwMDoklAmHt-R95DbeIsUc_fGNbvZPuVhpYyAOOdWPGKP2abqwQ8KZmRi4rHiw-ZzdN5n5d2lkIqu_G1QHt-E-Be1xHcUvR26mTEh_4WRokAS9FYIUyIPN/s320/Dibujo.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368379888541052594&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Hoy quiero presentarles un experimento en el que estuve trabajando; se trata de una pequeña galería de imágenes utilizando únicamente css.&lt;div&gt;Pueden ver el ejemplo en este enlace: &lt;a href=&quot;http://casinada.freetzi.com/galeria-css/&quot;&gt;http://casinada.freetzi.com/galeria-css/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La verdad es que no está muy bien trabajada aún, se podría mejorar muchos aspectos, o tal vez trabajar con javascript para mejorar los efectos. Pero por eso lo posteo, para que me den sus opiniones y sugerencias.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El html de la galería es el siguiente:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#3333FF;&quot;&gt;&amp;lt;table id=&quot;galeria&quot;&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;a class=&quot;imagen&quot; href=&quot;#&quot;&amp;gt;Friends&amp;lt;span&amp;gt;&amp;lt;img src=&quot;img/1.jpg&quot; width=&quot;300&quot; height=&quot;200&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td rowspan=6 style=&quot;background-color: #000;height:210px;width:310px;color:#fff;text-align:center&quot;&amp;gt;Galería&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;a class=&quot;imagen&quot; href=&quot;#&quot;&amp;gt;Sapo&amp;lt;span&amp;gt;&amp;lt;img src=&quot;img/2.jpg&quot; width=&quot;300&quot; height=&quot;200&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;a class=&quot;imagen&quot; href=&quot;#&quot;&amp;gt;Césped&amp;lt;span&amp;gt;&amp;lt;img src=&quot;img/3.jpg&quot; width=&quot;300&quot; height=&quot;200&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;a class=&quot;imagen&quot; href=&quot;#&quot;&amp;gt;Cooperación&amp;lt;span&amp;gt;&amp;lt;img src=&quot;img/4.jpg&quot; width=&quot;300&quot; height=&quot;200&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;a class=&quot;imagen&quot; href=&quot;#&quot;&amp;gt;Rojo&amp;lt;span&amp;gt;&amp;lt;img src=&quot;img/5.jpg&quot; width=&quot;300&quot; height=&quot;200&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div&gt;El Css:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;* {text-indent:0px ; margin:0px ; padding:0px ; border:0px}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;body {background-color: #093;font-family:&#39;Trebuchet Ms&#39;}&lt;br /&gt;.imagen         {display: block ;color: black ; text-decoration:none ; width:150px;}&lt;br /&gt;.imagen:link    {}&lt;br /&gt;.imagen:visited {}&lt;br /&gt;.imagen:hover   {color: #fff ; font-weight:bold ; background-color: #000}&lt;br /&gt;.imagen:active  {}&lt;br /&gt;&lt;br /&gt;.imagen span{&lt;br /&gt;position: absolute;&lt;br /&gt;left: -1000px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.imagen span img{&lt;br /&gt;border:none;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.imagen:hover span{&lt;br /&gt;visibility: visible;&lt;br /&gt;top:7;&lt;br /&gt;left: 159px;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div&gt;Y eso es todo, les vuelvo a dejar el enlace al ejemplo:&lt;a href=&quot;http://casinada.freetzi.com/galeria-css/&quot;&gt;http://casinada.freetzi.com/galeria-css/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Y les hice un comprimido con los archivos del experimento:&lt;a href=&quot;http://casinada.freetzi.com/?d=galeria-css.rar&quot;&gt;http://casinada.freetzi.com/?d=galeria-css.rar&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Espero sus comentarios :)&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/3186182188970327666/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/galeria-de-imagenes-con-cssexperimento.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/3186182188970327666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/3186182188970327666'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/galeria-de-imagenes-con-cssexperimento.html' title='Galería de imágenes con Css::Experimento'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd69Oxf3gZi9B6Rqf8OMiV4vEwMDoklAmHt-R95DbeIsUc_fGNbvZPuVhpYyAOOdWPGKP2abqwQ8KZmRi4rHiw-ZzdN5n5d2lkIqu_G1QHt-E-Be1xHcUvR26mTEh_4WRokAS9FYIUyIPN/s72-c/Dibujo.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-1155240131844420958</id><published>2009-08-09T08:27:00.000-07:00</published><updated>2009-08-09T11:33:13.920-07:00</updated><title type='text'>Personalizar CheckBox con FancyForm</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLlQi5LSqkU5zxf-A216aDaW8qfLdSd8g6NMBJ-ngNguP15HXIsHj9qZIi8u2HeNzhscSkVPI_XIdQRAuCx6zOolS3qC8FJccCvpCpEJXvVA6zJbB6Z2KFPvGdgHvHqhzF9JIjV1TVSu_z/s1600-h/Dibujo.jpg&quot;&gt;&lt;img style=&quot;text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 245px; &quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLlQi5LSqkU5zxf-A216aDaW8qfLdSd8g6NMBJ-ngNguP15HXIsHj9qZIi8u2HeNzhscSkVPI_XIdQRAuCx6zOolS3qC8FJccCvpCpEJXvVA6zJbB6Z2KFPvGdgHvHqhzF9JIjV1TVSu_z/s320/Dibujo.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368033280657518786&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;FancyForm es un script basado en Mootools que te permitirá darle estilo propio a los checkbox y radio buttons mediante css.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Puedes ver un ejemplo en &lt;a href=&quot;http://casinada.freetzi.com/fancyform/&quot;&gt;http://casinada.freetzi.com/fancyform/&lt;/a&gt; o también en la página oficial: &lt;a href=&quot;http://lipidity.com/fancy-form/demo/&quot;&gt;http://lipidity.com/fancy-form/demo/&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Para usarlo primero hay que descargar los archivos: &lt;a href=&quot;http://pub.lipidity.com/fancy-form.zip&quot;&gt;http://pub.lipidity.com/fancy-form.zip&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Incluimos los js en nuestro html:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;mootools.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;moocheck.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/code&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Y ahora hay que hacer el css. Los checkbox deben tener dos estilos llamados&lt;i&gt; ckecked&lt;/i&gt; y &lt;i&gt;unchecked, &lt;/i&gt; y los radio buttons &lt;i&gt;selected&lt;/i&gt; y &lt;i&gt;unselected&lt;/i&gt;.&lt;/div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Pero, hay que hacer una pequeña corrección, puesto que el fondo se va a repetir y no se va a ver correctamente. El Css completo queda así:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 102, 0); &quot;&gt;.f_checkbox,.f_radio {&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 102, 0); &quot;&gt;background-repeat:no-repeat;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;background-position:3px center;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;height:16px;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;display:block;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;cursor:pointer;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;line-height:120%;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.f_radio {&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;padding:4px 24px;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.f_checkbox {&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;padding:0.5em 24px;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.unchecked {&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;background-image:url(chk_off.png);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.checked {&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;background-image:url(chk_on.png);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.unselected{&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;background-image:url(rdo_off.png);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;.selected{&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;background-image:url(rdo_on.png);&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;}&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Ahora únicamente hay que crear los input como de costrumbre, dentro de un label con la clase f_checkbox o f_radio respectivamente:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;label class=&#39;f_radio&#39;&amp;gt;&amp;lt;input type=&#39;radio&#39; name=&#39;gender&#39; value=&#39;male&#39;&amp;gt; Masculino&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;label class=&#39;f_checkbox&#39;&amp;gt;&amp;lt;input type=&#39;checkbox&#39; name=&#39;newsletter&#39; checked=&#39;checked&#39;&amp;gt; Deportes&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/code&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Para terminar les dejo un comprimido con los archivos de este tutorial (incluido los js): &lt;a href=&quot;http://casinada.freetzi.com/?d=fancyform.rar&quot;&gt;http://casinada.freetzi.com/?d=fancyform.rar&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Hasta la próxima!!!&lt;/div&gt;&lt;a href=&quot;http://casinada.freetzi.com/?d=fancyform.rar&quot;&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/1155240131844420958/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/personalizar-checkbox-con-fancyform.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/1155240131844420958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/1155240131844420958'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/personalizar-checkbox-con-fancyform.html' title='Personalizar CheckBox con FancyForm'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLlQi5LSqkU5zxf-A216aDaW8qfLdSd8g6NMBJ-ngNguP15HXIsHj9qZIi8u2HeNzhscSkVPI_XIdQRAuCx6zOolS3qC8FJccCvpCpEJXvVA6zJbB6Z2KFPvGdgHvHqhzF9JIjV1TVSu_z/s72-c/Dibujo.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-5700269701545287042</id><published>2009-08-05T12:02:00.000-07:00</published><updated>2009-08-05T13:26:11.064-07:00</updated><title type='text'>PclTemplate::Separar el diseño de la programación</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;PclTemplate es una clase para manejar fácilmente plantillas. Puede leer plantillas por archivos de texto o por una cadena (string).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Vamos a hacer un ejemplo simple para ver cómo funcioma esta clase.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Primero descargamos los archivos de la página oficial &lt;a href=&quot;http://www.phpconcept.net/pcltemplate/index.php&quot;&gt;http://www.phpconcept.net/pcltemplate/index.php&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.phpconcept.net/pcltemplate/index.php&quot;&gt;&lt;/a&gt;Descargamos la última versión que en estos momentos es 0.5&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Empezemos:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Esta clase puede manejar varios tipos de &quot;tokens&quot;; estas son&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Simples&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;De lista, tabla o arrays&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Condicionales&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Y de &quot;includes&quot;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Nuestro primer ejemplo será con las simples. Primero creamos la plantilla. Va a ser un simple html en la que necesitaremos el título y el usuario:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 102); &quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;html&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=windows-1250&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&amp;lt;!--(titulo)--&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;Bienvenido &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&amp;lt;!--(usuario)--&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;!&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000066;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Vemos que las tokens se definen como comentarios.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora, vamos a hacer el php que leerá la plantilla y nos dará los datos:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:-webkit-monospace;font-size:100%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 187); &quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;require_once(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;pcltemplate.class.php&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;PclTemplate&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;parseFile&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;plantilla1.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= array();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;titulo&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Probando la librería&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuario&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Invitado&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$resultado &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;generate&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$resultado&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;?&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:-webkit-monospace;font-size:100%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Primero, incluimos la clase, creamos un objeto de PclTemplate y con parseFile(&#39;plantilla1.html&#39;) le indicamos que leeremos la plantilla &quot;plantilla1.html&quot;;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Los datos son almacenados en arrays, entonces creamos un array y definimos los datos en base a las tokens.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora, el resultado, debemos guardarlo en una &quot;string&quot; para poder mostrarlo. Creamos una variable $resultado y generamos el string. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Por último, hacemos un echo a la variable $resultado y nos dará lo siguiente:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote style=&quot;text-align: justify;&quot;&gt;Bienvenido invitado!&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Se pueden definir cuantas tokens como se desee.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora, algo muy útil, vamos a usar las tokens de listas:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:-webkit-monospace;font-size:100%;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;head&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=windows-1250&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&amp;lt;!--(titulo)--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;!--(list:usuarios)--&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;table border=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;td&amp;gt;Nombre&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;td&amp;gt;Apellido&amp;lt;/td&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/tr&amp;gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;!--(item)--&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;tr&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;      &lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&amp;lt;!--(nombre)--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&amp;lt;!--(apellido)--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 153); &quot;&gt;&amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 153, 0); &quot;&gt;&amp;lt;!--(enditem)--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/table&amp;gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;!--(endlist)--&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#000099;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Con &lt;span class=&quot;Apple-style-span&quot;   style=&quot; color: rgb(0, 153, 0);  font-family:-webkit-monospace;font-size:13px;&quot;&gt;&amp;lt;!--(list:usuarios)--&amp;gt;&lt;/span&gt; decimos que vamos a trabajar con la lista usuarios.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot; color: rgb(0, 153, 0);  font-family:-webkit-monospace;font-size:13px;&quot;&gt;&amp;lt;!--(item)--&amp;gt;&lt;/span&gt; y &lt;span class=&quot;Apple-style-span&quot;   style=&quot; color: rgb(0, 153, 0);  font-family:-webkit-monospace;font-size:13px;&quot;&gt;&amp;lt;!--(enditem)--&amp;gt;&lt;/span&gt; encierran a cada uno de los datos que representa cada lista, lo que está encerrado aquí se repetirá por cada item que tenga la lista.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora el php:&lt;/div&gt;&lt;code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 187); &quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;require_once(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;pcltemplate.class.php&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;PclTemplate&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;parseFile&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;plantilla1.html&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= array();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;titulo&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Probando la librería&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;nombre&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Pedro&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;apellido&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Perez&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;nombre&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;María&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;apellido&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Martines&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;nombre&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Luis&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;usuarios&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;apellido&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;Lozano&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$resultado &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$plantilla&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;generate&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&#39;string&#39;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&lt;span style=&quot;color:#007700;&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$resultado&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;?&amp;gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/code&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Lo que nos dará el siguiente resultado:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; style=&quot;text-align: justify;&quot;&gt;&lt;tbody&gt;      &lt;tr&gt;        &lt;td&gt;Nombre&lt;/td&gt;        &lt;td&gt;Apellido&lt;/td&gt;      &lt;/tr&gt;            &lt;tr&gt;        &lt;td&gt;Pedro&lt;/td&gt;        &lt;td&gt;Perez&lt;/td&gt;      &lt;/tr&gt;            &lt;tr&gt;        &lt;td&gt;María&lt;/td&gt;        &lt;td&gt;Martines&lt;/td&gt;      &lt;/tr&gt;            &lt;tr&gt;        &lt;td&gt;Luis&lt;/td&gt;        &lt;td&gt;Lozano&lt;/td&gt;      &lt;/tr&gt;          &lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Esta clase es muy fácil de usar, y útil para separar la programación del diseño.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Para terminar les dejo un comprimido con los archivos del tutorial (incluye la librería): &lt;a href=&quot;http://casinada.freetzi.com/?d=pclTemplate.rar&quot;&gt;http://casinada.freetzi.com/?d=pclTemplate.rar&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Les invito a &lt;a href=&quot;http://www.phpconcept.net/pcltemplate/index.php&quot;&gt;http://www.phpconcept.net/pcltemplate/index.php&lt;/a&gt;, página oficial de la clase, ahí encontraran más ejemplos y un muy buen manual de uso.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hasta la próxima!&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/5700269701545287042/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/pcltemplatedividir-el-diseno-de-la.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5700269701545287042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5700269701545287042'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/pcltemplatedividir-el-diseno-de-la.html' title='PclTemplate::Separar el diseño de la programación'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-5906404051374054960</id><published>2009-08-03T07:11:00.000-07:00</published><updated>2009-08-03T09:34:26.081-07:00</updated><title type='text'>Gráfico estadístico de lineas con php y pChart</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKHIXBWALjhyphenhyphenwnAOgjN-yTKQCHA2NTBwHwEiH8V7TiFSYmcxpufIVZRiEfoCBkMF_txYSko7LxqfeJZbb1fQL9PbIk_e8j89H5UxpUQ7MfKI_0iWKomRgba2aYZSY0sSEsJIZaaEzhdLn4/s1600-h/Dibujo.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 195px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKHIXBWALjhyphenhyphenwnAOgjN-yTKQCHA2NTBwHwEiH8V7TiFSYmcxpufIVZRiEfoCBkMF_txYSko7LxqfeJZbb1fQL9PbIk_e8j89H5UxpUQ7MfKI_0iWKomRgba2aYZSY0sSEsJIZaaEzhdLn4/s320/Dibujo.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5365759089227419618&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#0000EE;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;En los posts anteriores hemos hecho algunos ejemplos de cómo usar la clase en php pChart, la cuál permite hacer gráficos estadísticos de apariencia profesional.&lt;/div&gt;&lt;div&gt;En esta ocación vamos a realizar un gráfico lineal, lo vamos a llamar desde otro archivo y junto con javascript le pondremos un buen efecto al pasar el cursor. Para ver el ejemplo termindao haz clic aquí. &lt;a href=&quot;http://shampoo.byethost32.com/pChart-js/&quot;&gt;http://shampoo.byethost32.com/pChart-js/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bien, para empezar, he preparado un comprimido con material de apoyo, incluye las librerias, los javascripts y el ejemplo a realizar:&lt;a href=&quot;http://casinada.freetzi.com/?d=pChart-lineas.rar&quot;&gt;http://casinada.freetzi.com/?d=pChart-lineas.rar&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Abrimos el archivo lineas.php que es el que va a generar la imagen; vamos a explicar el código.&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;if ( isset(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Action&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]) ) { &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Action &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Action&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]; } else { &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Action &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Draw&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;; }&lt;br /&gt;if ( isset(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;MapID&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]) )  { &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$MapID  &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;MapID&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;]; }&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Incluimos las clases&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;pChart/pData.class&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;pChart/pChart.class&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;br /&gt;if ( &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Action &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;GetImageMap&quot; &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;pChart&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;700&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;getImageMap&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$MapID&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Las primeras lineas son para que trabaje correctamente con el javascript, en las siguientes incluimos las clases y en las que siguen le indicamos con que imagen va a trabajar el js, que es esta misma.&lt;div&gt;&lt;br /&gt;&lt;div&gt;Para este ejmplo, haremos un gráfico que demuestre los libros vendidos en los primero 6 meses del año (lo siento, no se me ocurre nada más :P). Ahora definimos los datos:&lt;/div&gt;&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Definimos los datos&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;pData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;25&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;25&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Libros Vendidos&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Enero&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Febrero&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Marzo&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Abril&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Mayo&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Junio&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Meses&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Libros Vendidos&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;SetAbsciseLabelSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Meses&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;SetYAxisName&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Unidades vendidas&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Como vemos los datos se definen de igual forma que en los otros tipos de gráficos.&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Iniciamos el gráfico&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;pChart&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;700&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setImageMap&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$MapID&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setFontProperties&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Fonts/tahoma.ttf&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setGraphArea&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;65&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;650&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawFilledRoundedRectangle&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;693&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;223&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawRoundedRectangle&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;695&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;225&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawGraphArea&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawScale&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;SCALE_NORMAL&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawGrid&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Como vemos , el gráfico se inicia exactamente igual que en los otros ejemplos, pero le añadimos un nuevo método: &lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:-webkit-monospace;font-size:13px;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setImageMap&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$MapID&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt; , este le da los datos a js para que los ponga en el efecto.&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Dibujamos las lineas&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawLineGraph&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;());&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawPlotGraph&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Dibujamos la leyenda&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setFontProperties&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Fonts/tahoma.ttf&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawLegend&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;204&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;204&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;();  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:-webkit-monospace;font-size:100%;color:#007700;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Aquí hacemos lo mismo que en los otros ejemplos: dibujamos las lineas, dibujamos la &quot;leyenda&quot; y mostramos la imagen con Stroke();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora vamos con el otro archivo, abrimos index.php, este no es necesario modificar ni una explicación muy detallada: &lt;/div&gt;&lt;div&gt;No voy aponer el código para no hacer muy largo el post, pero aquí va una explicación breve&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;Qué es lo hace todo este código?&lt;div&gt;Pues es muy simple, incluye los archivos js, con php genera un número aleatorio para el dódigo de la imagen y le especificamos que imagen leer.&lt;/div&gt;&lt;div&gt;Con esto hemos terminado  los tutoriales sobre pChart. Les dejo otra vez el archivo ejemplo y el material de apoyo: &lt;/div&gt;&lt;div&gt;Ejemplo:&lt;a href=&quot;http://shampoo.byethost32.com/pChart-js/&quot;&gt;http://shampoo.byethost32.com/pChart-js/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Material de apoyo: &lt;a href=&quot;http://casinada.freetzi.com/?d=pChart-lineas.rar&quot;&gt;http://casinada.freetzi.com/?d=pChart-lineas.rar&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Les invito a visitar &lt;a href=&quot;http://pchart.sourceforge.net/&quot;&gt;http://pchart.sourceforge.net/&lt;/a&gt;, la página oficial de pChart, tiene otros ejemplos y una buena documentación.&lt;/div&gt;&lt;div&gt;Hasta la próxima!!!!&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/5906404051374054960/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/grafico-estadistico-de-lineas-con-php-y.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5906404051374054960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/5906404051374054960'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/grafico-estadistico-de-lineas-con-php-y.html' title='Gráfico estadístico de lineas con php y pChart'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKHIXBWALjhyphenhyphenwnAOgjN-yTKQCHA2NTBwHwEiH8V7TiFSYmcxpufIVZRiEfoCBkMF_txYSko7LxqfeJZbb1fQL9PbIk_e8j89H5UxpUQ7MfKI_0iWKomRgba2aYZSY0sSEsJIZaaEzhdLn4/s72-c/Dibujo.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-7604234541675064462</id><published>2009-08-01T06:13:00.000-07:00</published><updated>2009-08-01T08:15:48.692-07:00</updated><title type='text'>Gráfico de barras con php y pChart</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaXoH7GCml-nLXcPCNhSX5WvzpHn_65T7hMdO4jA17GzkcwhEZqTu4Wwzl04gW7kjVGmZqDMK3TJBulzhznfE4DwnFXj_9NqPAUbcxv02MGw3zv8DOAGhnAIRMeLkQVX-DbSY6SljibVXp/s1600-h/barras.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 118px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaXoH7GCml-nLXcPCNhSX5WvzpHn_65T7hMdO4jA17GzkcwhEZqTu4Wwzl04gW7kjVGmZqDMK3TJBulzhznfE4DwnFXj_9NqPAUbcxv02MGw3zv8DOAGhnAIRMeLkQVX-DbSY6SljibVXp/s320/barras.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5364983096197411330&quot; /&gt;&lt;/a&gt;En el post anterior pChart::Gráficos estadísticos con php hicimos una pequeña introducción a pChart y un tutorial para crea un gráfico tipo pastel.&lt;div&gt;En esta ocación vamos a crear un gráfico de barras usando esta clase.&lt;/div&gt;&lt;div&gt;Usaremos los archivos de la clase que descargamos del post anteior, si no los tienes aquí está el enlace para descargarlos:&lt;a href=&quot;http://pchart.sourceforge.net/download.php&quot;&gt;http://pchart.sourceforge.net/download.php&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Para este ejemplo crearemos una gráfico que muestre las notas de Carlos, Pedro y Juan en los 6 primeros meses del año.&lt;/div&gt;&lt;div&gt;Entonces empezamos incluyendo las clases en nuestro php:&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Incluimos las clases&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;pData.class&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;include(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;pChart.class&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Ahora, definimos los datos que vamos a mostrar, vamos a crear 4 arrays, los primeros 3 son las notas, y el último es el que contendrá los meses:&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Definimos lo datos&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;pData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Carlos&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Pedro&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Juan&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddPoint&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Enero&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Febrero&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Marzo&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Abril&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Mayo&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Junio&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Meses&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;div&gt;&lt;code&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;Ahora, debemos indicarle qué tipo de datos son, pues los primeros tres son los datos para las estadísticas y el último es el eje x (horizontal).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: -webkit-monospace; font-size: 13px; &quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Carlos&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Pedro&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;AddSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Juan&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;SetAbsciseLabelSerie&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Meses&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;); &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora, iniciamos el gráfico:&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Iniciamos el gráfico:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test &lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;pChart&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;620&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setFontProperties&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Fonts/tahoma.ttf&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setGraphArea&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawFilledRoundedRectangle&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;616&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;223&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;240&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawRoundedRectangle&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;618&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;225&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawGraphArea&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawScale&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;SCALE_NORMAL&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawGrid&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;230&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#007700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;Aquí creamos un gráfico de 620 x 230 px, definimos el tipo de letra a usar y dibujamos un fondo agradable, y dibujamos el área de gráfico también. Hasta aquí si mostraramos la imagen tendríamos el sigueinte resultado:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMWUSGdaY0nPMO8aqCgNlENHHcDsJQUGnCj_A9DdD-4dnzmR1W6y7jEAVPP_nowRbivfNo0Nqmcw5AoAVVoZA03s8-IBItDu9TYevN7qdW-oZRt2t2vWkiESyFK0mXwewY9eg8wh1zWWdG/s1600-h/barras.php.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 118px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMWUSGdaY0nPMO8aqCgNlENHHcDsJQUGnCj_A9DdD-4dnzmR1W6y7jEAVPP_nowRbivfNo0Nqmcw5AoAVVoZA03s8-IBItDu9TYevN7qdW-oZRt2t2vWkiESyFK0mXwewY9eg8wh1zWWdG/s320/barras.php.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5365007946829079266&quot; /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;Colores en pChart&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Los colores en pChart se pueden definir de 2 formas: por paleta de colores o individualmente.&lt;div&gt;Paleta de colores: se usa un grupo de colores definidos para las barras.&lt;/div&gt;&lt;div&gt;Individualmente: le declaramos el color a cada una de las barras.&lt;/div&gt;&lt;div&gt;Vamos a usar la segunda opción, entonces, declaramos los colores para las barras de Carlos, Pedro y Juan:&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;//Definimos colores  de las barras&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setColorPalette&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;153&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setColorPalette&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;204&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setColorPalette&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;51&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;204&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;204&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#007700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;setColorPalette se usa para declarar un color individualmente, tiene 4 valores, el primero es el nivel del array, osea si vamos a declarar el valor al primer array el nivel es 0; y los otros tres son el color el formato RGB.&lt;div&gt;Ahora solo falta dibujar las barras, la leyenda y el título:&lt;/div&gt;&lt;code&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt; // Dibujamos las barras&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawBarGraph&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetData&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;// Dibujamos la leyenda&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setFontProperties&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Fonts/tahoma.ttf&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawLegend&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;545&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;25&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Datos&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;GetDataDescription&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(),&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;192&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#FF8000;&quot;&gt;//Dibujamos el título&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;setFontProperties&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Fonts/tahoma.ttf&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;drawTitle&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;22&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#DD0000;&quot;&gt;&quot;Notas de Matemática&quot;&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;585&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;$Test&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB;&quot;&gt;Stroke&lt;/span&gt;&lt;span style=&quot;color:#007700;&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;Y listo tenemos nuestro gráfico de barras. Para terminar les dejo un comprimido con los archivos de este tutorial incluidas las clases y la fuente:&lt;div&gt;&lt;a href=&quot;http://casinada.freetzi.com/?d=pChart-barras.rar&quot;&gt;http://casinada.freetzi.com/?d=pChart-barras.rar&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Para la siguiente entrega, haremos un gráfico lineal utilizando pChart, y veremos una nueva caracteristica de esta clase.&lt;/div&gt;&lt;div&gt;Te ha gustado este aporte? Deja un comentario, es lo único que me anima a seguir publicando :)&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/7604234541675064462/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/08/grafico-de-barras-con-php-y-pchart.html#comment-form' title='8 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/7604234541675064462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/7604234541675064462'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/08/grafico-de-barras-con-php-y-pchart.html' title='Gráfico de barras con php y pChart'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaXoH7GCml-nLXcPCNhSX5WvzpHn_65T7hMdO4jA17GzkcwhEZqTu4Wwzl04gW7kjVGmZqDMK3TJBulzhznfE4DwnFXj_9NqPAUbcxv02MGw3zv8DOAGhnAIRMeLkQVX-DbSY6SljibVXp/s72-c/barras.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-6989027904629726220</id><published>2009-07-31T08:14:00.000-07:00</published><updated>2009-07-31T18:45:04.001-07:00</updated><title type='text'>pChart :: Gráficos estadísticos con Php</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://pchart.sourceforge.net/Pictures/example10.png&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 380px; height: 200px;&quot; src=&quot;http://pchart.sourceforge.net/Pictures/example10.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Les presento una clase en php muy útil.&lt;br /&gt;Se trata de &lt;a href=&quot;http://pchart.sourceforge.net/&quot;&gt;pChar&lt;/a&gt;t, una clase que permite generar gráficos estadísticos totalmente profesionales como: lineas, barras, pastel y muchos y más.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;En este tutorial veremos como hacer un gráfico de pastel.&lt;br /&gt;Primero, debemos descargar los archivos de la clase: &lt;a href=&quot;http://pchart.sourceforge.net/download.php&quot; target=&quot;_blank&quot;&gt;http://pchart.sourceforge.net/download.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Descargamos la última versión, que en estos momentos es pChart 1.27&lt;br /&gt;De todas las carpetas del comprimido usaremos estas:&lt;div&gt;&lt;ul&gt;&lt;li&gt;pChart: es la que contiene las clases&lt;/li&gt;&lt;li&gt;Fonts: es la que contiene algunos tipos de letra que vamos a usar.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Empezamos incluyendo las clases en nuestro php:&lt;/div&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;//incluimos las clases:&lt;br /&gt;include(&quot;pChart.class&quot;);&lt;br /&gt;include(&quot;pData.class&quot;);&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;La clase pCache.class no la necesitamos para este ejemplo&lt;div&gt;Ahora, vamos a definir los datos que queremos que se muestren en nuestro gráfico:&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;br /&gt;// Defininos los datos&lt;br /&gt;$Datos = new pData;&lt;br /&gt;$Datos-&amp;gt;AddPoint(array(10,2,3,5,3),&quot;Serie1&quot;);&lt;br /&gt;$Datos-&amp;gt;AddPoint(array(&quot;Ene&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Abr&quot;,&quot;May&quot;),&quot;Serie2&quot;);&lt;br /&gt;$Datos-&amp;gt;AddAllSeries();&lt;br /&gt;$Datos-&amp;gt;SetAbsciseLabelSerie(&quot;Serie2&quot;);  &lt;/code&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Aquí hemos creado un objeto pData, y empezamos añadiendo los datos en arrays, la serie uno es la que tendrá la cantidad con la que se rellenará el pastel, y la serie 2 indica a que se refiere cada cantidad.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora, iniciamos el gráfico:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;// Iniciamos el gráfico&lt;br /&gt;$Pastel = new pChart(380,200);&lt;br /&gt;$Pastel-&amp;gt;drawFilledRoundedRectangle(7,7,373,193,5,240,240,240);&lt;br /&gt;$Pastel-&amp;gt;drawRoundedRectangle(5,5,375,195,5,230,230,230);&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Aquí hemos creado un gráfico de 380 x 200 pixeles y le hemos puesto un fondo agradable.&lt;div&gt;Casi para terminar, vamos a poner los datos en el gráfico:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;// Dibujamos los datos&lt;br /&gt;$Pastel-&amp;gt;setFontProperties(&quot;Fonts/tahoma.ttf&quot;,8);&lt;br /&gt;$Pastel-&amp;gt;drawPieGraph($Datos-&amp;gt;GetData(),$Datos-&amp;gt;GetDataDescription(),150,90,110,PIE_PERCENTAGE,TRUE,50,20,5);&lt;br /&gt;$Pastel-&amp;gt;drawPieLegend(310,15,$Datos-&amp;gt;GetData(),$Datos-&amp;gt;GetDataDescription(),250,250,250);&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Aquí hemos definido el tipo de letra que se va a usar, que será tahoma.ttf y el tamaño, 8.&lt;div&gt;Luego dibujamos el pastel, le indicamos que datos va a usar, la posicion, el tamaño y el color.&lt;/div&gt;&lt;div&gt;Después, dibujamos la &quot;leyenda&quot;, que es la Serie 2.&lt;/div&gt;&lt;div&gt;Y por último, podemos decidir si &quot;guardar la imagen&quot; o &quot;mostrar la imagen&quot;.&lt;/div&gt;&lt;div&gt;Para guardarla ponemos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;$Pastel-&amp;gt;Render(&quot;grafico.png&quot;);&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;En donde &quot;grafico.png&quot; es el nombre o direccion de la imagen a guardar.&lt;div&gt;Y si queremos mostrarla, simplemente ponemos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;$Pastel-&amp;gt;Stroke();&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Y listo, tenemos nuestro gráfico estadístico de pastel con php. &lt;/div&gt;&lt;div&gt;Para terminar con este Post les dejo un comprimido con los archivos de este ejemplo incluyendo las clases y la fuente:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://casinada.freetzi.com/?d=pChart-pastel.rar&quot;&gt;http://casinada.freetzi.com/?d=pChart-pastel.rar&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El diseño de la página de descargas aún no lo termino :P&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Para la próxima entrega, veremos como hacer gráficos de barras usando esta clase.&lt;/div&gt;&lt;div&gt;Te gustó este aporte? Deja un comentario, es lo que me anima seguir publicando :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/6989027904629726220/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/07/pchart-graficos-estadisticos-con-php.html#comment-form' title='11 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/6989027904629726220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/6989027904629726220'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/07/pchart-graficos-estadisticos-con-php.html' title='pChart :: Gráficos estadísticos con Php'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-4554688284548327337</id><published>2009-07-30T12:59:00.000-07:00</published><updated>2009-07-30T13:26:52.643-07:00</updated><title type='text'>LinKen Foros</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6drd_l-AurcMGnH-ZUop5cxIJwySMFsUCWEn9-Psh85N7I1T6U9-qrWXIzU2KmRwPWEAzM9iLktnnId20HW3ecYICyIQ4ssWrMbh23HTKlXE1GW6OLtez_FuLPBsT07I43xzWr26tjqy8/s1600-h/Dibujo.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 194px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6drd_l-AurcMGnH-ZUop5cxIJwySMFsUCWEn9-Psh85N7I1T6U9-qrWXIzU2KmRwPWEAzM9iLktnnId20HW3ecYICyIQ4ssWrMbh23HTKlXE1GW6OLtez_FuLPBsT07I43xzWr26tjqy8/s320/Dibujo.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5364351358001818418&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hoy les presento un nuevo proyecto.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Se trata de LinKen foros, una aplicación de foro como SMF, phpBB o vBulletin; totalmente de código abierto.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Como lo dice en su página oficial (&lt;a href=&quot;http://linkenforos.com.ar/&quot; taget=&quot;_blank&quot;&gt;www.linkenforos.com.ar&lt;/a&gt;) es un sistema gratuito de grado profesional que te permitirá crear tu propia comunidad en tan solo unos minutos. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;LinKen está programado con el lenguaje más famoso del momento, php y utiliza base de datos mySQL para guardar los mensajes, usuarios, etc. Está programado en php estructurado, lo que hace que cualquier persona con conociemientos básicos en php pueda adaptarlo y modificarlo sin ningún problema.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;La versión más reciente es LinKen v0.4 Beta, es muy buena y estable.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Como está en estado beta, aún tiene fallas, pero sus creadores trabajan lo más rápido posible para solucionarlos. Puedes contactarlos y te responderan lo más rápido posible.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Los requisitos que necesitas para utilizar LinKen son:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;PHP 4 o superior&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Una base de datos MySQl&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;La función getimagesize() -&gt; creo que este requisito se suprimirá en la versión que sigue.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Tener activada la subida de archivos en el php.ini&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Y obviamente, los datos para la conexion a la base de datos.&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;LinKen es un proyecto que recién salió a la luz, así que necesita su apoyo!&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Página oficial: &lt;a href=&quot;http://linkenforos.com.ar/&quot; taget=&quot;_blank&quot;&gt;http://www.linkenforos.com.ar&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Descargas: &lt;a href=&quot;http://linkenforos.com.ar/descargar.php&quot; taget=&quot;_blank&quot;&gt;http://linkenforos.com.ar/descargar.php&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/4554688284548327337/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/07/linken-foros.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/4554688284548327337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/4554688284548327337'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/07/linken-foros.html' title='LinKen Foros'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6drd_l-AurcMGnH-ZUop5cxIJwySMFsUCWEn9-Psh85N7I1T6U9-qrWXIzU2KmRwPWEAzM9iLktnnId20HW3ecYICyIQ4ssWrMbh23HTKlXE1GW6OLtez_FuLPBsT07I43xzWr26tjqy8/s72-c/Dibujo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4457529761307825175.post-478995132846639889</id><published>2009-07-29T05:58:00.000-07:00</published><updated>2009-07-29T06:13:12.297-07:00</updated><title type='text'>El principio</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7atWIifNntuxZKSPB0Z39xagGFGCHavHvYqmX_BBtm-7I-AnjDvlsWk4DqQqrI547TgOiaoSyjNPzCj8PLgx6w8bQdAf2W0nt4OzjaSVjcdEEK6Q34YJJneWrhpbTUInuOVFUlJspCFpx/s1600-h/html.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7atWIifNntuxZKSPB0Z39xagGFGCHavHvYqmX_BBtm-7I-AnjDvlsWk4DqQqrI547TgOiaoSyjNPzCj8PLgx6w8bQdAf2W0nt4OzjaSVjcdEEK6Q34YJJneWrhpbTUInuOVFUlJspCFpx/s320/html.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5363868669043159410&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hola a todos!&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Les doy la bienvenida a &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;Web Controler&lt;/span&gt;, un portal en el que publicaré algunos recursos sobre el diseño y programación de páginas web.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Se tratará con los lenguajes más útiles y conocidos como HTML, Css, JavaScript, Php y MySQL, Flash (ActionScript) y otros mas...&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;También se daran algunos consejitos para que la experiencia en el internet mejore, se hablará de sitios como Google, YouTube, Yahoo!, etc. Para sacar el mayor provecho de estos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;También publicaré lo que encuentre en Internet y me parezca útil.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Y sin nada más que decir, te invito a seguir este blog, y a comentar en cada entrada, incluida esta, pues es lo que me anima a seguir.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hoy &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#009900;&quot;&gt;Web Controler&lt;/span&gt; empieza una gran trayectoria!!!&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://webcontroler.blogspot.com/feeds/478995132846639889/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://webcontroler.blogspot.com/2009/07/el-principio.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/478995132846639889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4457529761307825175/posts/default/478995132846639889'/><link rel='alternate' type='text/html' href='http://webcontroler.blogspot.com/2009/07/el-principio.html' title='El principio'/><author><name>Joel</name><uri>http://www.blogger.com/profile/10952665268588346327</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7atWIifNntuxZKSPB0Z39xagGFGCHavHvYqmX_BBtm-7I-AnjDvlsWk4DqQqrI547TgOiaoSyjNPzCj8PLgx6w8bQdAf2W0nt4OzjaSVjcdEEK6Q34YJJneWrhpbTUInuOVFUlJspCFpx/s72-c/html.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>