Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/03/2010, 09:19
Avatar de 8461277
8461277
 
Fecha de Ingreso: diciembre-2002
Ubicación: san juan de los morros
Mensajes: 887
Antigüedad: 21 años, 3 meses
Puntos: 1
vista en cakephp regitros

buenas tenia bastante tiempo en no estar por aquí, desde hace varios meses me estiy dedicando a trabajar con cakephp, y en este momento tengo un problema

Y es que tengo una vista que devuelve el curso en donde un grupo de estudiante esta cursando en una determinada ciudad y en determinado semestre.
dicha tabla se llena asi:
Nª. Cedula Nombres Apellidos Postgrado Ciudad Cohorte Trimestre Accion

En la columna accion precisamente hay 3 imagenes en cual realizan acciones diferentes, una de ella es inscribir dicho estudiante en el trimestre superior, el cual lo realiza perfectamente, pero YO QUIERO QUE UAN VEZ RELAIZE SU FUNCION LA IMAGEN DESAPARESCA PARA ESTE ESTUDIANTE DANDO A ENTENDER QUE EL ESTA INSCRITO EN EL TRIMESTRE SUPERIOR Y QUE QUEDE A LOS OTROS ALUNOS COMO NO SE A INSCRITO AL TRIMESTRE SUPERIOR, ES DECIR QUE SEGUN COMO VAYA CURSANDO EL TRIMESTRE APAREZCA O NO LA IMAGEN DE INSCRIPCION

E TRATADO DE CONFORMAR UNA CODIGO:
Código PHP:
<? foreach($vercurso as $nrg=>$estu): ?>
<tr>
        <?php $cedula=number_format($estu['Estudiante']['cedula'],0,'.''.');?>
    <td><?php echo $contadorRegistro;?></td>
    <td><?php echo $cedula;?></td>
        <td><?php echo $estu['Estudiante']['nombre'];?></td>
        <td><?php echo $estu['Estudiante']['apellido'];?> </td>
        <td><?php echo $estu['Programa']['programa'];?></td>
    <td><?php echo $estu['Ciudade']['ciudad'];?></td>
    <td><?php echo $estu['Cohorte']['cohorte'];?></td>
        <td><?php echo $estu['Trimestre']['trimestre'];?></td>
        <?php if ($nrg==$contadorRegistro){?>
        <td><?php echo $html->link($html->image('contents.gif', array('alt' => "VER PLANILLAS")),array('controller' => "estudiantes",'action' => "verplanilla",$estu['Estudiante']['id'].'/var1:'.$estu['Programa']['id']."/var2:".$estu['Trimestre']['id']."/exp:".$estu['Expediente']['id']."/post:".$vercurso[0]['Programa']['programa']."/ch:".$cohorte ),array(),NULLfalse)." <b>|</b> ".$html->link($html->image('button_cancel.gif', array('alt' => '')),array('controller' => "estudiantes",'action' => "borrar",$estu['Estudiante']['id']."/post:".$vercurso[0]['Programa']['programa']),array(),"Desea Borrar"false)." <b>|</b> ".$html->link($html->image('flag_red.png', array('alt' => "VER PLANILLAS")),array('controller' => "estudiantes",'action' => "inscribirTrimetre",$estu['Estudiante']['id'].'/'.$estu['Programa']['id']."/".$estu['Trimestre']['id']."/".$estu['Ciudade']['id']."/".$estu['Cohorte']['id']."/".$nrg),array(),NULLfalse);?></td>
        <?php }else{ ?>
        <td><?php echo $html->link($html->image('contents.gif', array('alt' => "VER PLANILLAS")),array('controller' => "estudiantes",'action' => "verplanilla",$estu['Estudiante']['id'].'/var1:'.$estu['Programa']['id']."/var2:".$estu['Trimestre']['id']."/exp:".$estu['Expediente']['id']."/post:".$vercurso[0]['Programa']['programa']."/ch:".$cohorte ),array(),NULLfalse)." <b>|</b> ".$html->link($html->image('button_cancel.gif', array('alt' => '')),array('controller' => "estudiantes",'action' => "borrar",$estu['Estudiante']['id']."/post:".$vercurso[0]['Programa']['programa']),array(),"Desea Borrar"false)),array(),NULLfalse);?></td>
        <?php ?>
                
        <?php $contadorRegistro++;?>
</tr>
<?php endforeach;?>
QUE ME PERMITA HACER ESO PERO EL PROBLEMA ES QUE SIEMPRE APARECE LA IMAGEN DE INSCRIPCION PARA TODOS, ES DECIR INSCRITO EN EL TRIMESTRE SUPERIOR Y LO QUE NO HAN PASADO AL TRIMESTRE SUPERIOR

GRACIAS ANTE SU CORDIAL AYUDA
__________________
Miguel Padrón :cool: