jablonka.czprosek.czf

is

Subversion Repositories:
[/] [trunk/] [html/] [del_adres.php] - Blame information for rev 5

 

Line No. Rev Author Line
12simandl<!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>db.jablonka.cz - Smazani adresy</title>
7</head>
8<link rel="stylesheet" type="text/css" href="style.css">
9</head>
10<body topmargin=0 leftmargin=10>
11<?
12include("header.htm");
13require('grab_globals.lib.php');
14include ("fce.php");
15$spojeni = MySQL_Connect($db_host, $db_user, $db_pass);
16MySQL_Select_DB($db_name);
17if(!@$action)
18{
19$dotaz=MySQL_Query("SELECT * FROM adresy WHERE id='$id' ");
20$dotaz=MySQL_Fetch_Array($dotaz);
21echo '
22<b>Opravdu chcete smazat adresu?</b><br>
23<br>
24<form action="del_adres.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>Město:</td><td><input class=field name="mesto" type="text" value="'.$dotaz["mesto"].'" size=25></td>
31 </tr>
32 <tr>
33 <td class=text>Ulice:</td><td><input class=field name="ulice" type="text" value="'.$dotaz["ulice"].'" size=25></td>
34 </tr>
35 <tr>
36 <td class=text>č.p.:</td><td><input class=field name="cp" type="text" value="'.$dotaz["cp"].'" size=25></td>
37 </tr>
38 <tr>
39 <td class=text>PSČ:</td><td><input class=field name="psc" type="text" value="'.$dotaz["psc"].'" size=25></td>
40 </tr>
41 <tr>
42 <td class=text>Byt:</td><td><input class=field name="byt" type="text" value="'.$dotaz["byt"].'" size=25></td>
43 </tr>
44 <tr>
45 <td class=text>šířka:</td><td><input class=field name="sirka" type="text" value="'.$dotaz["sirka"].'" size=25></td>
46 <td class=text>délka:</td><td><input class=field name="delka" type="text" value="'.$dotaz["delka"].'" size=25></td>
47 <td class=text>výška:</td><td><input class=field name="vyska" type="text" value="'.$dotaz["vyska"].'" size=25></td>
48 </tr>
49 <tr>
50 <td class=text>otočení:</td><td><input class=field name="otoceni" type="text" value="'.$dotaz["otoceni"].'" size=25></td>
51 <td class=text>náklon:</td><td><input class=field name="naklon" type="text" value="'.$dotaz["naklon"].'" size=25></td>
52 <td class=text>objekt:</td><td><input class=field name="objekt" type="text" value="'.id_to_objekt($dotaz["objekt"]).'" size=25></td>
53 </tr>
54 
55 <tr>
56 <td class=text></td><td><textarea class=fieldthin name="komentar" rows=10 cols=45>'.$dotaz["komentar"].'</textarea></td>
57 </tr>
58 
59</table>
60 
61<br>
62<input class=field type="submit" name="OK" value="&nbsp;Smazat&nbsp;">
63<input name="id" type="hidden" value="'.$id.'">
64<input name="clen" type="hidden" value="'.$dotaz["clen"].'">
65</form>
66';
67}
68else
69{
70MySQL_Query("DELETE FROM adresy WHERE id='$id'");
71echo '
72<br><b>Adresa uživatele '.id_to_name($clen).' byla smazána!</b>
73<br>
74<br>
75<img src=images/arrow.jpg>&nbsp;<a href="javascript:history.go(-2)" class=odkaz>zpět</a>
76';
77}
78 
79MySQL_Close($spojeni);
80?>
81</body>
82</html>

Powered by WebSVN 2.2.1