version 1.79, 2009/05/07 16:20:37
|
version 1.80, 2009/05/11 13:34:10
|
Line 255 sub handler {
|
Line 255 sub handler {
|
|
|
#---Print help Text |
#---Print help Text |
if($target ne 'tex'){ |
if($target ne 'tex'){ |
if($allowed){ |
if ($allowed) { |
$r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); |
$r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); |
} |
} |
} |
} |
#---Print Function |
#---Print Function |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if($allowed || $privileged){ |
if ($allowed || $privileged) { |
$r->print(&Apache::lontemplate::start_functionslist()); |
$r->print(&Apache::lontemplate::start_functionslist()); |
if($allowed){ |
if ($allowed) { |
$r->print(&Apache::lontemplate::item_functionslist( |
$r->print(&Apache::lontemplate::item_functionslist( |
'<a href="'.$r->uri.'?forcestudent=1">'.&mt('Show Student View').'</a>' |
'<a href="'.$r->uri.'?forcestudent=1">'.&mt('Show Student View').'</a>' |
.&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView'))); |
.&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView'))); |
}elsif($privileged){ |
} elsif ($privileged) { |
my $edittext = &mt('Edit'); |
my $edittext = &mt('Edit'); |
if ($group ne '') { |
if ($group ne '') { |
$edittext = &mt('Edit Group Homepage'); |
$edittext = &mt('Edit Group Homepage'); |
Line 312 if($target ne 'tex'){
|
Line 312 if($target ne 'tex'){
|
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'. |
'</form><form method="post">'. |
'</form><form method="post">'. |
'<input type="hidden" name="forceedit" value="edit" />'); |
'<input type="hidden" name="forceedit" value="edit" />'); |
if($syllabus{'uploaded.photourl'}) { |
if ($syllabus{'uploaded.photourl'}) { |
$r->print('<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />' ); |
$r->print('<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />' ); |
} |
} |
} |
} |
if($allowed){ |
if ($allowed) { |
$r->print($image.'<div class="clear"> </div>'); |
$r->print($image.'<div class="clear"> </div>'); |
} |
} |
|
|
Line 341 if($target ne 'tex'){
|
Line 341 if($target ne 'tex'){
|
$r->print('<br />'); |
$r->print('<br />'); |
} elsif ($field eq 'aaa_title') { |
} elsif ($field eq 'aaa_title') { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if($allowed){ |
if ($allowed) { |
$r->print('<p>'); |
$r->print('<p>'); |
} |
} |
$r->print('<h2>'.$message.'</h2>'); |
$r->print('<h2>'.$message.'</h2>'); |
Line 362 if($target ne 'tex'){
|
Line 362 if($target ne 'tex'){
|
if(!$allowed) {$r->print($image); } |
if(!$allowed) {$r->print($image); } |
} else { |
} else { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if($allowed){ |
if ($allowed) { |
$r->print('<p>'); |
$r->print('<p>'); |
} |
} |
&Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial'); |
&Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial'); |