');
# --------------------------------------------------------- Standard documents
my $savefolderpath;
my $active = 'style="display: none;"';
@@ -2951,11 +2951,11 @@ HIDDENFORM
}
my $postexec='';
if ($folder eq 'default') {
- $r->print(''
+ $r->print(''."\n"
);
} else {
#$postexec='self.close();';
@@ -3198,7 +3198,7 @@ $r->print('
');
if($activeClass == 1){
$active = 'style="display: block;"';
}
- $r->print('');
+ $r->print('
';
@@ -3613,13 +3615,21 @@ function unselectInactive(nav) {
currentNav = document.getElementById(nav);
currentLis = currentNav.getElementsByTagName('LI');
for (i = 0; i < currentLis.length; i++) {
- currentLis[i].className = 'i';
+ if(currentLis[i].className == 'right active' || currentLis[i].className == 'right'){
+ currentLis[i].className = 'right';
+ }else{
+ currentLis[i].className = 'i';
+ }
}
}
function hideAll(current, nav, data) {
unselectInactive(nav);
-current.className = 'active';
+if(current.className == 'right'){
+ current.className = 'right active'
+ }else{
+ current.className = 'active';
+}
currentData = document.getElementById(data);
currentDivs = currentData.getElementsByTagName('DIV');
for (i = 0; i < currentDivs.length; i++) {
@@ -3629,8 +3639,25 @@ for (i = 0; i < currentDivs.length; i++)
}
}
+function openTabs(pageId) {
+ tabnav = document.getElementById(pageId).getElementsByTagName('UL');
+ if(tabnav.length > 0 ){
+ currentNav = document.getElementById(tabnav[0].id);
+ currentLis = currentNav.getElementsByTagName('LI');
+ for(i = 0; i< currentLis.length; i++){
+ if(currentLis[i].className == 'active') {
+ funcString = currentLis[i].onclick.toString();
+ tab = funcString.split('"');
+ currentData = document.getElementById(tab[1]);
+ currentData.style.display = 'block';
+ }
+ }
+ }
+}
+
function showPage(current, pageId, nav, data) {
hideAll(current, nav, data);
+ openTabs(pageId);
unselectInactive(nav);
current.className = 'active';
currentData = document.getElementById(pageId);
');
my $folder=$env{'form.folder'};
unless ($folder=~/^supplemental/) {
$folder='supplemental';
@@ -3377,18 +3377,18 @@ sub generate_edit_table {
foreach my $name (sort(keys(%orderhash))){
if($name eq 'zz'){
if($activetab ne ''){
- $active = '';
+ $active = 'class="right"';
}else{
- $active = 'class="active"';
+ $active = 'class="right active"';
}
- $form .= ''.&mt(${$orderhash{$name}}[0]).' ';
+ $form .= ''.&mt(${$orderhash{$name}}[0]).' ';
}else{
if($activetab eq '' || $activetab ne $name){
$active = '';
}elsif($activetab eq $name){
$active = 'class="active"';
}
- $form .= ''.&mt(${$orderhash{$name}}[0]).' ';
+ $form .= ''.&mt(${$orderhash{$name}}[0]).' ';
}
}
$form .= '';
@@ -3400,7 +3400,9 @@ sub generate_edit_table {
}elsif($activetab eq $field){
$active = 'style="display:block;"';
}
- $form .= '
'.${$orderhash{$field}}[1].'
';
+ $form .= ''.${$orderhash{$field}}[1]
+ .'
';
}
}
$form .= '