version 1.205, 2010/03/29 23:25:16
|
version 1.208, 2010/08/13 13:32:36
|
Line 321 function select_group() {
|
Line 321 function select_group() {
|
|
|
function changeURL(val) { |
function changeURL(val) { |
if (window.opener.document) { |
if (window.opener.document) { |
var elementname = "$element"+"_value"; |
var elementname = "$element"; |
var checkboxname = "$element"+"_setparmval"; |
|
window.opener.document.forms["$form"].elements[elementname].value=val; |
window.opener.document.forms["$form"].elements[elementname].value=val; |
window.opener.document.forms["$form"].elements[checkboxname].checked=true; |
|
} else { |
} else { |
alert("The file you selected is: "+val); |
alert("The file you selected is: "+val); |
} |
} |
Line 462 ENDHEADER
|
Line 460 ENDHEADER
|
push(@select_form_order,$types); |
push(@select_form_order,$types); |
} |
} |
$select_file_categories{'select_form_order'} = \@select_form_order; |
$select_file_categories{'select_form_order'} = \@select_form_order; |
|
my $onchange = 'this.form.submit();'; |
my $type_element= |
my $type_element= |
&Apache::loncommon::select_form( |
&Apache::loncommon::select_form( |
$typeselect, |
$typeselect, |
'only', |
'only', |
%select_file_categories); |
\%select_file_categories,$onchange); |
my $type_selector = '<label>'.&mt('File Type Displayed: [_1]', |
my $type_selector = '<label>'.&mt('File Type Displayed: [_1]', |
$type_element).'</label>'; |
$type_element).'</label>'; |
|
|
Line 589 END
|
Line 588 END
|
$r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes") |
$r->print(&Apache::loncommon::start_data_table("LC_tableBrowseRes") |
.&Apache::loncommon::start_data_table_header_row()); |
.&Apache::loncommon::start_data_table_header_row()); |
$r->print("<th $colspan>".&mt('Name')."</th>\n"); |
$r->print("<th $colspan>".&mt('Name')."</th>\n"); |
|
$r->print("<th></th>\n"); |
$r->print("<th>".&mt('Title')."</th>\n") |
$r->print("<th>".&mt('Title')."</th>\n") |
if ($hash{'display_attrs_0'} == 1); |
if ($hash{'display_attrs_0'} == 1); |
$r->print('<th class="LC_right">'.&mt("Size")." (".&mt("bytes").") ". |
$r->print('<th class="LC_right">'.&mt("Size")." (".&mt("bytes").") ". |
Line 923 sub display_line {
|
Line 923 sub display_line {
|
$r->print ('<a href="#" onclick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"'); |
$r->print ('<a href="#" onclick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"'); |
$r->print (' alt="'.$msg.'" class="LC_fileicon" />'. |
$r->print (' alt="'.$msg.'" class="LC_fileicon" />'. |
"\n"); |
"\n"); |
$r->print(&mt("Up")."</a></form>$tabtag"); |
$r->print(&mt("Up")."</a></form></td><td>$tabtag"); |
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
return OK; |
return OK; |
} |
} |
Line 958 $r->print ('<input type="hidden" name="a
|
Line 958 $r->print ('<input type="hidden" name="a
|
$r->print("<br />(".&Apache::lonnet::domain($listname,'description'). |
$r->print("<br />(".&Apache::lonnet::domain($listname,'description'). |
")"); |
")"); |
} |
} |
$r->print("</form>$tabtag"); |
$r->print("</form></td><td>$tabtag"); |
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
return OK; |
return OK; |
|
|
Line 990 $r->print ('<input type="hidden" name="a
|
Line 990 $r->print ('<input type="hidden" name="a
|
$r->print ($listname.'</a>'); |
$r->print ($listname.'</a>'); |
|
|
if (defined($plainname) && $plainname) { $r->print(" ($plainname) "); } |
if (defined($plainname) && $plainname) { $r->print(" ($plainname) "); } |
$r->print('</form>'.$tabtag); |
# Wishlistlink |
|
$r->print('</form></td><td><a href="javascript:;" '. |
|
'title="'.&mt('Set a link for this folder to wishlist').'" '. |
|
'onclick="set_wishlistlink('."'$plainname','$startdir$listname'".')">'. |
|
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
|
'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a>'.$tabtag); |
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print(&Apache::loncommon::end_data_table_row()); |
return OK; |
return OK; |
} |
} |
Line 1085 $r->print ('<input type="hidden" name="a
|
Line 1090 $r->print ('<input type="hidden" name="a
|
$r->print('</form>'); |
$r->print('</form>'); |
} |
} |
$r->print("</td>\n"); |
$r->print("</td>\n"); |
|
# Wishlistlink |
|
$r->print('<td><a href="javascript:;" title="'.&mt('Set a link for this resource to wishlist').'" '. |
|
'onclick="set_wishlistlink('."'".&Apache::lonnet::gettitle($filelink). |
|
"','$startdir$listname'".')">'. |
|
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
|
'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a></td>'); |
if ($hash{'display_attrs_0'} == 1) { |
if ($hash{'display_attrs_0'} == 1) { |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
$r->print('<td> '.($title eq '' ? ' ' : $title). |
' </td>'."\n"); |
' </td>'."\n"); |
Line 1232 $r->print ('<input type="hidden" name="a
|
Line 1243 $r->print ('<input type="hidden" name="a
|
.'<img class="LC_fileicon" alt="'.&mt('Open Folder').'" src="' |
.'<img class="LC_fileicon" alt="'.&mt('Open Folder').'" src="' |
.$location.'/'.$icon.'" />' |
.$location.'/'.$icon.'" />' |
."\n"); |
."\n"); |
$r->print ("$listname</a></form></td>\n"); |
$r->print ("$listname</a></form>"); |
|
# Wishlistlink |
|
$r->print('</td><td><a href="javascript:;" '. |
|
'title="'.&mt('Set a link for this folder to wishlist').'" '. |
|
'onclick="set_wishlistlink('."'$listname','$startdir$listname'".')">'. |
|
'<img class="LC_icon" src="/res/adm/pages/wishlist.png" '. |
|
'alt="'.&mt('set wishlistlink').'" style="width:22px;"/></a></td>'); |
# Attributes |
# Attributes |
my $filelink = $startdir.$filecom[0].'/default'; |
my $filelink = $startdir.$filecom[0].'/default'; |
|
|