version 1.586, 2007/09/19 06:24:26
|
version 1.588, 2007/09/25 22:58:48
|
Line 1094 function init_geometry() {
|
Line 1094 function init_geometry() {
|
if (Geometry.init) { return }; |
if (Geometry.init) { return }; |
Geometry.init=1; |
Geometry.init=1; |
if (window.innerHeight) { |
if (window.innerHeight) { |
Geometry.getViewportHeight = function() { return window.innerHeight; }; |
Geometry.getViewportHeight = function() { return window.innerHeight; }; |
|
Geometry.getHorizontalScroll = function() { return window.pageXOffset; }; |
|
Geometry.getVerticalScroll = function() { return window.pageYOffset; }; |
} |
} |
else if (document.documentElement && document.documentElement.clientHeight) { |
else if (document.documentElement && document.documentElement.clientHeight) { |
Geometry.getViewportHeight = |
Geometry.getViewportHeight = |
function() { return document.documentElement.clientHeight; }; |
function() { return document.documentElement.clientHeight; }; |
|
Geometry.getHorizontalScroll = |
|
function() { return document.documentElement.scrollLeft; }; |
|
Geometry.getVerticalScroll = |
|
function() { return document.documentElement.scrollTop; }; |
} |
} |
else if (document.body.clientHeight) { |
else if (document.body.clientHeight) { |
Geometry.getViewportHeight = |
Geometry.getViewportHeight = |
function() { return document.body.clientHeight; }; |
function() { return document.body.clientHeight; }; |
|
Geometry.getHorizontalScroll = |
|
function() { return document.body.scrollLeft; }; |
|
Geometry.getVerticalScroll = |
|
function() { return document.body.scrollTop; }; |
} |
} |
} |
} |
|
|
|
function getX(element) { |
|
var x = 0; |
|
while (element) { |
|
x += element.offsetLeft; |
|
element = element.offsetParent; |
|
} |
|
return x; |
|
} |
|
function getY(element) { |
|
var y = 0; |
|
while (element) { |
|
y += element.offsetTop; |
|
element = element.offsetParent; |
|
} |
|
return y; |
|
} |
|
|
|
|
function resize_textarea(textarea_id,bottom_id) { |
function resize_textarea(textarea_id,bottom_id) { |
init_geometry(); |
init_geometry(); |
var textarea = document.getElementById(textarea_id); |
var textarea = document.getElementById(textarea_id); |
//alert(textarea); |
//alert(textarea); |
|
|
var textarea_top = textarea.offsetTop; |
var textarea_top = getY(textarea); |
var textarea_height = textarea.offsetHeight; |
var textarea_height = textarea.offsetHeight; |
var bottom = document.getElementById(bottom_id); |
var bottom = document.getElementById(bottom_id); |
var bottom_top = bottom.offsetTop; |
var bottom_top = getY(bottom); |
var bottom_height = bottom.offsetHeight; |
var bottom_height = bottom.offsetHeight; |
var window_height = Geometry.getViewportHeight(); |
var window_height = Geometry.getViewportHeight(); |
var fudge = 23; |
var fudge = 23; |
var new_height = window_height-fudge-textarea_top-bottom_height; |
var new_height = window_height-fudge-textarea_top-bottom_height; |
if (new_height < 300) { |
if (new_height < 300) { |
new_height = 300; |
new_height = 300; |
Line 1332 sub domain_select {
|
Line 1360 sub domain_select {
|
|
|
=over 4 |
=over 4 |
|
|
=cut |
|
|
|
=item * multiple_select_form($name,$value,$size,$hash,$order) |
=item * multiple_select_form($name,$value,$size,$hash,$order) |
|
|
Returns a string containing a <select> element int multiple mode |
Returns a string containing a <select> element int multiple mode |
Line 1883 sub authform_kerberos{
|
Line 1909 sub authform_kerberos{
|
} |
} |
if (!$can_assign{'krb4'} && !$can_assign{'krb5'}) { |
if (!$can_assign{'krb4'} && !$can_assign{'krb5'}) { |
return; |
return; |
|
} elsif ($authtype eq '') { |
|
if (grep(/^mode$/,(keys(%in)))) { |
|
if ($in{'mode'} eq 'modifycourse') { |
|
if ($authnum == 1) { |
|
$authtype = '<input type="hidden" name="login" value="krb">'; |
|
} |
|
} |
|
} |
} |
} |
$jscall = "javascript:changed_radio('krb',$in{'formname'});"; |
$jscall = "javascript:changed_radio('krb',$in{'formname'});"; |
if ($authtype eq '') { |
if ($authtype eq '') { |
Line 1956 sub authform_internal{
|
Line 1990 sub authform_internal{
|
} |
} |
if (!$can_assign{'int'}) { |
if (!$can_assign{'int'}) { |
return; |
return; |
|
} elsif ($authtype eq '') { |
|
if (grep(/^mode$/,(keys(%in)))) { |
|
if ($in{'mode'} eq 'modifycourse') { |
|
if ($authnum == 1) { |
|
$authtype = '<input type="hidden" name="login" value="int">'; |
|
} |
|
} |
|
} |
} |
} |
$jscall = "javascript:changed_radio('int',$in{'formname'});"; |
$jscall = "javascript:changed_radio('int',$in{'formname'});"; |
if ($authtype eq '') { |
if ($authtype eq '') { |
Line 1997 sub authform_local{
|
Line 2039 sub authform_local{
|
} |
} |
if (!$can_assign{'loc'}) { |
if (!$can_assign{'loc'}) { |
return; |
return; |
|
} elsif ($authtype eq '') { |
|
if (grep(/^mode$/,(keys(%in)))) { |
|
if ($in{'mode'} eq 'modifycourse') { |
|
if ($authnum == 1) { |
|
$authtype = '<input type="hidden" name="login" value="loc">'; |
|
} |
|
} |
|
} |
} |
} |
$jscall = "javascript:changed_radio('loc',$in{'formname'});"; |
$jscall = "javascript:changed_radio('loc',$in{'formname'});"; |
if ($authtype eq '') { |
if ($authtype eq '') { |
Line 2035 sub authform_filesystem{
|
Line 2085 sub authform_filesystem{
|
} |
} |
if (!$can_assign{'fsys'}) { |
if (!$can_assign{'fsys'}) { |
return; |
return; |
|
} elsif ($authtype eq '') { |
|
if (grep(/^mode$/,(keys(%in)))) { |
|
if ($in{'mode'} eq 'modifycourse') { |
|
if ($authnum == 1) { |
|
$authtype = '<input type="hidden" name="login" value="fsys">'; |
|
} |
|
} |
|
} |
} |
} |
$jscall = "javascript:changed_radio('fsys',$in{'formname'});"; |
$jscall = "javascript:changed_radio('fsys',$in{'formname'});"; |
if ($authtype eq '') { |
if ($authtype eq '') { |
Line 2095 sub get_assignable_auth {
|
Line 2153 sub get_assignable_auth {
|
return ($authnum,%can_assign); |
return ($authnum,%can_assign); |
} |
} |
|
|
|
|
############################################################### |
############################################################### |
## Get Authentication Defaults for Domain ## |
## Get Authentication Defaults for Domain ## |
############################################################### |
############################################################### |