version 1.49, 2003/12/12 15:16:35
|
version 1.53, 2004/01/15 03:18:20
|
Line 414 sub buttons {
|
Line 414 sub buttons {
|
my $adv=shift; |
my $adv=shift; |
my $output='<form method=post>'; |
my $output='<form method=post>'; |
if ($adv==1) { |
if ($adv==1) { |
$output.='<input type=submit name=forceadv value="'.&mt('Edit').'">'; |
$output.='<input type=submit name=forceadv value="'.&mt('Edit').'">'. |
|
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation');; |
} else { |
} else { |
unless ($adv==2) { |
unless ($adv==2) { |
$output.='<input type=submit name=forcesmp value="'.&mt('Simple Edit').'">'; |
$output.='<input type=submit name=forcesmp value="'.&mt('Simple Edit').'">'. |
|
&Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'); |
} |
} |
$output.='<input type=submit name=forceadv value="'.&mt('Advanced Edit').'">'; |
$output.='<input type=submit name=forceadv value="'.&mt('Advanced Edit').'">'. |
|
&Apache::loncommon::help_open_topic('Sequence_Advanced_Editor_Creation'); |
} |
} |
return $output.'</form><hr>'; |
return $output.'</form><hr>'; |
} |
} |
Line 527 sub storemap {
|
Line 530 sub storemap {
|
|
|
sub editscript { |
sub editscript { |
my $mode=shift; |
my $mode=shift; |
|
my $resurl=&Apache::loncommon::lastresurl(); |
return(<<ENDSCRIPT); |
return(<<ENDSCRIPT); |
var srch; |
var srch; |
var srchflag=-1; // 1 means currently open |
var srchflag=-1; // 1 means currently open |
Line 571 function idxopen(mode) {
|
Line 575 function idxopen(mode) {
|
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
idxmode=mode; |
idxmode=mode; |
idxflag=1; |
idxflag=1; |
idx=open("/res/?launch=1&mode=$mode&catalogmode="+mode,"idxout",options); |
idx=open("$resurl/?launch=1&mode=$mode&catalogmode="+mode,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
|
Line 610 function idxcheck(mode) {
|
Line 614 function idxcheck(mode) {
|
|
|
var editbrowser; |
var editbrowser; |
function openbrowser(formname,elementname,only,omit) { |
function openbrowser(formname,elementname,only,omit) { |
var url = '/res/?'; |
var url = '$resurl/?'; |
if (editbrowser == null) { |
if (editbrowser == null) { |
url += 'launch=1&'; |
url += 'launch=1&'; |
} |
} |
Line 878 sub smpedt {
|
Line 882 sub smpedt {
|
$importdetail='&'.$importdetail; |
$importdetail='&'.$importdetail; |
$importdetail=~s/^\&+/\&/; |
$importdetail=~s/^\&+/\&/; |
my $importwindow= |
my $importwindow= |
'<option value="-1"> ---- Import and Paste Area ---- </option>'. |
'<option value="-1"> ---- '.&mt('Import and Paste Area').' ---- </option>'. |
join("\n",map { |
join("\n",map { |
$idx++; |
$idx++; |
if ($_) { |
if ($_) { |
Line 907 sub smpedt {
|
Line 911 sub smpedt {
|
|
|
# ----------------------------------------------------- Start simple RAT screen |
# ----------------------------------------------------- Start simple RAT screen |
my $editscript=&editscript('simple'); |
my $editscript=&editscript('simple'); |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,1); |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,1). |
|
&Apache::loncommon::help_open_topic('Sequence_Simple_Editor_Creation'). |
|
&Apache::loncommon::help_open_faq(6). |
|
&Apache::loncommon::help_open_bug('RAT'); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'sa' => 'Save', |
'sa' => 'Save', |
'nt' => 'New Title', |
'nt' => 'New Title', |
Line 1063 sub viewmap {
|
Line 1070 sub viewmap {
|
my ($r,$url,$adv,$errtext)=@_; |
my ($r,$url,$adv,$errtext)=@_; |
$r->print('<html>'. |
$r->print('<html>'. |
&Apache::loncommon::bodytag('Edit Content of a Map'). |
&Apache::loncommon::bodytag('Edit Content of a Map'). |
&buttons($adv)); |
&Apache::loncommon::help_open_faq(6). |
|
&Apache::loncommon::help_open_bug('RAT'). |
|
&buttons($adv)); |
if ($errtext) { |
if ($errtext) { |
$r->print($errtext.'<hr>'); |
$r->print($errtext.'<hr />'); |
} |
} |
my $idx=0; |
my $idx=0; |
$r->print('<h1>'.$url.'</h1>'); |
$r->print('<h1>'.$url.'</h1>'); |