version 1.18, 2006/03/16 22:42:58
|
version 1.24, 2009/04/15 11:16:44
|
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(&Apache::lonhtmlcommon::start_pick_box() |
&mt('Course ID of Key Authority').': <input input type="text" size="25" name="course" value="" />'); |
.&Apache::lonhtmlcommon::row_title(&mt('Course ID of Key Authority')) |
$r->print(&mt('Domain').': '.&Apache::loncommon::select_dom_form( |
.'<input input type="text" size="25" name="course" value="" />' |
$env{'request.role.domain'},'domain')); |
.' '.&Apache::loncommon::selectcourse_link( |
$r->print(&Apache::loncommon::selectcourse_link( |
'keyform','course','domain', |
'keyform','course','domain')); |
undef,undef,undef,'Course') |
$r->print('<br /><input type="submit" value="'.&mt('Manage Access Keys').'" />'); |
.&Apache::lonhtmlcommon::row_closure() |
$r->print('</form>'.&Apache::loncommon::end_page()); |
.&Apache::lonhtmlcommon::row_title(&mt('Domain')) |
|
.&Apache::loncommon::select_dom_form($env{'request.role.domain'},'domain') |
|
.&Apache::lonhtmlcommon::row_closure(1) |
|
.&Apache::lonhtmlcommon::end_pick_box() |
|
); |
|
$r->print('<input type="submit" value="'.&mt('Next').'" />' |
|
.'</form>' |
|
.&Apache::loncommon::end_page() |
|
); |
} |
} |
return OK; |
return OK; |
} |
} |