} } } ?> <!-- timeline css --> <?php // array de citacion $array_citacion = array( 'citacion_tipo' => $citacion->getCitacionTipo(), 'citacion_plantilla' => $citacion->getCitacionPlantilla(), 'citacion_email' => $citacion->getCitacionEmail(), 'cliente_id' => $citacion->getClienteId(), 'cliente' => $citacion->getCliente(), 'fecha' => $citacion->getFecha(), 'ticket_id' => $citacion->getTicketId(), 'staff_id' => $citacion->getStaffId() ); // cargo los array de citaciones y respuestas, para despues ordenarlos y mostrarlos if ( $var_citacion == 1 ) $tod['citaciones'] = array( 'fecha' => $citacion->getFecha(), 'data' => $array_citacion, 'tipo' => 'citaciones' ); if ( $var_citacion == 2 ) { while ( $row = mysql_fetch_assoc($citacion->getCitaciones()) ) { $tod[$row["fecha"]] = array( 'fecha' => $row["fecha"], 'data' => $row, 'tipo' => 'citaciones' ); } } if ( $var_historial == true ) { while ( $row = mysql_fetch_assoc($var_historial) ) {
<?php } // cargo el array de respuestas if ($row['nTicketId'] == "") { //$tod['respuestas'] = array( 'fecha' => $row["dDate"], 'data' => $row, 'tipo' => 'respuestas' ); $tod[$row["dDate"]] = array('fecha' => $row["dDate"], 'data' => $row, 'tipo' => 'respuestas'); } } } ?> <!-- timeline css --> <link href="css/timeline.css" rel="stylesheet" type="text/css"> <?php // array de citacion $array_citacion = array('citacion_tipo' => $citacion->getCitacionTipo(), 'citacion_plantilla' => $citacion->getCitacionPlantilla(), 'citacion_email' => $citacion->getCitacionEmail(), 'cliente_id' => $citacion->getClienteId(), 'cliente' => $citacion->getCliente(), 'fecha' => $citacion->getFecha(), 'ticket_id' => $citacion->getTicketId(), 'staff_id' => $citacion->getStaffId()); // cargo los array de citaciones y respuestas, para despues ordenarlos y mostrarlos if ($var_citacion == 1) { $tod['citaciones'] = array('fecha' => $citacion->getFecha(), 'data' => $array_citacion, 'tipo' => 'citaciones'); } if ($var_citacion == 2) { while ($row = mysql_fetch_assoc($citacion->getCitaciones())) { $tod[$row["fecha"]] = array('fecha' => $row["fecha"], 'data' => $row, 'tipo' => 'citaciones'); } } if ($var_historial == true) { while ($row = mysql_fetch_assoc($var_historial)) { $tod[$row["fecha"]] = array('fecha' => $row["fecha"], 'data' => $row, 'tipo' => 'historial'); } } $tod_ordenado = count($tod) > 0 ? orderMultiDimensionalArray($tod, 'fecha') : 0;