controlador
Código PHP:
Ver original
public function agenda() { if($this->session->userdata('nombre_usuario')) { [COLOR="Red"] $data['results'] = $this->prejud_model->getsucursal(); [/COLOR] [COLOR="Yellow"]$datos=$this->callcenter_model->getcall(); [/COLOR] $datos_pag["titulo"]= "Call Center"; $datos_pag["submenu"]= "1"; $datos_pag["contenido"]= "Call Center/agenda"; $this->load->view("plantillas/front_end/sidebar"); $this->load->view("callcenter/agenda",$datos,$data); $this->load->view("plantillas/front_end/footer"); } else { redirect('index/index'); } }
Vista
Código PHP:
Ver original
<thead> <tr> <th>ESTADO</th> <th>ACCION</th> <th>TIPO DE GESTION</th> <th>MONTO INSOLUTO</th> <th>SUPERVISOR</TH> <th>NOMBRE</th> <th>RUT</th> <th>DV</th> <th>SUCURSAL</th> <th>DIAS MORA</th> <?php foreach($resultados as $fila){ ?> </tr> </thead> <tbody> <tr class="cuerpo"> <?php if($fila->estado != 'SOLICITADO' and $fila->estado != 'GESTIONADO-TERRENO' and $fila->estado != 'GESTIONADO-TELEFONICA' ) { ?> <?php if( $fila->estado == 'GESTIONADO') { ?> <TD class="success" style="color:green"> <img src="<?=base_url()?>public/images/check.png" width="20"> <?php print $fila->estado?></TD> <?php }elseif ( $fila->estado == '') { ?> <TD class="danger" style="color:red"> <img src="<?=base_url()?>public/images/pendiente.png" width="20">PENDIENTE</TD> <?php } ?> <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> <td><?php print $fila->tipogestion?></td> <TD><?php print $fila->supervisor?></TD> <td><?php print $fila->Nombre ?></td> <td><?php print $fila->Rut ?></td> <td><?php print $fila->cDv ?></td> <td><?php print $fila->Sucursal ?></td> <td><?php print $fila->qDiasMora ?></td> <?php } ?> </tr> </tbody> <?php } ?> <?php } ?>
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?