* Gets the position of the score based in my score (result/weight) and the exe_id
* Gets the position of the score based in a given score (result/weight) and the exe_id
* @param float user score to be compared
* @param int exe id of the exercise (this is necesary becase if 2 students have the same score the one with the minor exe_id will have a best position)
* @param int exercise id
* @param string course code
* @param int session id
* @return int the position of the user between his friends in a course (or course within a session)
*/
function get_exercise_result_ranking($my_score, $my_exe_id, $exercise_id, $course_code, $session_id = 0) {
* This is just a wrapper to use the jqgrid For the other options go here http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options
* This function need to be in the ready jquery function --> $(function() { }
/**
* This is just a wrapper to use the jqgrid For the other options go here http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options
* This function need to be in the ready jquery function example --> $(function() { <?phpechoDisplay::grid_js('grid'...);?> }
* In order to work this function needs the Display::grid_html function with the same div id
* @param string div id
* @param string url where the jqgrid will ask for data
* @param array Visible columns (you should use get_lang). An array in which we place the names of the columns. This is the text that appears in the head of the grid (Header layer). Example: colname {name:'date', index:'date', width:120, align:'right'},
@ -868,13 +869,15 @@ class Display {
$obj->data = $data_var;
$obj->datatype = 'local';
$json.="\n";
}
}
$json_encode = json_encode($obj);
if (!empty($data)) {
//Converts the "data":"js_variable" to "data":js_variable