Subversion Repositories ALCASAR

Rev

Rev 841 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 841 Rev 861
1
<table width="100%" border=1 cellspacing=0 cellpadding=1>
-
 
2
<tr><td colspan=2 align="center">
1
<tr><td colspan=2 align="center">
3
<?
2
<?
4
echo "$l_static_dhcp_title</td></tr>";
3
echo "$l_static_dhcp_title</td></tr>";
5
echo "<tr><td align='center' valign='middle'>";
4
echo "<tr><td align='center' valign='middle'>";
6
echo "<FORM action='network.php' method='POST'>";
5
echo "<FORM action='network.php' method='POST'>";
7
echo "<table cellspacing=2 cellpadding=3 border=1>";
6
echo "<table cellspacing=2 cellpadding=3 border=1>";
8
echo "<tr><th>$l_mac_address<th>$l_ip_address<th>$l_mac_del</tr>";
7
echo "<tr><th>$l_mac_address<th>$l_ip_address<th>$l_mac_del</tr>";
9
// Read the "ether" file
8
// Read the "ether" file
10
$line_exist=False;
9
$line_exist=False;
11
$tab=file(ETHERS_FILE);
10
$tab=file(ETHERS_FILE);
12
if ($tab)  # le fichier n'est pas vide
11
if ($tab)  # le fichier n'est pas vide
13
	{
12
	{
14
	$line_exist=True;
13
	$line_exist=True;
15
	foreach ($tab as $line)
14
	foreach ($tab as $line)
16
		{
15
		{
17
		$field=explode(" ", $line);
16
		$field=explode(" ", $line);
18
		$mac_addr=$field[0];
17
		$mac_addr=$field[0];
19
		$ip_addr=$field[1];
18
		$ip_addr=$field[1];
20
		echo "<tr><td>$mac_addr";
19
		echo "<tr><td>$mac_addr";
21
		echo "<td>$ip_addr";
20
		echo "<td>$ip_addr";
22
		echo "<td><input type='checkbox' name='$mac_addr'>";
21
		echo "<td><input type='checkbox' name='$mac_addr'>";
23
		echo "</tr>";
22
		echo "</tr>";
24
		}
23
		}
25
	}
24
	}
26
echo "</table>";
25
echo "</table>";
27
if ($line_exist)
26
if ($line_exist)
28
	{
27
	{
29
	echo "<input type='hidden' name='choix' value='del_mac'>";
28
	echo "<input type='hidden' name='choix' value='del_mac'>";
30
	echo "<input type='submit' value='$l_submit'>";
29
	echo "<input type='submit' value='$l_apply'>";
31
	}	
30
	}	
32
echo "</form></td><td valign='middle' align='center'>";
31
echo "</form></td><td valign='middle' align='center'>";
33
echo "<FORM action='network.php' method='POST'>";
32
echo "<FORM action='network.php' method='POST'>";
34
echo "<table cellspacing=2 cellpadding=3 border=1>";
33
echo "<table cellspacing=2 cellpadding=3 border=1>";
35
echo "<tr><th>$l_mac_address<th>$l_ip_address";
34
echo "<tr><th>$l_mac_address<th>$l_ip_address";
36
?>
35
?>
37
<td></td></tr>
36
<td></td></tr>
38
<tr><td>exemple : 12-2f-36-a4-df-43</td><td>exemple : 192.168.182.10</td><td></td></tr>
37
<tr><td>exemple : 12-2f-36-a4-df-43</td><td>exemple : 192.168.182.10</td><td></td></tr>
39
<tr><td><input type='text' name='add_mac' size='17'></td>
38
<tr><td><input type='text' name='add_mac' size='17'></td>
40
<td><input type='text' name='add_ip' size='10'></td>
39
<td><input type='text' name='add_ip' size='10'></td>
41
<input type='hidden' name='choix' value='new_mac'>
40
<input type='hidden' name='choix' value='new_mac'>
42
<td><input type='submit' value='<?echo"$l_add_to_list";?>'></td>
41
<td><input type='submit' value='<?echo"$l_add_to_list";?>'></td>
43
</tr></table>
42
</tr></table>
44
</form>
43
</form>
45
</td></tr>
44
</td></tr>
46
</table>
45
</table>
47
</BODY>
-
 
48
</HTML>
-
 
49
 
46