| 1 |
lars |
1 |
<?
|
|
|
2 |
$self=basename($PHP_SELF);
|
|
|
3 |
$tab="news";
|
|
|
4 |
define ("modul_name", "news");
|
|
|
5 |
define ("tool_name", "news");
|
|
|
6 |
require_once "../Online-Shop/connect2.php";
|
|
|
7 |
|
|
|
8 |
/*
|
|
|
9 |
foreach(array_keys($webs) as $elem)
|
|
|
10 |
{
|
|
|
11 |
if (!is_numeric($elem))
|
|
|
12 |
{
|
|
|
13 |
echo "$elem : $webs[$elem]<br>";
|
|
|
14 |
}
|
|
|
15 |
}
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
$subtabellen=array(
|
|
|
19 |
/* Beispiel für eine Sub-Tabelle
|
|
|
20 |
array(
|
|
|
21 |
"name" => "Suchbegriffe",
|
|
|
22 |
"foreign_key" => "Firmenverzeichnis",
|
|
|
23 |
"insert" => true,
|
|
|
24 |
"delete" => true
|
|
|
25 |
)
|
|
|
26 |
*/
|
|
|
27 |
);
|
|
|
28 |
|
|
|
29 |
$HTTP_POST_VARS[gueltig_von]=human2date($HTTP_POST_VARS[gueltig_von]);
|
|
|
30 |
$HTTP_POST_VARS[gueltig_bis]=human2date($HTTP_POST_VARS[gueltig_bis]);
|
|
|
31 |
|
|
|
32 |
if ($action=="update")
|
|
|
33 |
{
|
|
|
34 |
if (!$ID)
|
|
|
35 |
{ // insert Dummy-Entry
|
|
|
36 |
$query = "insert into $tab (erstellt_am,erstellt_von) VALUES (NOW(),'$PHP_AUTH_USER')";
|
|
|
37 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
38 |
$ID=mysql_insert_id();
|
|
|
39 |
// subtabellen versorgen
|
|
|
40 |
foreach($subtabellen as $elem)
|
|
|
41 |
{
|
|
|
42 |
if ($elem[insert])
|
|
|
43 |
{
|
|
|
44 |
$query = "insert into $elem[name] ($elem[foreign_key],erstellt_am,erstellt_von) VALUES ($ID,NOW(),'$PHP_AUTH_USER')";
|
|
|
45 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
46 |
}
|
|
|
47 |
}
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
unset($HTTP_POST_VARS[action]);
|
|
|
51 |
unset($HTTP_POST_VARS[ID]);
|
|
|
52 |
|
|
|
53 |
foreach(array_keys($HTTP_POST_VARS) as $elem)
|
|
|
54 |
{
|
|
|
55 |
if ($elem[0] == "_")
|
|
|
56 |
{
|
|
|
57 |
unset($HTTP_POST_VARS[$elem]);
|
|
|
58 |
$button=$$elem;
|
|
|
59 |
$elem=substr($elem,1);
|
|
|
60 |
$Pfad=$HTTP_POST_VARS[$elem."_Pfad"];
|
|
|
61 |
unset($HTTP_POST_VARS[$elem."_Pfad"]);
|
|
|
62 |
$image=$$elem;
|
|
|
63 |
$image_name=$elem."_name";
|
|
|
64 |
$image_name=urlencode($$image_name);
|
|
|
65 |
switch ($button)
|
|
|
66 |
{
|
|
|
67 |
case 0:
|
|
|
68 |
break;
|
|
|
69 |
case 1:
|
|
|
70 |
$HTTP_POST_VARS[$elem]='';
|
|
|
71 |
break;
|
|
|
72 |
case 2:
|
|
|
73 |
//$image_name=$ID."_".$image_name;
|
|
|
74 |
$image_name=$ID.strrchr($image_name,".");
|
|
|
75 |
$HTTP_POST_VARS[$elem]=$image_name;
|
|
|
76 |
copy($image,$Pfad.$image_name);
|
|
|
77 |
break;
|
|
|
78 |
default:
|
|
|
79 |
break;
|
|
|
80 |
}
|
|
|
81 |
}
|
|
|
82 |
}
|
|
|
83 |
$names=array();
|
|
|
84 |
foreach(array_keys($HTTP_POST_VARS) as $elem)
|
|
|
85 |
{
|
|
|
86 |
array_push($names,"$elem='$HTTP_POST_VARS[$elem]'");
|
|
|
87 |
}
|
|
|
88 |
$query="update $tab set ".join($names,', ');
|
|
|
89 |
$query=$query.", letzte_Aenderung_am=NOW(), letzte_Aenderung_von='$PHP_AUTH_USER' where ID = '$ID'";
|
|
|
90 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
91 |
header("Location: ".$self);
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
if ($action=="delete")
|
|
|
95 |
{
|
|
|
96 |
if ($ID)
|
|
|
97 |
{
|
|
|
98 |
$condition=array();
|
|
|
99 |
foreach ($ID as $elem)
|
|
|
100 |
{
|
|
|
101 |
array_push($condition," ID = '$elem'");
|
|
|
102 |
}
|
|
|
103 |
$cond=join(" or ",$condition);
|
|
|
104 |
$query = "DELETE FROM $tab WHERE $cond";
|
|
|
105 |
$result = mysql_query ("$query") or die (mysql_errno().": ".mysql_error());
|
|
|
106 |
|
|
|
107 |
// subtabellen bearbeiten
|
|
|
108 |
foreach($subtabellen as $elem)
|
|
|
109 |
{
|
|
|
110 |
if ($elem[delete])
|
|
|
111 |
{
|
|
|
112 |
$condition=array();
|
|
|
113 |
foreach ($ID as $elem2) { array_push($condition," $elem[foreign_key] = '$elem2'"); }
|
|
|
114 |
$cond=join(" or ",$condition);
|
|
|
115 |
|
|
|
116 |
$query = "DELETE FROM $elem[name] WHERE $cond";
|
|
|
117 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
118 |
}
|
|
|
119 |
}
|
|
|
120 |
// ende subtabellen bearbeiten
|
|
|
121 |
|
|
|
122 |
header("Location: ".$self);
|
|
|
123 |
}
|
|
|
124 |
}
|
|
|
125 |
if (!$action)
|
|
|
126 |
{
|
|
|
127 |
$action="select_edit";
|
|
|
128 |
}
|
|
|
129 |
if (!$sort) {$sort='ueberschrift';}
|
|
|
130 |
?>
|
|
|
131 |
<html>
|
|
|
132 |
<head>
|
|
|
133 |
<title>Vorlage: Redaktionssystem</title>
|
|
|
134 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
135 |
<link rel=stylesheet type="text/css" href="../buttons.css">
|
|
|
136 |
<script language="javascript" src="checkDate.js"></script>
|
|
|
137 |
<script language="JavaScript">
|
|
|
138 |
<!--
|
|
|
139 |
function MM_swapImgRestore() { //v3.0
|
|
|
140 |
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
function MM_preloadImages() { //v3.0
|
|
|
144 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
|
|
145 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
|
|
146 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
function MM_findObj(n, d) { //v4.01
|
|
|
150 |
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|
|
151 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
|
|
152 |
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|
|
153 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|
|
154 |
if(!x && d.getElementById) x=d.getElementById(n); return x;
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
function MM_swapImage() { //v3.0
|
|
|
158 |
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
|
|
|
159 |
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
|
|
|
160 |
}
|
|
|
161 |
//-->
|
|
|
162 |
</script>
|
|
|
163 |
<script language="JavaScript" src="../checkDate.js"></script>
|
|
|
164 |
<meta name="description" content="Redaktionssystem">
|
|
|
165 |
<meta name="author" content="Webagentur Niewerth">
|
|
|
166 |
<meta name="robots" content="noindex">
|
|
|
167 |
</head>
|
|
|
168 |
|
|
|
169 |
<body bgcolor="#FFFFFF" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" onLoad="MM_preloadImages('../images/navigation/bt_neu_f2.gif','../images/navigation/bt_delete_f2.gif','../images/navigation/bt_bearbeiten_f2.gif')" text="#000000">
|
|
|
170 |
<form method="post" action="<? echo $self ?>" name="formname" enctype="multipart/form-data">
|
|
|
171 |
<table width="662" border="0" cellspacing="0" cellpadding="0">
|
|
|
172 |
<tr valign="top">
|
|
|
173 |
<td width="585">
|
|
|
174 |
<!-- Auswahl Löschen START -->
|
|
|
175 |
<?
|
|
|
176 |
if ($action=="delete")
|
|
|
177 |
{
|
|
|
178 |
$query="SELECT * FROM $tab ";
|
|
|
179 |
$query=$query."order by $sort";
|
|
|
180 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
181 |
if (mysql_num_rows($result) == 0)
|
|
|
182 |
{
|
|
|
183 |
?>
|
|
|
184 |
<p class="error">Es sind keine Daten eingetragen !</p>
|
|
|
185 |
<p></p>
|
|
|
186 |
<?
|
|
|
187 |
}
|
|
|
188 |
else
|
|
|
189 |
{
|
|
|
190 |
?>
|
|
|
191 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
192 |
<tr>
|
|
|
193 |
<td colspan="2" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>">News:
|
|
|
194 |
Löschen</td>
|
|
|
195 |
</tr>
|
|
|
196 |
<?
|
|
|
197 |
while ($zeile=mysql_fetch_array($result))
|
|
|
198 |
{
|
|
|
199 |
?>
|
|
|
200 |
<tr>
|
|
|
201 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><a href="<? echo $self?>?action=edit&ID=<? echo $zeile[ID]; ?>">
|
|
|
202 |
<? echo $zeile[ueberschrift]?>
|
|
|
203 |
</a> </td>
|
|
|
204 |
<td width="5%" align="center" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
205 |
<input type="checkbox" name="ID[]" value="<? echo $zeile[ID] ?>">
|
|
|
206 |
</td>
|
|
|
207 |
</tr>
|
|
|
208 |
<?
|
|
|
209 |
}
|
|
|
210 |
?>
|
|
|
211 |
<tr>
|
|
|
212 |
<td colspan="2" align="right" bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
213 |
<a href="<? echo $self?>?action=edit&ID=<? echo $zeile[ID]; ?>">
|
|
|
214 |
<? echo $zeile[Vorname]?>
|
|
|
215 |
</a>
|
|
|
216 |
<input type="hidden" name="action" value='delete'>
|
|
|
217 |
<input type="submit" value="LÖSCHEN">
|
|
|
218 |
<input type="reset" name="Button22" value="Zurücksetzen">
|
|
|
219 |
</td>
|
|
|
220 |
</tr>
|
|
|
221 |
</table>
|
|
|
222 |
<?
|
|
|
223 |
}
|
|
|
224 |
?>
|
|
|
225 |
<?
|
|
|
226 |
}
|
|
|
227 |
?>
|
|
|
228 |
<!-- Auswahl Löschen ENDE -->
|
|
|
229 |
<!-- Auswahl SELECT_EDIT START -->
|
|
|
230 |
<?
|
|
|
231 |
|
|
|
232 |
if ($action=="select_edit")
|
|
|
233 |
{
|
|
|
234 |
$query="SELECT * FROM $tab ";
|
|
|
235 |
$query=$query."order by $sort";
|
|
|
236 |
|
|
|
237 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
238 |
if (mysql_num_rows($result) == 0)
|
|
|
239 |
{
|
|
|
240 |
?>
|
|
|
241 |
<p class="error">Es sind keine
|
|
|
242 |
Daten eingetragen !</p>
|
|
|
243 |
<p></p>
|
|
|
244 |
<?
|
|
|
245 |
}
|
|
|
246 |
else
|
|
|
247 |
{
|
|
|
248 |
?>
|
|
|
249 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
250 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
251 |
<td class="headline" colspan="2" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>">News:
|
|
|
252 |
Bearbeiten</font></td>
|
|
|
253 |
</tr>
|
|
|
254 |
<!-- <tr>
|
|
|
255 |
<td colspan="2"><a href="<? echo $self ?>?action=select_edit&sort=name">Name</a>,
|
|
|
256 |
<a href="<? echo $self ?>?action=select_edit&sort=plz">PLZ</a>
|
|
|
257 |
<a href="<? echo $self ?>?action=select_edit&sort=ort">Ort</a></td>
|
|
|
258 |
</tr>-->
|
|
|
259 |
<?
|
|
|
260 |
while ($zeile=mysql_fetch_array($result))
|
|
|
261 |
{
|
|
|
262 |
?>
|
|
|
263 |
<tr>
|
|
|
264 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><a href="<? echo $self?>?action=edit&ID=<? echo $zeile[ID]; ?>">
|
|
|
265 |
<? echo $zeile[ueberschrift] ?></a></td>
|
|
|
266 |
</tr>
|
|
|
267 |
<?
|
|
|
268 |
}
|
|
|
269 |
?>
|
|
|
270 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
271 |
<td colspan="2">
|
|
|
272 |
<div align="right"> </div>
|
|
|
273 |
</td>
|
|
|
274 |
</tr>
|
|
|
275 |
</table>
|
|
|
276 |
<?
|
|
|
277 |
}
|
|
|
278 |
?>
|
|
|
279 |
<?
|
|
|
280 |
}
|
|
|
281 |
?>
|
|
|
282 |
<!-- Auswahl SELECT_EDIT ENDE -->
|
|
|
283 |
|
|
|
284 |
<?
|
|
|
285 |
if ($action=="edit")
|
|
|
286 |
{
|
|
|
287 |
if ($ID)
|
|
|
288 |
{
|
|
|
289 |
$result = mysql_query ("SELECT * FROM $tab where ID = '$ID'") or die (mysql_errno().": ".mysql_error());
|
|
|
290 |
$zeile=mysql_fetch_array($result);
|
|
|
291 |
}
|
|
|
292 |
$zeile[gueltig_von]=date2human($zeile[gueltig_von]);
|
|
|
293 |
$zeile[gueltig_bis]=date2human($zeile[gueltig_bis]);
|
|
|
294 |
?>
|
|
|
295 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
296 |
<tr>
|
|
|
297 |
<td colspan="2" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>">News:
|
|
|
298 |
<?
|
|
|
299 |
if ($ID)
|
|
|
300 |
{
|
|
|
301 |
?>
|
|
|
302 |
Bearbeiten
|
|
|
303 |
<?
|
|
|
304 |
}
|
|
|
305 |
else
|
|
|
306 |
{
|
|
|
307 |
?>
|
|
|
308 |
Neueintrag
|
|
|
309 |
<?
|
|
|
310 |
}
|
|
|
311 |
?>
|
|
|
312 |
</font> </td>
|
|
|
313 |
</tr>
|
|
|
314 |
<tr>
|
|
|
315 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Überschrift:</font></td>
|
|
|
316 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
317 |
<input type="text" name="ueberschrift" size="40" value="<? echo $zeile[ueberschrift] ?>" maxlength="255">
|
|
|
318 |
</td>
|
|
|
319 |
</tr>
|
|
|
320 |
<tr>
|
|
|
321 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Kurztext:</font></td>
|
|
|
322 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
323 |
<input type="text" name="kurz" size="40" value="<? echo $zeile[kurz] ?>" maxlength="255">
|
|
|
324 |
</td>
|
|
|
325 |
</tr>
|
|
|
326 |
<tr>
|
|
|
327 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Langtext:</font></td>
|
|
|
328 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
329 |
<textarea name="lang" cols="50" rows="4"><? echo $zeile[lang] ?></textarea>
|
|
|
330 |
</td>
|
|
|
331 |
</tr>
|
|
|
332 |
<?
|
|
|
333 |
$bild_nr=1;
|
|
|
334 |
$Feld="bild$bild_nr";
|
|
|
335 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
336 |
{
|
|
|
337 |
?>
|
|
|
338 |
<tr>
|
|
|
339 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="21%">
|
|
|
340 |
<font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
341 |
<?
|
|
|
342 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
343 |
{
|
|
|
344 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
345 |
}
|
|
|
346 |
else
|
|
|
347 |
{
|
|
|
348 |
?>
|
|
|
349 |
Bild
|
|
|
350 |
<? echo $bild_nr; ?>
|
|
|
351 |
<?
|
|
|
352 |
}
|
|
|
353 |
?>
|
|
|
354 |
</b></font> </td>
|
|
|
355 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" colspan="2" width="79%">
|
|
|
356 |
<table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
|
357 |
<tr>
|
|
|
358 |
<td width="55%" nowrap colspan="2"> <font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
359 |
<?
|
|
|
360 |
$image_name="bild_".$bild_nr."_url";
|
|
|
361 |
$image_Path="/images/news/".$bild_nr."/";
|
|
|
362 |
$image_Path=$webs[verzeichnis].$image_Path;
|
|
|
363 |
?>
|
|
|
364 |
<input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>">
|
|
|
365 |
<?
|
|
|
366 |
if ($zeile[$image_name] != "")
|
|
|
367 |
{
|
|
|
368 |
?>
|
|
|
369 |
<input type="radio" name="_<? echo $image_name ?>" value="0" checked>
|
|
|
370 |
<a href="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
371 |
<? echo $zeile[$image_name]; ?>
|
|
|
372 |
</a>
|
|
|
373 |
<?
|
|
|
374 |
$size= filesize ($image_Path.$zeile[$image_name]) >> 10;
|
|
|
375 |
$imgsize = GetImageSize ($image_Path.$zeile[$image_name]);
|
|
|
376 |
echo " ( $size KB $imgsize[0]x$imgsize[1])<BR>";
|
|
|
377 |
}
|
|
|
378 |
?>
|
|
|
379 |
<input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>>
|
|
|
380 |
kein Bild<br>
|
|
|
381 |
<input type="radio" name="_<? echo $image_name ?>" value="2">
|
|
|
382 |
<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;">
|
|
|
383 |
</font> </td>
|
|
|
384 |
<td width="45%" nowrap align="center"> <a href="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
385 |
<? if ($zeile[$image_name] != "") {?>
|
|
|
386 |
<img height="60" src="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" border="0"></a>
|
|
|
387 |
<? } ?>
|
|
|
388 |
</td>
|
|
|
389 |
</tr>
|
|
|
390 |
</table>
|
|
|
391 |
</td>
|
|
|
392 |
</tr>
|
|
|
393 |
<?
|
|
|
394 |
}
|
|
|
395 |
?>
|
|
|
396 |
<tr>
|
|
|
397 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Bildtext:</font></td>
|
|
|
398 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
399 |
<input type="text" name="bildunterschrift1" size="40" value="<? echo $zeile[bildunterschrift1] ?>" maxlength="255">
|
|
|
400 |
</td>
|
|
|
401 |
</tr>
|
|
|
402 |
<?
|
|
|
403 |
$bild_nr=2;
|
|
|
404 |
$Feld="bild$bild_nr";
|
|
|
405 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
406 |
{
|
|
|
407 |
?>
|
|
|
408 |
<tr>
|
|
|
409 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="21%">
|
|
|
410 |
<font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
411 |
<?
|
|
|
412 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
413 |
{
|
|
|
414 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
415 |
}
|
|
|
416 |
else
|
|
|
417 |
{
|
|
|
418 |
?>
|
|
|
419 |
Bild
|
|
|
420 |
<? echo $bild_nr; ?>
|
|
|
421 |
<?
|
|
|
422 |
}
|
|
|
423 |
?>
|
|
|
424 |
</b></font> </td>
|
|
|
425 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" colspan="2" width="79%">
|
|
|
426 |
<table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
|
427 |
<tr>
|
|
|
428 |
<td width="55%" nowrap colspan="2"> <font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
429 |
<?
|
|
|
430 |
$image_name="bild_".$bild_nr."_url";
|
|
|
431 |
$image_Path="/images/news/".$bild_nr."/";
|
|
|
432 |
$image_Path=$webs[verzeichnis].$image_Path;
|
|
|
433 |
?>
|
|
|
434 |
<input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>">
|
|
|
435 |
<?
|
|
|
436 |
if ($zeile[$image_name] != "")
|
|
|
437 |
{
|
|
|
438 |
?>
|
|
|
439 |
<input type="radio" name="_<? echo $image_name ?>" value="0" checked>
|
|
|
440 |
<a href="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
441 |
<? echo $zeile[$image_name]; ?>
|
|
|
442 |
</a>
|
|
|
443 |
<?
|
|
|
444 |
$size= filesize ($image_Path.$zeile[$image_name]) >> 10;
|
|
|
445 |
$imgsize = GetImageSize ($image_Path.$zeile[$image_name]);
|
|
|
446 |
echo " ( $size KB $imgsize[0]x$imgsize[1])<BR>";
|
|
|
447 |
}
|
|
|
448 |
?>
|
|
|
449 |
<input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>>
|
|
|
450 |
kein Bild<br>
|
|
|
451 |
<input type="radio" name="_<? echo $image_name ?>" value="2">
|
|
|
452 |
<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;">
|
|
|
453 |
</font> </td>
|
|
|
454 |
<td width="45%" nowrap align="center"> <a href="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
455 |
<? if ($zeile[$image_name] != "") {?>
|
|
|
456 |
<img height="60" src="http://www.<? echo $site."/images/news/".$bild_nr."/".$zeile[$image_name] ?>" border="0"></a>
|
|
|
457 |
<? } ?>
|
|
|
458 |
</td>
|
|
|
459 |
</tr>
|
|
|
460 |
</table>
|
|
|
461 |
</td>
|
|
|
462 |
</tr>
|
|
|
463 |
<?
|
|
|
464 |
}
|
|
|
465 |
?>
|
|
|
466 |
|
|
|
467 |
<tr>
|
|
|
468 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Bildtext:</font></td>
|
|
|
469 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
470 |
<input type="text" name="bildunterschrift2" size="40" value="<? echo $zeile[bildunterschrift2] ?>" maxlength="255">
|
|
|
471 |
</td>
|
|
|
472 |
</tr>
|
|
|
473 |
<tr>
|
|
|
474 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Gültigkeit:</font></td>
|
|
|
475 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> von
|
|
|
476 |
<input type="text" name="gueltig_von" size="10" value="<? echo $zeile[gueltig_von] ?>" onFocus="current_value=this.value;if (this.value=='') {this.value=today()};this.select();" onChange="this.value=check_Date(this.value)">
|
|
|
477 |
bis
|
|
|
478 |
<input type="text" name="gueltig_bis" size="10" value="<? echo $zeile[gueltig_bis] ?>" onFocus="current_value=this.value;if (this.value=='') {this.value=today()};this.select();" onChange="this.value=check_Date(this.value)">
|
|
|
479 |
</td>
|
|
|
480 |
</tr>
|
|
|
481 |
<tr>
|
|
|
482 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" width="20%"><font color="#<? echo $webs[font_color_links] ?>">Kategorie:</font></td>
|
|
|
483 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
484 |
<? $kats= explode(";",$web_rechte[modul_name][tool_name][zuordnung]) ?>
|
|
|
485 |
<select name="kategorie">
|
|
|
486 |
<?
|
|
|
487 |
foreach($kats as $elem)
|
|
|
488 |
{
|
|
|
489 |
?>
|
|
|
490 |
<option <? if ($zeile[kategorie] == $elem) { ?>selected<? } ?>><? echo $elem ?></option>
|
|
|
491 |
<?
|
|
|
492 |
}
|
|
|
493 |
?>
|
|
|
494 |
</select>
|
|
|
495 |
</td>
|
|
|
496 |
</tr>
|
|
|
497 |
<?
|
|
|
498 |
if ($ID)
|
|
|
499 |
{
|
|
|
500 |
?>
|
|
|
501 |
<tr>
|
|
|
502 |
<td class="headline" width="20%" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>">erstellt
|
|
|
503 |
am:</font></td>
|
|
|
504 |
<? $erstellt_am=datetime2human($zeile[erstellt_am]); ?>
|
|
|
505 |
<td class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_links] ?>">am:
|
|
|
506 |
<? echo $erstellt_am[Datum] ?>
|
|
|
507 |
um:
|
|
|
508 |
<? echo $erstellt_am[Zeit] ?>
|
|
|
509 |
von:
|
|
|
510 |
<? echo $zeile[erstellt_von] ?>
|
|
|
511 |
</font> </td>
|
|
|
512 |
</tr>
|
|
|
513 |
<tr>
|
|
|
514 |
<td class="headline" width="20%" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>">letzte
|
|
|
515 |
Änderung:</font></td>
|
|
|
516 |
<? $letzte_Aenderung_am=datetime2human($zeile[letzte_Aenderung_am]); ?>
|
|
|
517 |
<td class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_links] ?>">am:
|
|
|
518 |
<? echo $letzte_Aenderung_am[Datum] ?>
|
|
|
519 |
um:
|
|
|
520 |
<? echo $letzte_Aenderung_am[Zeit] ?>
|
|
|
521 |
von:
|
|
|
522 |
<? echo $zeile[letzte_Aenderung_von] ?>
|
|
|
523 |
</font> </td>
|
|
|
524 |
</tr>
|
|
|
525 |
<?
|
|
|
526 |
}
|
|
|
527 |
?>
|
|
|
528 |
<tr>
|
|
|
529 |
<td align="right" colspan="2" bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
530 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
531 |
<input type="hidden" name="action" value="update">
|
|
|
532 |
<input type="submit" value=" OK ">
|
|
|
533 |
<input type="reset" name="Button" value="Abbrechen">
|
|
|
534 |
</td>
|
|
|
535 |
</tr>
|
|
|
536 |
</table>
|
|
|
537 |
<?
|
|
|
538 |
}
|
|
|
539 |
?> </td>
|
|
|
540 |
<td width="77" align="right">
|
|
|
541 |
<table width="67" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
542 |
<tr>
|
|
|
543 |
<td><a href="<? echo $self ?>?action=edit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('new','','../images/navigation/bt_neu_f2.gif',1)"><img name="new" border="0" src="../images/navigation/bt_neu.gif" width="67" height="40" alt="Neueintrag"></a></td>
|
|
|
544 |
</tr>
|
|
|
545 |
<tr>
|
|
|
546 |
<td><a href="<? echo $self ?>?action=select_edit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('edit','','../images/navigation/bt_bearbeiten_f2.gif',1)"><img name="edit" border="0" src="../images/navigation/bt_bearbeiten.gif" width="67" height="40" alt="Eintrag bearbeiten"></a></td>
|
|
|
547 |
</tr>
|
|
|
548 |
<tr>
|
|
|
549 |
<td><a href="<? echo $self ?>?action=delete" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('delete','','../images/navigation/bt_delete_f2.gif',1)"><img name="delete" border="0" src="../images/navigation/bt_delete.gif" width="67" height="40" alt="Eintrag löschen"></a></td>
|
|
|
550 |
</tr>
|
|
|
551 |
</table>
|
|
|
552 |
</td>
|
|
|
553 |
</tr>
|
|
|
554 |
</table>
|
|
|
555 |
</form>
|
|
|
556 |
</body>
|