]> git.llucax.com Git - mecon/intranet.git/blobdiff - sistema/www/noticias.php
corrijo noticia para que la fecha sea un Date
[mecon/intranet.git] / sistema / www / noticias.php
index 9cc65a27c287c00a9f38281d1d696731b77719b7..9bc004fccbc622efc6fbdbbb2ef56b364696bf0d 100644 (file)
        require_once '../../lib/noticia.php';
        require_once '../local_lib/HTML_Noticia.php';
  
-      $not = new HTML_Noticia(1);
-      $not->setNuevo(true);
-      $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0'));
-      $ht->addRow(array($not, $not));
-      $ht->addRow(array($not, $not));
-      $ht->addRow(array($not, $not));
-      $ht->display();
+       $n = new noticia(1294);
+       $not = new HTML_Noticia($n);
+       $not->setNuevo(true);
+       $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0'));
+       $ht->addRow(array($not, $not));
+       $ht->addRow(array($not, $not));
+       $ht->addRow(array($not, $not));
+       $ht->display();
     ?>
     </td>
   </tr>