my $tableNestingDepth = @ancestryList;
for my $ancestor ( reverse(@ancestryList) ) {
print "<table class=fileLevel" . $fileLevelHash{$ancestor} . ">";
- print "<tr><td>";
+ print "<tr><td colspan=2>";
}
for my $ancestor (@ancestryList) {
- print "$ancestor</td>";
+ print "</td></tr><tr><td>$ancestor </td><td valign='bottom'>";
+ print "<img src='./eye16.png' onclick=''></img>";
+ print
+"<input type='checkbox' checked=true onchange='hideThisFileLevel(\"fileLevel"
+ . $fileLevelHash{$ancestor} . "\",this.checked)'></td>";
if ( $fileLevelHash{$ancestor} eq "1" ) {
print <<EOF;
<td class='button_move' title='unlink includes' onclick='changeAncestor("")'> X </td>
die "xmlfile given to sub print_registers is unknown";
}
my @registers = sort by_name $xmltree->findnodes("/MAPS/register");
- print "<table class=\"registers\">";
+ print "<table class=\"registers\"";
+ if ( $xmlfile eq $setfile ) {
+ print "id='configFileRegisters'";
+ }
+ print ">";
for my $register (@registers) {
my $registerName = $register->findvalue("./\@name");
if ( ( any2dec($fieldValue) < 0 )
or ( any2dec($fieldValue) > $maxFieldVal ) )
{
- print "<tr class='fieldError'><td colspan = 4 align='center'>!!!Above value not in allowed range!!!</td></tr>"; # just debug
+ print
+"<tr class='fieldError'><td colspan = 4 align='center'>!!!Above value not in allowed range!!!</td></tr>"
+ ; # just debug
}
}
print "</table>";
}
}
+function hideThisFileLevel(classname,checked){
+
+var array = document.getElementById("configFileRegisters").getElementsByClassName(classname);
+
+for(var i = 0; i < array.length; i++)
+{
+ if(checked){
+ array[i].style.visibility = 'visible';
+
+ }else{
+
+ array[i].style.visibility = 'collapse';
+ }
+
+
+}
+
+
+}
+
</script>
<script language="javascript">