version 1.213.4.4, 2013/06/05 17:02:23
|
version 1.221, 2014/05/31 16:01:33
|
Line 92 sub handler {
|
Line 92 sub handler {
|
undef (@Omit); |
undef (@Omit); |
%fieldnames=&Apache::lonmeta::fieldnames(); |
%fieldnames=&Apache::lonmeta::fieldnames(); |
|
|
# ------------------------------------- read in machine configuration variables |
# --------------------------------------------------------------- get icon path |
my $iconpath= $r->dir_config('lonIconsURL') . "/"; |
my $iconpath= $r->dir_config('lonIconsURL') . "/"; |
my $domain = $r->dir_config('lonDefDomain'); |
|
my $role = $r->dir_config('lonRole'); |
|
my $loadlim = $r->dir_config('lonLoadLim'); |
|
my $servadm = $r->dir_config('lonAdmEMail'); |
|
my $sysadm = $r->dir_config('lonSysEMail'); |
|
my $lonhost = $r->dir_config('lonHostID'); |
|
my $tabdir = $r->dir_config('lonTabDir'); |
|
|
|
#SB my $fileclr='#ffffe6'; |
#SB my $fileclr='#ffffe6'; |
my $line; |
my $line; |
Line 1007 $r->print ('<input type="hidden" name="a
|
Line 1000 $r->print ('<input type="hidden" name="a
|
# Wishlistlink |
# Wishlistlink |
$r->print('</form></td><td><a href="javascript:;" '. |
$r->print('</form></td><td><a href="javascript:;" '. |
'title="'.&mt('Save a link for this folder in your personal Stored Links repository').'" '. |
'title="'.&mt('Save a link for this folder in your personal Stored Links repository').'" '. |
'onclick="set_wishlistlink('."'$plainname','$startdir$listname'".')">'. |
'onclick="set_wishlistlink('."'$plainname','$startdir$listname"."/'".')">'. |
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
'alt="'.&mt('save in Stored Links').'" style="width:22px;"/></a>'.$tabtag); |
'alt="'.&mt('save in Stored Links').'" style="width:22px;"/></a>'.$tabtag); |
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
Line 1257 $r->print ('<input type="hidden" name="a
|
Line 1250 $r->print ('<input type="hidden" name="a
|
# Wishlistlink |
# Wishlistlink |
$r->print('</td><td><a href="javascript:;" '. |
$r->print('</td><td><a href="javascript:;" '. |
'title="'.&mt('Save a link for this folder in Stored Links').'" '. |
'title="'.&mt('Save a link for this folder in Stored Links').'" '. |
'onclick="set_wishlistlink('."'$listname','$startdir$listname'".')">'. |
'onclick="set_wishlistlink('."'$listname','$startdir$listname"."/'".')">'. |
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
'alt="'.&mt('save in Stored Links').'" style="width:22px;"/></a></td>'); |
'alt="'.&mt('save in Stored Links').'" style="width:22px;"/></a></td>'); |
# Attributes |
# Attributes |
Line 1304 $r->print ('<input type="hidden" name="a
|
Line 1297 $r->print ('<input type="hidden" name="a
|
} |
} |
if ($hash{'display_attrs_7'} == 1) { |
if ($hash{'display_attrs_7'} == 1) { |
$r->print('<td> </td>'); |
$r->print('<td> </td>'); |
} |
} |
if ($hash{'display_attrs_11'} == 1) { |
if ($hash{'display_attrs_11'} == 1) { |
$r->print('<td> </td>'); |
$r->print('<td> </td>'); |
} |
} |
if ($hash{'display_attrs_12'} == 1) { |
if ($hash{'display_attrs_12'} == 1) { |
Line 1348 sub coursecontext {
|
Line 1341 sub coursecontext {
|
my $filesymb=&Apache::lonnet::symbread($filelink); |
my $filesymb=&Apache::lonnet::symbread($filelink); |
if ($filesymb) { |
if ($filesymb) { |
my ($map,$index,$resource)=&Apache::lonnet::decode_symb($filesymb); |
my ($map,$index,$resource)=&Apache::lonnet::decode_symb($filesymb); |
$r->print(&mt('Already in this course:<br />[_1] in folder/map [_2].<br />', |
$r->print( |
&Apache::lonnet::gettitle($resource), |
&mt('Already in this course:').'<br />' |
&Apache::lonnet::gettitle($map))); |
.&mt('[_1] in folder/map [_2]', |
|
&Apache::lonnet::gettitle($resource), |
|
&Apache::lonnet::gettitle($map)) |
|
.'<br />'); |
} |
} |
} |
} |
|
|