[Alba-desarrollo] SVN Alba r4776 - in prosistem/alba/trunk/alba/apps/principal/modules/division: config templates

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Jun 25 20:28:44 CEST 2007


Author: hsanchez
Date: 2007-06-25 15:28:43 -0300 (Mon, 25 Jun 2007)
New Revision: 4776

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_fk_anioorden_id.php
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/division/config/generator.yml
Log:
Nuevo template para el orden de las divisiones

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/division/config/generator.yml	2007-06-23 22:23:21 UTC (rev 4775)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/config/generator.yml	2007-06-25 18:28:43 UTC (rev 4776)
@@ -22,5 +22,5 @@
             _edit:      -
             _delete:    -
             alumnosPorDivision:  { name: Alumnos por Division, action: alumnosPorDivision, icon: small/alumnos.png } 
-        filters: [ fk_anio_id ]
+        filters: [ _fk_anioorden_id ]
 

Added: prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_fk_anioorden_id.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_fk_anioorden_id.php	2007-06-23 22:23:21 UTC (rev 4775)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_fk_anioorden_id.php	2007-06-25 18:28:43 UTC (rev 4776)
@@ -0,0 +1,12 @@
+<?php 
+    $c = new Criteria(); 
+    $c->add(AnioPeer::FK_ESTABLECIMIENTO_ID, $sf_user->getAttribute('fk_establecimiento_id'));    
+    $c->addAscendingOrderByColumn(AnioPeer::DESCRIPCION);
+    $anios = AnioPeer::doSelect($c);
+    $optionsAnios = array();
+    $optionsAnios[""] = "--Seleccione un A&ntilde;o--";   
+    foreach ($anios as $anio) {
+        $optionsAnios[$anio->getId()] = $anio->getDescripcion();
+    }
+    echo select_tag('anios', options_for_select($optionsAnios, $anio->getId()) ) ;
+?>


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_fk_anioorden_id.php
___________________________________________________________________
Name: svn:keywords
   + "Id Author Rev Date URL"




Más información sobre la lista de distribución Alba-desarrollo