Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/01/2016, 10:58
esoto
 
Fecha de Ingreso: abril-2015
Mensajes: 96
Antigüedad: 10 años
Puntos: 1
problema con datos

Estimados, tengo una consulta lo que pasa es que tengo una vista donde muestro datos de la siguiente manera.


controlador

Código PHP:
Ver original
  1. public function agenda()
  2.   {
  3.       if($this->session->userdata('nombre_usuario'))
  4.      {
  5.  
  6.            
  7.            $data = array('resultados' => $this->busqueda());                    
  8.           [COLOR="Red"] $data['results'] = $this->prejud_model->getsucursal();  [/COLOR]        
  9.            [COLOR="Yellow"]$datos=$this->callcenter_model->getcall();    [/COLOR]
  10.            $datos_pag["titulo"]= "Call Center";
  11.            $datos_pag["submenu"]= "1";
  12.            $datos_pag["contenido"]= "Call Center/agenda";
  13.            $this->load->view("plantillas/front_end/header",compact("datos_pag"));
  14.            $this->load->view("plantillas/front_end/sidebar");
  15.            $this->load->view("callcenter/agenda",$datos,$data);
  16.            $this->load->view("plantillas/front_end/footer");
  17.  
  18.       }
  19.       else
  20.       {
  21.        redirect('index/index');
  22.        
  23.       }
  24.          
  25.  
  26.   }


Vista
Código PHP:
Ver original
  1. <thead>
  2.         <tr>
  3.  
  4.             <th>ESTADO</th>
  5.             <th>ACCION</th>                  
  6.             <th>TIPO DE GESTION</th>
  7.             <th>MONTO INSOLUTO</th>
  8.             <th>SUPERVISOR</TH>
  9.             <th>NOMBRE</th>
  10.             <th>RUT</th>
  11.             <th>DV</th>                                  
  12.             <th>SUCURSAL</th>                                        
  13.             <th>DIAS MORA</th>                                    
  14.            
  15.  
  16.     <?php
  17.     foreach($resultados as $fila){
  18.     ?>
  19.         </tr>
  20.     </thead>
  21.     <tbody>  
  22.  
  23.  
  24.  
  25.  
  26.         <tr class="cuerpo">
  27.          
  28.           <?php
  29.            if($fila->estado != 'SOLICITADO' and $fila->estado != 'GESTIONADO-TERRENO' and $fila->estado != 'GESTIONADO-TELEFONICA' )
  30.            {
  31.           ?>
  32.  
  33.  
  34.  
  35.          <?php
  36.           if( $fila->estado == 'GESTIONADO')
  37.           {
  38.           ?>
  39.           <TD class="success" style="color:green"> <img src="<?=base_url()?>public/images/check.png" width="20">  <?php print $fila->estado?></TD>          
  40.           <?php
  41.           }elseif ( $fila->estado == '') {
  42.                    
  43.           ?>
  44.           <TD class="danger" style="color:red"> <img src="<?=base_url()?>public/images/pendiente.png" width="20">PENDIENTE</TD>
  45.           <?php
  46.           }
  47.           ?>    
  48.        
  49.  
  50.           <td class=""><a  href="<?php echo base_url() ?>callcenter/guardar/<?php echo $fila->iPersona ?>"  ><img src="<?=base_url()?>public/images/call2.ico" width="20"  /><p><b class="b">GESTION TELEFONICA</b></p> </a></td>  
  51.          
  52.          
  53.           <td><?php print $fila->tipogestion?></td>
  54.           <td>$ <?php print number_format($fila->vMontoInsoluto)?></td>
  55.           <TD><?php print $fila->supervisor?></TD>
  56.           <td><?php print $fila->Nombre ?></td>  
  57.           <td><?php print $fila->Rut ?></td>  
  58.           <td><?php print $fila->cDv ?></td>                                
  59.           <td><?php print $fila->Sucursal ?></td>                                  
  60.           <td><?php print $fila->qDiasMora ?></td>
  61.            
  62.             <?php
  63.              }
  64.             ?>
  65.          
  66.         </tr>
  67.        
  68.     </tbody>
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.        <?php
  77.     }
  78.     ?>
  79.       <?php
  80.   }
  81.   ?>


Mi consulta es la siguiente.. yo quiero mostrar datos de mas de una tabla.. la idea es hacerla como en la parte que esta destacada en rojo ( la cual funciona perfectamente, pero la parte en amarillo me da error.

entonces quisiera ver si me pueden ayudar a como mostrar datos de mas de una tabla?