$form_start
-
+
$form_end
$form_start
-
+
$form_end
|
$form_start $rand_order_text $form_end |
@@ -2124,7 +2099,7 @@ sub checkonthis {
if (($errorcount) ||
($warningcount)) {
if ($errorcount) {
- $r->print('
'.
+ $r->print('
'.
&mt('[quant,_1,error]',$errorcount).'');
}
if ($warningcount) {
@@ -2514,17 +2489,13 @@ sub changewarning {
$message='Changes will become active for your current session after [_1], or the next time you log in.';
}
$r->print("\n\n".
-''."\n".
+''."\n".
''."\n\n");
}
@@ -2553,6 +2524,15 @@ sub handler {
return OK if $r->header_only;
my $type = &Apache::loncommon::course_type();
+ my $coursedom=$env{'course.'.$env{'request.course.id'}.'.domain'};
+ if ($coursedom eq 'gcitest') {
+ my $allowed=&Apache::lonnet::allowed('mdc',$env{'request.course.id'});
+ if ($allowed) {
+ &concept_test_builder($r);
+ return OK;
+ }
+ }
+
# --------------------------------------------- Initialize help topics for this
foreach my $topic ('Adding_Course_Doc','Main_Course_Documents',
'Adding_External_Resource','Navigate_Content',
@@ -2678,11 +2658,7 @@ sub handler {
$script .= &editing_js($udom,$uname);
}
# -------------------------------------------------------------------- Body tag
- $script = '';
+ $script = '';
my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}];
$r->print(&Apache::loncommon::start_page("$type Documents", $script,
{'force_register' => $showdoc,
@@ -2890,12 +2866,7 @@ ENDCOURSEVERIFY
}
my $postexec='';
if ($folder eq 'default') {
- $r->print(''
- );
+ $r->print('');
} else {
#$postexec='self.close();';
}
@@ -2953,27 +2924,27 @@ $uploadtag
ENDFORM
unless ($env{'form.pagepath'}) {
@@ -2983,13 +2954,13 @@ ENDFORM
$uploadtag
- $help{'Adding_External_Resource'}
ENDFORM
}
@@ -3002,7 +2973,7 @@ ENDFORM
$help{'Adding_Folders'}
@@ -3011,7 +2982,7 @@ value="$lt{'newf'}" />$help{'Adding_Fold
$help{'Adding_Pages'}
@@ -3038,7 +3009,7 @@ $uploadtag
$help{'Simple Page'}
+onClick="javascript:makesmppage();" /> $help{'Simple Page'}
@@ -3071,7 +3042,7 @@ $uploadtag
+onClick="javascript:makebulboard();" />
$help{'Bulletin Board'}
@@ -3089,7 +3060,7 @@ $uploadtag
+onClick="javascript:makeabout();" />
@@ -3195,7 +3166,7 @@ $lt{'comment'}:
$help{'Adding_Folders'}
@@ -3204,7 +3175,7 @@ value="$lt{'newf'}" /> $help{'Adding_Fol
$help{'Adding_External_Resource'}
@@ -3253,8 +3224,21 @@ ENDSUPFORM
}
$r->print(&Apache::loncommon::end_page());
return OK;
-}
+}
+sub concept_test_builder {
+ my ($r) = @_;
+ $r->print(&Apache::loncommon::start_page('Assemble Test'));
+ &Apache::londocsgci::setdefaults();
+ if ($env{'form.phase'} eq 'storemap') {
+ &Apache::londocsgci::evaluate();
+ &Apache::londocsgci::store($r);
+ }
+ &Apache::londocsgci::load();
+ &Apache::londocsgci::listresources($r);
+ $r->print(&Apache::loncommon::end_page());
+ return;
+}
sub editing_js {
my ($udom,$uname) = @_;