jablonka.czprosek.czf

is

Subversion Repositories:
[/] [trunk/] [html/] [del_ukon.php] - Blame information for rev 4

 

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 úkonu</title>
7</head>
8<link rel="stylesheet" type="text/css" href="style.css">
9</head>
10<body topmargin=0 leftmargin=10>
11 
12<?
13include("header.htm");
14require('grab_globals.lib.php');
15include ("fce.php");
16 
17$spojeni = MySQL_Connect($db_host, $db_user, $db_pass);
18MySQL_Select_DB($db_name);
19if(!@$action)
20{
21 
22$dotaz=MySQL_Query("SELECT * FROM ukony WHERE id='$id' ");
23$dotaz=MySQL_Fetch_Array($dotaz);
24 
25echo '
26<b>Opravdu chcete smazat tento úkon?</b><br>
27<br>
28<form action="del_ukon.php?action=del" method=POST>
29<table>
30 <tr>
31 <td class=text>Uživatel:</td><td><b>'.id_to_name($dotaz["clen"]).'</b></td>
32 </tr>
33 <tr>
34 <td class=text>Událost:</td><td class=text>'.id_to_udalost($dotaz["udalost"]).'</td>
35 </tr>
36 <tr>
37 <td class=text>Datum:</td><td class=text>'.sql2datum($dotaz["datum"]).'</td>
38 </tr>
39 <tr>
40 <td class=text>Předmět :</td><td class=text>'.id_to_ipecko($dotaz["predmet"]).'</td>
41 </tr>
42 <tr>
43 <td class=text>Adresa :</td><td class=text>'.id_to_adresa($dotaz["adresa"]).'</td>
44 </tr>
45 <tr>
46 <td class=text>Finance :</td><td class=text>'.id_to_finance($dotaz["finance"]).'</td>
47 </tr>
48 <tr>
49 <td class=text>Majetek :</td><td class=text>'.id_to_majetek($dotaz["majetek"]).'</td>
50 </tr>
51 <tr><td class=text>Komentář:</td><td><textarea class=fieldthin name="komentar" rows=3 cols=25>'.$dotaz["komentar"].'</textarea></td>
52 </tr>
53</table>
54 
55<br>
56<input class=field type="submit" name="OK" value="&nbsp;Smazat&nbsp;">
57<input name="id" type="hidden" value="'.$id.'">
58<input name="clen" type="hidden" value="'.$dotaz["clen"].'">
59</form>
60';
61}
62else
63{
64$result = MySQL_Query("DELETE FROM ukony WHERE id='$id'");
65 
66if (!$result) {
67echo "<br><b>Výsledek : ".mysql_error()."</b>";
68} else {
69echo '
70<br><b>Úkon uživatele <a class="odkaz" target="_self" href="clen.php?clen='.$clen.'">'.id_to_name($clen).'</a> byl úspěšně smazán!</b>";
71';
72}
73 
74echo '
75<br>
76<img src=images/arrow.jpg>&nbsp;<a href="javascript:history.go(-2)" class=odkaz>zpět</a>
77<img src=images/arrow.jpg>&nbsp;<a href="ukony.php" class=odkaz>zpět na úkony</a>
78';
79}
80 
81MySQL_Close($spojeni);
82?>
83</body>
84</html>

Powered by WebSVN 2.2.1