コード例 #1
0
ファイル: html_block.php プロジェクト: 8avilla/PuyaOjoPlus
 function load_tabla_voters($user)
 {
     if ($_SESSION['tipo'] == 1) {
         $daoCandidato = new DAOCandidato();
         echo '<thead><tr>
                 <th class="text-center"><strong>Acción</strong></th>
                 <td class="text-center"><strong>Cédula de ciudadanía</strong></td>
                 <td class="text-center"><strong>Nombre</strong></td>
                 <td class="text-center"><strong>Apellidos</strong></td>
                 <td class="text-center"><strong>Departamento</strong></td>
                 <td class="text-center"><strong>Municipio</strong></td>
                 <td class="text-center"><strong>Puesto</strong></td>
                 <td class="text-center"><strong>Mesa</strong></td>
             </tr></thead>';
         $lista = $daoCandidato->mostrarVotantes($user);
         for ($x = 0; $x < count($lista); $x++) {
             echo '
                 <tr>
                     <td><label onclick="alerta();"><span  class="glyphicon glyphicon-eye-open"></span></label></td>
                     <td>' . $lista[$x][0] . '</td>
                     <td>' . $lista[$x][1] . '</td>
                     <td>' . $lista[$x][2] . '</td>
                     <td>' . $lista[$x][3] . '</td>
                     <td>' . $lista[$x][4] . '</td>
                     <td>' . $lista[$x][5] . '</td>
                     <td>' . $lista[$x][6] . '</td>
                 </tr>';
         }
         echo '</tbody>';
     }
     if ($_SESSION['tipo'] == 2) {
         $daoL_V = new DAOListaLider_Votante();
         echo '<thead><tr>
                 <th class="text-center"><strong></strong></th>
                 <th class="text-center"><strong>Acción</strong></th>
                 <td class="text-center"><strong>Cédula de ciudadanía</strong></td>
                 <td class="text-center"><strong>Nombre</strong></td>
                 <td class="text-center"><strong>Apellidos</strong></td>
                 <td class="text-center"><strong>Departamento</strong></td>
                 <td class="text-center"><strong>Municipio</strong></td>
                 <td class="text-center"><strong>Puesto</strong></td>
                 <td class="text-center"><strong>Mesa</strong></td>
             </tr></thead>';
         $lista = $daoL_V->mostrarVotantesLider($user);
         for ($x = 0; $x < count($lista); $x++) {
             echo '
                 <tr>
                     <td><div class="checkbox" style="margin: 0px;">
                     <label>
                         <input type="checkbox" name="del" data-col="' . $lista[$x][0] . '">
                     </label>
                     </div>
                     </td>
                     <td><label onclick="alerta();"><span  class="glyphicon glyphicon-eye-open"></span></label></td>
                     <td>' . $lista[$x][0] . '</td>
                     <td>' . $lista[$x][1] . '</td>
                     <td>' . $lista[$x][2] . '</td>
                     <td>' . $lista[$x][3] . '</td>
                     <td>' . $lista[$x][4] . '</td>
                     <td>' . $lista[$x][5] . '</td>
                     <td>' . $lista[$x][6] . '</td>
                 </tr>';
         }
         echo '</tbody>';
     }
 }
コード例 #2
0
ファイル: html_block.php プロジェクト: Cromeror/puyaOjo
 function load_tabla_voters_Lider_Candidato($user, $id_lider)
 {
     $daoL_V = new DAOListaLider_Votante();
     echo '<thead><tr>
                 <td class="text-center"><strong>Cédula de ciudadanía</strong></td>
                 <td class="text-center"><strong>Nombre</strong></td>
                 <td class="text-center"><strong>Apellidos</strong></td>
                 <td class="text-center"><strong>Departamento</strong></td>
                 <td class="text-center"><strong>Municipio</strong></td>
                 <td class="text-center"><strong>Puesto</strong></td>
                 <td class="text-center"><strong>Mesa</strong></td>
             </tr></thead>';
     $lista = $daoL_V->mostrarVotantesLider_Candidato($user, $id_lider);
     for ($x = 0; $x < count($lista); $x++) {
         echo '
                 <tr>
                     <td>' . $lista[$x][0] . '</td>
                     <td>' . $lista[$x][1] . '</td>
                     <td>' . $lista[$x][2] . '</td>
                     <td>' . $lista[$x][3] . '</td>
                     <td>' . $lista[$x][4] . '</td>
                     <td>' . $lista[$x][5] . '</td>
                     <td>' . $lista[$x][6] . '</td>
                 </tr>';
     }
     echo '</tbody>';
 }