[Alba-desarrollo] SVN Alba r5160 - in
prosistem/alba/trunk/alba/apps/principal/modules/boletin:
actions templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Mie Sep 26 18:57:12 CEST 2007
Author: hsanchez
Date: 2007-09-26 13:57:11 -0300 (Wed, 26 Sep 2007)
New Revision: 5160
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php
prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listConceptoSuccess.php
Log:
Corrigiendo el orden de los alumnos
Modified: prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php 2007-09-26 16:45:45 UTC (rev 5159)
+++ prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php 2007-09-26 16:57:11 UTC (rev 5160)
@@ -113,6 +113,7 @@
$criteria->add(DivisionPeer::ID, $division_id);
$criteria->addJoin(RelAlumnoDivisionPeer::FK_ALUMNO_ID, AlumnoPeer::ID);
$criteria->addJoin(RelAlumnoDivisionPeer::FK_DIVISION_ID, DivisionPeer::ID);
+ $criteria->addAscendingOrderbyColumn(AlumnoPeer::APELLIDO);
$aAlumno = AlumnoPeer::doSelect($criteria);
return $aAlumno;
Modified: prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listConceptoSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listConceptoSuccess.php 2007-09-26 16:45:45 UTC (rev 5159)
+++ prosistem/alba/trunk/alba/apps/principal/modules/boletin/templates/listConceptoSuccess.php 2007-09-26 16:57:11 UTC (rev 5160)
@@ -1,5 +1,4 @@
<?php use_helper("I18N")?>
-
<script>
function linkTo(flag) {
@@ -12,7 +11,6 @@
var obja = document.getElementById('concepto_id');
url = url + "/concepto_id/"+obja.options[obja.selectedIndex].value;
-
location.href = url;
}
</script>
@@ -27,8 +25,6 @@
<?php echo label_for('division', __('Division:')) ?>
<?php echo select_tag('division_id', options_for_select($optionsDivision, $division_id), "onChange='linkTo(0)'") ?>
</div>
-
-
<div class="form-row">
<?php echo label_for('concepto', __('Concepto:')) ?>
<?php echo select_tag('concepto_id', options_for_select($optionsConcepto, $concepto_id),"onChange='linkTo(1)'") ?>
@@ -41,8 +37,6 @@
</div>
<?php } ?>
-
-
<?php if (count($aAlumno) > 0 && $concepto_id ){ ?>
<h1>Alumnos</h1>
@@ -55,12 +49,9 @@
<thead>
<tr>
<th id="sf_admin_list_th_alumno"> Alumno</th>
-
<?php foreach ($aPeriodo as $periodo) {?>
<th id="sf_admin_list_th_sf_actions"><?php echo $periodo->getDescripcion()?></th>
<?php } ?>
-
-
</tr>
</thead>
@@ -79,8 +70,7 @@
</tbody>
</table>
-<?php // }
-if($division_id) { ?>
+<?php if($division_id) { ?>
<ul class="sf_admin_actions">
<li><?php echo submit_tag(__('Grabar'), array (
@@ -93,4 +83,5 @@
?>
</fieldset>
</form>
-</div>
\ No newline at end of file
+</div>
+
Más información sobre la lista de distribución Alba-desarrollo