<?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-120392996813829086</id><updated>2024-09-17T03:04:31.653-05:00</updated><category term="Jquery"/><category term="Datepicker"/><category term="Codeigniter"/><category term="CRUD"/><category term="Componente Tabla"/><category term="Jtable"/><category term="instalación"/><title type='text'>Geo Programando</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-3816946686665213000</id><published>2013-04-27T17:39:00.003-05:00</published><updated>2013-04-29T11:28:28.904-05:00</updated><title type='text'>Componente Tabla tercera parte borrando los datos</title><content type='html'>Como se puede ver en el atributo permisos está habilitado &amp;quot;D&amp;quot; que le dice a nuestro script lineas(49-52) que añada la opción de borrar, no hay que olvidar que nosotros armamos la configuración del jtable antes de enviárselo al pluggin para eso le enviamos en la linea 83 del script:&lt;br&gt;
&lt;span style=&quot;line-height: 16px;&quot;&gt;&lt;b&gt;title:&lt;/b&gt; config_jtable.titulo&lt;/span&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt; - el titulo de la tabla&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;line-height: 16px;&quot;&gt;&lt;b&gt;actions:&lt;/b&gt; acciones - las acciones , urls, o controllers donde se realizan las acciones de borrar, crear, actualizar, etc&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;line-height: 16px;&quot;&gt;&lt;b&gt;fields:  &lt;/b&gt;campos -- los campos de la tabla que coinciden con la base de datos&lt;/span&gt;&lt;br&gt;
Internamente el plugin jtable envía los datos anteriores por medio de ajax a los controlleer necesarion&lt;br&gt;
&lt;br&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;jtabla&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;invtabla&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;tabla=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;inventario&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;permisos=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;CRUD&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;titulo=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;Mis inventarios&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;
         &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;campo&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;nombre=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;titulo=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;El id dek item&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;autoinc=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;gt;&amp;lt;/campo&amp;gt;&lt;/span&gt;
    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;/jatbla&amp;gt;&lt;/span&gt; 
   
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://geoprogramando.blogspot.com/2013/04/componente-tabla-tercera-parte-borrando.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/3816946686665213000/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2013/04/componente-tabla-tercera-parte-borrando.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/3816946686665213000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/3816946686665213000'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2013/04/componente-tabla-tercera-parte-borrando.html' title='Componente Tabla tercera parte borrando los datos'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEhq9pnVtFWikljt9C9JN0QLo-I7uIbbrzojTyUyDIFpMBgoQ_222ncihb-ntXisvp6vSmrfPR5UYvWGA82gIHWNLj4jauREez9FK2ghuji4-L27s4njyEo15xlZ3O7TGzfmFUoA9g_rlsE/s72-c/borradojtabla.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-8314547327914918362</id><published>2012-04-01T22:14:00.003-05:00</published><updated>2013-04-27T17:48:49.030-05:00</updated><title type='text'>Componente Tabla, segunda parte insertando datos</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div&gt;
El plugin requiere que se obtenga id del último registro que se insertó en la tabla, y se lo regrese por medio de ajax para que este lo pueda mostrar visualmente los datos , es una manera de comprobar que se realizó la inserción correctamente.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para esto en una parte del controller tuve que obtener el ultimo id insertado usando la función $this-&amp;gt;db-&amp;gt;insert_id(), investigando un poco encontre que insert_id() usa la función de php mysql_insert_id() que requiere que la tabla tenga un campo autoincrement (&lt;a href=&quot;http://php.net/manual/en/function.mysql-insert-id.php&quot; target=&quot;_blank&quot;&gt;ver aqui&lt;/a&gt;), por lo tanto de ahora en adelante todas las tablas creadas deben tener un campo autoincrement para que se pueda hacer la inserción. Aquí pongo un el SQL de la tabla usuario con este requerimiento.&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;1
2
3
4
5
6&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;usuario&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt; (
  &lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;id&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;int&lt;/span&gt;(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;4&lt;/span&gt;) &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NULL&lt;/span&gt; AUTO_INCREMENT,
  &lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;nombre&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;varchar&lt;/span&gt;(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;10&lt;/span&gt;) &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;,
  &lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;password&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #007020;&quot;&gt;varchar&lt;/span&gt;(&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;10&lt;/span&gt;) &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;,
  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; (&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;id&lt;span style=&quot;color: #303030;&quot;&gt;`&lt;/span&gt;)
) ENGINE&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;MyISAM  &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;latin1 AUTO_INCREMENT&lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000d0; font-weight: bold;&quot;&gt;0&lt;/span&gt; ;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;
La vista es la misma de los ejemplos anteriores con el tag jtabla:&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;1
2
3&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;  &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;jtabla&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;invtabla&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;tabla=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;usuario&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;permisos=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;CR&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;titulo=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;Los usuarios&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;
         &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;campo&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;nombre=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;titulo=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;El id dek item&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;autoinc=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;gt;&amp;lt;/campo&amp;gt;&lt;/span&gt;
   &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;&amp;lt;/jtabla&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
ahora en &lt;span style=&quot;color: red;&quot;&gt;permisos &lt;/span&gt;hemos añadido la letra C que representa la creación o inserción de registros, se ha incluido un&lt;span style=&quot;color: red;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;campo&amp;gt;&lt;/span&gt;&lt;/span&gt; donde &lt;span style=&quot;color: red;&quot;&gt;nombre &lt;/span&gt;es el nombre del campo de la tabla, &lt;span style=&quot;color: red;&quot;&gt;titulo &lt;/span&gt;es el título que aparecerá visualmente, creo que se explican por si solos y &lt;span style=&quot;color: red;&quot;&gt;autoinc&lt;/span&gt; determina que este campo es autoincrement, realmente solo necesitamos uno, todos estos atributos son necesarios para la configuración del objeto jtable.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/04/borrador-componente-tabla-segunda-parte.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/8314547327914918362/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/04/borrador-componente-tabla-segunda-parte.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/8314547327914918362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/8314547327914918362'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/04/borrador-componente-tabla-segunda-parte.html' title='Componente Tabla, segunda parte insertando datos'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEjf8DbMhHI6tnoaYhFQ9pRlYIxl3yr5ebHLMrg2KOpdBMFzzySgD3XX1I-buDlf2-7Y5uB99k5aQn994yXGltsDB3fw77POMSIYBfWNxKd1dN77CKzKTABCp0VXm_UmgfNhxOAseI5evos/s72-c/insertartabla.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-2936968865482482807</id><published>2012-03-07T21:00:00.000-05:00</published><updated>2013-04-27T18:23:45.934-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Componente Tabla"/><category scheme="http://www.blogger.com/atom/ns#" term="CRUD"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Jtable"/><title type='text'>Componente Tabla, primera parte mostrando los datos</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
El objetivo principal es crear un componente que me permita mostrar, actualizar y borrar  el contenido de una tabla de la base de datos en forma tabular con solo cargar sus librerías y la del componente a desarrollar y que se detecte automáticamente dentro del código html, para esto consideré 2 alternativas, crear mi propio componente desde cero :( , o usar alguno de los plugins prediseñados que muestran datos en forma tabular. Entre ellos analicé a Jqgrid, y Jtable, el primero porque ya había diseñado un componente similar para un proyecto, pero me pareció mejor experimentar con Jtable ya que lo vi muy completo por las siguientes características que voy a traducir del inglés.&lt;/div&gt;
&lt;br&gt;
JTable es un plugin de jquery que es usado para crear tablas &lt;a href=&quot;http://es.wikipedia.org/wiki/CRUD&quot; target=&quot;_blank&quot;&gt;CRUD  &lt;/a&gt;basadas en AJAX&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
- Automáticamente crea una tabla HTML y carga los registros del server usando AJAX&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
- Crea los dialogos automáticamente de: Crear Nuevo registro, Editar Registro, Borrar Registro. (esta es la característica que más me atrajo ya que me ahorra hacer los formularios y dialogos:) )&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
- No es dependiente de ninguna tecnología del servidor lo que me permite usarlo con php (codeigniter)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
- etc etc el resto se puede leer &lt;a href=&quot;http://www.jtable.org/&quot; target=&quot;_blank&quot;&gt;aqui &lt;/a&gt;en inglés.&lt;/div&gt;
&lt;br&gt;
&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/AVvXsEhKba4FQ9b4H6WJibytKR-vvLPcPI1kwZYRCHTHorv-jRXLe5GqDEaIUz-8E4S5p9MWNA_Ya0n8tq0ksuoBXhtWlFPrj1VxDAsWRQ0cT2G-oVmBcBmyAwtEq2LUmYoSbXxQA9Ybjk_6oug/s1600/jtable.jpg&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/AVvXsEhKba4FQ9b4H6WJibytKR-vvLPcPI1kwZYRCHTHorv-jRXLe5GqDEaIUz-8E4S5p9MWNA_Ya0n8tq0ksuoBXhtWlFPrj1VxDAsWRQ0cT2G-oVmBcBmyAwtEq2LUmYoSbXxQA9Ybjk_6oug/s400/jtable.jpg&quot; height=&quot;206&quot; width=&quot;400&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/03/componente-tabla-primera-parte.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/2936968865482482807/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/03/componente-tabla-primera-parte.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/2936968865482482807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/2936968865482482807'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/03/componente-tabla-primera-parte.html' title='Componente Tabla, primera parte mostrando los datos'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEhKba4FQ9b4H6WJibytKR-vvLPcPI1kwZYRCHTHorv-jRXLe5GqDEaIUz-8E4S5p9MWNA_Ya0n8tq0ksuoBXhtWlFPrj1VxDAsWRQ0cT2G-oVmBcBmyAwtEq2LUmYoSbXxQA9Ybjk_6oug/s72-c/jtable.jpg" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-4090237982927131391</id><published>2012-03-04T18:45:00.000-05:00</published><updated>2012-03-05T10:39:40.460-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Datepicker"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Terminando con el datepicker</title><content type='html'>&lt;br&gt;
Finalizando con los retoques al componente datepicker, ahora lo que queremos es que con solo agregar la etiqueta datepicker dentro de mi código html, se genere un datepicker automáticamente, para eso he especificado ciertos elementos que hay que incluir en esta etiqueta:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;id:&lt;/span&gt; es el id del datepicker&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;tabla:&lt;/span&gt; es la tabla de la bd&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;campo:&lt;/span&gt; el campo de la tabla que contiene la fecha a mostrar&lt;span style=&quot;color: blue;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;datepicker &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;id=&amp;quot;el id&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;tabla=&amp;quot;mi tabla&amp;quot; campo=&amp;quot;mi campo&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/datepicker&amp;gt;&lt;/span&gt;&lt;br&gt;
Incluyo el javascript que contiene la nueva función 
&lt;span style=&quot;color: lime;&quot;&gt;html_datepickers&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;, &lt;/span&gt;lo que hace básicamente es buscar en el dom del documento html todas las instancias de la etiqueta 
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;datepicker&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/datepicker&amp;gt; , l&lt;/span&gt;os convierte a inputs y finalmente crea los datepicker usando la función datepicker, los comentarios explican paso a paso lo que se hizo.

&lt;br&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;br&gt;
&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/03/terminando-con-el-datepicker.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/4090237982927131391/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/03/terminando-con-el-datepicker.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/4090237982927131391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/4090237982927131391'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/03/terminando-con-el-datepicker.html' title='Terminando con el datepicker'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEhrLt3rbLVqUc2SvpW7NqVGwKwtPj7ohXx9vw8nwlI15ue6Ez2gWKNr8eTxCcm6Is7TYmjAge7JfCiE0Bk2HzzQFfd4i3R_D8KgPsnnu76d17rupZJe10WPfLOaGqF8vXNLSIVmxr5INd0/s72-c/dpfin.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-8130801387546016548</id><published>2012-02-20T22:12:00.003-05:00</published><updated>2013-04-27T18:24:49.893-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Datepicker"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Datepicker reutilizable</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt; &lt;/span&gt;&lt;br&gt;
Ya había mencionado que mi objetivo principal era desarrollar funciones y componentes que sean reutilizables y fáciles usar, a continuación voy a tratar de mejorar el componente ui de jquery para que pueda conectarse directamente con una tabla de la base de datos, en el ejemplo anterior en nombre de la tabla que se usó es &lt;span style=&quot;color: blue;&quot;&gt;historial&lt;/span&gt;, pero que pasaría si queremos usar este componente en otro proyecto tendríamos que hacer cambios cada vez y puede ser que ya la tabla no se llame historial inclusive el nombre del campo puede variar, para eso pensé en crear un modelo &amp;quot;genérico&amp;quot; que reciba cualquier nombre de tabla y campo, se conecte a la bd y que obtenga los datos necesarios, lo llamaré &lt;span style=&quot;color: blue;&quot;&gt;generic_model&lt;/span&gt;, nos servirá para posteriores ejemplos al cual iremos añadiendo nuevas funcionalidades.              &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;
&lt;div style=&quot;color: blue;&quot;&gt;
application/models/generic_model.php&lt;/div&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #507090;&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #b00060; font-weight: bold;&quot;&gt;Generic_model&lt;/span&gt; &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;extends&lt;/span&gt; CI_Model {

    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;__construct&lt;/span&gt;() {
        &lt;span style=&quot;color: grey;&quot;&gt;// Call the Model constructor&lt;/span&gt;
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;parent&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;__construct&lt;/span&gt;();
    }
&lt;span style=&quot;color: #d04020;&quot;&gt;/**&lt;/span&gt;
&lt;span style=&quot;color: #d04020;&quot;&gt;* Obtiene los registros de un campo de una tabla de la base de datos&lt;/span&gt;
&lt;span style=&quot;color: #d04020;&quot;&gt;* @param  $nombre_tabla  El nombre de la tabla&lt;/span&gt;
&lt;span style=&quot;color: #d04020;&quot;&gt;* @param  $nombre_campo  El nombre del campo de la tabla&lt;/span&gt;
&lt;span style=&quot;color: #d04020;&quot;&gt;*/&lt;/span&gt;
    &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color: #0060b0; font-weight: bold;&quot;&gt;get_datos&lt;/span&gt;(&lt;span style=&quot;color: #906030;&quot;&gt;$nombre_tabla&lt;/span&gt;,&lt;span style=&quot;color: #906030;&quot;&gt;$nombre_campo&lt;/span&gt;) {
        &lt;span style=&quot;color: grey;&quot;&gt;// SQL equivalente a SELECT $nombrecampo FROM $nombre_tabla;&lt;/span&gt;
        &lt;span style=&quot;color: #906030;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;select&lt;/span&gt;(&lt;span style=&quot;color: #906030;&quot;&gt;$nombre_campo&lt;/span&gt;);
        &lt;span style=&quot;color: #906030;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;from&lt;/span&gt;(&lt;span style=&quot;color: #906030;&quot;&gt;$nombre_tabla&lt;/span&gt;);
        &lt;span style=&quot;color: #906030;&quot;&gt;$query&lt;/span&gt; &lt;span style=&quot;color: #303030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #906030;&quot;&gt;$this&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;get&lt;/span&gt;();
        &lt;span style=&quot;color: green; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #906030;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #303030;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;result&lt;/span&gt;();
    }

}
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/02/titulo-de-la-entrada.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/8130801387546016548/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/titulo-de-la-entrada.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/8130801387546016548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/8130801387546016548'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/titulo-de-la-entrada.html' title='Datepicker reutilizable'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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-120392996813829086.post-852144253912254248</id><published>2012-02-10T18:13:00.001-05:00</published><updated>2013-04-27T18:24:29.530-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Datepicker"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>DatePicker y el camino del Ajax</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
¿Porque usaría ajax con este componente?&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
En el ejemplo anterior&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/02/datepicker-base-de-datos.html&quot;&gt; Datepicker + base de datos &lt;/a&gt; se me presentó el problema de acceder a la variable $query de php desde javascript, me pareció que debía ser engorroso el tratar de hacer algún cambio al código cada vez que quiera añadir o modificar algo, por otra parte si requiriera que el componente actualizara los datos y al pertenecer este a un formulario no me gustaría que el usuario perdiera toda la información que ya ha llenado al hacer una actualización completa de la página. Pienso que es más óptimo volver a recargar una parte pequeña de mi aplicación que toda la página web. Ahorrar recursos es mi objetivo y todo depende de ¿para qué necesito Ajax?.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br&gt;
&lt;div style=&quot;color: black;&quot;&gt;
Bien retomando el ejemplo anterior, tenemos el controller, el modelo, y la vista esta última contiene código javascript que puede decirse está embebido en el de php, mi objetivo es separar este código y acceder a los datos de mi tabla historial, pero antes de esto necesitamos cambiar algo de código en el  controller.&lt;/div&gt;
&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;dp.php&lt;/span&gt;&lt;br&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;class&lt;/span&gt; Dp &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;extends&lt;/span&gt; CI_Controller {

    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;function&lt;/span&gt; __construct() {

        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;parent&lt;/span&gt;::&lt;span style=&quot;color: red;&quot;&gt;__construct&lt;/span&gt;();

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// cargamos nuestro base de datos ahora lo hacemos por defecto&lt;/span&gt;

        $this-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;load&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;database&lt;/span&gt;();

        $this-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;load&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;model&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;&amp;#39;Historial_model&amp;#39;&lt;/span&gt;);

    }

    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;function&lt;/span&gt; index() {

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// en este caso queremos que la vista haga las peticiones no el controller&lt;/span&gt;

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// cargamos nuestra vista&lt;/span&gt;

        $this-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;load&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;view&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;&amp;#39;dp_view&amp;#39;&lt;/span&gt;);

    }

    &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;function&lt;/span&gt; datos_dp(){

         &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// obtenemos los datos de la tabla y lo guardamos en la variable&lt;/span&gt;

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// datos&lt;/span&gt;

        $datos[&lt;span style=&quot;color: blue;&quot;&gt;&amp;#39;query&amp;#39;&lt;/span&gt;] = $this-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;Historial_model&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: red;&quot;&gt;get_datos&lt;/span&gt;();

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// codificamos el array a json usando json_encode mirar manual de php&lt;/span&gt;

       &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// no uso xml porque  json está soportado nativamente en javascript&lt;/span&gt;

      &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// entonces creo no se deberia llamar Ajax sino Ajaj por json jejeje?&lt;/span&gt;

        $data_json = json_encode($datos);

        &lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;// enviamos el json a la vista&lt;/span&gt;

        &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;echo&lt;/span&gt; $data_json;

       

    }
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/02/porque-usaria-ajax-con-este-componente.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/852144253912254248/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/porque-usaria-ajax-con-este-componente.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/852144253912254248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/852144253912254248'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/porque-usaria-ajax-con-este-componente.html' title='DatePicker y el camino del Ajax'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEgCBAty7wGZznzOIgXfsOECksLKUNkxnF2JPOHL5p7Vp2TGY3sE_oFifU0qpQxeJHMo7ovxPXjZSaSA5aAV5sqxwr8J-CRlZedWpiuKQvwVy9CW2C4XgUcxVqI4V0YKSwi78IFhiV37C0o/s72-c/dp-ajax.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-5949655027828764711</id><published>2012-02-10T15:50:00.003-05:00</published><updated>2013-04-27T18:25:11.831-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Datepicker"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Datepicker + base de datos</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
El Datepicker es un componente visual muy interesante te permite seleccionar una fecha que se guarda en un campo de texto, normalmente se usa como parte de un formulario que requiere que cierta información sea enviada en forma de fecha al servidor para ser procesada o guardada en una base de datos.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Pero que pasaría si queremos usar este componente en el sentido contrario, es decir mostrar una fecha que previamente ha sido guardada en una base de datos, realmente es muy sencillo de realizar.&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;
El primer paso sería construir nuestra base de datos (en mysql) con una tabla de ejemplo que la llamaremos historial, contiene 2 campos un id , un campo de fecha y la llenamos con 2 registros&lt;/div&gt;
&lt;br&gt;
HISTORIAL &lt;br&gt;
--------------------------- &lt;br&gt;
ID          FECHA&lt;br&gt;
1             01/12/2010&lt;br&gt;
2             02/09/2012&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;CODIGO SQL&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;div style=&quot;background: #ffffff; background: white; border-width: .1em .1em .1em .8em; border: solid gray; color: black; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; IF &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; `historial` (

  `id` int(&lt;span style=&quot;color: blue;&quot;&gt;10&lt;/span&gt;) &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;,

  `fecha` varchar(&lt;span style=&quot;color: blue;&quot;&gt;20&lt;/span&gt;) &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;

) ENGINE=MyISAM &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET=latin1;

&lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;-- Volcar la base de datos para la tabla `historial`&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-style: italic;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; `historial` (`id`, `fecha`) &lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;VALUES&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&amp;#39;01/12/2010&amp;#39;&lt;/span&gt;), (&lt;span style=&quot;color: blue;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;&amp;#39;02/09/2012&amp;#39;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/02/datepicker-base-de-datos.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/5949655027828764711/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/datepicker-base-de-datos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/5949655027828764711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/5949655027828764711'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/datepicker-base-de-datos.html' title='Datepicker + base de datos'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEh4DKpin4IYn_nNP1FOBWyRz1Cvu13XV5ajBIct8625Xb9w1FylGX2-JzdXU8ttgpVfb1gjP_GuwSYqYU_SD2KswzOWBAG68craRr-RWKF57C63oX3DPbfaZwTAhpY9sfRDzsd7G3dH02I/s72-c/dp.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-1136226228066589230</id><published>2012-02-08T00:10:00.000-05:00</published><updated>2012-03-04T21:57:10.572-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="instalación"/><title type='text'>Fácil instalación de jquery</title><content type='html'>Después de la instalación de codeigniter, he configurado mi servidor (xampp) para que tenga la siguiente estructura:&lt;br&gt;
&lt;br&gt;
htdocs/blog/&lt;br&gt;
--------------application&lt;br&gt;
--------------system&lt;br&gt;
&lt;br&gt;
Para &amp;quot;instalar&amp;quot; jquery solo creo una carpeta en este caso &amp;quot;js&amp;quot; en la raíz de la aplicación y copio los archivos contenidos en el archivo comprimido de la siguiente manera:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
htdocs/blog/&lt;br&gt;
--------------application&lt;br&gt;
--------------system&lt;br&gt;
--------------js/ (en esta carpeta pondré también los javascripts que vaya realizando)&lt;br&gt;
----------------&lt;span style=&quot;color: blue;&quot;&gt;jquery-ui-1.8.17.custom.min.js&lt;/span&gt;&lt;br&gt;
 -------------&lt;span style=&quot;color: blue;&quot;&gt;--jquery-1.7.1.min.js &lt;/span&gt;&lt;br&gt;
 ---------------css (esta carpeta ya viene incluida en el zip solo copiarla entera)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
sencillo no?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://geoprogramando.blogspot.com/2012/02/facil-instalacion-de-jquery.html#more&quot;&gt;Leer Artìculo completo »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/1136226228066589230/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/facil-instalacion-de-jquery.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/1136226228066589230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/1136226228066589230'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/facil-instalacion-de-jquery.html' title='Fácil instalación de jquery'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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/AVvXsEifQRLfKQNd_TXFq68tCuZOOGJe3YWsfGwk0pcmZqJOR6EqwNy4jleSXtguCZBZ0xsLvTqKc-5TO8UJ86qeb53UMTb6BTELYtnkvfRFLXKvEASKGj_JPFA0rgDfxZTgrRIyY6VYjlNgYzE/s72-c/testjquery.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-120392996813829086.post-9130346239890270104</id><published>2012-02-06T18:45:00.001-05:00</published><updated>2012-02-06T18:45:28.321-05:00</updated><title type='text'>Objetivo de este blog</title><content type='html'>Desarrollar aplicaciones y componentes usando los frameworks codeigniter(php), y jquery, para su reutilización en diferentes proyectos de mi trabajo y poder compartir conocimiento mientras se crean los artículos</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/9130346239890270104/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/objetivo-de-este-blog.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/9130346239890270104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/9130346239890270104'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/objetivo-de-este-blog.html' title='Objetivo de este blog'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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-120392996813829086.post-9027790189917022244</id><published>2012-02-06T18:45:00.000-05:00</published><updated>2012-02-06T18:45:10.855-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codeigniter"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Jquery + codeigniter</title><content type='html'>Para más información sobre estos frameworks&lt;br /&gt;
Codeigniter: www.codeigniter.com&lt;br /&gt;
Jquery: jquery.com&lt;br /&gt;
&lt;br /&gt;
Son los frameworks que usaremos por defecto, no explicaré su instalación, solo en el caso que requiera una integración entre los dos así que manos a la obra</content><link rel='replies' type='application/atom+xml' href='http://geoprogramando.blogspot.com/feeds/9027790189917022244/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/jquery-codeigniter.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/9027790189917022244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/120392996813829086/posts/default/9027790189917022244'/><link rel='alternate' type='text/html' href='http://geoprogramando.blogspot.com/2012/02/jquery-codeigniter.html' title='Jquery + codeigniter'/><author><name>Geovanny Morillo</name><uri>http://www.blogger.com/profile/06840975047426420288</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></feed>