version 1.87, 2007/01/16 21:10:55
|
version 1.90, 2008/10/13 11:54:54
|
Line 274 function idxopen(mode) {
|
Line 274 function idxopen(mode) {
|
var options="scrollbars=1,resizable=1,menubar=0,location=1,toolbar=1"; |
var options="scrollbars=1,resizable=1,menubar=0,location=1,toolbar=1"; |
idxmode=mode; |
idxmode=mode; |
idxflag=1; |
idxflag=1; |
idx=open('$resurl/?launch=1&mode=$mode&catalogmode='+mode,'idxout',options); |
idx=open('$resurl/?inhibitmenu=yes&launch=1&mode=$mode&catalogmode='+mode,'idxout',options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 282 function idxopen(mode) {
|
Line 282 function idxopen(mode) {
|
function groupopen(url,recover,bookmarks) { |
function groupopen(url,recover,bookmarks) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
idxflag=1; |
idxflag=1; |
idx=open("/adm/groupsort?mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 291 function srchopen(mode) {
|
Line 291 function srchopen(mode) {
|
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
srchmode=mode; |
srchmode=mode; |
srchflag=1; |
srchflag=1; |
srch=open("/adm/searchcat?launch=1&mode=$mode&catalogmode="+mode,"srchout",options); |
srch=open("/adm/searchcat?inhibitmenu=yes&launch=1&mode=$mode&catalogmode="+mode,"srchout",options); |
srch.focus(); |
srch.focus(); |
} |
} |
// ----------------------------------------------------- launch indexer browser |
// ----------------------------------------------------- launch indexer browser |
Line 326 function idxcheck(mode) {
|
Line 326 function idxcheck(mode) {
|
if (editbrowser == null) { |
if (editbrowser == null) { |
url += 'launch=1&'; |
url += 'launch=1&'; |
} |
} |
|
url += 'inhibitmenu=yes&'; |
url += 'catalogmode=interactive&'; |
url += 'catalogmode=interactive&'; |
url += 'mode=edit&'; |
url += 'mode=edit&'; |
url += 'form=' + formname + '&'; |
url += 'form=' + formname + '&'; |
Line 359 sub smpedt {
|
Line 360 sub smpedt {
|
unless ($fatal) { |
unless ($fatal) { |
$targetmsg='<b>'.&mt('Saved.').'</b><br />'; |
$targetmsg='<b>'.&mt('Saved.').'</b><br />'; |
} else { |
} else { |
$targetmsg='<b>'.&mt('An error occured while saving.').'</b><br />'; |
$targetmsg='<b>'.&mt('An error occurred while saving.').'</b><br />'; |
} |
} |
} |
} |
if ($env{'form.revert'}) { |
if ($env{'form.revert'}) { |
Line 774 sub viewmap {
|
Line 775 sub viewmap {
|
&Apache::loncommon::help_open_menu('','',6,'RAT'). |
&Apache::loncommon::help_open_menu('','',6,'RAT'). |
&buttons($adv)); |
&buttons($adv)); |
if ($errtext) { |
if ($errtext) { |
$r->print($errtext.'<hr />'); |
$r->print('<div class="LC_error">' |
|
.$errtext |
|
.'</div>' |
|
.'<hr />' |
|
); |
} |
} |
my $idx=0; |
my $idx=0; |
$r->print('<h1>'.$url.'</h1>'); |
$r->print('<h1>'.$url.'</h1>'); |
if ($adv) { |
if ($adv) { |
$r->print('<p><b><font color="red">'.&mt('Map contents are not shown in order.').'</font></b></p><br />'); |
$r->print('<p class="LC_warning">' |
|
.&mt('Map contents are not shown in order.') |
|
.'</p><br />' |
|
); |
} |
} |
$r->print( '<table border="0" cellspacing="2" cellpadding="4">'. |
$r->print(&Apache::loncommon::start_data_table() |
'<tr bgcolor="#DDDDDD"><th>'.&mt('Type').'</th>'. |
.&Apache::loncommon::start_data_table_header_row() |
'<th>'.&mt('Title in map').'</th>'. |
.'<th>'.&mt('Type').'</th>' |
'<th>'.&mt('Filename of resource').'</th>'. |
.'<th>'.&mt('Title in map').'</th>' |
'<th>'.&mt('Link to published resource').'</th>'. |
.'<th>'.&mt('Filename of resource').'</th>' |
'<th>'.&mt('Link to resource in Construction Space').'</th>'. |
.'<th>'.&mt('Link to published resource').'</th>' |
'</tr>'); |
.'<th>'.&mt('Link to resource in Construction Space').'</th>' |
my @backgroundColors = ("#FFFFFF", "#F6F6F6"); |
.&Apache::loncommon::end_data_table_header_row() |
|
); |
foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) { |
foreach (&LONCAPA::map::attemptread(&Apache::lonnet::filelocation('',$url))) { |
if (defined($_)) { |
if (defined($_)) { |
$idx++; |
$idx++; |
Line 806 sub viewmap {
|
Line 815 sub viewmap {
|
} |
} |
my $cstrurl = $resurl; |
my $cstrurl = $resurl; |
$cstrurl =~ s#^/res/[^/]+/([^/]+)/#/priv/$1/#; |
$cstrurl =~ s#^/res/[^/]+/([^/]+)/#/priv/$1/#; |
my $bgcol = $idx%2; |
$r->print(&Apache::loncommon::start_data_table_row() |
$r->print('<tr bgcolor='.$backgroundColors[$bgcol].'><td>'. |
.'<td>' |
'<img src="'.&Apache::loncommon::icon($resfilepath). |
.'<img src="'.&Apache::loncommon::icon($resfilepath).'" />' |
'" /></td><td>'.&HTML::Entities::encode(&LONCAPA::map::qtescape($title)). |
.'</td>' |
'</td><td>'.$filename.'</td><td>'); |
.'<td>' |
|
.&HTML::Entities::encode(&LONCAPA::map::qtescape($title)) |
|
.'</td>' |
|
.'<td>'.$filename.'</td>' |
|
.'<td>' |
|
); |
if ($url) { |
if ($url) { |
$r->print('<a href="'.$resurl.'">'.&mt('Resource space').'</a>'); |
$r->print('<a href="'.$resurl.'">'.&mt('Resource space').'</a>'); |
|
} else { |
|
$r->print(' '); |
} |
} |
$r->print('</td><td>'); |
$r->print('</td><td>'); |
if ($url) { |
if ($url) { |
$r->print('<a href="'.$cstrurl.'">'. |
$r->print('<a href="'.$cstrurl.'">'. |
&mt('Construction space').'</a>'); |
&mt('Construction space').'</a>'); |
|
} else { |
|
$r->print(' '); |
} |
} |
$r->print('</td></tr>'."\n"); |
$r->print('</td>' |
|
.&Apache::loncommon::end_data_table_row() |
|
); |
} |
} |
} |
} |
$r->print('</table>'); |
$r->print(&Apache::loncommon::end_data_table()); |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} |
} |
|
|