version 1.83, 2003/08/07 17:26:44
|
version 1.86, 2003/09/09 18:46:28
|
Line 158 sub get_sequence_assessment_data {
|
Line 158 sub get_sequence_assessment_data {
|
} |
} |
# get the map itself, instead of BEGIN_MAP |
# get the map itself, instead of BEGIN_MAP |
$title = $previous->title(); |
$title = $previous->title(); |
|
$title =~ s/\:/\&\#058;/g; |
$symb = $previous->symb(); |
$symb = $previous->symb(); |
$src = $previous->src(); |
$src = $previous->src(); |
# pick up the filename if there is no title available |
# pick up the filename if there is no title available |
Line 186 sub get_sequence_assessment_data {
|
Line 187 sub get_sequence_assessment_data {
|
next if (! $curRes->is_problem());# && !$curRes->randomout); |
next if (! $curRes->is_problem());# && !$curRes->randomout); |
# Okay, from here on out we only deal with assessments |
# Okay, from here on out we only deal with assessments |
$title = $curRes->title(); |
$title = $curRes->title(); |
|
$title =~ s/\:/\&\#058;/g; |
$symb = $curRes->symb(); |
$symb = $curRes->symb(); |
$src = $curRes->src(); |
$src = $curRes->src(); |
my $parts = $curRes->parts(); |
my $parts = $curRes->parts(); |
Line 524 sub init_dbs {
|
Line 526 sub init_dbs {
|
{ name => 'student', |
{ name => 'student', |
type => 'VARCHAR(100)', |
type => 'VARCHAR(100)', |
restrictions => 'NOT NULL'}, |
restrictions => 'NOT NULL'}, |
|
{ name => 'classification', |
|
type => 'varchar(100)', }, |
], |
], |
'PRIMARY KEY' => ['student (100)'], |
'PRIMARY KEY' => ['student (100)'], |
'KEY' => [{ columns => ['student_id']},], |
'KEY' => [{ columns => ['student_id']},], |
Line 841 sub get_student_id {
|
Line 845 sub get_student_id {
|
$have_read_student_table = 1; |
$have_read_student_table = 1; |
} |
} |
if (! exists($ids_by_student{$student})) { |
if (! exists($ids_by_student{$student})) { |
&Apache::lonmysql::store_row($student_table,[undef,$student]); |
&Apache::lonmysql::store_row($student_table,[undef,$student,undef]); |
undef(%ids_by_student); |
undef(%ids_by_student); |
my @Result = &Apache::lonmysql::get_rows($student_table); |
my @Result = &Apache::lonmysql::get_rows($student_table); |
foreach (@Result) { |
foreach (@Result) { |
Line 1380 sub get_problem_statistics {
|
Line 1384 sub get_problem_statistics {
|
if ($num) { |
if ($num) { |
my %storestats=(); |
my %storestats=(); |
|
|
my $urlres=(split(/\_\_\_/,$symb))[2]; |
my $urlres=(&Apache::lonnet::decode_symb($symb))[2]; |
|
|
$storestats{$courseid.'___'.$urlres.'___timestamp'}=time; |
$storestats{$courseid.'___'.$urlres.'___timestamp'}=time; |
$storestats{$courseid.'___'.$urlres.'___stdno'}=$num; |
$storestats{$courseid.'___'.$urlres.'___stdno'}=$num; |