version 1.238, 2003/09/25 18:16:04
|
version 1.239, 2003/09/25 18:19:34
|
Line 1148 sub printHelper {
|
Line 1148 sub printHelper {
|
# "Remove all duplicate slashes." |
# "Remove all duplicate slashes." |
$subdir =~ s|/+|/|g; |
$subdir =~ s|/+|/|g; |
|
|
# If it's a ~ directory, convert back to /home/user/public_html |
|
$subdir =~ s/^~(\w+)\//\/home\/$1\/public_html\//; |
|
|
|
# What can be printed is a very dynamic decision based on |
# What can be printed is a very dynamic decision based on |
# lots of factors. So we need to dynamically build this list. |
# lots of factors. So we need to dynamically build this list. |
# To prevent security leaks, states are only added to the wizard |
# To prevent security leaks, states are only added to the wizard |
Line 1286 CHOOSE_FROM_SUBDIR
|
Line 1283 CHOOSE_FROM_SUBDIR
|
|
|
# Allow the user to select any sequence in the course, feed it to |
# Allow the user to select any sequence in the course, feed it to |
# another resource selector for that sequence |
# another resource selector for that sequence |
push @$printChoices, ["Resources from <b>selected sequence</b> in course", |
if (!$helper->{VARS}->{'construction'}) { |
'map_problems_pages', 'CHOOSE_SEQUENCE']; |
push @$printChoices, ["Resources from <b>selected sequence</b> in course", |
&Apache::lonxml::xmlparse($r, 'helper', <<CHOOSE_FROM_ANY_SEQUENCE); |
'map_problems_pages', 'CHOOSE_SEQUENCE']; |
|
&Apache::lonxml::xmlparse($r, 'helper', <<CHOOSE_FROM_ANY_SEQUENCE); |
<state name="CHOOSE_SEQUENCE" title="Select Sequence To Print From"> |
<state name="CHOOSE_SEQUENCE" title="Select Sequence To Print From"> |
<message>Select the sequence to print resources from:</message> |
<message>Select the sequence to print resources from:</message> |
<resource variable="SEQUENCE"> |
<resource variable="SEQUENCE"> |
Line 1307 CHOOSE_FROM_SUBDIR
|
Line 1305 CHOOSE_FROM_SUBDIR
|
</resource> |
</resource> |
</state> |
</state> |
CHOOSE_FROM_ANY_SEQUENCE |
CHOOSE_FROM_ANY_SEQUENCE |
|
} |
|
|
# Generate the first state, to select which resources get printed. |
# Generate the first state, to select which resources get printed. |
Apache::lonhelper::state->new("START", "Select Printing Options:"); |
Apache::lonhelper::state->new("START", "Select Printing Options:"); |