$(document).ready(function (){ $(".ajax").live("click", function() { var url = this.href; var dialog = $("#dialog"); if ($("#dialog").length == 0) { dialog = $("
").appendTo("body"); } // load remote content dialog.load( url, {}, function(responseText, textStatus, XMLHttpRequest) { dialog.dialog({ modal : true, width : 540, height : 400 }); }); //prevent the browser to follow the link return false; }); }); function mostrarContenido(div){ if($("div#"+div).attr("class")=="blackboard_hide"){ $("div#"+div).attr("class","blackboard_show"); $("div#"+div).attr("style",""); }else{ $("div#"+div).attr("class","blackboard_hide"); $("div#"+div).attr("style",""); } } function save() { work_id = $("#work_id").val(); forum_id = $("#forum_id").val(); rs_id = $("#rs_id").val(); $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function(objeto) { $("div#confirmacion").html("
"); },
type: "POST",
url: "update_report.php",
data: "work_id="+work_id+"&forum_id="+forum_id+"&rs_id="+rs_id,
success: function(datos) {
$("div#confirmacion").html(datos);
location.reload();
}
});
}
';
$course_code = api_get_course_id();
$resultado = inicializarReporte($course_code);
if(isset($_GET['action'])){
Export::export_table_xls($resultado['exportar'],"REPORTE ALUMNOS CURSO".$course_code);
}else{
Display::display_header();
api_protect_course_script();
if (!api_is_allowed_to_edit()){
api_not_allowed();
}
echo $resultado['mostrar'];
Display::display_footer();
}
?>