[Alba-desarrollo] SVN Alba r4144 - in
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision:
config templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Mie Ene 31 21:10:14 CET 2007
Author: ftoledo
Date: 2007-01-31 17:10:12 -0300 (Wed, 31 Jan 2007)
New Revision: 4144
Added:
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_alumno_id.php
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_division_id.php
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/generator.yml
prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/security.yml
Log:
los alumnos y divisiones corresponden al cliclo y establecimiento actual
Modified: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/generator.yml 2007-01-31 19:12:30 UTC (rev 4143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/generator.yml 2007-01-31 20:10:12 UTC (rev 4144)
@@ -9,10 +9,7 @@
division: { name: División}
edit:
title: Asignar alumno a grado y sección
- fields:
- fk_alumno_id: { params: include_custom=>>Seleccione un Alumno<<}
- fk_division_id: { params: include_custom=>>Seleccione una División<<}
- display: [ fk_alumno_id, fk_division_id]
+ display: [ _fk_alumno_id, _fk_division_id]
list:
title: Listado de alumnos por grado y sección
display: [ alumno, division ]
Modified: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/security.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/security.yml 2007-01-31 19:12:30 UTC (rev 4143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/config/security.yml 2007-01-31 20:10:12 UTC (rev 4144)
@@ -1,4 +1,3 @@
all:
is_secure: on
- credentials: relAlumnoDivision
-
\ No newline at end of file
+ credentials:[ division , alumno ]
\ No newline at end of file
Added: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_alumno_id.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_alumno_id.php 2007-01-31 19:12:30 UTC (rev 4143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_alumno_id.php 2007-01-31 20:10:12 UTC (rev 4144)
@@ -0,0 +1,13 @@
+<?php
+ $c = new Criteria();
+ $c->add(AlumnoPeer::FK_ESTABLECIMIENTO_ID, $sf_user->getAttribute('fk_establecimiento_id'));
+ $c->addAscendingOrderByColumn(AlumnoPeer::APELLIDO);
+ $c->addAscendingOrderByColumn(AlumnoPeer::NOMBRE);
+ $alumnos = AlumnoPeer::doSelect($c);
+ $optionsAlumnos = array();
+ $optionsAlumnos[""] = ">>Seleccione un Alumno<<";
+ foreach ($alumnos as $alumno) {
+ $optionsAlumnos[$alumno->getId()] = $alumno->getApellido() . ", " . $alumno->getNombre();
+ }
+ echo select_tag('rel_alumno_division[fk_alumno_id]', options_for_select($optionsAlumnos, $rel_alumno_division->getFkAlumnoId()) ) ;
+?>
Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_alumno_id.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
Added: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_division_id.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_division_id.php 2007-01-31 19:12:30 UTC (rev 4143)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_division_id.php 2007-01-31 20:10:12 UTC (rev 4144)
@@ -0,0 +1,17 @@
+<?php
+ $c = new Criteria();
+ $c->add(AnioPeer::FK_ESTABLECIMIENTO_ID, $sf_user->getAttribute('fk_establecimiento_id'));
+ $c->add(TurnosPeer::FK_CICLOLECTIVO_ID, $sf_user->getAttribute('fk_ciclolectivo_id'));
+ $c->addJoin(AnioPeer::ID,DivisionPeer::FK_ANIO_ID);
+ $c->addJoin(TurnosPeer::ID,DivisionPeer::FK_TURNOS_ID);
+
+ //$c->addAscendingOrderByColumn(AlumnoPeer::APELLIDO);
+ //$c->addAscendingOrderByColumn(AlumnoPeer::NOMBRE);
+ $divisiones = DivisionPeer::doSelect($c);
+ $optionsDivisiones = array();
+ $optionsDivisiones[""] = ">>Seleccione una División<<";
+ foreach ($divisiones as $division) {
+ $optionsDivisiones[$division->getId()] = $division->getAnio()->getDescripcion(). " / " . $division->getDescripcion();
+ }
+ echo select_tag('rel_alumno_division[fk_division_id]', options_for_select($optionsDivisiones, $rel_alumno_division->getFkDivisionId()) ) ;
+?>
Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/relAlumnoDivision/templates/_fk_division_id.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
Más información sobre la lista de distribución Alba-desarrollo