From 9096a4787652aa7fffc0e40fac0025a032850702 Mon Sep 17 00:00:00 2001 From: bobopinna Date: Tue, 26 Sep 2006 08:20:23 +0000 Subject: [PATCH] Not used for now --- mod/scorm/coefficientconfirm.php | 107 ----------------------------- mod/scorm/coefficientsetting.php | 114 ------------------------------- 2 files changed, 221 deletions(-) delete mode 100755 mod/scorm/coefficientconfirm.php delete mode 100755 mod/scorm/coefficientsetting.php diff --git a/mod/scorm/coefficientconfirm.php b/mod/scorm/coefficientconfirm.php deleted file mode 100755 index 464bc2c27a..0000000000 --- a/mod/scorm/coefficientconfirm.php +++ /dev/null @@ -1,107 +0,0 @@ -course)) { - error("Course is misconfigured"); - } - if (! $scorm = get_record("scorm", "id", $cm->instance)) { - error("Course module is incorrect"); - } - } else { - if (!empty($b)) { - if (! $sco = get_record("scorm_scoes", "id", $b)) { - error("Scorm activity is incorrect"); - } - $a = $sco->scorm; - } - if (!empty($a)) { - if (! $scorm = get_record("scorm", "id", $a)) { - error("Course module is incorrect"); - } - if (! $course = get_record("course", "id", $scorm->course)) { - error("Course is misconfigured"); - } - if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $course->id)) { - error("Course Module ID was incorrect"); - } - } - } - - require_login($course->id, false, $cm); - require_capability('mod/scorm:viewgrades', get_context_instance(COTNEXT_MODULE, $cm->id)); - - add_to_log($course->id, "scorm", "report", "cofficientsetting.php?id=$cm->id", "$scorm->id"); - -/// Print the page header - if (empty($noheader)) { - if ($course->category) { - $navigation = "id\">$course->shortname ->"; - } else { - $navigation = ''; - } - - $strscorms = get_string("modulenameplural", "scorm"); - $strscorm = get_string("modulename", "scorm"); - $strreport = get_string("report", "scorm"); - $strname = get_string('name'); - $strcoefficient = get_string('coefficient',"scorm"); - $strcoefficient = "Thiet lap he so"; - if (empty($b)) { - print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname", - "$navigation id\">$strscorms - -> id\">".format_string($scorm->name,true)." -> $strcoefficient", - "", "", true); - } else { - print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname", - "$navigation id\">$strscorms - -> id\">".format_string($scorm->name,true)." - -> id\">$strreport -> $sco->title", - "", "", true); - } - print_heading(format_string($scorm->name)); - } - - $scormpixdir = $CFG->modpixpath.'/scorm/pix'; - - //Phan trinh bay chinh -?> - - 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."
"; - } - - if ($ketqua) - { - echo "".get_string('updatesuccess','scorm'); - } - else - { - echo "".get_string('updatefail','scorm'); - } - - echo "

".get_string('back','scorm')."" -?> - diff --git a/mod/scorm/coefficientsetting.php b/mod/scorm/coefficientsetting.php deleted file mode 100755 index deecb00eae..0000000000 --- a/mod/scorm/coefficientsetting.php +++ /dev/null @@ -1,114 +0,0 @@ -course)) { - error("Course is misconfigured"); - } - if (! $scorm = get_record("scorm", "id", $cm->instance)) { - error("Course module is incorrect"); - } - } else { - if (!empty($b)) { - if (! $sco = get_record("scorm_scoes", "id", $b)) { - error("Scorm activity is incorrect"); - } - $a = $sco->scorm; - } - if (!empty($a)) { - if (! $scorm = get_record("scorm", "id", $a)) { - error("Course module is incorrect"); - } - if (! $course = get_record("course", "id", $scorm->course)) { - error("Course is misconfigured"); - } - if (! $cm = get_coursemodule_from_instance("scorm", $scorm->id, $course->id)) { - error("Course Module ID was incorrect"); - } - } - } - - require_login($course->id, false, $cm); - require_capability('mod/scorm:viewgrades', get_context_instance(COTNEXT_MODULE, $cm->id)); - - add_to_log($course->id, "scorm", "report", "cofficientsetting.php?id=$cm->id", "$scorm->id"); - -/// Print the page header - if (empty($noheader)) { - if ($course->category) { - $navigation = "id\">$course->shortname ->"; - } else { - $navigation = ''; - } - - $strscorms = get_string("modulenameplural", "scorm"); - $strscorm = get_string("modulename", "scorm"); - $strreport = get_string("report", "scorm"); - $strname = get_string('name'); - $strcoefficient = get_string('coefficient','scorm'); - if (empty($b)) { - print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname", - "$navigation id\">$strscorms - -> id\">".format_string($scorm->name,true)." -> $strcoefficient", - "", "", true); - } else { - print_header("$course->shortname: ".format_string($scorm->name), "$course->fullname", - "$navigation id\">$strscorms - -> id\">".format_string($scorm->name,true)." - -> id\">$strreport -> $sco->title", - "", "", true); - } - print_heading(format_string($scorm->name)); - } - - $scormpixdir = $CFG->modpixpath.'/scorm/pix'; - - //Phan trinh bay chinh -?> - -
- - - - - - - id).' and minnormalizedmeasure > -1'); - if(!empty($examScoes)) - { - - foreach ($examScoes as $examSco){ - echo "
"; - } - } - -?> -
"; - echo "$examSco->identifier.score_coefficient />
-
- - -
- -- 2.39.5