version 1.12, 2009/05/25 12:54:18
|
version 1.14, 2009/10/17 03:13:35
|
Line 65 sub handler() {
|
Line 65 sub handler() {
|
$env{'request.uri'}=$r->uri; |
$env{'request.uri'}=$r->uri; |
$r->content_type('text/html'); |
$r->content_type('text/html'); |
$r->send_http_header(); |
$r->send_http_header(); |
$r->print(&Apache::loncommon::start_page('Upload PDF Form')); |
|
|
# Breadcrumbs |
|
my $brcrum = [{'href' => '/pdfupload', |
|
'text' => 'Upload PDF Form'}]; |
|
|
|
$r->print(&Apache::loncommon::start_page('Upload PDF Form', |
|
undef, |
|
{'bread_crumbs' => $brcrum,}) |
|
); |
|
|
#load post data into environment |
#load post data into environment |
&Apache::lonacc::get_posted_cgi($r); |
&Apache::lonacc::get_posted_cgi($r); |
Line 83 sub handler() {
|
Line 91 sub handler() {
|
$r->print('<hr />' |
$r->print('<hr />' |
.'<p>'."\n" |
.'<p>'."\n" |
.'<a href="/adm/navmaps">'."\n" |
.'<a href="/adm/navmaps">'."\n" |
.&mt("Navigate Contents")."\n" |
.&mt('Course Contents')."\n" |
.'</a>'."\n" |
.'</a>'."\n" |
.'</p>'."\n" |
.'</p>'."\n" |
); |
); |
Line 164 sub get_uploadform() {
|
Line 172 sub get_uploadform() {
|
.'<input type="file" name="file" id="filename" />' |
.'<input type="file" name="file" id="filename" />' |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::end_pick_box() |
.&Apache::lonhtmlcommon::end_pick_box() |
|
.'<p>' |
.'<input type="submit" name="Uploaded" value="'.$lt{'submit'}.'" />' |
.'<input type="submit" name="Uploaded" value="'.$lt{'submit'}.'" />' |
|
.'</p>' |
.'</form>' |
.'</form>' |
.'<br />'; |
.'<br />'; |
|
|