Esempio n. 1
0
\tsetTimeout(function(){document.location="{$SITEURL}/actions.php?action=Cerrar";},1000);
    }else{
      //\$msg.html("Conectado como usuario {$email}...");
      setTimeout(function(){document.location="{$urlref}";},0);
    }
}
</script>
V;
    } else {
        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        //UPDATE COURSE
        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        if ($action == "updatecourses") {
            $ps = parseParams($params);
            $planid = $ps["planid"];
            $cursos = updateCursos($planid);
            $html .= generateSelection($cursos, "curso", "");
        } else {
            //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
            //UPDATE COURSE
            //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
            if ($action == "updateinstituto") {
                $ps = parseParams($params);
                $planid = $ps["planid"];
                preg_match("/(\\d+)-/", $planid, $matches);
                $programaid = $matches[1];
                $results = mysqlCmd("select instituto from Programas where programaid='{$programaid}'");
                $instituto = $results["instituto"];
                //$instituto=$INSTITUTOS["$instituto"];
                $html .= "{$instituto}";
            } else {
Esempio n. 2
0
     if ($checked) {
         $scurso = ${$asignatura};
         $parts = preg_split("/:/", ${$asignatura});
         $ncred = "creditos_{$section}_{$ncourse}";
         //$$ncred=$parts[1];
         $nsel = "selasignatura_{$section}_{$ncourse}";
         ${$nsel} = generateSelectionOptions($cursos, "{$asignatura}", $scurso);
     } else {
         $scurso = "--";
         $nsel = "selasignatura_{$section}_{$ncourse}";
         ${$nsel} = generateSelectionOptions($cursos, "{$asignatura}", $scurso);
     }
 }
 //TO SELECT SOURCE COURSE
 if ($cplanid != "other" and $cplanid != "--") {
     $ccursos = updateCursos($cplanid);
     foreach ($qmaterias as $materia) {
         $parts = preg_split("/_/", $materia);
         $section = $parts[1];
         $ncourse = $parts[2];
         $checked = $qchecked["{$materia}"];
         if ($checked) {
             $name = "s" . $materia;
             $smateria = ${$name};
             $nsel = "selmateria_{$section}_{$ncourse}";
             ${$nsel} = generateSelectionOptions($ccursos, "{$name}", $smateria);
         } else {
             $name = "s" . $materia;
             $smateria = "--";
             $nsel = "selmateria_{$section}_{$ncourse}";
             ${$nsel} = generateSelectionOptions($ccursos, "{$name}", $smateria);