Início
» Departamentos » Engenharia Mecânica
« Página Anterior

'; */ //--------- HTML Navegacao ---------------------------- //-------------------------------------------------------------------------- $file = 'index.php?disciplinas&'; $file = '?'; // Database Connection Options define("EZSQL_DB_USER", "fbatista"); // <-- mysql db user define("EZSQL_DB_PASSWORD", "batistaDEM@SCP"); // <-- mysql db password define("EZSQL_DB_NAME", "disciplinas"); // <-- mysql db pname define("EZSQL_DB_HOST", "localhost"); // <-- mysql server host define("EZSQL_DB_TABLE", "disciplinas2005"); include_once "../classes/ez_sql/ez_sql.php"; $db2 = new db(EZSQL_DB_USER, EZSQL_DB_PASSWORD, EZSQL_DB_NAME, EZSQL_DB_HOST); $curso421 = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =421") ; $curso806 = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =806") ; $curso1053 = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =1053") ; $curso103128 = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =103128") ; $curso312201 = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =312201") ; //$html = "

Cursos Pré-Bolonha

"; $html = '
Licenciaturas pré-Bolonha - Plano Curricular 2006/2007
'; //$html .= "Plataforma - E-Learning Moodle
"; //$html .= ' // //
Moodle no IP Leiria
'; //$html .= "  Moodle na ESTG Leiria

"; //$html .= "Plano Curricular 2006/2007

"; $bot = ""; $html .= "\n"; $html .= "\n"; $html .= ""; $html .= ""; $html .= "\n"; $html .= "\n"; $html .= ""; $html .= ""; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .="
"; $html .= "".$curso1053.""; $html .= ""; $html .= "".$curso421.""; $html .= "
"; $html .= "".$curso103128.""; $html .= ""; $html .= "".$curso312201.""; $html .= ""; $html .= "".$curso806.""; $html .= ""; $html .= "
\n"; $html .= "
\n"; $html .= "\n"; $html .= "
"; $html .= "\n"; $html .= "\n"; $html .= "
"; echo $html; $curso = $_GET['curso']; if(!isset($curso)) $curso = 1053; if($curso != 421 && $curso != 806 && $curso != 312201) { if($curso != 1053 && $curso != 103128) { $curso = 1053; } } echo curso_show($db2,$curso); echo "
"; echo "
"; //------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------ /** * @return unknown * @param unknown $db2 * @param unknown $ID_CURSO * @desc Enter description here... */ function curso_show($db2, $ID_CURSO){ $nome_curso = $db2->get_var("SELECT NOME_CURSO FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO =".$ID_CURSO) ; $html = "
  ".$nome_curso."

\n"; $html .= "\n"; $html .= ano_show($db2, $ID_CURSO, 1); $html .= ano_show($db2, $ID_CURSO, 2); $html .= ano_show($db2, $ID_CURSO, 3); $html .= ano_show($db2, $ID_CURSO, 4); if($ID_CURSO != 103128 && $ID_CURSO != 312201) $html .= ano_show($db2, $ID_CURSO, 5); $html .= "
\n"; return $html; } /** * @return unknown * @param unknown $db2 * @param unknown $ID_CURSO * @param unknown $ANO_CURRICULAR * @desc Enter description here... */ function ano_show($db2,$ID_CURSO, $ANO_CURRICULAR){ $html .= "\n"; $html .= ""; $html .= semestre_show($db2, $ID_CURSO, $ANO_CURRICULAR, 1); $html .= ""; $html .= ""; $html .= semestre_show($db2, $ID_CURSO, $ANO_CURRICULAR, 2); $html .= ""; $html .= "\n"; $html .= "\n"; $html .= " "; $html .= ""; $html .= "\n"; return $html; } /** * @return unknown * @param unknown $db2 * @param unknown $ID_CURSO * @param unknown $ANO_CURRICULAR * @param unknown $SEMESTRE * @desc Enter description here... */ function semestre_show($db2,$ID_CURSO, $ANO_CURRICULAR, $SEMESTRE){ $query = " SELECT ID_DISCIPLINA, NOME_DISCIPLINA FROM ".EZSQL_DB_TABLE." WHERE ID_CURSO=".$ID_CURSO." AND ANO_CURRICULAR=".$ANO_CURRICULAR." AND SEMESTRE=".$SEMESTRE." "; $dis = $db2->get_results($query); $html = "\n"; $html .= "\n"; foreach ( $dis as $d ){ $html .= "\n";} $html .="
"; $html .= $ANO_CURRICULAR."º Ano - ".$SEMESTRE."º Semestre"; $html .= "
"; //$html .= ""; $html .= $d->NOME_DISCIPLINA; //$html .= ""; $html .= "
\n"; return $html; } //$page = 'disciplinas'; //$skin = 'right,footer,page_end'; //$path = '../site/'; //template($page, $skin, $path ); echo '
'; //fooder(); ?>