| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "connect2.php";
|
|
|
3 |
if (is_array($delete))
|
|
|
4 |
{
|
|
|
5 |
foreach($delete as $elem)
|
|
|
6 |
{
|
|
|
7 |
unlink($elem);
|
|
|
8 |
}
|
|
|
9 |
}
|
|
|
10 |
|
|
|
11 |
if ($reenter)
|
|
|
12 |
{
|
|
|
13 |
$query="update $Tab set $Feld = '$reenter' where ID = '$ID'";
|
|
|
14 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query<hr>");
|
|
|
15 |
?>
|
|
|
16 |
<script language="Javascript">
|
|
|
17 |
opener.location.href=opener.location.href;
|
|
|
18 |
</script>
|
|
|
19 |
<?
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
$query="SELECT Language,$Feld FROM $Tab where ID = '$ID'";
|
|
|
23 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query<hr>");
|
|
|
24 |
$zeile=mysql_fetch_array($result);
|
|
|
25 |
?>
|
|
|
26 |
<html>
|
|
|
27 |
<head>
|
|
|
28 |
<title><? echo $site ?></title>
|
|
|
29 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
30 |
<link rel=stylesheet type="text/css" href="redaktion.css">
|
|
|
31 |
<style type="text/css"><? require_once "redaktion.css"; ?></style>
|
|
|
32 |
</head>
|
|
|
33 |
|
|
|
34 |
<body bgcolor="#<? echo $webs[bgcolor_seite]; ?>" leftmargin="0" topmargin="0" marginwidth="00" marginheight="0" text="#000000">
|
|
|
35 |
<form name="form1" method="post" action="<? echo $self ?>">
|
|
|
36 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
37 |
<tr>
|
|
|
38 |
<td colspan="2">
|
|
|
39 |
<input type="submit" value="markierte Dateien löschen" class="button" name="action">
|
|
|
40 |
<input type="hidden" name="Tab" value="<? echo $Tab ?>">
|
|
|
41 |
<input type="hidden" name="Feld" value="<? echo $Feld ?>">
|
|
|
42 |
<input type="hidden" name="bild_dir" value="<? echo $bild_dir ?>">
|
|
|
43 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
44 |
</td>
|
|
|
45 |
|
|
|
46 |
<?
|
|
|
47 |
$image_Path=$webs[verzeichnis]."/images/".$bild_dir."/";
|
|
|
48 |
|
|
|
49 |
$handle=opendir($image_Path);
|
|
|
50 |
$counter = 0;
|
|
|
51 |
while ($file = readdir ($handle))
|
|
|
52 |
{
|
|
|
53 |
if ($file != "." && $file != ".." && $file != $zeile[$Feld] && strncmp ($ID."_".$zeile[Language]."_", $file, strpos ($file, "_" ,strpos ($file, "_"))) == 0)
|
|
|
54 |
{
|
|
|
55 |
$counter++;
|
|
|
56 |
$size= filesize ($image_Path.$file) >> 10;
|
|
|
57 |
$imgsize = GetImageSize ($image_Path.$file);
|
|
|
58 |
?>
|
|
|
59 |
<tr>
|
|
|
60 |
<td>
|
|
|
61 |
<?
|
|
|
62 |
if ($imgsize) {
|
|
|
63 |
?>
|
|
|
64 |
<img src="http://www.<? echo $site."/images/".$bild_dir."/".$file ?>" border="0" height="60">
|
|
|
65 |
<?
|
|
|
66 |
}
|
|
|
67 |
else
|
|
|
68 |
{
|
|
|
69 |
?>
|
|
|
70 |
|
|
|
71 |
<?
|
|
|
72 |
}
|
|
|
73 |
?>
|
|
|
74 |
</td>
|
|
|
75 |
<td width="100%">
|
|
|
76 |
<a href="http://www.<? echo $site."/images/".$bild_dir."/".$file ?>" target="blank">
|
|
|
77 |
<? echo $file ?>
|
|
|
78 |
</a><br>
|
|
|
79 |
<?
|
|
|
80 |
echo "$size KB";
|
|
|
81 |
if ($imgsize) { echo " ( $imgsize[0]x$imgsize[1] )"; }
|
|
|
82 |
?>
|
|
|
83 |
<br>
|
|
|
84 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
85 |
<tr>
|
|
|
86 |
<td><a href="<? echo $self ?>?reenter=<? echo $file ?>&Tab=<? echo $Tab ?>&Feld=<? echo $Feld ?>&bild_dir=<? echo $bild_dir ?>&ID=<? echo $ID ?>"><img src="../editor/images/tasklist.gif" alt="Datei einsetzten" border="0"></a></td>
|
|
|
87 |
<td><a href="<? echo $self ?>?delete[]=<? echo $image_Path.$file ?>&Tab=<? echo $Tab ?>&Feld=<? echo $Feld ?>&bild_dir=<? echo $bild_dir ?>&ID=<? echo $ID ?>"><img src="../editor/images/delete.gif" alt="Datei sofort löschen" border="0"></a></td>
|
|
|
88 |
<td>
|
|
|
89 |
<input type="checkbox" name="delete[]" value="<? echo $image_Path.$file ?>">
|
|
|
90 |
</td>
|
|
|
91 |
</tr>
|
|
|
92 |
</table>
|
|
|
93 |
</td>
|
|
|
94 |
</tr>
|
|
|
95 |
<tr><td colspan=2>
|
|
|
96 |
<hr noshade width="100%">
|
|
|
97 |
</td></tr>
|
|
|
98 |
<?
|
|
|
99 |
}
|
|
|
100 |
}
|
|
|
101 |
?>
|
|
|
102 |
<?
|
|
|
103 |
if ($counter == 0)
|
|
|
104 |
{
|
|
|
105 |
?>
|
|
|
106 |
<tr>
|
|
|
107 |
<td colspan=2>
|
|
|
108 |
<script language="Javascript">
|
|
|
109 |
alert("Es sind keine Dateien gespeichert.");
|
|
|
110 |
window.close();
|
|
|
111 |
</script>
|
|
|
112 |
</td>
|
|
|
113 |
</tr>
|
|
|
114 |
<?
|
|
|
115 |
}
|
|
|
116 |
?>
|
|
|
117 |
</table>
|
|
|
118 |
</form>
|
|
|
119 |
</body>
|
|
|
120 |
</html>
|