mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Removed tabs
This commit is contained in:
parent
bee7ee3815
commit
dabfd0ed85
67 changed files with 8204 additions and 8204 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_once("../../config.php");
|
||||
require_once('locallib.php');
|
||||
|
||||
|
||||
$id = optional_param('id', '', PARAM_INT); // Course Module ID, or
|
||||
$a = optional_param('a', '', PARAM_INT); // scorm ID
|
||||
$scoid = required_param('scoid', PARAM_INT); // sco ID
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_once("../../config.php");
|
||||
require_once('locallib.php');
|
||||
|
||||
|
||||
$id = optional_param('id', '', PARAM_INT); // Course Module ID, or
|
||||
$a = optional_param('a', '', PARAM_INT); // SCORM ID
|
||||
$b = optional_param('b', '', PARAM_INT); // SCO ID
|
||||
|
@ -58,8 +58,8 @@
|
|||
$strscorm = get_string("modulename", "scorm");
|
||||
$strreport = get_string("report", "scorm");
|
||||
$strname = get_string('name');
|
||||
$strcoefficient = get_string('coefficient',"scorm");
|
||||
$strcoefficient = "Thiet lap he so";
|
||||
$strcoefficient = get_string('coefficient',"scorm");
|
||||
$strcoefficient = "Thiet lap he so";
|
||||
if (empty($b)) {
|
||||
print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname",
|
||||
"$navigation <a href=\"index.php?id=$course->id\">$strscorms</a>
|
||||
|
@ -77,32 +77,32 @@
|
|||
|
||||
$scormpixdir = $CFG->modpixpath.'/scorm/pix';
|
||||
|
||||
//Phan trinh bay chinh
|
||||
//Phan trinh bay chinh
|
||||
?>
|
||||
|
||||
<?php
|
||||
$examScoes = get_records_select('scorm_scoes', 'scorm ='.($scorm->id).' and minnormalizedmeasure > -1');
|
||||
foreach ($examScoes as $examSco){
|
||||
$newcoefficient = optional_param($examSco->id,'',PARAM_INT);
|
||||
$sco = get_record('scorm_scoes','scorm',$scorm->id,'id',$examSco->id,'','');
|
||||
$sco->score_coefficient = $newcoefficient;
|
||||
$ketqua = update_record('scorm_scoes',$sco);
|
||||
//echo "Cap nhat $examSco->id voi he so diem ".$newcoefficient."<br>";
|
||||
}
|
||||
$examScoes = get_records_select('scorm_scoes', 'scorm ='.($scorm->id).' and minnormalizedmeasure > -1');
|
||||
foreach ($examScoes as $examSco){
|
||||
$newcoefficient = optional_param($examSco->id,'',PARAM_INT);
|
||||
$sco = get_record('scorm_scoes','scorm',$scorm->id,'id',$examSco->id,'','');
|
||||
$sco->score_coefficient = $newcoefficient;
|
||||
$ketqua = update_record('scorm_scoes',$sco);
|
||||
//echo "Cap nhat $examSco->id voi he so diem ".$newcoefficient."<br>";
|
||||
}
|
||||
|
||||
if ($ketqua)
|
||||
{
|
||||
echo "".get_string('updatesuccess','scorm');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "".get_string('updatefail','scorm');
|
||||
}
|
||||
if ($ketqua)
|
||||
{
|
||||
echo "".get_string('updatesuccess','scorm');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "".get_string('updatefail','scorm');
|
||||
}
|
||||
|
||||
echo "<br><br><a href=coefficientsetting.php?id=$id>".get_string('back','scorm')."</a>"
|
||||
echo "<br><br><a href=coefficientsetting.php?id=$id>".get_string('back','scorm')."</a>"
|
||||
?>
|
||||
<?php
|
||||
//ket thuc phan trinh bay chinh
|
||||
//ket thuc phan trinh bay chinh
|
||||
|
||||
if (empty($noheader)) {
|
||||
print_footer($course);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_once("../../config.php");
|
||||
require_once('locallib.php');
|
||||
|
||||
|
||||
$id = optional_param('id', '', PARAM_INT); // Course Module ID, or
|
||||
$a = optional_param('a', '', PARAM_INT); // SCORM ID
|
||||
$b = optional_param('b', '', PARAM_INT); // SCO ID
|
||||
|
@ -58,7 +58,7 @@
|
|||
$strscorm = get_string("modulename", "scorm");
|
||||
$strreport = get_string("report", "scorm");
|
||||
$strname = get_string('name');
|
||||
$strcoefficient = get_string('coefficient','scorm');
|
||||
$strcoefficient = get_string('coefficient','scorm');
|
||||
if (empty($b)) {
|
||||
print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname",
|
||||
"$navigation <a href=\"index.php?id=$course->id\">$strscorms</a>
|
||||
|
@ -76,12 +76,12 @@
|
|||
|
||||
$scormpixdir = $CFG->modpixpath.'/scorm/pix';
|
||||
|
||||
//Phan trinh bay chinh
|
||||
//Phan trinh bay chinh
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function validate_form()
|
||||
{
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<form name="form" method="post" action="coefficientconfirm.php" onsubmit="return validate_form();" >
|
||||
|
@ -92,15 +92,15 @@ function validate_form()
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
$examScoes = get_records_select('scorm_scoes', 'scorm ='.($scorm->id).' and minnormalizedmeasure > -1');
|
||||
if(!empty($examScoes))
|
||||
{
|
||||
|
||||
foreach ($examScoes as $examSco){
|
||||
echo "<tr><td>";
|
||||
echo "$examSco->identifier.</td><td><input type='text' name='$examSco->id' class='scormtextbox' value=$examSco->score_coefficient /></td></tr><br>";
|
||||
}
|
||||
}
|
||||
$examScoes = get_records_select('scorm_scoes', 'scorm ='.($scorm->id).' and minnormalizedmeasure > -1');
|
||||
if(!empty($examScoes))
|
||||
{
|
||||
|
||||
foreach ($examScoes as $examSco){
|
||||
echo "<tr><td>";
|
||||
echo "$examSco->identifier.</td><td><input type='text' name='$examSco->id' class='scormtextbox' value=$examSco->score_coefficient /></td></tr><br>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
|
@ -109,7 +109,7 @@ function validate_form()
|
|||
<input type="submit" value="<?php print_string('savechanges') ?>" />
|
||||
</form>
|
||||
<?php
|
||||
//ket thuc phan trinh bay chinh
|
||||
//ket thuc phan trinh bay chinh
|
||||
|
||||
if (empty($noheader)) {
|
||||
print_footer($course);
|
||||
|
|
|
@ -91,7 +91,7 @@ function SCORMapi1_3() {
|
|||
'cmi.learner_preference.language':{'defaultvalue':'', 'format':CMIString250, 'mod':'rw'},
|
||||
'cmi.learner_preference.delivery_speed':{'defaultvalue':'0', 'format':CMIDecimal, 'range':speed_range, 'mod':'rw'},
|
||||
'cmi.learner_preference.audio_caption':{'defaultvalue':'0', 'format':CMISInteger, 'range':text_range, 'mod':'rw'},
|
||||
'cmi.location':{'defaultvalue':<?php echo isset($userdata->{'cmi.location'})?'\''.$userdata->{'cmi.location'}.'\'':'null' ?>, 'format':CMIString1000, 'mod':'rw'},
|
||||
'cmi.location':{'defaultvalue':<?php echo isset($userdata->{'cmi.location'})?'\''.$userdata->{'cmi.location'}.'\'':'null' ?>, 'format':CMIString1000, 'mod':'rw'},
|
||||
'cmi.max_time_allowed':{'defaultvalue':<?php echo isset($userdata->maxtimeallowed)?'\''.$userdata->maxtimeallowed.'\'':'null' ?>, 'mod':'r'},
|
||||
'cmi.mode':{'defaultvalue':'<?php echo $userdata->mode ?>', 'mod':'r'},
|
||||
'cmi.objectives._children':{'defaultvalue':objectives_children, 'mod':'r'},
|
||||
|
|
|
@ -189,7 +189,7 @@ function scorm_upgrade($oldversion) {
|
|||
foreach($scorms as $scorm) {
|
||||
if ($scorm->browsemode = 1) {
|
||||
$scorm->hidebrowse = 0;
|
||||
} else {
|
||||
} else {
|
||||
$scorm->hidebrowse = 1;
|
||||
}
|
||||
update_record('scorm',$scorm);
|
||||
|
|
|
@ -205,7 +205,7 @@ function scorm_upgrade($oldversion) {
|
|||
foreach($scorms as $scorm) {
|
||||
if ($scorm->browsemode = 1) {
|
||||
$scorm->hidebrowse = 0;
|
||||
} else {
|
||||
} else {
|
||||
$scorm->hidebrowse = 1;
|
||||
}
|
||||
update_record('scorm',$scorm);
|
||||
|
|
|
@ -71,8 +71,8 @@
|
|||
} else if (isstudent($course->id)) {
|
||||
require_once('locallib.php');
|
||||
$report = scorm_grade_user_new(get_records('scorm_scoes','scorm',$scorm->id), $USER->id, $scorm->grademethod);
|
||||
$sco_count = scorm_get_user_sco_count($scorm->id,$USER->id);
|
||||
$reportshow = get_string('implement','scorm').$sco_count.get_string('lesson','scorm') ."<br><table width=".($report*100)."% bgcolor=#800000><tr><td height=15></td></tr></table>".get_string('scoreRate','scorm').": ".($report*100)."%"; }
|
||||
$sco_count = scorm_get_user_sco_count($scorm->id,$USER->id);
|
||||
$reportshow = get_string('implement','scorm').$sco_count.get_string('lesson','scorm') ."<br><table width=".($report*100)."% bgcolor=#800000><tr><td height=15></td></tr></table>".get_string('scoreRate','scorm').": ".($report*100)."%"; }
|
||||
if (!$scorm->visible) {
|
||||
//Show dimmed if the mod is hidden
|
||||
$table->data[] = array ($tt, "<a class=\"dimmed\" href=\"view.php?id=$scorm->coursemodule\">".format_string($scorm->name,true)."</a>",
|
||||
|
|
|
@ -112,10 +112,10 @@ function scorm_update_instance($scorm) {
|
|||
|
||||
// Check if scorm manifest needs to be reparsed
|
||||
if ($scorm->launch == 0) {
|
||||
//$f = "D:\\test.txt";
|
||||
//@$ft = fopen($f,"a");
|
||||
//fwrite($ft,"\n Xu ly trong update trong lib.php \n");
|
||||
//fwrite($ft,"\n Lauch co gia tri \n".($scorm->launch));
|
||||
//$f = "D:\\test.txt";
|
||||
//@$ft = fopen($f,"a");
|
||||
//fwrite($ft,"\n Xu ly trong update trong lib.php \n");
|
||||
//fwrite($ft,"\n Lauch co gia tri \n".($scorm->launch));
|
||||
|
||||
// Delete old related records
|
||||
delete_records('scorm_scoes','scorm',$scorm->id);
|
||||
|
@ -124,9 +124,9 @@ function scorm_update_instance($scorm) {
|
|||
delete_records('scorm_sequencing_rolluprules','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rolluprule','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rollupruleconditions','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rolluprulecondition','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rolluprulecondition','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_ruleconditions','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rulecondition','scormid',$scorm->id);
|
||||
delete_records('scorm_sequencing_rulecondition','scormid',$scorm->id);
|
||||
|
||||
|
||||
$scorm->dir = $CFG->dataroot.'/'.$scorm->course.'/moddata/scorm';
|
||||
|
@ -193,7 +193,7 @@ function scorm_delete_instance($id) {
|
|||
}
|
||||
if (! delete_records('scorm_sequencing_ruleconditions', 'scormid', $scorm->id)) {
|
||||
$result = false;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -220,8 +220,8 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
|
|||
require_once('locallib.php');
|
||||
foreach ($scoes as $sco) {
|
||||
if ($sco->launch!='') {
|
||||
$scores->count++;
|
||||
if ($userdata = scorm_get_tracks($sco->id, $user->id)) {
|
||||
$scores->count++;
|
||||
if ($userdata = scorm_get_tracks($sco->id, $user->id)) {
|
||||
if (!isset($scores->{$userdata->status})) {
|
||||
$scores->{$userdata->status} = 1;
|
||||
} else {
|
||||
|
@ -240,7 +240,7 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
|
|||
}
|
||||
switch ($scorm->grademethod) {
|
||||
case GRADEHIGHEST:
|
||||
if ($scores->values > 0) {
|
||||
if ($scores->values > 0) {
|
||||
$return->info = get_string('score','scorm').': '.$scores->max;
|
||||
$return->time = $scores->lastmodify;
|
||||
}
|
||||
|
@ -261,30 +261,30 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
|
|||
$return->info = '';
|
||||
$scores->notattempted = $scores->count;
|
||||
if (isset($scores->completed)) {
|
||||
$return->info .= get_string('completed','scorm').': '.$scores->completed.'<br />';
|
||||
$return->info .= get_string('completed','scorm').': '.$scores->completed.'<br />';
|
||||
$scores->notattempted -= $scores->completed;
|
||||
}
|
||||
if (isset($scores->passed)) {
|
||||
$return->info .= get_string('passed','scorm').': '.$scores->passed.'<br />';
|
||||
$return->info .= get_string('passed','scorm').': '.$scores->passed.'<br />';
|
||||
$scores->notattempted -= $scores->passed;
|
||||
}
|
||||
if (isset($scores->failed)) {
|
||||
$return->info .= get_string('failed','scorm').': '.$scores->failed.'<br />';
|
||||
$return->info .= get_string('failed','scorm').': '.$scores->failed.'<br />';
|
||||
$scores->notattempted -= $scores->failed;
|
||||
}
|
||||
if (isset($scores->incomplete)) {
|
||||
$return->info .= get_string('incomplete','scorm').': '.$scores->incomplete.'<br />';
|
||||
$return->info .= get_string('incomplete','scorm').': '.$scores->incomplete.'<br />';
|
||||
$scores->notattempted -= $scores->incomplete;
|
||||
}
|
||||
if (isset($scores->browsed)) {
|
||||
$return->info .= get_string('browsed','scorm').': '.$scores->browsed.'<br />';
|
||||
$return->info .= get_string('browsed','scorm').': '.$scores->browsed.'<br />';
|
||||
$scores->notattempted -= $scores->browsed;
|
||||
}
|
||||
$return->time = $scores->lastmodify;
|
||||
if ($return->info == '') {
|
||||
$return = NULL;
|
||||
} else {
|
||||
$return->info .= get_string('notattempted','scorm').': '.$scores->notattempted.'<br />';
|
||||
$return->info .= get_string('notattempted','scorm').': '.$scores->notattempted.'<br />';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
|
|||
echo get_string('report','scorm').":<br />\n";
|
||||
echo $report;
|
||||
} else {
|
||||
print_string('noactivity','scorm');
|
||||
print_string('noactivity','scorm');
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require_once("../../config.php");
|
||||
require_once('locallib.php');
|
||||
|
||||
|
||||
$id = optional_param('id', '', PARAM_INT); // Course Module ID, or
|
||||
$a = optional_param('a', '', PARAM_INT); // scorm ID
|
||||
$scoid = required_param('scoid', PARAM_INT); // sco ID
|
||||
|
|
|
@ -145,8 +145,8 @@
|
|||
result.concat('<?php print_string('errorlogs','scorm') ?>:\n'+errorlogs);
|
||||
}
|
||||
alert(result);
|
||||
alert("Khong tuan chuan Scorm");
|
||||
document.form.name.focus();
|
||||
alert("Khong tuan chuan Scorm");
|
||||
document.form.name.focus();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
require_once("../../config.php");
|
||||
require_once('locallib.php');
|
||||
|
||||
|
||||
$id = optional_param('id', '', PARAM_INT); // Course Module ID, or
|
||||
$a = optional_param('a', '', PARAM_INT); // SCORM ID
|
||||
$b = optional_param('b', '', PARAM_INT); // SCO ID
|
||||
|
@ -314,54 +314,54 @@
|
|||
error('Missing script parameter');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
print_heading(format_string(get_string('timestatistic','scorm')));
|
||||
$scousers=get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid,scormid", "", "userid,scormid");
|
||||
$attempt = scorm_get_last_attempt($scorm->id,$USER->id);
|
||||
|
||||
foreach($scousers as $scouser){
|
||||
$str = 'scormid ='.($scorm->id).' and userid = '.$scouser->userid.' and attempt = '.$attempt.' ORDER BY timemodified asc';
|
||||
$endtrack = get_record_select("scorm_scoes_track", $str,'max(timemodified) as maxtimemodified');
|
||||
$scousers=get_records_select("scorm_scoes_track", "scormid='$scorm->id' GROUP BY userid,scormid", "", "userid,scormid");
|
||||
$attempt = scorm_get_last_attempt($scorm->id,$USER->id);
|
||||
|
||||
foreach($scousers as $scouser){
|
||||
$str = 'scormid ='.($scorm->id).' and userid = '.$scouser->userid.' and attempt = '.$attempt.' ORDER BY timemodified asc';
|
||||
$endtrack = get_record_select("scorm_scoes_track", $str,'max(timemodified) as maxtimemodified');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//Phan trinh bay thong ke theo thoi gian
|
||||
$table = new stdClass();
|
||||
$table->head = array(' ', get_string('name','scorm'));
|
||||
$table->align = array('center', 'left');
|
||||
$table->wrap = array('nowrap', 'nowrap');
|
||||
$table->width = '100%';
|
||||
$table->size = array(10, '*');
|
||||
$table = new stdClass();
|
||||
$table->head = array(' ', get_string('name','scorm'));
|
||||
$table->align = array('center', 'left');
|
||||
$table->wrap = array('nowrap', 'nowrap');
|
||||
$table->width = '100%';
|
||||
$table->size = array(10, '*');
|
||||
|
||||
$table->head[]=scorm_string_wrap(get_string('beginTime','scorm'));
|
||||
$table->align[] = 'center';
|
||||
$table->wrap[] = 'nowrap';
|
||||
$table->size[] = '*';
|
||||
$table->head[]=scorm_string_wrap(get_string('beginTime','scorm'));
|
||||
$table->align[] = 'center';
|
||||
$table->wrap[] = 'nowrap';
|
||||
$table->size[] = '*';
|
||||
|
||||
$table->head[]=scorm_string_wrap(get_string('endTime','scorm'));
|
||||
$table->align[] = 'center';
|
||||
$table->wrap[] = 'nowrap';
|
||||
$table->size[] = '*';
|
||||
$table->head[]=scorm_string_wrap(get_string('endTime','scorm'));
|
||||
$table->align[] = 'center';
|
||||
$table->wrap[] = 'nowrap';
|
||||
$table->size[] = '*';
|
||||
|
||||
$row = array();
|
||||
$row[] = "";
|
||||
$row[] = "(".get_string('coefficient','scorm').")";
|
||||
foreach($scousers as $scouser){
|
||||
$userdata = scorm_get_user_data($scouser->userid);
|
||||
$row = array();
|
||||
$row[] = print_user_picture($scouser->userid, $course->id, $userdata->picture, false, true);
|
||||
$row[] = "<a href=\"$CFG->wwwroot/user/view.php?id=$scouser->userid&course=$course->id\">".
|
||||
"$userdata->firstname $userdata->lastname</a>";
|
||||
$str = 'scormid ='.($scorm->id).' and userid = '.$scouser->userid.' and attempt = '.$attempt.' ORDER BY timemodified asc';
|
||||
$begintrack = get_record_select("scorm_scoes_track", $str,'min(timemodified) as mintimemodified');
|
||||
$row[] = strftime( "%H h -%M ' - %S s - %d -%m-%Y", $begintrack->mintimemodified);
|
||||
$endtrack = get_record_select("scorm_scoes_track", $str,'max(timemodified) as maxtimemodified');
|
||||
$row[] = strftime( "%H h -%M ' - %S s - %d -%m-%Y", $endtrack->maxtimemodified);
|
||||
$table->data[] = $row;
|
||||
}
|
||||
print_table($table);
|
||||
|
||||
echo "<br><a href='viewScore.php?a=$scorm->id'>".format_string(get_string('viewscore','scorm'))."</a>";
|
||||
$row = array();
|
||||
$row[] = "";
|
||||
$row[] = "(".get_string('coefficient','scorm').")";
|
||||
foreach($scousers as $scouser){
|
||||
$userdata = scorm_get_user_data($scouser->userid);
|
||||
$row = array();
|
||||
$row[] = print_user_picture($scouser->userid, $course->id, $userdata->picture, false, true);
|
||||
$row[] = "<a href=\"$CFG->wwwroot/user/view.php?id=$scouser->userid&course=$course->id\">".
|
||||
"$userdata->firstname $userdata->lastname</a>";
|
||||
$str = 'scormid ='.($scorm->id).' and userid = '.$scouser->userid.' and attempt = '.$attempt.' ORDER BY timemodified asc';
|
||||
$begintrack = get_record_select("scorm_scoes_track", $str,'min(timemodified) as mintimemodified');
|
||||
$row[] = strftime( "%H h -%M ' - %S s - %d -%m-%Y", $begintrack->mintimemodified);
|
||||
$endtrack = get_record_select("scorm_scoes_track", $str,'max(timemodified) as maxtimemodified');
|
||||
$row[] = strftime( "%H h -%M ' - %S s - %d -%m-%Y", $endtrack->maxtimemodified);
|
||||
$table->data[] = $row;
|
||||
}
|
||||
print_table($table);
|
||||
|
||||
echo "<br><a href='viewScore.php?a=$scorm->id'>".format_string(get_string('viewscore','scorm'))."</a>";
|
||||
if (empty($noheader)) {
|
||||
print_footer($course);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue