| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "inhalt_functions.php";
|
|
|
3 |
?>
|
|
|
4 |
<html>
|
|
|
5 |
<head>
|
|
|
6 |
<title>Content-Management-System - Webagentur Niewerth</title>
|
|
|
7 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
8 |
<meta name="author" content="Webagentur Niewerth - www.weban.de">
|
|
|
9 |
<meta name="description" content="Redaktionssystem">
|
|
|
10 |
<meta name="robots" content="noindex">
|
|
|
11 |
<link rel="stylesheet" href="redaktion.css" type="text/css">
|
|
|
12 |
<style type="text/css"><? require_once "redaktion.css"?></style>
|
|
|
13 |
<script language="javascript" src="Farb_Assistent.js"></script>
|
|
|
14 |
<script language="javascript">
|
|
|
15 |
function call_editor(Feldname,properties)
|
|
|
16 |
{
|
|
|
17 |
properties=1023;
|
|
|
18 |
editor=window.open("editor/editor.php?properties="+properties,Feldname,"height=400,width=750,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");;
|
|
|
19 |
}
|
|
|
20 |
</script>
|
|
|
21 |
<style type="text/css">
|
|
|
22 |
<!--
|
|
|
23 |
table.input
|
|
|
24 |
{
|
|
|
25 |
border-width: 2px 1px 1px 2px;
|
|
|
26 |
border-top-color : #CCCCCC;
|
|
|
27 |
border-left-color : #CCCCCC;
|
|
|
28 |
border-bottom-color : #AAAAAA;
|
|
|
29 |
border-right-color : #AAAAAA;
|
|
|
30 |
border-style : inset;
|
|
|
31 |
background-color : #FFFFFF;
|
|
|
32 |
}
|
|
|
33 |
-->
|
|
|
34 |
</style>
|
|
|
35 |
</head>
|
|
|
36 |
|
|
|
37 |
<body bgcolor="#FFFFFF" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" >
|
|
|
38 |
<form method="post" action="#" name="formname" enctype="multipart/form-data">
|
|
|
39 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
40 |
<tr valign="top">
|
|
|
41 |
|
|
|
42 |
<td width="730" class="frame">
|
|
|
43 |
<? if ($action=="delete")
|
|
|
44 |
{
|
|
|
45 |
$query="SELECT * FROM $DB where File = $File order by $sort";
|
|
|
46 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query);
|
|
|
47 |
if (mysql_num_rows($result) == 0)
|
|
|
48 |
{
|
|
|
49 |
?>
|
|
|
50 |
<p class="error">Es sind keine Daten eingetragen !<input type="button" value="Zurück" onClick="document.location='page.php?action=edit&ID=<? echo $File ?>'" name="button322">
|
|
|
51 |
</p>
|
|
|
52 |
<p></p>
|
|
|
53 |
|
|
|
54 |
<?
|
|
|
55 |
}
|
|
|
56 |
else
|
|
|
57 |
{
|
|
|
58 |
?>
|
|
|
59 |
<table width="720" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
60 |
<tr bgcolor="#000096">
|
|
|
61 |
<td colspan="3" class="headline">Inhalt: Löschen</td>
|
|
|
62 |
</tr>
|
|
|
63 |
<tr>
|
|
|
64 |
<td width="6%" bgcolor="#000096"> </td>
|
|
|
65 |
<td width="88%" ><b><a href="<? echo $self?>?action=delete&sort=Titel&File=<? echo $File ?>">Titel</a>
|
|
|
66 |
/ <a href="<? echo $self?>?action=delete&sort=letzte_Aenderung_am&File=<? echo $File ?>">letzte
|
|
|
67 |
Änderung am</a> / <a href="<? echo $self?>?action=delete&sort=letzte_Aenderung_von&File=<? echo $File ?>"> von</a></b></td>
|
|
|
68 |
<td align="center" valign="middle" width="6%" bgcolor="#000096"> </td>
|
|
|
69 |
</tr>
|
|
|
70 |
<?
|
|
|
71 |
while ($zeile=mysql_fetch_array($result))
|
|
|
72 |
{
|
|
|
73 |
$zeile[von]=join(".",array_reverse(preg_split("/-/",$zeile[von])));
|
|
|
74 |
$zeile[bis]=join(".",array_reverse(preg_split("/-/",$zeile[bis])));
|
|
|
75 |
$zeile[Eingangsdatum]=join(".",array_reverse(preg_split("/-/",$zeile[Eingangsdatum])));
|
|
|
76 |
?>
|
|
|
77 |
<tr>
|
|
|
78 |
<td width="6%" bgcolor="#000096"> </td>
|
|
|
79 |
<td width="88%" ><? echo $zeile[Titel]?>
|
|
|
80 |
/
|
|
|
81 |
<?
|
|
|
82 |
$zeile[letzte_Aenderung_am]=preg_split("/ /",$zeile[letzte_Aenderung_am]);
|
|
|
83 |
$datum=join(".",array_reverse(preg_split("/-/",$zeile[letzte_Aenderung_am][0])));
|
|
|
84 |
$zeit=$zeile[letzte_Aenderung_am][1];
|
|
|
85 |
echo $datum;
|
|
|
86 |
?> <? echo $zeit; ?> / <? echo $zeile[letzte_Aenderung_von]?>
|
|
|
87 |
</td>
|
|
|
88 |
<td align="center" valign="middle" width="6%" bgcolor="#000096">
|
|
|
89 |
<input type="checkbox" name="ID[]" value="<? echo $zeile[ID] ?>">
|
|
|
90 |
</td>
|
|
|
91 |
</tr>
|
|
|
92 |
<?
|
|
|
93 |
}
|
|
|
94 |
?>
|
|
|
95 |
<tr align="right" bgcolor="#000096">
|
|
|
96 |
<td colspan="3">
|
|
|
97 |
<input type="hidden" name="File" value="<? echo $File ?>">
|
|
|
98 |
<input type="hidden" name="action" value='delete'>
|
|
|
99 |
<input type="submit" value="LÖSCHEN">
|
|
|
100 |
<input type="button" value="Abbrechen" onClick="document.location='page.php?action=edit&ID=<? echo $File ?>'" name="button2">
|
|
|
101 |
</td>
|
|
|
102 |
</tr>
|
|
|
103 |
</table>
|
|
|
104 |
<?
|
|
|
105 |
}
|
|
|
106 |
?>
|
|
|
107 |
<?
|
|
|
108 |
}
|
|
|
109 |
?>
|
|
|
110 |
<?
|
|
|
111 |
|
|
|
112 |
if ($action=="select_edit")
|
|
|
113 |
{
|
|
|
114 |
$query="SELECT * FROM $DB where File = $File order by $sort";
|
|
|
115 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query);
|
|
|
116 |
if (mysql_num_rows($result) == 0)
|
|
|
117 |
{
|
|
|
118 |
?>
|
|
|
119 |
<p class="error">Es sind keine Daten eingetragen !
|
|
|
120 |
<input type="button" value="Zurück" onClick="document.location='page.php?action=edit&ID=<? echo $File ?>'" name="button3222">
|
|
|
121 |
</p>
|
|
|
122 |
<p></p>
|
|
|
123 |
|
|
|
124 |
<?
|
|
|
125 |
}
|
|
|
126 |
else
|
|
|
127 |
{
|
|
|
128 |
?>
|
|
|
129 |
<table width="720" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
130 |
<tr bgcolor="#000099">
|
|
|
131 |
<td colspan="2" class="headline">Inhalt: Bearbeiten</td>
|
|
|
132 |
</tr>
|
|
|
133 |
<tr>
|
|
|
134 |
<td width="6%" bgcolor="#000096"> </td>
|
|
|
135 |
<td ><b><a href="<? echo $self ?>?action=select_edit&sort=Titel&File=<? echo $File ?>">Titel</a>
|
|
|
136 |
/ <a href="<? echo $self ?>?action=select_edit&sort=letzte_Aenderung_am&File=<? echo $File ?>">letzte
|
|
|
137 |
Änderung am</a> / <a href="<? echo $self ?>?action=select_edit&sort=letzte_Aenderung_von&File=<? echo $File ?>"> von</a></b></td>
|
|
|
138 |
</tr>
|
|
|
139 |
<?
|
|
|
140 |
while ($zeile=mysql_fetch_array($result))
|
|
|
141 |
{
|
|
|
142 |
$zeile[von]=join(".",array_reverse(preg_split("/-/",$zeile[von])));
|
|
|
143 |
$zeile[bis]=join(".",array_reverse(preg_split("/-/",$zeile[bis])));
|
|
|
144 |
$zeile[Eingangsdatum]=join(".",array_reverse(preg_split("/-/",$zeile[Eingangsdatum])));
|
|
|
145 |
?>
|
|
|
146 |
<tr>
|
|
|
147 |
<td width="6%" bgcolor="#000096"> </td>
|
|
|
148 |
<td>
|
|
|
149 |
<a href="<? echo $self ?>?action=edit&ID=<? echo $zeile[ID] ?>&File=<? echo $File ?>">
|
|
|
150 |
<? echo $zeile[Titel]?> /
|
|
|
151 |
<?
|
|
|
152 |
$zeile[letzte_Aenderung_am]=preg_split("/ /",$zeile[letzte_Aenderung_am]);
|
|
|
153 |
$datum=join(".",array_reverse(preg_split("/-/",$zeile[letzte_Aenderung_am][0])));
|
|
|
154 |
$zeit=$zeile[letzte_Aenderung_am][1];
|
|
|
155 |
echo $datum;
|
|
|
156 |
?> <? echo $zeit; ?> / <? echo $zeile[letzte_Aenderung_von]?>
|
|
|
157 |
</a>
|
|
|
158 |
</td>
|
|
|
159 |
</tr>
|
|
|
160 |
<?
|
|
|
161 |
}
|
|
|
162 |
?>
|
|
|
163 |
<tr bgcolor="#000096" align="right">
|
|
|
164 |
<td colspan="2">
|
|
|
165 |
<input type="hidden" name="action" value='edit'>
|
|
|
166 |
<input type="button" value="Abbrechen" onClick="document.location='page.php?action=edit&ID=<? echo $File ?>'" name="button">
|
|
|
167 |
</td>
|
|
|
168 |
</tr>
|
|
|
169 |
</table>
|
|
|
170 |
<?
|
|
|
171 |
}
|
|
|
172 |
?>
|
|
|
173 |
<?
|
|
|
174 |
}
|
|
|
175 |
?> <?
|
|
|
176 |
if ($action=="edit")
|
|
|
177 |
{
|
|
|
178 |
if ($ID)
|
|
|
179 |
{
|
|
|
180 |
$query="SELECT * FROM $DB where ID = $ID and File = $File";
|
|
|
181 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query);
|
|
|
182 |
$zeile=mysql_fetch_array($result);
|
|
|
183 |
}
|
|
|
184 |
$zeile[von]=join(".",array_reverse(preg_split("/-/",$zeile[von])));
|
|
|
185 |
$zeile[bis]=join(".",array_reverse(preg_split("/-/",$zeile[bis])));
|
|
|
186 |
$zeile[Eingangsdatum]=join(".",array_reverse(preg_split("/-/",$zeile[Eingangsdatum])));
|
|
|
187 |
?>
|
|
|
188 |
<table width="720" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
189 |
<tr bgcolor="#000096">
|
|
|
190 |
<td colspan="2" class="headline" height="27">Inhalt:
|
|
|
191 |
<?
|
|
|
192 |
if ($ID)
|
|
|
193 |
{
|
|
|
194 |
?>
|
|
|
195 |
Bearbeiten
|
|
|
196 |
<?
|
|
|
197 |
}
|
|
|
198 |
else
|
|
|
199 |
{
|
|
|
200 |
?>
|
|
|
201 |
Neueintrag
|
|
|
202 |
<?
|
|
|
203 |
}
|
|
|
204 |
?>
|
|
|
205 |
von Titel (HTML Name)</td>
|
|
|
206 |
</tr>
|
|
|
207 |
<tr>
|
|
|
208 |
<td width="104" bgcolor="#000096" class="headline">Titel<font face="Courier New, Courier, mono"></font>:
|
|
|
209 |
</td>
|
|
|
210 |
<td valign="top" width="598" bgcolor="#FFFFFF">
|
|
|
211 |
<?
|
|
|
212 |
$query_lfdnr="SELECT ID FROM $DB where File = $File order by $sort";
|
|
|
213 |
$result_lfdnr = mysql_query ($query_lfdnr) or die (mysql_errno().": ".mysql_error()."<hr>".$query_lfdnr);
|
|
|
214 |
$lfdnr=mysql_num_rows($result_lfdnr)+1;
|
|
|
215 |
if (!$ID)
|
|
|
216 |
{
|
|
|
217 |
$zeile[Titel]="Eintrag ".$lfdnr;
|
|
|
218 |
}
|
|
|
219 |
?>
|
|
|
220 |
<input type="text" name="Titel" value="<? echo $zeile[Titel]?>">
|
|
|
221 |
<!-- (Vorgeschlagen wird hier Titel+lfd.Nr. - Pflichtfeld) --></td>
|
|
|
222 |
</tr>
|
|
|
223 |
<tr>
|
|
|
224 |
<td bgcolor="#000096" class="headline" rowspan="2" valign="top" width="104">Überschrift:</td>
|
|
|
225 |
<td width="598"><b>
|
|
|
226 |
<input type="text" name="Ueberschrift" size="20" maxlength="255" value="<? echo $zeile[Ueberschrift]?>">
|
|
|
227 |
</b></td>
|
|
|
228 |
</tr>
|
|
|
229 |
<tr>
|
|
|
230 |
<td width="598"><b> <font face="Arial, Helvetica, sans-serif" size="2">Farbe:
|
|
|
231 |
#
|
|
|
232 |
<input type="text" name="Ueberschrift_Farbe" size="6" maxlength="6" value="<? echo $zeile[Ueberschrift_Farbe] ?>">
|
|
|
233 |
<input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.Ueberschrift_Farbe.value,'document.formname.Ueberschrift_Farbe.value');">
|
|
|
234 |
</font></b><b>Art:
|
|
|
235 |
<select name="Ueberschrift_Art" size="1">
|
|
|
236 |
<option value="Arial, Helvetica, sans-serif"<? if ($zeile[Ueberschrift_Art] == "Arial, Helvetica, sans-serif") {echo " selected";} ?>>Arial</option>
|
|
|
237 |
<option value="Times New Roman, Times, serif"<? if ($zeile[Ueberschrift_Art] == "Times New Roman, Times, serif") {echo " selected";} ?>>Times
|
|
|
238 |
New Roman</option>
|
|
|
239 |
<option value="Courier New, Courier, mono"<? if ($zeile[Ueberschrift_Art] == "Courier New, Courier, mono") {echo " selected";} ?>>Courier</option>
|
|
|
240 |
<option value="Verdana, Arial, Helvetica, sans-serif"<? if ($zeile[Ueberschrift_Art] == "Verdana, Arial, Helvetica, sans-serif") {echo " selected";} ?>>Verdana</option>
|
|
|
241 |
</select>
|
|
|
242 |
</b><b>Größe:
|
|
|
243 |
<select name="Ueberschrift_Groesse" size="1">
|
|
|
244 |
<option<? if ($zeile[Ueberschrift_Groesse] == "1") {echo " selected";} ?>>1</option>
|
|
|
245 |
<option<? if ($zeile[Ueberschrift_Groesse] == "2") {echo " selected";} ?>>2</option>
|
|
|
246 |
<option<? if ($zeile[Ueberschrift_Groesse] == "3") {echo " selected";} ?>>3</option>
|
|
|
247 |
<option<? if ($zeile[Ueberschrift_Groesse] == "4") {echo " selected";} ?>>4</option>
|
|
|
248 |
<option<? if ($zeile[Ueberschrift_Groesse] == "5") {echo " selected";} ?>>5</option>
|
|
|
249 |
<option<? if ($zeile[Ueberschrift_Groesse] == "6") {echo " selected";} ?>>6</option>
|
|
|
250 |
</select>
|
|
|
251 |
</b></td>
|
|
|
252 |
</tr>
|
|
|
253 |
<!--
|
|
|
254 |
<tr>
|
|
|
255 |
<td width="104" bgcolor="#000096" class="headline" valign="top">Link1:<br>
|
|
|
256 |
</td>
|
|
|
257 |
<td valign="top" width="598" bgcolor="#FFFFFF" class="frame">
|
|
|
258 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
259 |
<tr>
|
|
|
260 |
<td>Bezeichnung: </td>
|
|
|
261 |
<td nowrap>
|
|
|
262 |
<input type="text" name="Link1Bezeichn" size="40" value="<? echo $zeile[Link1Bezeichn] ?>">
|
|
|
263 |
Unter Text bitte <Link1> einfügen</td>
|
|
|
264 |
</tr>
|
|
|
265 |
<tr>
|
|
|
266 |
<td nowrap>URL/Adresse: </td>
|
|
|
267 |
<td>
|
|
|
268 |
<input type="text" name="Link1URL" size="40" value="<? echo $zeile[Link1URL] ?>">
|
|
|
269 |
(mit http://)
|
|
|
270 |
<select name="Link1target">
|
|
|
271 |
<option value="_self" <? if ($zeile[Link1target] == "_self") {echo " selected";} ?>>Selber
|
|
|
272 |
Frame</option>
|
|
|
273 |
<option value="_blank" <? if ($zeile[Link1target] == "_blank") {echo " selected";} ?>>Neues
|
|
|
274 |
Fenster</option>
|
|
|
275 |
<option value="_top" <? if ($zeile[Link1target] == "_top") {echo " selected";} ?>>Selbes
|
|
|
276 |
Fenster</option>
|
|
|
277 |
</select>
|
|
|
278 |
</td>
|
|
|
279 |
</tr>
|
|
|
280 |
</table>
|
|
|
281 |
</td>
|
|
|
282 |
</tr>
|
|
|
283 |
<tr>
|
|
|
284 |
<td width="104" bgcolor="#000096" class="headline" valign="top">Link2:</td>
|
|
|
285 |
<td valign="top" width="598" bgcolor="#FFFFFF" class="frame">
|
|
|
286 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
287 |
<tr>
|
|
|
288 |
<td nowrap>Bezeichnung: </td>
|
|
|
289 |
<td nowrap>
|
|
|
290 |
<input type="text" name="Link2Bezeichn" size="40" value="<? echo $zeile[Link2Bezeichn] ?>">
|
|
|
291 |
Unter Text bitte <Link2> einfügen</td>
|
|
|
292 |
</tr>
|
|
|
293 |
<tr>
|
|
|
294 |
<td nowrap>URL/Adresse:</td>
|
|
|
295 |
<td>
|
|
|
296 |
<input type="text" name="Link2URL" size="40" value="<? echo $zeile[Link2URL] ?>">
|
|
|
297 |
(mit http://)
|
|
|
298 |
<select name="Link2target">
|
|
|
299 |
<option value="_self" <? if ($zeile[Link2target] == "_self") {echo " selected";} ?>>Selber
|
|
|
300 |
Frame</option>
|
|
|
301 |
<option value="_blank" <? if ($zeile[Link2target] == "_blank") {echo " selected";} ?>>Neues
|
|
|
302 |
Fenster</option>
|
|
|
303 |
<option value="_top" <? if ($zeile[Link2target] == "_top") {echo " selected";} ?>>Selbes
|
|
|
304 |
Fenster</option>
|
|
|
305 |
</select>
|
|
|
306 |
</td>
|
|
|
307 |
</tr>
|
|
|
308 |
</table>
|
|
|
309 |
</td>
|
|
|
310 |
</tr>
|
|
|
311 |
<tr>
|
|
|
312 |
<td width="104" bgcolor="#000096" class="headline" valign="top">Link3:</td>
|
|
|
313 |
<td valign="top" width="598" bgcolor="#FFFFFF" class="frame">
|
|
|
314 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
315 |
<tr>
|
|
|
316 |
<td nowrap>Bezeichnung: </td>
|
|
|
317 |
<td nowrap>
|
|
|
318 |
<input type="text" name="Link3Bezeichn" size="40" value="<? echo $zeile[Link3Bezeichn] ?>">
|
|
|
319 |
Unter Text bitte <Link2> einfügen</td>
|
|
|
320 |
</tr>
|
|
|
321 |
<tr>
|
|
|
322 |
<td nowrap>URL/Adresse:</td>
|
|
|
323 |
<td>
|
|
|
324 |
<input type="text" name="Link3URL" size="40" value="<? echo $zeile[Link3URL] ?>">
|
|
|
325 |
(mit http://)
|
|
|
326 |
<select name="Link3target">
|
|
|
327 |
<option value="_self" <? if ($zeile[Link3target] == "_self") {echo " selected";} ?>>Selber
|
|
|
328 |
Frame</option>
|
|
|
329 |
<option value="_blank" <? if ($zeile[Link3target] == "_blank") {echo " selected";} ?>>Neues
|
|
|
330 |
Fenster</option>
|
|
|
331 |
<option value="_top" <? if ($zeile[Link3target] == "_top") {echo " selected";} ?>>Selbes
|
|
|
332 |
Fenster</option>
|
|
|
333 |
</select>
|
|
|
334 |
</td>
|
|
|
335 |
</tr>
|
|
|
336 |
</table>
|
|
|
337 |
</td>
|
|
|
338 |
</tr>
|
|
|
339 |
-->
|
|
|
340 |
<tr>
|
|
|
341 |
<td width="104" bgcolor="#000096" class="headline" valign="top">Text: </td>
|
|
|
342 |
<td valign="top" width="598" bgcolor="#FFFFFF">
|
|
|
343 |
<table class="input" cellspacing="0" cellpadding="0" width="100%" height="60px">
|
|
|
344 |
<tr>
|
|
|
345 |
<td valign="top" id="Text_view" onClick="call_editor('Text')">
|
|
|
346 |
<? if (!$zeile[Text]) {?>
|
|
|
347 |
|
|
|
348 |
<? } else { echo $zeile[Text]; } ?>
|
|
|
349 |
</td>
|
|
|
350 |
</tr>
|
|
|
351 |
</table>
|
|
|
352 |
<input type="hidden" name="Text" value="<? echo $zeile[Text] ?>">
|
|
|
353 |
<!--<b>Farbe: <font face="Arial, Helvetica, sans-serif" size="2">#
|
|
|
354 |
<input type="text" name="Text_Farbe" size="6" maxlength="6" value="<? echo $zeile[Text_Farbe] ?>">
|
|
|
355 |
<input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.Text_Farbe.value,'document.formname.Text_Farbe.value');">
|
|
|
356 |
</font></b>-->
|
|
|
357 |
</td>
|
|
|
358 |
</tr>
|
|
|
359 |
<tr>
|
|
|
360 |
<td width="104" bgcolor="#000096" valign="top" bordercolordark="#666666">
|
|
|
361 |
<b><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Bild:</font></b></td>
|
|
|
362 |
<td bgcolor="#FFFFFF" width="598" valign="middle" bordercolordark="#666666">
|
|
|
363 |
<?
|
|
|
364 |
$image_name="Bild_URL";
|
|
|
365 |
$image_Path="../$site/images/";
|
|
|
366 |
if ($zeile[$image_name] != "")
|
|
|
367 |
{
|
|
|
368 |
?>
|
|
|
369 |
<input type="radio" name="_<? echo $image_name ?>" value="<? echo $zeile[$image_name]; ?>" <? if ($zeile[$image_name] != "") {echo "checked";}?>>
|
|
|
370 |
<?
|
|
|
371 |
echo "$zeile[$image_name]";
|
|
|
372 |
$size= filesize ($image_Path.$zeile[$image_name]) >> 10;
|
|
|
373 |
$imgsize = GetImageSize ($image_Path.$zeile[$image_name]);
|
|
|
374 |
echo " ( $size KB $imgsize[0]x$imgsize[1])<BR>";
|
|
|
375 |
}
|
|
|
376 |
?>
|
|
|
377 |
<input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>>
|
|
|
378 |
kein Bild<br>
|
|
|
379 |
<input type="radio" name="_<? echo $image_name ?>" value="2">
|
|
|
380 |
<input type="File" name="<? echo $image_name ?>" size="17" maxlength="255" onFocus="this.form._<? echo $image_name ?>[<? if ($zeile[$image_name] != "") {echo "2";} else {echo "1";} ?>].checked=true;">
|
|
|
381 |
<input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>">
|
|
|
382 |
</td>
|
|
|
383 |
</tr>
|
|
|
384 |
<tr>
|
|
|
385 |
<td width="104" bgcolor="#000096" valign="middle" bordercolordark="#666666">
|
|
|
386 |
<b><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Bildtext:</font></b></td>
|
|
|
387 |
<td bgcolor="#FFFFFF" width="598" bordercolordark="#666666"><font face="Arial, Helvetica, sans-serif" size="2">
|
|
|
388 |
<input type="text" name="Bild_Text" size="30" maxlength="255" value="<? echo $zeile[Bild_Text]?>">
|
|
|
389 |
</font></td>
|
|
|
390 |
</tr>
|
|
|
391 |
<tr>
|
|
|
392 |
<td bgcolor="#000096" class="headline" width="104"><b><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF">Bildposition:</font></b></td>
|
|
|
393 |
<td valign="top" width="598" bgcolor="#FFFFFF">
|
|
|
394 |
<select name="Bild_Pos">
|
|
|
395 |
<option<? if ($zeile[Bild_Pos] == "0") {echo " selected";} ?> value="0">oben</option>
|
|
|
396 |
<option<? if ($zeile[Bild_Pos] == "1") {echo " selected";} ?> value="1">links</option>
|
|
|
397 |
<option<? if ($zeile[Bild_Pos] == "2") {echo " selected";} ?> value="2">rechts</option>
|
|
|
398 |
</select>
|
|
|
399 |
</td>
|
|
|
400 |
</tr>
|
|
|
401 |
<tr>
|
|
|
402 |
<td bgcolor="#000096" class="headline" width="104" nowrap>erstellt:</td>
|
|
|
403 |
<td width="598">am:
|
|
|
404 |
<?
|
|
|
405 |
$zeile[erstellt_am]=preg_split("/ /",$zeile[erstellt_am]);
|
|
|
406 |
$datum=join(".",array_reverse(preg_split("/-/",$zeile[erstellt_am][0])));
|
|
|
407 |
$zeit=$zeile[erstellt_am][1];
|
|
|
408 |
?>
|
|
|
409 |
<?
|
|
|
410 |
echo $datum;
|
|
|
411 |
?>
|
|
|
412 |
um:
|
|
|
413 |
<?
|
|
|
414 |
echo $zeit;
|
|
|
415 |
?>
|
|
|
416 |
Uhr von:
|
|
|
417 |
<? echo $zeile[erstellt_von] ?>
|
|
|
418 |
</td>
|
|
|
419 |
</tr>
|
|
|
420 |
<tr>
|
|
|
421 |
<td bgcolor="#000096" class="headline" width="104" nowrap>letzte Änderung:</td>
|
|
|
422 |
<td width="598">am:
|
|
|
423 |
<?
|
|
|
424 |
$zeile[letzte_Aenderung_am]=preg_split("/ /",$zeile[letzte_Aenderung_am]);
|
|
|
425 |
$datum=join(".",array_reverse(preg_split("/-/",$zeile[letzte_Aenderung_am][0])));
|
|
|
426 |
$zeit=$zeile[letzte_Aenderung_am][1];
|
|
|
427 |
?>
|
|
|
428 |
<?
|
|
|
429 |
echo $datum;
|
|
|
430 |
?>
|
|
|
431 |
um:
|
|
|
432 |
<?
|
|
|
433 |
echo $zeit;
|
|
|
434 |
?>
|
|
|
435 |
Uhr von:
|
|
|
436 |
<? echo $zeile[letzte_Aenderung_von] ?>
|
|
|
437 |
</td>
|
|
|
438 |
</tr>
|
|
|
439 |
<tr bgcolor="#000099">
|
|
|
440 |
<td colspan=2 align="right">
|
|
|
441 |
<input type="hidden" name="File" value="<? echo $File ?>">
|
|
|
442 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
443 |
<input type="hidden" name="action" value="update">
|
|
|
444 |
<input type="submit" value="OK">
|
|
|
445 |
<input type="button" value="Abbrechen" onClick="document.location='page.php?action=edit&ID=<? echo $File ?>'">
|
|
|
446 |
</td>
|
|
|
447 |
</tr>
|
|
|
448 |
</table>
|
|
|
449 |
<?
|
|
|
450 |
}
|
|
|
451 |
?> </td>
|
|
|
452 |
</tr>
|
|
|
453 |
</table>
|
|
|
454 |
</form>
|
|
|
455 |
</body>
|
|
|
456 |
</html>
|