1 | 2 | simandl | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | | | <html> |
3 | | | <head> |
4 | | | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> |
5 | | | <style type="text/css" media="screen"> @import "style.css"; </style> |
6 | | | <title>Smazani IP adresy</title> |
7 | | | </head> |
8 | | | <link rel="stylesheet" type="text/css" href="style.css"> |
9 | | | </head> |
10 | | | <body topmargin=0 leftmargin=10> |
11 | | | <? |
12 | | | include("header.htm"); |
13 | | | require('grab_globals.lib.php'); |
14 | | | include ("fce.php"); |
15 | | | $spojeni = MySQL_Connect($db_host, $db_user, $db_pass); |
16 | | | MySQL_Select_DB($db_name); |
17 | | | if(!@$action) |
18 | | | { |
19 | | | $dotaz=MySQL_Query("SELECT * FROM ipecka WHERE id='$id' "); |
20 | | | $dotaz=MySQL_Fetch_Array($dotaz); |
21 | | | echo ' |
22 | | | <b>Opravdu chcete smazat adresu?</b><br> |
23 | | | <br> |
24 | | | <form action="del_ip.php?action=del" method=POST> |
25 | | | <table> |
26 | | | <tr> |
27 | | | <td class=text>Uživatel:</td><td><b>'.id_to_name($dotaz["clen"]).'</b></td> |
28 | | | </tr> |
29 | | | <tr> |
30 | | | <td class=text>Adresa:</td><td><b>'.id_to_adresa(clen_to_adresa($dotaz["clen"])).'</b></td> |
31 | | | </tr> |
32 | | | <tr> |
33 | | | <td class=text>DNS:</td><td><input class=field name="mesto" type="text" value="'.$dotaz["dns"].'" size=25></td> |
34 | | | </tr> |
35 | | | <tr> |
36 | | | <td class=text>MAC:</td><td><input class=field name="ulice" type="text" value="'.$dotaz["mac"].'" size=25></td> |
37 | | | </tr> |
38 | | | <tr> |
39 | | | <td class=text>IP:</td><td><input class=field name="cp" type="text" value="'.$dotaz["ip"].'" size=25></td> |
40 | | | </tr> |
41 | | | <tr><td class=text></td><td><textarea class=fieldthin name="komentar" rows=10 cols=45>'.$dotaz["komentar"].'</textarea></td></ |
42 | | | tr> |
43 | | | |
44 | | | </table> |
45 | | | |
46 | | | <br> |
47 | | | <input class=field type="submit" name="OK" value=" Smazat "> |
48 | | | <input name="id" type="hidden" value="'.$id.'"> |
49 | | | <input name="clen" type="hidden" value="'.$dotaz["clen"].'"> |
50 | | | </form> |
51 | | | '; |
52 | | | } |
53 | | | else |
54 | | | { |
55 | | | $result = MySQL_Query("DELETE FROM ipecka WHERE id='$id'"); |
56 | | | |
57 | | | if (!$result) { |
58 | | | echo "<br><b>Výsledek : ".mysql_error()."</b>"; |
59 | | | } else { |
60 | | | echo "<br><b>IP adresa uživatele ".id_to_name($clen)." byla úspěšně smazána!</b>"; |
61 | | | } |
62 | | | |
63 | | | echo ' |
64 | | | <br> |
65 | | | <br> |
66 | | | <img src=images/arrow.jpg> <a href="javascript:history.go(-2)" class=odkaz>zpět</a> |
67 | | | '; |
68 | | | } |
69 | | | |
70 | | | MySQL_Close($spojeni); |
71 | | | ?> |
72 | | | </body> |
73 | | | </html> |