version 1.516, 2008/03/03 10:50:26
|
version 1.519, 2008/03/11 09:52:56
|
Line 149 sub ssi_with_retries {
|
Line 149 sub ssi_with_retries {
|
$ssi_error = 1; |
$ssi_error = 1; |
$ssi_last_error_resource = $resource; |
$ssi_last_error_resource = $resource; |
$ssi_last_error = $response->code . " " . $response->message; |
$ssi_last_error = $response->code . " " . $response->message; |
|
|
|
&Apache::lonnet::logthis("Error in SSI resource: $resource Error: $ssi_last_error"); |
} |
} |
|
|
return $content; |
return $content; |
Line 1124 sub print_latex_header {
|
Line 1126 sub print_latex_header {
|
'\usepackage[dvips]{graphicx}\usepackage{epsfig}'."\n". |
'\usepackage[dvips]{graphicx}\usepackage{epsfig}'."\n". |
'\usepackage{wrapfig}'. |
'\usepackage{wrapfig}'. |
'\usepackage{picins}\usepackage{calc}'."\n". |
'\usepackage{picins}\usepackage{calc}'."\n". |
|
'\usepackage[utf8]{inputenc}'."\n". |
'\newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}'."\n". |
'\newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}'."\n". |
'\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}'."\n". |
'\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}'."\n". |
'\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}'."\n". |
'\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}'."\n". |
Line 2483 sub printHelper {
|
Line 2486 sub printHelper {
|
$helper->declareVar("showallfoils"); |
$helper->declareVar("showallfoils"); |
$helper->declareVar("STUDENTS"); |
$helper->declareVar("STUDENTS"); |
|
|
|
|
|
|
|
|
|
|
# The page breaks can get loaded initially from the course environment: |
# The page breaks can get loaded initially from the course environment: |
# But we only do this in the initial state so that they are allowed to change. |
# But we only do this in the initial state so that they are allowed to change. |
# |
# |
Line 3205 RNDSEED
|
Line 3212 RNDSEED
|
|
|
|
|
addMessage("<tr><td>Problem Type:</td><td>"); |
addMessage("<tr><td>Problem Type:</td><td>"); |
$paramHash = &Apache::lonhelper::getParamHash(); |
|
$paramHash->{'variable'} = 'probstatus'; # Already declared: |
|
# |
# |
# Initial value from construction space: |
# Initial value from construction space: |
# |
# |
if (!$helper->{VARS}->{'probstatus'} && $env{'form.problemtype'}) { |
if (!$helper->{VARS}->{'probstatus'} && $env{'form.problemtype'}) { |
$helper->{VARS}->{'probstatus'} = $env{'form.problemtype'}; # initial value |
$helper->{VARS}->{'probstatus'} = $env{'form.problemtype'}; # initial value |
} |
} |
$paramHash->{CHOICES} = [ |
$xmlfrag = << "PROBTYPE"; |
['Homework problem', 'problem'], |
<dropdown variable="probstatus" multichoice="0" allowempty="0"> |
['Exam Problem', 'exam'], |
<defaultvalue> |
['Survey question', 'survey']]; |
return "$helper->{VARS}->{'probstatus'}"; |
Apache::lonhelper::dropdown->new(); |
</defaultvalue> |
|
<choice computer="problem">Homework Problem</choice> |
|
<choice computer="exam">Exam Problem</choice> |
|
<choice computer="survey">Survey question</choice> |
|
</dropdown> |
|
PROBTYPE |
|
&Apache::lonxml::xmlparse($r, 'helper', $xmlfrag); |
|
|
addMessage("</td></tr>"); |
addMessage("</td></tr>"); |
|
|
} |
} |