[Alba-desarrollo] SVN Alba r4008 - in
prosistem/alba/trunk/alba/apps/principal/modules/asistencia:
actions templates
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Ene 15 14:50:46 CET 2007
Author: hsanchez
Date: 2007-01-15 10:50:45 -0300 (Mon, 15 Jan 2007)
New Revision: 4008
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php
prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php
Log:
Agregando datos para el boton print
Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php 2007-01-12 19:07:43 UTC (rev 4007)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/actions.class.php 2007-01-15 13:50:45 UTC (rev 4008)
@@ -201,10 +201,12 @@
* Accion para mostrar los datos cambiados en el form
*/
public function executeMostrar() {
- $vista_id = $this->getRequestParameter('vistas');
+ $vista_id = $this->getRequestParameter('vistas');
$fechainicio = str_replace("/","-",$this->getRequestParameter('fechainicio'));
- return $this->forward('asistencia','index',"vista_id=$vista_id&fechainicio=$fechainicio");
-
+ //die($this->getRequestParameter('fechainicio'));
+ //list($y, $m, $d) = split("[/. -]",$this->getRequestParameter('fechainicio'));
+ //$fechainicio = "$d/$m/$y";
+ return $this->forward('asistencia','index',"vista_id=$vista_id&fechainicio=$fechainicio");
}
public function handleErrorMostrar(){
@@ -279,9 +281,6 @@
throw $e;
}
}
-
-
-
return $this->redirect($destino);
}
Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php 2007-01-12 19:07:43 UTC (rev 4007)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/indexSuccess.php 2007-01-15 13:50:45 UTC (rev 4008)
@@ -24,9 +24,9 @@
<?php echo select_tag('division_id', options_for_select($optionsDivision, $division_id)); ?>
</td>
<td>
- <?php echo label_for('fecha', __('Fecha Inicio:'), 'class="required" '); ?>
+ <?php echo label_for('fecha', __('Fecha Inicio:'), 'class="required" '); ?>
</td>
- <td>
+ <td>
<?php echo zz_input_date_tag('fechainicio',$fechainicio, array (
'rich' => true,'withtime' => true,
'calendar_button_img' => '/sf/images/sf_admin/date.png',
@@ -119,7 +119,17 @@
<ul class="sf_admin_actions"><li>
<?php echo submit_tag(__('Grabar'), array ('name' => 'Grabar','class' => 'sf_admin_action_save')) ?>
</form>
- <?php echo submit_tag(__('Imprimir'), array ('name' => 'Imprimir','class' => 'sf_admin_action_print')) ?>
+ <?php
+ echo form_tag('asistencia/mostrar', 'id=sf_admin_edit_form name=sf_admin_edit_form multipart=true');
+ echo input_hidden_tag('division_id', $division_id);
+ list($y, $m, $d) = split("[/. -]",$fechainicio);
+ echo input_hidden_tag('fechainicio', "$d/$m/$y");
+ echo input_hidden_tag('vistas', $vista_id);
+ if($alumno_id >= 0)
+ echo input_hidden_tag('alumno_id', $alumno_id);
+ echo submit_tag(__('Imprimir'), array ('name' => 'Imprimir','class' => 'sf_admin_action_print'));
+ ?>
+ </form>
</li></ul>
</div>
<?php }?>
Más información sobre la lista de distribución Alba-desarrollo