version 1.92, 2015/07/14 00:11:48
|
version 1.93, 2015/08/24 14:50:22
|
Line 3667 sub process_request {
|
Line 3667 sub process_request {
|
} |
} |
$storeresult = 'notpermitted'; |
$storeresult = 'notpermitted'; |
} else { |
} else { |
my ($disposition,$message,$reqstatus,$coursedesc,%customvalidation); |
my ($disposition,$message,$reqstatus,$coursedesc,$accessstart,$accessend,%customvalidation); |
my %reqhash = ( |
my %reqhash = ( |
reqtime => $now, |
reqtime => $now, |
crstype => $crstype, |
crstype => $crstype, |
Line 3679 sub process_request {
|
Line 3679 sub process_request {
|
$env{'user.domain'}); |
$env{'user.domain'}); |
if (ref($details) eq 'HASH') { |
if (ref($details) eq 'HASH') { |
$coursedesc = $details->{'cdescr'}; |
$coursedesc = $details->{'cdescr'}; |
|
$accessstart = $details->{'accessstart'}; |
|
$accessend = $details->{'accessend'}; |
} |
} |
if ($val eq 'autolimit=') { |
if ($val eq 'autolimit=') { |
$disposition = 'process'; |
$disposition = 'process'; |
Line 3786 sub process_request {
|
Line 3788 sub process_request {
|
$customitems{'_LC_owneremail'} = $owneremail; |
$customitems{'_LC_owneremail'} = $owneremail; |
} |
} |
$customitems{'_LC_coursedomainname'} = &Apache::lonnet::domain($dom,'description'); |
$customitems{'_LC_coursedomainname'} = &Apache::lonnet::domain($dom,'description'); |
|
$customitems{'_LC_coursedescription'} = $coursedesc; |
|
$customitems{'_LC_coursestartdate'} = $accessstart; |
|
$customitems{'_LC_courseenddate'} = $accessend; |
my ($result,$postprocess) = &Apache::loncoursequeueadmin::course_creation($dom,$cnum, |
my ($result,$postprocess) = &Apache::loncoursequeueadmin::course_creation($dom,$cnum, |
'autocreate',$details,\$logmsg,\$newusermsg,\$addresult, |
'autocreate',$details,\$logmsg,\$newusermsg,\$addresult, |
\$enrollcount,\$response,\$keysmsg,\%domdefs,\%longroles, |
\$enrollcount,\$response,\$keysmsg,\%domdefs,\%longroles, |
Line 4742 sub print_textbook_form {
|
Line 4747 sub print_textbook_form {
|
if (keys(%cloneable)) { |
if (keys(%cloneable)) { |
$r->print('<div id="showexisting" style="display:none">'. |
$r->print('<div id="showexisting" style="display:none">'. |
&clone_selection_table($dom,'owned',\%cloneable). |
&clone_selection_table($dom,'owned',\%cloneable). |
'<p><input type="radio" name="datemode" value="delete" /> '.$lt{'ncd'}. |
'<p><input type="radio" name="owndatemode" value="delete" /> '.$lt{'ncd'}. |
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="datemode" value="preserve" /> '.$lt{'prd'}. |
'<input type="radio" name="owndatemode" value="preserve" /> '.$lt{'prd'}. |
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="datemode" 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="dateshift" value="365" />'. |
'<input type="text" size="5" name="owndateshift" value="365" />'. |
'</div>'); |
'</div>'); |
} |
} |
# |
# |
Line 4757 sub print_textbook_form {
|
Line 4762 sub print_textbook_form {
|
if (keys(%domcloneable)) { |
if (keys(%domcloneable)) { |
$r->print('<div id="showcolleague" style="display:none">'. |
$r->print('<div id="showcolleague" style="display:none">'. |
&clone_selection_table($dom,'colleague',\%domcloneable). |
&clone_selection_table($dom,'colleague',\%domcloneable). |
'<p><input type="radio" name="datemode" value="delete" /> '.$lt{'ncd'}. |
'<p><input type="radio" name="colldatemode" value="delete" /> '.$lt{'ncd'}. |
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="datemode" value="preserve" /> '.$lt{'prd'}. |
'<input type="radio" name="colldatemode" value="preserve" /> '.$lt{'prd'}. |
'</label><br /><label>'. |
'</label><br /><label>'. |
'<input type="radio" name="datemode" 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="dateshift" value="365" />'. |
'<input type="text" size="5" name="colldateshift" value="365" />'. |
'</div>'); |
'</div>'); |
} |
} |
|
|
Line 4983 sub process_textbook_request {
|
Line 4988 sub process_textbook_request {
|
accessend => $accessend, |
accessend => $accessend, |
personnel => {}, |
personnel => {}, |
}; |
}; |
if ($reqtype eq 'existing') { |
if (($clonecrs ne '') && ($clonedom ne '')) { |
$details->{datemode} = $env{'form.datemode'}; |
if ($reqtype eq 'existing') { |
$details->{dateshift} = $env{'form.dateshift'}; |
$details->{datemode} = $env{'form.owndatemode'}; |
|
if ($details->{datemode} eq 'shift') { |
|
$details->{dateshift} = $env{'form.owndateshift'}; |
|
} else { |
|
$details->{dateshift} = ''; |
|
} |
|
} elsif ($reqtype eq 'colleague') { |
|
$details->{datemode} = $env{'form.colldatemode'}; |
|
if ($details->{datemode} eq 'shift') { |
|
$details->{dateshift} = $env{'form.colldateshift'}; |
|
} else { |
|
$details->{dateshift} = ''; |
|
} |
|
} |
|
if ($details->{dateshift} ne '') { |
|
$details->{dateshift} =~ s/[^\d\.]+//g; |
|
} |
|
} else { |
|
$details->{datemode} = ''; |
|
$details->{dateshift} = ''; |
} |
} |
my $lonhost = $r->dir_config('lonHostID'); |
my $lonhost = $r->dir_config('lonHostID'); |
$r->rflush(); |
$r->rflush(); |