version 1.18, 2006/03/16 22:42:58
|
version 1.23, 2009/02/19 22:11:53
|
Line 193 sub handler {
|
Line 193 sub handler {
|
($cenv{'domain'},$cenv{'num'})=split(/\_/,$env{'form.cid'}); |
($cenv{'domain'},$cenv{'num'})=split(/\_/,$env{'form.cid'}); |
$keytype='auth'; |
$keytype='auth'; |
} elsif ($cenv{'keyauth'}) { |
} elsif ($cenv{'keyauth'}) { |
($cenv{'num'},$cenv{'domain'})=split(/\W/,$cenv{'keyauth'}); |
($cenv{'num'},$cenv{'domain'})=split(/:/,$cenv{'keyauth'}); |
$keytype='auth'; |
$keytype='auth'; |
} else { |
} else { |
$keytype='course'; |
$keytype='course'; |
Line 223 sub handler {
|
Line 223 sub handler {
|
# --- Actions |
# --- Actions |
if ($env{'form.toggle'}) { |
if ($env{'form.toggle'}) { |
$r->print(&togglekeyaccess(%cenv).'<br />'); |
$r->print(&togglekeyaccess(%cenv).'<br />'); |
%cenv=&Apache::lonnet::coursedescription($env{'form.cid'}); |
%cenv=&Apache::lonnet::coursedescription($env{'form.cid'}, |
|
{'freshen_cache'=> 1}); |
} |
} |
my $batchnumber=''; |
my $batchnumber=''; |
if ($env{'form.genkeys'}) { |
if ($env{'form.genkeys'}) { |
Line 259 Comments/Remarks/Notes: <input type="tex
|
Line 260 Comments/Remarks/Notes: <input type="tex
|
<hr /><h3>List Keys</h3> |
<hr /><h3>List Keys</h3> |
Comments/Remarks/Notes/User/Batch Number Filter: |
Comments/Remarks/Notes/User/Batch Number Filter: |
<input type="text" name="listcom" size="30" value="$batchnumber" /><br /> |
<input type="text" name="listcom" size="30" value="$batchnumber" /><br /> |
<input type="checkbox" name="newonly" /> Unused keys only<br /> |
<label><input type="checkbox" name="newonly" /> Unused keys only</label><br /> |
<input type="checkbox" name="checkonly" /> Used keys only<br /> |
<label><input type="checkbox" name="checkonly" /> Used keys only</label><br /> |
<input type="submit" name="listkeys" value="List Keys/Add Comments" /> |
<input type="submit" name="listkeys" value="List Keys/Add Comments" /> |
<input type="submit" name="listkeyscsv" value="CSV List of Keys" /> |
<input type="submit" name="listkeyscsv" value="CSV List of Keys" /> |
ENDKEYMENU |
ENDKEYMENU |
Line 271 ENDKEYMENU
|
Line 272 ENDKEYMENU
|
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
$r->print(&header().&Apache::loncommon::coursebrowser_javascript()); |
$r->print(&header().&Apache::loncommon::coursebrowser_javascript()); |
$r->print( |
$r->print('<table><tr><td>' |
&mt('Course ID of Key Authority').': <input input type="text" size="25" name="course" value="" />'); |
.&mt('Course ID of Key Authority').':</td><td> <input input type="text" size="25" name="course" value="" />'); |
$r->print(&mt('Domain').': '.&Apache::loncommon::select_dom_form( |
|
$env{'request.role.domain'},'domain')); |
|
$r->print(&Apache::loncommon::selectcourse_link( |
$r->print(&Apache::loncommon::selectcourse_link( |
'keyform','course','domain')); |
'keyform','course','domain', |
$r->print('<br /><input type="submit" value="'.&mt('Manage Access Keys').'" />'); |
undef,undef,undef,'Course')); |
|
$r->print('</td></tr>'); |
|
$r->print('<tr><td>'.&mt('Domain').':</td><td> '.&Apache::loncommon::select_dom_form( |
|
$env{'request.role.domain'},'domain')); |
|
$r->print('</td></tr></table><input type="submit" value="'.&mt('Next').'" />'); |
$r->print('</form>'.&Apache::loncommon::end_page()); |
$r->print('</form>'.&Apache::loncommon::end_page()); |
} |
} |
return OK; |
return OK; |