123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- require_once '../config.php';
- $plugin = TicketPlugin::create();
- require_once 'tutor_report.lib.php';
- $htmlHeadXtra[] = '
- <script type="text/javascript">
- $(document).ready(function (){
- $(".ajax").live("click", function() {
- var url = this.href;
- var dialog = $("#dialog");
- if ($("#dialog").length == 0) {
- dialog = $("<div id=\"dialog\" style=\"display:hidden\"></div>").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("<img src=\'../../../main/inc/lib/javascript/indicator.gif\' />"); },
- 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();
- }
- });
- }
- </script>
- <style>
- .blackboard_show {
- float:left;
- position:absolute;
- border:1px solid black;
- width: 350px;
- background-color:white;
- z-index:99; padding: 3px;
- display: inline;
- }
- .blackboard_hide {
- display: none;
- }
- .reportes{
- border:1px ;
- }
- .reportes th {
- border-bottom: 1px solid #DDDDDD;
- line-height: normal;
- text-align: center;
- vertical-align: middle;
- background-color: #F2F2F2;
- }
- </style>';
- $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();
- }
- ?>
|