コード例 #1
0
ファイル: actions.class.php プロジェクト: qwerfaqs/psicotest
    public function executePodiogeneral(sfWebRequest $request)
    {
        $mayorespuntajes = ResultadosPeer::getPodio();
        $salida = null;
        foreach ($mayorespuntajes as $dato) {
            $salida .= '<tr>
              <td>' . $dato->getPruebas()->getTests()->getTitulo() . '</td>                 
              <td>' . $dato->getPuntaje() . '</td>    
              <td>' . $dato->getAspirantes()->getNombre() . '</td>                              
              <td>' . $dato->getAspirantes()->getApellido() . '</td>  
              <td>' . $dato->getAspirantes()->getCedula() . '</td>                                                
            </tr>';
        }
        // Set some content to print
        $html = <<<EOD
                        <style type="text/css">
                            table {
                            width: 635px;
                            border: 0;
                            background-color: #00CCFF;
                            color: #000000;
                            }

                            </style>

                            <table>     
                                <thead>
                                  <tr>
                                    <th scope="col">Test</th>
                                    <th scope="col">Puntaje obtenido</th>
                                    <th scope="col">Nombre</th>            
                                    <th scope="col">Apellido</th>            
                                    <th scope="col">Cedula</th>            
                                   </tr>
                                 </thead>     
                            <tbody>  
                               {$salida}
                               </tbody> 
                              </table>
EOD;
        $this->generarTabla($html);
    }