XHTML bugfixes
This commit is contained in:
parent
c6b80ef402
commit
3d65ae2158
4 changed files with 15 additions and 27 deletions
|
|
@ -107,7 +107,7 @@ sub addUserForm {
|
|||
}
|
||||
$jsArray .= 'ldapValue["0"]="'.$ldapUrl.'";'."\n";
|
||||
$jscript = qq|
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var ldapValue = new Array();
|
||||
$jsArray
|
||||
|
|
@ -132,7 +132,8 @@ sub addUserForm {
|
|||
-label => WebGUI::International::get(4,'AuthLDAP'),
|
||||
-value => $connectDN,
|
||||
);
|
||||
return $jscript.$f->printRowsOnly;
|
||||
WebGUI::Style::setRawHeadTags($jscript);
|
||||
return $f->printRowsOnly;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ sub www_editCommerceSettings {
|
|||
|
||||
# payment plugin
|
||||
if (%paymentPlugins) {
|
||||
$tabform->getTab('payment')->raw('<script type="text/javascript"> var activePayment="'.$paymentPlugin.'"; </script>');
|
||||
WebGUI::Style::setRawHeadTags('<script type="text/javascript">var activePayment="'.$paymentPlugin.'";</script>');
|
||||
$tabform->getTab("payment")->selectList(
|
||||
-name => 'commercePaymentPlugin',
|
||||
-options => \%paymentPlugins,
|
||||
|
|
@ -442,15 +442,12 @@ sub www_editCommerceSettings {
|
|||
-extras => 'onchange="activePayment=operateHidden(this.options[this.selectedIndex].value,activePayment)"'
|
||||
);
|
||||
|
||||
$jscript = '<script type="text/javascript">';
|
||||
foreach $currentPlugin (@paymentPlugins) {
|
||||
$tabform->getTab('payment')->raw('<tr id="'.$currentPlugin->namespace.'"><td colspan="2" width="100%">'.
|
||||
my $style = '" style="display: none;' unless ($currentPlugin->namespace eq $paymentPlugin);
|
||||
$tabform->getTab('payment')->raw('<tr id="'.$currentPlugin->namespace.$style.'"><td colspan="2" width="100%">'.
|
||||
'<table border="0" cellspacing="0" cellpadding="0" width="100%">'.
|
||||
$currentPlugin->configurationForm.'<tr><td width="304"> </td><td width="496"> </td></tr></table></td></tr>');
|
||||
$jscript .= "document.getElementById(\"".$currentPlugin->namespace."\").style.display='".(($currentPlugin->namespace eq $paymentPlugin)?"":"none")."';";
|
||||
}
|
||||
$jscript .= '</script>';
|
||||
$tabform->getTab('payment')->raw($jscript);
|
||||
} else {
|
||||
$tabform->getTab('payment')->raw('<tr><td colspan="2" align="left">'.$i18n->get('no payment plugins selected').'</td></tr>');
|
||||
}
|
||||
|
|
@ -474,7 +471,7 @@ sub www_editCommerceSettings {
|
|||
|
||||
# shipping plugin
|
||||
if (%shippingPlugins) {
|
||||
$tabform->getTab('shipping')->raw('<script type="text/javascript"> var activeShipping="'.$shippingPlugin.'"; </script>');
|
||||
WebGUI::Style::setRawHeadTags('<script type="text/javascript">var activeShipping="'.$shippingPlugin.'";</script>');
|
||||
$tabform->getTab('shipping')->selectList(
|
||||
-name => 'commerceShippingPlugin',
|
||||
-options=> \%shippingPlugins,
|
||||
|
|
@ -483,15 +480,12 @@ sub www_editCommerceSettings {
|
|||
-extras => 'onchange="activeShipping=operateHidden(this.options[this.selectedIndex].value,activeShipping)"'
|
||||
);
|
||||
|
||||
$jscript = '<script type="text/javascript">';
|
||||
foreach $currentPlugin (@shippingPlugins) {
|
||||
$tabform->getTab('shipping')->raw('<tr id="'.$currentPlugin->namespace.'"><td colspan="2" width="100%">'.
|
||||
my $style = '" style="display: none;' unless ($currentPlugin->namespace eq $shippingPlugin);
|
||||
$tabform->getTab('shipping')->raw('<tr id="'.$currentPlugin->namespace.$style.'"><td colspan="2" width="100%">'.
|
||||
'<table border="0" cellspacing="0" cellpadding="0" width="100%">'.
|
||||
$currentPlugin->configurationForm.'<tr><td width="304"> </td><td width="496"> </td></tr></table></td></tr>');
|
||||
$jscript .= "document.getElementById(\"".$currentPlugin->namespace."\").style.display='".(($currentPlugin->namespace eq $shippingPlugin)?"":"none")."';";
|
||||
}
|
||||
$jscript .= '</script>';
|
||||
$tabform->getTab('shipping')->raw($jscript);
|
||||
} else {
|
||||
$tabform->getTab('shipping')->raw('<tr><td colspan="2" align="left">'.$i18n->get('no shipping plugins selected').'</td></tr>');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ sub www_editSettings {
|
|||
);
|
||||
# auth settings
|
||||
WebGUI::Style::setScript($session{config}{extrasURL}."/swapLayers.js",{type=>"text/javascript"});
|
||||
$tabform->getTab("auth")->raw('<script type="text/javascript" > var active="'.$session{setting}{authMethod}.'"; </script>');
|
||||
WebGUI::Style::setRawHeadTags('<script type="text/javascript" >var active="'.$session{setting}{authMethod}.'";</script>');
|
||||
my $options;
|
||||
foreach (@{$session{config}{authMethods}}) {
|
||||
$options->{$_} = $_;
|
||||
|
|
@ -282,14 +282,11 @@ sub www_editSettings {
|
|||
-value=>[$session{setting}{authMethod}],
|
||||
-extras=>"onChange=\"active=operateHidden(this.options[this.selectedIndex].value,active)\""
|
||||
);
|
||||
my $jscript = '<script type="text/javascript">';
|
||||
foreach (@{$session{config}{authMethods}}) {
|
||||
my $authInstance = WebGUI::Operation::Auth::getInstance($_,1);
|
||||
$tabform->getTab("auth")->raw('<tr id="'.$_.'"><td colspan="2" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%">'.$authInstance->editUserSettingsForm.'<tr><td width="304"> </td><td width="496"> </td></tr></table></td></tr>');
|
||||
$jscript .= "document.getElementById(\"$_\").style.display='".(($_ eq $session{setting}{authMethod})?"":"none")."';";
|
||||
my $style = '" style="display: none;' unless ($_ eq $session{setting}{authMethod});
|
||||
$tabform->getTab("auth")->raw('<tr id="'.$_.$style.'"><td colspan="2" width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%">'.$authInstance->editUserSettingsForm.'<tr><td width="304"> </td><td width="496"> </td></tr></table></td></tr>');
|
||||
}
|
||||
$jscript .= "</script>";
|
||||
$tabform->getTab("auth")->raw($jscript);
|
||||
$tabform->submit();
|
||||
my $ac = WebGUI::AdminConsole->new("settings");
|
||||
$ac->setHelp("settings");
|
||||
|
|
|
|||
|
|
@ -223,10 +223,9 @@ sub www_editUser {
|
|||
"groups"=> { label=>$i18n->get('89')},
|
||||
);
|
||||
my $tabform = WebGUI::TabForm->new(\%tabs);
|
||||
$tabform->formHeader({extras=>'autocomplete="off"'});
|
||||
my $u = WebGUI::User->new(($session{form}{uid} eq 'new') ? '' : $session{form}{uid});
|
||||
WebGUI::Style::setScript($session{config}{extrasURL}."/swapLayers.js", {type=>"text/javascript"});
|
||||
$tabform->getTab("account")->raw('<script type="text/javascript" > var active="'.$u->authMethod.'"; </script>');
|
||||
WebGUI::Style::setRawHeadTags('<script type="text/javascript">var active="'.$u->authMethod.'";</script>');
|
||||
$tabform->hidden({name=>"op",value=>"editUserSave"});
|
||||
$tabform->hidden({name=>"uid",value=>$session{form}{uid}});
|
||||
$tabform->getTab("account")->raw('<tr><td width="170"> </td><td> </td></tr>');
|
||||
|
|
@ -270,14 +269,11 @@ sub www_editUser {
|
|||
-value=>[$u->authMethod],
|
||||
-extras=>"onChange=\"active=operateHidden(this.options[this.selectedIndex].value,active)\""
|
||||
);
|
||||
my $jscript = '<script type="text/javascript">';
|
||||
foreach (@{$session{config}{authMethods}}) {
|
||||
my $authInstance = WebGUI::Operation::Auth::getInstance($_,$u->userId);
|
||||
$tabform->getTab("account")->raw('<tr id="'.$_.'"><td colspan="2" align="center"><table>'.$authInstance->editUserForm.'<tr><td width="170"> </td><td> </td></tr></table></td></tr>');
|
||||
$jscript .= "document.getElementById(\"$_\").style.display='".(($_ eq $u->authMethod)?"":"none")."';";
|
||||
my $style = '" style="display: none;' unless ($_ eq $u->authMethod);
|
||||
$tabform->getTab("account")->raw('<tr id="'.$_.$style.'"><td colspan="2" align="center"><table>'.$authInstance->editUserForm.'<tr><td width="170"> </td><td> </td></tr></table></td></tr>');
|
||||
}
|
||||
$jscript .= "</script>";
|
||||
$tabform->getTab("account")->raw($jscript);
|
||||
my $a = WebGUI::SQL->read("select * from userProfileField,userProfileCategory
|
||||
where userProfileField.profileCategoryId=userProfileCategory.profileCategoryId
|
||||
order by userProfileCategory.sequenceNumber,userProfileField.sequenceNumber");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue