version 1.110, 2021/03/06 13:44:51
|
version 1.114, 2022/02/16 16:35:23
|
Line 3242 sub clone_form {
|
Line 3242 sub clone_form {
|
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="datemode" value="shift" checked="checked" /> '. |
'<input type="radio" name="datemode" value="shift" checked="checked" /> '. |
$lt{'shd'}.'</label>'. |
$lt{'shd'}.'</label>'. |
'<input type="text" size="5" name="dateshift" value="365" />'. |
'<input type="text" size="5" name="dateshift" value="364" />'. |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title($lt{'dpl'}).'<label>'. |
&Apache::lonhtmlcommon::row_title($lt{'dpl'}).'<label>'. |
'<input type="radio" name="tinyurls" value="delete" /> '.$lt{'nsl'}. |
'<input type="radio" name="tinyurls" value="delete" /> '.$lt{'nsl'}. |
Line 4066 sub process_request {
|
Line 4066 sub process_request {
|
} elsif ($disposition eq 'pending') { |
} elsif ($disposition eq 'pending') { |
my $pendingform; |
my $pendingform; |
if ($crstype ne 'official') { |
if ($crstype ne 'official') { |
$pendingform = &pending_validation_form($dom,$cnum,$crstype,$now,$token, |
$pendingform = &pending_validation_form($r,$dom,$cnum,$crstype,$now,$token, |
$lonhost,$env{'form.cdescr'}); |
$lonhost,$env{'form.cdescr'}); |
} |
} |
if ($pendingform) { |
if ($pendingform) { |
Line 4384 sub notification_information {
|
Line 4384 sub notification_information {
|
} |
} |
|
|
sub pending_validation_form { |
sub pending_validation_form { |
my ($cdom,$cnum,$crstype,$now,$token,$lonhost,$cdesc) = @_; |
my ($r,$cdom,$cnum,$crstype,$now,$token,$lonhost,$cdesc) = @_; |
my $output; |
my $output; |
my %postvalues = ( |
my %postvalues = ( |
'owner' => $env{'user.name'}.':'.$env{'user.domain'}, |
'owner' => $env{'user.name'}.':'.$env{'user.domain'}, |
Line 4420 sub pending_validation_form {
|
Line 4420 sub pending_validation_form {
|
my $hostname = &Apache::lonnet::hostname($lonhost); |
my $hostname = &Apache::lonnet::hostname($lonhost); |
my $protocol = $Apache::lonnet::protocol{$lonhost}; |
my $protocol = $Apache::lonnet::protocol{$lonhost}; |
$protocol = 'http' if ($protocol ne 'https'); |
$protocol = 'http' if ($protocol ne 'https'); |
|
my $alias = &Apache::lonnet::use_proxy_alias($r,$lonhost); |
|
$hostname = $alias if ($alias ne ''); |
my $crscreator = $protocol.'://'.$hostname.'/cgi-bin/createpending.pl'; |
my $crscreator = $protocol.'://'.$hostname.'/cgi-bin/createpending.pl'; |
$output .= '<input type="hidden" name="crscreator" value="'.$crscreator.'" />'."\n". |
$output .= '<input type="hidden" name="crscreator" value="'.$crscreator.'" />'."\n". |
'<input type="hidden" name="token" value="'.$token.'" />'."\n". |
'<input type="hidden" name="token" value="'.$token.'" />'."\n". |
Line 4918 sub print_textbook_form {
|
Line 4920 sub print_textbook_form {
|
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="owndatemode" value="shift" checked="checked" /> '. |
'<input type="radio" name="owndatemode" value="shift" checked="checked" /> '. |
$lt{'shd'}.'</label>'. |
$lt{'shd'}.'</label>'. |
'<input type="text" size="5" name="owndateshift" value="365" />'. |
'<input type="text" size="5" name="owndateshift" value="364" />'. |
'</fieldset><fieldset style="display:inline-block">'. |
'</fieldset><fieldset style="display:inline-block">'. |
'<legend>'.$lt{'dpl'}.'</legend><label>'. |
'<legend>'.$lt{'dpl'}.'</legend><label>'. |
'<input type="radio" name="owntinyurls" value="delete" />'.$lt{'nsl'}. |
'<input type="radio" name="owntinyurls" value="delete" />'.$lt{'nsl'}. |
Line 4942 sub print_textbook_form {
|
Line 4944 sub print_textbook_form {
|
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="colldatemode" value="shift" checked="checked" /> '. |
'<input type="radio" name="colldatemode" value="shift" checked="checked" /> '. |
$lt{'shd'}.'</label>'. |
$lt{'shd'}.'</label>'. |
'<input type="text" size="5" name="colldateshift" value="365" />'. |
'<input type="text" size="5" name="colldateshift" value="364" />'. |
'</fieldset><fieldset style="display:inline-block">'. |
'</fieldset><fieldset style="display:inline-block">'. |
'<legend>'.$lt{'dpl'}.'</legend><label>'. |
'<legend>'.$lt{'dpl'}.'</legend><label>'. |
'<input type="radio" name="colltinyurls" value="delete" />'.$lt{'nsl'}. |
'<input type="radio" name="colltinyurls" value="delete" />'.$lt{'nsl'}. |
Line 5224 sub process_textbook_request {
|
Line 5226 sub process_textbook_request {
|
'',$req_notifylist,[],$domconfig); |
'',$req_notifylist,[],$domconfig); |
$r->print($output); |
$r->print($output); |
if ($crstype eq 'lti') { |
if ($crstype eq 'lti') { |
my %consumers = &Apache::lonnet::get_dom('lticonsumers',[$env{'form.sourcecrs'}],$dom); |
my $storecrs; |
if (($env{'form.lti.sourcecrs'} ne '') && ($consumers{$env{'form.lti.sourcecrs'}} eq '') && ($cnum ne '')) { |
if ($env{'request.lti.login'}) { |
&Apache::lonnet::put_dom('lticonsumers',{ $env{'form.lti.sourcecrs'} => $cnum },$dom); |
my %lti = &Apache::lonnet::get_domain_lti($dom,'provider'); |
|
if (ref($lti{$env{'request.lti.login'}}) eq 'HASH') { |
|
$storecrs = $lti{$env{'request.lti.login'}}{'storecrs'}; |
|
} |
|
if ($storecrs) { |
|
my %consumers = &Apache::lonnet::get_dom('lticonsumers',[$env{'form.sourcecrs'}],$dom); |
|
if (($env{'form.lti.sourcecrs'} ne '') && ($consumers{$env{'form.lti.sourcecrs'}} eq '') && ($cnum ne '')) { |
|
&Apache::lonnet::put_dom('lticonsumers',{ $env{'form.lti.sourcecrs'} => $env{'request.lti.login'}.':'.$cnum },$dom); |
|
} |
|
} |
} |
} |
} elsif (&Apache::loncoursequeueadmin::author_prompt()) { |
} elsif (&Apache::loncoursequeueadmin::author_prompt()) { |
unless ($customized) { |
unless ($customized) { |