fix disk slider
This commit is contained in:
		
							parent
							
								
									79a196e36b
								
							
						
					
					
						commit
						2621f96acc
					
				
							
								
								
									
										81
									
								
								space.php
									
									
									
									
									
								
							
							
						
						
									
										81
									
								
								space.php
									
									
									
									
									
								
							@ -25,6 +25,16 @@ var formref=document.getElementById("switchform")
 | 
				
			|||||||
indicateSelected(formref.switchcontrol)
 | 
					indicateSelected(formref.switchcontrol)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js" type="text/javascript"></script>
 | 
				
			||||||
 | 
					    <style>
 | 
				
			||||||
 | 
					        .hiddenRow { display: none; }
 | 
				
			||||||
 | 
					    </style>
 | 
				
			||||||
 | 
					    <script>
 | 
				
			||||||
 | 
					        function toggleNextRow(row) {
 | 
				
			||||||
 | 
					            var nextRow = $(row).next();
 | 
				
			||||||
 | 
					            nextRow.toggle();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    </script>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
@ -125,39 +135,68 @@ try {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 | 
					<body>
 | 
				
			||||||
<div id="style">
 | 
					<div id="style">
 | 
				
			||||||
<div class="disktext">
 | 
					<div class="disktext">
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
 <table width='190' border='0' cellspacing='0' cellpadding='1'>
 | 
					 <table width='190' border='0' cellspacing='0' cellpadding='1'>
 | 
				
			||||||
        <tr><td BGCOLOR='#0066FF'><font color='white'>Disk Space</font></td></tr>
 | 
					        <tr><td BGCOLOR='#0066FF'><font color='white'>Disk Space</font></td></tr>
 | 
				
			||||||
    <tr><td BGCOLOR='#FFFFFF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</td></tr>
 | 
					        <tr onclick="toggleNextRow(this)"><td BGCOLOR='#FFFFFF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</td></tr>
 | 
				
			||||||
    <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidthC ?>px"><?= $diskStatusC->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidthC ?>px"><?= $diskStatusC->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
    <tr><td BGCOLOR='#FFFFFF'><?php echo $drive2;?>\<?= $freeSpace1 ?> (of <?= $totalSpace1 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive2;?>\<?= $freeSpace1 ?> (of <?= $totalSpace1 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth1 ?>px"><?= $diskStatus1->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth1 ?>px"><?= $diskStatus1->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
<tr><td BGCOLOR='#FFFFFF'><?php echo $drive3;?>\<?= $freeSpace2 ?> (of <?= $totalSpace2 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive3;?>\<?= $freeSpace2 ?> (of <?= $totalSpace2 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth2 ?>px"><?= $diskStatus2->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth2 ?>px"><?= $diskStatus2->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
<tr><td BGCOLOR='#FFFFFF'><?php echo $drive4;?>\<?= $freeSpace3 ?> (of <?= $totalSpace3 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive4;?>\<?= $freeSpace3 ?> (of <?= $totalSpace3 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth3 ?>px"><?= $diskStatus3->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth3 ?>px"><?= $diskStatus3->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
<tr><td BGCOLOR='#FFFFFF'><?php echo $drive5;?>\<?= $freeSpace4 ?> (of <?= $totalSpace4 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive5;?>\<?= $freeSpace4 ?> (of <?= $totalSpace4 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth4 ?>px"><?= $diskStatus4->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth4 ?>px"><?= $diskStatus4->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
<tr><td BGCOLOR='#FFFFFF'><?php echo $drive6;?>\<?= $freeSpace5 ?> (of <?= $totalSpace5 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive6;?>\<?= $freeSpace5 ?> (of <?= $totalSpace5 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth5 ?>px"><?= $diskStatus5->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth5 ?>px"><?= $diskStatus5->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
<tr><td BGCOLOR='#FFFFFF'><?php echo $drive7;?>\<?= $freeSpace6 ?> (of <?= $totalSpace6 ?>)</td></tr>
 | 
					            </td>
 | 
				
			||||||
    <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
 | 
					        </tr>
 | 
				
			||||||
 | 
					        <tr onclick="toggleNextRow(this)"><td bgcolor='#FFFFFF'><?php echo $drive7;?>\<?= $freeSpace6 ?> (of <?= $totalSpace6 ?>)</td></tr>
 | 
				
			||||||
 | 
					        <tr class="hiddenRow">
 | 
				
			||||||
 | 
					            <td bgcolor='#FFFFFF'>
 | 
				
			||||||
 | 
					                <div class="disk">
 | 
				
			||||||
                    <div class="used" style="width: <?= $barWidth6 ?>px"><?= $diskStatus6->usedSpace() ?>% </div>
 | 
					                    <div class="used" style="width: <?= $barWidth6 ?>px"><?= $diskStatus6->usedSpace() ?>% </div>
 | 
				
			||||||
</div></td></tr>
 | 
					                </div>
 | 
				
			||||||
 | 
					            </td>
 | 
				
			||||||
 | 
					        </tr>
 | 
				
			||||||
    </table>
 | 
					    </table>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user