示例#1
0
    while ($row = mysqli_fetch_array($result)) {
        if ($id % 2 == 0) {
            $div = "<div class='clearfix'></div>";
        } else {
            $div = '';
        }
        if ($isSep == 'no') {
            $showAdd = "\n               <div class='row'><div class='col-md-10'></div>\n                  <div class='col-md-2'>\n                     <a href='#' onclick='setID(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-register' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n                  </div>\n               </div>";
            $info_sep = "no hay datos de Registro";
        } else {
            $showAdd = "\n               <div class='row'><div class='col-md-10'></div>\n                  <div class='col-md-2'>\n                     <a href='#' onclick='showDataSep(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-editor' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n                  </div>\n               </div>";
            $info_sep = "<hr clss='hr'>\n                           <label>N&uacute;mero de Registro: </label>" . "  " . $row['regis_num'] . "<br>\n                           <label>Fecha de Registro: </label>" . "  " . $row['date_incorporate'] . "<br>\n                           <label>Calificaci&oacute;n: </label>" . "  " . $row['calification_sep'] . "<br>\n                        ";
        }
        //-- <-------------------------- ++++++++++ ------------------------------->
        $nacimiento = mes($row['birthday']);
        $edad = calcular($row['birthday']);
        #-- Calcular la edad del alumno con su fecha de nacimiento.
        #-- Filtrar unicamente a los alumnos que tengan 15 o mas años.
        if ($edad >= 15) {
            echo "<div class='col-sm-12 col-sm-12 col-md-6 col-lg-6'>";
            echo "<div class='panel-group' id='accordion' role='tablist' aria-multiselectable='true'>\n                  <div class='panel panel-default'>\n                  " . $showAdd . "\n                     <div class='panel-heading' role='tab' id='heading" . $row['id_student'] . "'>\n                        <div class='row-picture'>\n                           <img class='circle' src='img/fotos/student/" . $row['photo_s'] . "' alt='icon'>\n                        </div>\n                           <h4 class='panel-title'>\n                           <a data-toggle='collapse' data-parent='#accordion' href='#" . $row['id_student'] . "' aria-expanded='false' aria-controls='" . $row['id_student'] . "'>\n                           " . $row['name_s'] . " " . $row['surname1_s'] . "</a>\n                           </h4>\n                     </div>\n                     <div style='padding-left:55px;padding-top:20px;'> \n                        <div id='" . $row['id_student'] . "' class='panel-collapse collapse' role='tabpanel' aria-labelledby='heading" . $row['id_student'] . "' aria-expanded='false'> \n                           <div class='panel-body'>\n                              <label>Nombre: </label> " . "  " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . " <br>\n                              <label>Edad: </label> " . "  " . $edad . "<br>\n                              <label>Fecha Nac.: </label>" . "  " . $nacimiento . "<br>\n                              <label>Sexo: </label>" . "  " . $row['sexo'] . "<br>\n                              <label>Tel. Celular: </label>" . "  " . $row['cellphone'] . "\n                              " . $info_sep . "\n                           </div>\n                        </div>\n                     </div>\n                  </div>\n               </div>\n            <div class='list-group-separator'></div></div>" . $div . "";
            $id++;
        }
        #-- Fin del if edad.
    }
    #-- Fin de while.
    echo "<div class='row'>\n            <div class='col-xs-0 col-sm-2 col-md-3'></div>\n            <div class='col-xs-12 col-sm-8 col-md-6'>\n                <a id='' href='?menu_ad=registrosep' class='btn btn-sm btn-primary btn-raised'>REGISTRO</a>\n            </div>\n            <div class='col-xs-0 col-sm-2 col-md-3'></div>\n      </div>";
}
#-- Fin de la función stSep().
stSep($_GET['issep']);
示例#2
0
                <div class="list-group cajon">
                  <div class="list-group-item">
                    <?php 
include 'app/profiles/transactions/showStudentSep.php';
stSep('si');
?>
                  </div>
                </div>
              </section>
              <!-- FIN DE SECCION INSCRITOS -->

              <!-- SECCION LISTA DE ALUMNOS CANDIDATOS A SER INSCRITOS EN LA SEP -->
              <section id="primary"> 
                <div class="list-group">
                  <div class="list-group-item">
                    <?php 
stSep('no');
?>
                  </div>
                </div>              
              </section>
              <!-- FIN DE SECCIÓN CANDIDATOS -->
            </div>
              </div>
                  </div>
        </div>
    </div>
    <!-- FIN DE CONTENIDO CENTRAL -->
    <div class="col-lg-2"></div>
  </div> 
</div> 
示例#3
0
    $result = mysqli_query($db_connect, $query) or die(mysqli_error());
    $id = 1;
    $info_sep = "";
    $showAdd = "";
    //-- <-------------------------- ******************************* ------------------------------->
    #-- Obtener y mostrar los resultados de la consulta.
    while ($row = mysqli_fetch_array($result)) {
        if ($id % 2 == 0) {
            $div = "<div class='clearfix'></div>";
        } else {
            $div = '';
        }
        $showAdd = "\n               <div class='row'><div class='col-md-10'></div>\n                  <div class='col-md-2'>\n                     <a href='#' onclick='showDataSep(" . $row['id_student'] . ");' data-toggle='modal' data-target='.bs-example-modal-editor' class='btn btn-fab btn-raised mdi-content-create sepIcons'></a>\n                  </div>\n               </div>";
        $info_sep = "<hr clss='hr'>\n                  <label>N&uacute;mero de Registro: </label>" . "  " . $row['regis_num'] . "<br>\n                  <label>Fecha de Registro: </label>" . "  " . $row['date_incorporate'] . "<br>\n                  <label>Calificaci&oacute;n: </label>" . "  " . $row['calification_sep'] . "<br>";
        //-- <-------------------------- ++++++++++ ------------------------------->
        $nacimiento = mes($row['birthday']);
        $edad = calcular($row['birthday']);
        #-- Calcular la edad del alumno con su fecha de nacimiento.
        #-- Filtrar unicamente a los alumnos que tengan 15 o mas años.
        if ($edad >= 15) {
            echo "<div class='col-sm-12 col-sm-12 col-md-6 col-lg-6'>";
            echo "<div class='panel-group' id='accordion' role='tablist' aria-multiselectable='true'>\n                  <div class='panel panel-default'>\n                  " . $showAdd . "\n                     <div class='panel-heading' role='tab' id='heading" . $row['id_student'] . "'>\n                        <div class='row-picture'>\n                           <img class='circle' src='img/fotos/student/" . $row['photo_s'] . "' alt='icon'>\n                        </div>\n                           <h4 class='panel-title'>\n                           <a data-toggle='collapse' data-parent='#accordion' href='#" . $row['id_student'] . "' aria-expanded='false' aria-controls='" . $row['id_student'] . "'>\n                           " . $row['name_s'] . " " . $row['surname1_s'] . "</a>\n                           </h4>\n                     </div>\n                     <div style='padding-left:55px;padding-top:20px;'> \n                        <div id='" . $row['id_student'] . "' class='panel-collapse collapse' role='tabpanel' aria-labelledby='heading" . $row['id_student'] . "' aria-expanded='false'> \n                           <div class='panel-body'>\n                              <label>Nombre: </label> " . "  " . $row['name_s'] . " " . $row['surname1_s'] . " " . $row['surname2_s'] . " <br>\n                              <label>Edad: </label> " . "  " . $edad . "<br>\n                              <label>Fecha Nac.: </label>" . "  " . $nacimiento . "<br>\n                              <label>Sexo: </label>" . "  " . $row['sexo'] . "<br>\n                              <label>Tel. Celular: </label>" . "  " . $row['cellphone'] . "\n                              " . $info_sep . "\n                           </div>\n                        </div>\n                     </div>\n                  </div>\n               </div>\n            <div class='list-group-separator'></div></div>" . $div . "";
            $id++;
        }
        #-- Fin del if edad.
    }
    #-- Fin de while.
}
#-- Fin de la función stSep().
stSep();