version 1.64, 2009/03/13 11:45:27
|
version 1.65, 2009/03/13 15:39:43
|
Line 347 END
|
Line 347 END
|
|
|
$r->print(&Apache::loncommon::inhibit_menu_check('input')); |
$r->print(&Apache::loncommon::inhibit_menu_check('input')); |
# --- |
# --- |
|
|
if ($env{'form.recover'}) { |
my $buttontext = $lt{'re'}; |
|
if ($env{'form.bookmarks'}) { |
|
$buttontext = $lt{'ip'} |
|
} |
|
if ($env{'form.recover'} || $env{'form.bookmarks'}) { |
$r->print(<<END); |
$r->print(<<END); |
<input type="button" name="alter" value="$lt{'re'}" |
<input type="button" name="alter" value="$buttontext" |
onClick="finish_import()" /> |
onClick="finish_import()" /> |
<input type="button" name="alter" value="$lt{'ca'}" onClick="self.close()" /> |
<input type="button" name="alter" value="$lt{'ca'}" onClick="self.close()" /> |
END |
END |
Line 372 END
|
Line 376 END
|
<br /> |
<br /> |
END |
END |
} |
} |
$r->print(&Apache::loncommon::start_data_table() |
|
.&Apache::loncommon::start_data_table_header_row()); |
# Only display header if content exists |
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) { |
if ($clen > 0) { |
$r->print("<th>$lt{'in'}</th>\n"); |
$r->print(&Apache::loncommon::start_data_table() |
} else { |
.&Apache::loncommon::start_data_table_header_row()); |
$r->print('<th colspan="2">'.$lt{'co'}.'</th>'."\n"); |
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) { |
} |
$r->print("<th>$lt{'in'}</th>\n"); |
$r->print('<th colspan="2">'.$lt{'ti'}.'</th>'."\n"); |
} else { |
$r->print("<th>$lt{'pa'}</th>"); |
$r->print('<th colspan="2">'.$lt{'co'}.'</th>'."\n"); |
$r->print(&Apache::loncommon::end_data_table_header_row() |
} |
."\n"); |
$r->print('<th colspan="2">'.$lt{'ti'}.'</th>'."\n"); |
|
$r->print("<th>$lt{'pa'}</th>"); |
|
$r->print(&Apache::loncommon::end_data_table_header_row()."\n"); |
|
} else { |
|
$r->print('<p class="LC_info">'); |
|
if ($env{'form.bookmarks'}) { |
|
$r->print(&mt('There are no resources in your bookmarks to import.')); |
|
} |
|
$r->print('</p>'); |
|
} |
} else { |
} else { |
$r->print(&Apache::loncommon::start_page(undef,$js, |
$r->print(&Apache::loncommon::start_page(undef,$js, |
{'only_body' => 1})); |
{'only_body' => 1})); |
Line 428 END
|
Line 441 END
|
} |
} |
} |
} |
if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { |
if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { |
$r->print(&Apache::loncommon::end_data_table() |
if ($clen > 0) { |
."</form>"); |
$r->print(&Apache::loncommon::end_data_table()); |
|
} |
|
$r->print('</form>'); |
} else { |
} else { |
$r->print(<<END); |
$r->print(<<END); |
<script type="text/javascript"> |
<script type="text/javascript"> |