} if ($busca_e_atendimento == 'on') { $worksheet->write(0, $j, 'Atendimento', $styletitulo3); $j++; } if ($busca_e_responsavel == 'on') { $worksheet->write(0, $j, 'Responsável', $styletitulo3); $j++; } $worksheet->write(0, $j, 'Resultado', $styletitulo3); $j++; $worksheet->write(0, $j, 'Outra Franquia', $styletitulo3); $j++; $worksheet->write(0, $j, 'Direcionado Para', $styletitulo3); $j++; $lista = $pedidoDAO->execSession(); foreach ($lista as $l) { $i++; $j = 0; $worksheet->write($i, $j, '#' . $l->id_pedido . '/' . $l->ordem, $styleleft); $j++; if ($busca_e_inicio == 'on') { $worksheet->write($i, $j, invert($l->inicio, '/', 'php'), $stylecenter); $j++; } if ($busca_e_prazo == 'on') { $worksheet->write($i, $j, invert($l->data_prazo, '/', 'php'), $stylecenter); $j++; } if ($busca_e_conclu == 'on') { $worksheet->write($i, $j, invert($l->operacional, '/', 'php'), $stylecenter);