Projet

Général

Profil

« Précédent | Suivant » 

Révision fab1cd2f

Ajouté par Renato Botelho il y a plus de 9 ans

Revert "improve/tidy up interfaces widget"

I pushed it accidentally, will wait a fixed version of the patch

This reverts commit b75192e3bc851e80d6bfd33c12849dbc269039fb.

Voir les différences:

usr/local/www/widgets/widgets/interfaces.widget.php
49 49
					$iswireless = is_interface_wireless($ifdescr);
50 50
				?>
51 51
				<tr>
52
				<td class="vncellt nowrap" rowspan="2">
52
				<td class="vncellt" width="40%">
53 53
				<?php
54 54
				if($ifinfo['ppplink']) {
55 55
					echo "<img src='./themes/{$g['theme']}/images/icons/icon_3g.gif' alt='3g' />";
......
70 70
						echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(DHCP)";
71 71
				?>
72 72
				</td>
73
				<?php if($ifinfo['status'] == "up" || $ifinfo['status'] == "associated") { ?>
74
							<td rowspan="2" class="listr">
73
				<td width="60%"  class="listr">
74
	                 		<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="status">
75
						<tr>
76
		                 <?php if($ifinfo['status'] == "up" || $ifinfo['status'] == "associated") { ?>
77
							<td>
75 78
								<div id="<?php echo $ifname;?>-up" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_up.gif" title="<?=$ifname;?> is up" alt="up" /></div>
76 79
							</td>
77 80
		                <?php } else if ($ifinfo['status'] == "no carrier") { ?>
78
							<td rowspan="2" class="listr">
81
							<td>
79 82
								<div id="<?php echo $ifname;?>-down" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_interface_down.gif" title="<?=$ifname;?> is down" alt="down" /></div>
80 83
							</td>
81 84
				<?php }  else if ($ifinfo['status'] == "down") { ?>
82
							<td rowspan="2" class="listr">
85
							<td>
83 86
								<div id="<?php echo $ifname;?>-block" style="display:inline" ><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" title="<?=$ifname;?> is disabled" alt="disabled" /></div>
84 87
							</td>
85 88
		                <?php } else { ?><?=htmlspecialchars($ifinfo['status']); }?>
86
							<td class="listr">
89
							<td>
87 90
								<div id="<?php echo $ifname;?>-media" style="display:inline"><?=htmlspecialchars($ifinfo['media']);?></div>
88 91
							</td>
89 92
						</tr>
93
					</table>
94
					<table  width="100%" border="0" cellspacing="0" cellpadding="0" summary="summary">
90 95
						<tr>
91
							<td class="vncellt">
96
							<td class="vncellt" width="100%">
92 97
								<div id="<?php echo $ifname;?>-ip" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddr']);?> </div>
93 98
								<br />
94 99
								<div id="<?php echo $ifname;?>-ipv6" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddrv6']);?> </div>
95 100
							</td>
96 101
						</tr>
97
				</tr>
102
					</table>
103
		          </td></tr>
98 104
				<?php 	}//end for each ?>
99 105
			</table>

Formats disponibles : Unified diff