コード例 #1
0
ファイル: gruposController.php プロジェクト: Elderl23/escuela
             }
             if ($g + 1 == 5) {
                 $url = "cve_maes!={$v_1} and cve_maes!={$v_2} and  cve_maes!={$v_3} and cve_maes!={$v_4} and cve_maes!={$v_5} and";
                 $consulta_maes_grupo2 = $ogrupo->consulta_maes_grupo3($url);
             }
             if ($g + 1 == 6) {
                 $url = "cve_maes!={$v_1} and cve_maes!={$v_2} and  cve_maes!={$v_3} and cve_maes!={$v_4} and cve_maes!={$v_5} and cve_maes!={$v_6} and";
                 $consulta_maes_grupo2 = $ogrupo->consulta_maes_grupo3($url);
             }
             $con = 3;
         }
     }
 } else {
     list($ho1, $ho2) = explode("-", $_SESSION["cve2"]);
     $di = $_SESSION["dia"];
     $di2 = $ogrupo->consulta_hora3($di);
     if ($di2 == null) {
         $con = 4;
         $consulta_maestro_ge = $ogrupo->consulta_maestro_general();
     }
     $acumu = 0;
     $ac = 0;
     $ac2 = 0;
     for ($d = 0; $d < sizeof($di2); $d++) {
         if ($d + 1 == 1) {
             $v_1 = $di2[0]["cve_maes"];
         }
         if ($d + 1 == 2) {
             $v_1 = $di2[0]["cve_maes"];
             $v_2 = $di2[1]["cve_maes"];
         }