[Alba-desarrollo] SVN Alba r4094 - in prosistem/alba/trunk/alba/apps/principal/modules/asistencia: actions templates

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Ene 29 15:20:12 CET 2007


Author: hsanchez
Date: 2007-01-29 11:20:11 -0300 (Mon, 29 Jan 2007)
New Revision: 4094

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/ac=
tions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates/=
indexSuccess.php
Log:
Mostrando primera version del print de asistencias

Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/act=
ions/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/a=
ctions.class.php	2007-01-29 01:19:49 UTC (rev 4093)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/actions/a=
ctions.class.php	2007-01-29 14:20:11 UTC (rev 4094)
@@ -38,8 +38,8 @@
     *
     */
     public function executeIndex() {
-        Misc::use_helper('Misc');  =20
-   =20
+        Misc::use_helper('Misc');
+       =20
         //Datos por default=20
         $alumno_id =3D -1;
         $cuenta_id =3D -1;
@@ -195,6 +195,11 @@
         $this->aFeriado =3D $aFeriado;
         $this->alumno_id =3D $alumno_id;
         $this->cuenta_id =3D $cuenta_id;
+        //Verifico si muestro versi=F3n para imprimir  =20
+        if ($this->getRequestParameter('vista'))
+            $this->vista =3D $this->getRequestParameter('vista');
+        else
+            $this->vista =3D "";
   }
  =20
   /**
@@ -202,10 +207,8 @@
   */
   public function executeMostrar() {
     $vista_id  =3D $this->getRequestParameter('vistas');
+    $vista  =3D $this->getRequestParameter('vista');
     $fechainicio =3D str_replace("/","-",$this->getRequestParameter('fec=
hainicio'));
-    //die($this->getRequestParameter('fechainicio'));
-    //list($y, $m, $d) =3D split("[/. -]",$this->getRequestParameter('fe=
chainicio'));             =20
-    //$fechainicio =3D "$d/$m/$y";
     return $this->forward('asistencia','index',"vista_id=3D$vista_id&fec=
hainicio=3D$fechainicio");  =20
   }
  =20

Modified: prosistem/alba/trunk/alba/apps/principal/modules/asistencia/tem=
plates/indexSuccess.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates=
/indexSuccess.php	2007-01-29 01:19:49 UTC (rev 4093)
+++ prosistem/alba/trunk/alba/apps/principal/modules/asistencia/templates=
/indexSuccess.php	2007-01-29 14:20:11 UTC (rev 4094)
@@ -124,10 +124,11 @@
             echo input_hidden_tag('division_id', $division_id);=20
             list($y, $m, $d) =3D split("[/. -]",$fechainicio);
             echo input_hidden_tag('fechainicio', "$d/$m/$y");=20
-            echo input_hidden_tag('vistas', $vista_id);=20
+            echo input_hidden_tag('vistas', $vista_id);
+            echo input_hidden_tag('vista', "noMuestraMenu");=20
             if($alumno_id >=3D 0)
                  echo input_hidden_tag('alumno_id', $alumno_id);
-            echo submit_tag(__('Imprimir'), array ('name' =3D> 'Imprimir=
','class' =3D> 'sf_admin_action_print'));
+            echo submit_tag(__('Imprimir'), array ('name' =3D> 'Imprimir=
','class' =3D> 'sf_admin_action_saveprint'));
          ?>
         </form>
         </li></ul>




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