| 1 |
lars |
1 |
<?
|
|
|
2 |
define("Range",100);
|
|
|
3 |
$self=basename($PHP_SELF);
|
|
|
4 |
$DB="Logins";
|
|
|
5 |
define ("modul_name", "logins");
|
|
|
6 |
define ("tool_name", "admin");
|
|
|
7 |
require_once "../Online-Shop/connect2.php";
|
|
|
8 |
unset($HTTP_POST_VARS[pwdcheck]);
|
|
|
9 |
|
|
|
10 |
if ($_POST[action]=="import")
|
|
|
11 |
{
|
|
|
12 |
srand ((double)microtime()*1000000);
|
|
|
13 |
|
|
|
14 |
$filename = "/web/apache/temp/".$site."_".rand()."_importliste.cvs";
|
|
|
15 |
|
|
|
16 |
move_uploaded_file($_FILES['import_file']['tmp_name'],$filename);
|
|
|
17 |
chmod ($filename, 0777);
|
|
|
18 |
|
|
|
19 |
$queries=array();
|
|
|
20 |
$queries[]="delete from $DB;";
|
|
|
21 |
$queries[]="LOAD DATA INFILE \"".$filename."\" INTO TABLE $DB FIELDS TERMINATED BY ';' IGNORE 1 LINES (".$web_rechte[modul_name][tool_name][import_feldliste].");";
|
|
|
22 |
$queries[]="update $DB set erstellt_von='$PHP_AUTH_USER', erstellt_am=NOW(), letzte_Aenderung_von='$PHP_AUTH_USER'";
|
|
|
23 |
foreach($queries as $query)
|
|
|
24 |
{
|
|
|
25 |
mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
unlink($filename);
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
if ($action=="update")
|
|
|
32 |
{
|
|
|
33 |
if (!$ID)
|
|
|
34 |
{ // insert Dummy-Entry
|
|
|
35 |
$query = "insert into $DB (erstellt_am,erstellt_von) VALUES (NOW(),'$PHP_AUTH_USER')";
|
|
|
36 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
37 |
$ID=mysql_insert_id();
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
unset($HTTP_POST_VARS[action]);
|
|
|
41 |
unset($HTTP_POST_VARS[ID]);
|
|
|
42 |
if ($HTTP_POST_VARS[passwd])
|
|
|
43 |
{
|
|
|
44 |
$HTTP_POST_VARS[passwd]=crypt($HTTP_POST_VARS[passwd]);
|
|
|
45 |
}
|
|
|
46 |
else
|
|
|
47 |
{
|
|
|
48 |
unset($HTTP_POST_VARS[passwd]);
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
foreach(array_keys($HTTP_POST_VARS) as $elem)
|
|
|
52 |
{
|
|
|
53 |
if (in_array($elem,array("Datum1","Datum2","Eintrittsdatum","Austrittsdatum","Beitrag_bezahlt","Beitrag_letztes","Mitgliedskarte")))
|
|
|
54 |
{
|
|
|
55 |
$HTTP_POST_VARS[$elem] = human2date($HTTP_POST_VARS[$elem]);
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
if ($elem[0] == "_")
|
|
|
59 |
{
|
|
|
60 |
unset($HTTP_POST_VARS[$elem]);
|
|
|
61 |
$button=$$elem;
|
|
|
62 |
$elem=substr($elem,1);
|
|
|
63 |
$Pfad=$HTTP_POST_VARS[$elem."_Pfad"];
|
|
|
64 |
unset($HTTP_POST_VARS[$elem."_Pfad"]);
|
|
|
65 |
$image=$$elem;
|
|
|
66 |
$image_name=$elem."_name";
|
|
|
67 |
$image_name=urlencode($$image_name);
|
|
|
68 |
switch ($button)
|
|
|
69 |
{
|
|
|
70 |
case 0:
|
|
|
71 |
break;
|
|
|
72 |
case 1:
|
|
|
73 |
$HTTP_POST_VARS[$elem]='';
|
|
|
74 |
break;
|
|
|
75 |
case 2:
|
|
|
76 |
//$image_name=$ID."_".$image_name;
|
|
|
77 |
$image_name=$ID.strrchr($image_name,".");
|
|
|
78 |
$HTTP_POST_VARS[$elem]=$image_name;
|
|
|
79 |
copy($image,$Pfad.$image_name);
|
|
|
80 |
break;
|
|
|
81 |
default:
|
|
|
82 |
break;
|
|
|
83 |
}
|
|
|
84 |
}
|
|
|
85 |
}
|
|
|
86 |
$names=array();
|
|
|
87 |
foreach(array_keys($HTTP_POST_VARS) as $elem)
|
|
|
88 |
{
|
|
|
89 |
array_push($names,"$elem='$HTTP_POST_VARS[$elem]'");
|
|
|
90 |
}
|
|
|
91 |
$query="update $DB set ".join($names,', ');
|
|
|
92 |
$query=$query.", letzte_Aenderung_am=NOW(), letzte_Aenderung_von='$PHP_AUTH_USER' where ID = '$ID'";
|
|
|
93 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
94 |
header("Location: ".$self);
|
|
|
95 |
}
|
|
|
96 |
// Bilderupload
|
|
|
97 |
foreach(array_keys($HTTP_POST_VARS) as $elem)
|
|
|
98 |
{
|
|
|
99 |
if ($elem[0] == "_")
|
|
|
100 |
{
|
|
|
101 |
unset($HTTP_POST_VARS[$elem]);
|
|
|
102 |
$button=$$elem;
|
|
|
103 |
$elem=substr($elem,1);
|
|
|
104 |
$Pfad=$HTTP_POST_VARS[$elem."_Pfad"];
|
|
|
105 |
unset($HTTP_POST_VARS[$elem."_Pfad"]);
|
|
|
106 |
$image=$$elem;
|
|
|
107 |
$image_name=$elem."_name";
|
|
|
108 |
$image_name=urlencode($$image_name);
|
|
|
109 |
switch ($button)
|
|
|
110 |
{
|
|
|
111 |
case 0:
|
|
|
112 |
break;
|
|
|
113 |
case 1:
|
|
|
114 |
$HTTP_POST_VARS[$elem]='';
|
|
|
115 |
break;
|
|
|
116 |
case 2:
|
|
|
117 |
$image_name=$ID."_".$language."_".$image_name;
|
|
|
118 |
//$image_name=$ID.strrchr($image_name,".");
|
|
|
119 |
$HTTP_POST_VARS[$elem]=$image_name;
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
// $Imagenummer extrahieren
|
|
|
123 |
$Imagenummer=explode("_",$elem); $Imagenummer=$Imagenummer[1];
|
|
|
124 |
$DatenID = "bild".$Imagenummer;
|
|
|
125 |
|
|
|
126 |
//$web_rechte[modul_name][tool_name][$DatenID] = "Bild:;500;500;180x180;180;180;120x120;120;120;80x120;80;120;30x30;30;30";
|
|
|
127 |
|
|
|
128 |
$Imagedaten = array_chunk(explode(";", $web_rechte[modul_name][tool_name][$DatenID]),3);
|
|
|
129 |
$Imagedaten[0][0] = "";
|
|
|
130 |
/*
|
|
|
131 |
Imagedaten möglich Werte:
|
|
|
132 |
0: Titel des Feldes
|
|
|
133 |
1: max. Breite für Bild1 (original)
|
|
|
134 |
2: max. Höhe für Bild1 (original)
|
|
|
135 |
|
|
|
136 |
3: Pfad für Bild
|
|
|
137 |
4: max. Breite für Bild
|
|
|
138 |
5: max. Höhe für Bild
|
|
|
139 |
|
|
|
140 |
...
|
|
|
141 |
...
|
|
|
142 |
...
|
|
|
143 |
*/
|
|
|
144 |
|
|
|
145 |
// Höhe und Breite des Bildes bestimmen
|
|
|
146 |
$imgsize = GetImageSize ($image);
|
|
|
147 |
// $imgsize[0] $imgsize[1]
|
|
|
148 |
|
|
|
149 |
foreach($Imagedaten as $ImagedatenSet)
|
|
|
150 |
{
|
|
|
151 |
if ($ImagedatenSet[0] != "") {$ImagedatenSet[0].="/";}
|
|
|
152 |
// ---- Hier wird abgefragt ob das Bild verkleinert werden soll ---- //
|
|
|
153 |
if (count($ImagedatenSet) == 3)
|
|
|
154 |
{
|
|
|
155 |
if (($imgsize[0] > $ImagedatenSet[1]) or ($imgsize[1] > $ImagedatenSet[2]))
|
|
|
156 |
{
|
|
|
157 |
$cmd="convert -scale ".$ImagedatenSet[1]."x".$ImagedatenSet[2]." ".$image." ".$Pfad.$ImagedatenSet[0].$image_name;
|
|
|
158 |
pre($cmd);
|
|
|
159 |
exec($cmd);
|
|
|
160 |
}
|
|
|
161 |
else
|
|
|
162 |
{
|
|
|
163 |
copy($image,$Pfad.$ImagedatenSet[0].$image_name);
|
|
|
164 |
}
|
|
|
165 |
}
|
|
|
166 |
else
|
|
|
167 |
{
|
|
|
168 |
copy($image,$Pfad.$ImagedatenSet[0].$image_name);
|
|
|
169 |
}
|
|
|
170 |
}
|
|
|
171 |
break;
|
|
|
172 |
default:
|
|
|
173 |
break;
|
|
|
174 |
}
|
|
|
175 |
}
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
if ($action=="delete")
|
|
|
179 |
{
|
|
|
180 |
if ($ID)
|
|
|
181 |
{
|
|
|
182 |
$condition=array();
|
|
|
183 |
$condition2=array();
|
|
|
184 |
foreach ($ID as $elem)
|
|
|
185 |
{
|
|
|
186 |
array_push($condition," ID = '$elem'");
|
|
|
187 |
array_push($condition2," Logins = '$elem'");
|
|
|
188 |
}
|
|
|
189 |
$cond=join(" or ",$condition);
|
|
|
190 |
$cond2=join(" or ",$condition2);
|
|
|
191 |
|
|
|
192 |
$query = "DELETE FROM $DB WHERE $cond";
|
|
|
193 |
$result = mysql_query ("$query") or die (mysql_errno().": ".mysql_error());
|
|
|
194 |
|
|
|
195 |
$query = "delete from Logins_to_Verteiler WHERE $cond2";
|
|
|
196 |
$result = mysql_query ("$query");
|
|
|
197 |
|
|
|
198 |
header("Location: ".$self);
|
|
|
199 |
}
|
|
|
200 |
}
|
|
|
201 |
if (!$action)
|
|
|
202 |
{
|
|
|
203 |
$action="select_edit";
|
|
|
204 |
}
|
|
|
205 |
if (!$sort) {$sort='Status,user';}
|
|
|
206 |
$range = 100;
|
|
|
207 |
?>
|
|
|
208 |
<html>
|
|
|
209 |
<head>
|
|
|
210 |
<title>Content-Management-System - Webagentur Niewerth</title>
|
|
|
211 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
212 |
<link rel=stylesheet type="text/css" href="../buttons.css">
|
|
|
213 |
<script language="JavaScript">
|
|
|
214 |
<!--
|
|
|
215 |
|
|
|
216 |
function MM_swapImgRestore() { //v3.0
|
|
|
217 |
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
function MM_preloadImages() { //v3.0
|
|
|
221 |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
|
|
|
222 |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
|
|
|
223 |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
|
|
|
224 |
}
|
|
|
225 |
|
|
|
226 |
function MM_swapImage() { //v3.0
|
|
|
227 |
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
|
|
|
228 |
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
|
|
|
229 |
}
|
|
|
230 |
|
|
|
231 |
function MM_findObj(n, d) { //v4.01
|
|
|
232 |
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|
|
233 |
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
|
|
234 |
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|
|
235 |
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|
|
236 |
if(!x && d.getElementById) x=d.getElementById(n); return x;
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
function killkomma(w)
|
|
|
240 |
{
|
|
|
241 |
return w.replace(/,/,'.');
|
|
|
242 |
}
|
|
|
243 |
//-->
|
|
|
244 |
</script>
|
|
|
245 |
<meta name="description" content="Redaktionssystem">
|
|
|
246 |
<meta name="author" content="Webagentur Niewerth">
|
|
|
247 |
<meta name="robots" content="noindex">
|
|
|
248 |
</head>
|
|
|
249 |
|
|
|
250 |
<body leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" onLoad="MM_preloadImages('../images/navigation/bt_neu_f2.gif','../images/navigation/bt_bearbeiten_f2.gif','../images/navigation/bt_delete_f2.gif')" bgcolor="#<? echo $webs[bgcolor_seite] ?>" text="#<? echo $webs[font_color_seite] ?>" alink="#<? echo $webs[font_color_seite] ?>" link="#<? echo $webs[font_color_rechts] ?>" vlink="#<? echo $webs[font_color_seite] ?>">
|
|
|
251 |
<form method="post" action="#" name="formname" enctype="multipart/form-data">
|
|
|
252 |
<table width="662" border="0" cellspacing="0" cellpadding="0">
|
|
|
253 |
<tr valign="top">
|
|
|
254 |
<td width="585">
|
|
|
255 |
<!-- IMPORT START -->
|
|
|
256 |
<?
|
|
|
257 |
if ($action=="import")
|
|
|
258 |
{
|
|
|
259 |
?>
|
|
|
260 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
261 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
262 |
<td height="25"><font color="#<? echo $webs[font_color_links] ?>"><b>Benutzer:
|
|
|
263 |
importieren</b></font></td>
|
|
|
264 |
</tr>
|
|
|
265 |
<?
|
|
|
266 |
if ($_POST[action]=="import")
|
|
|
267 |
{
|
|
|
268 |
?>
|
|
|
269 |
<tr bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
270 |
<td height="27"><font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
271 |
<?
|
|
|
272 |
switch($_FILES['import_file']['error'])
|
|
|
273 |
{
|
|
|
274 |
case UPLOAD_ERR_OK:
|
|
|
275 |
echo "Die Datei wurde erfolgreich hochgeladen.";
|
|
|
276 |
break;
|
|
|
277 |
case UPLOAD_ERR_INI_SIZE:
|
|
|
278 |
echo "Die hochgeladene Datei überschreitet die in der Anweisung upload_max_filesize in php.ini festgelegte Größe.";
|
|
|
279 |
break;
|
|
|
280 |
case UPLOAD_ERR_FORM_SIZE:
|
|
|
281 |
echo "Die hochgeladene Datei überschreitet die in dem HTML Formular mittels der Anweisung MAX_FILE_SIZE angegebene maximale Dateigröße.";
|
|
|
282 |
break;
|
|
|
283 |
case UPLOAD_ERR_PARTIAL:
|
|
|
284 |
echo "Die Datei wurde nur teilweise hochgeladen.";
|
|
|
285 |
break;
|
|
|
286 |
case UPLOAD_ERR_NO_FILE:
|
|
|
287 |
echo "Es wurde keine Datei hochgeladen.";
|
|
|
288 |
break;
|
|
|
289 |
}
|
|
|
290 |
?></font></td>
|
|
|
291 |
</tr>
|
|
|
292 |
<?
|
|
|
293 |
}
|
|
|
294 |
?>
|
|
|
295 |
<tr bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
296 |
<td align="center">
|
|
|
297 |
<input type="file" name="import_file">
|
|
|
298 |
</td>
|
|
|
299 |
</tr>
|
|
|
300 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
301 |
<td align="right">
|
|
|
302 |
<input type="hidden" name="action" value='import'>
|
|
|
303 |
<input type="submit" name="import" value=" OK ">
|
|
|
304 |
</td>
|
|
|
305 |
</tr>
|
|
|
306 |
</table>
|
|
|
307 |
<?
|
|
|
308 |
}
|
|
|
309 |
?>
|
|
|
310 |
<!-- IMPORT ENDE -->
|
|
|
311 |
<!-- Auswahl Löschen START -->
|
|
|
312 |
<?
|
|
|
313 |
if ($action=="delete")
|
|
|
314 |
{
|
|
|
315 |
$query[]="SELECT * FROM $DB";
|
|
|
316 |
if ($suchname)
|
|
|
317 |
{
|
|
|
318 |
$search_query[]="Name1 like '%$suchname%'";
|
|
|
319 |
}
|
|
|
320 |
if ($select)
|
|
|
321 |
{
|
|
|
322 |
$search_query[]="status='$select'";
|
|
|
323 |
}
|
|
|
324 |
if ($search_query)
|
|
|
325 |
{
|
|
|
326 |
$query[]="where ".implode(" and ",$search_query);
|
|
|
327 |
}
|
|
|
328 |
$query[]="ORDER BY $sort";
|
|
|
329 |
|
|
|
330 |
$query=implode(" ",$query);
|
|
|
331 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query");
|
|
|
332 |
$count = mysql_num_rows($result);
|
|
|
333 |
if ($count == 0)
|
|
|
334 |
{
|
|
|
335 |
?>
|
|
|
336 |
<p><b><font color="#<? echo $webs[font_color_seite] ?>">Es sind keine Daten eingetragen !</font></b></p>
|
|
|
337 |
<?
|
|
|
338 |
}
|
|
|
339 |
else
|
|
|
340 |
{
|
|
|
341 |
if (!$start) {$start=0;}
|
|
|
342 |
$query=$query." limit $start, 100";
|
|
|
343 |
?>
|
|
|
344 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
345 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
346 |
<td colspan="2" class="headline">
|
|
|
347 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
348 |
<tr>
|
|
|
349 |
<td class="headline"><font color="#<? echo $webs[font_color_links] ?>"><b>Benutzer:
|
|
|
350 |
Löschen</b></font> </td>
|
|
|
351 |
<td class="headline" align="right"><font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
352 |
<? echo $count ?> Einträge</b></font></td>
|
|
|
353 |
</tr>
|
|
|
354 |
</table>
|
|
|
355 |
<font color="#<? echo $webs[font_color_links] ?>">
|
|
|
356 |
<? if (isset($user_rechte[modul_name][tool_name]["auswahl"])) { ?>
|
|
|
357 |
<?
|
|
|
358 |
$Feld="userlevel";
|
|
|
359 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
360 |
{
|
|
|
361 |
?><hr noshade width="100%">Status:<?
|
|
|
362 |
if (!$web_rechte[modul_name][tool_name][$Feld]) {$web_rechte[modul_name][tool_name][$Feld]="1;2;3;4;5;6";}
|
|
|
363 |
$kats=explode(";",$web_rechte[modul_name][tool_name][$Feld]);
|
|
|
364 |
?>
|
|
|
365 |
<select name="select">
|
|
|
366 |
<?
|
|
|
367 |
foreach($kats as $elem)
|
|
|
368 |
{
|
|
|
369 |
?>
|
|
|
370 |
<option <? if ($select == $elem) { ?>selected<? } ?>>
|
|
|
371 |
<? echo $elem ?>
|
|
|
372 |
</option>
|
|
|
373 |
<?
|
|
|
374 |
}
|
|
|
375 |
?>
|
|
|
376 |
</select>
|
|
|
377 |
<br><? } ?>
|
|
|
378 |
Suche nach Name:
|
|
|
379 |
<input name="suchname" type="text" id="suchname" value="<? echo $suchname ?>">
|
|
|
380 |
<input type="submit" name="Submit" value="Suchen"><? } ?><hr noshade width="100%"></font>
|
|
|
381 |
<?
|
|
|
382 |
if ($count >= 100)
|
|
|
383 |
{
|
|
|
384 |
?>
|
|
|
385 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
386 |
<tr>
|
|
|
387 |
<td width="10%" class="rechts">
|
|
|
388 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? if (($start) > 0) {echo $start-100;} else {echo "0";} ?>"><font color="#<? echo $webs[font_color_links] ?>">zurück</font></a>
|
|
|
389 |
</td>
|
|
|
390 |
<td width="85%" align="center" class="rechts">|
|
|
|
391 |
<?
|
|
|
392 |
for ($a=0; $a < $count; $a+=100)
|
|
|
393 |
{
|
|
|
394 |
?>
|
|
|
395 |
<? if ($start == $a) {echo "<b>";} ?>
|
|
|
396 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? echo $a ?>">
|
|
|
397 |
<font color="#<? echo $webs[font_color_links] ?>">
|
|
|
398 |
<? echo $a ?> - <? if ($count - $a > 99) { echo $a + 99; } else { echo $count; } ?><? if ($start == $a) {echo "</b>";} ?> |
|
|
|
399 |
</font>
|
|
|
400 |
</a>
|
|
|
401 |
<?
|
|
|
402 |
}
|
|
|
403 |
?>
|
|
|
404 |
</td>
|
|
|
405 |
<td width="10%" align="right" class="rechts">
|
|
|
406 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? if ($start+$range < $count) {echo $start+$range;} else {echo $start;} ?>"><font color="#<? echo $webs[font_color_links] ?>">weiter</font></a>
|
|
|
407 |
</td>
|
|
|
408 |
</tr>
|
|
|
409 |
</table>
|
|
|
410 |
<?
|
|
|
411 |
}
|
|
|
412 |
?>
|
|
|
413 |
</td>
|
|
|
414 |
</tr>
|
|
|
415 |
<tr>
|
|
|
416 |
<td colspan="2">
|
|
|
417 |
<?
|
|
|
418 |
$format_string = "Name1;, ;PLZ; ;ORT; / ;E_Mail";
|
|
|
419 |
if ($web_rechte[modul_name][tool_name][delete_string])
|
|
|
420 |
{
|
|
|
421 |
$format_string = $web_rechte[modul_name][tool_name][edit_string];
|
|
|
422 |
}
|
|
|
423 |
foreach(explode(";",$format_string) as $elem)
|
|
|
424 |
{
|
|
|
425 |
if ($web_rechte[modul_name][tool_name][$elem])
|
|
|
426 |
{
|
|
|
427 |
?><a href="<? echo $self?>?action=delete&sort=<? echo $elem ?>&start=<? echo $start ?>"><? echo preg_replace("/:/", "", $web_rechte[modul_name][tool_name][$elem]); ?></a><?
|
|
|
428 |
}
|
|
|
429 |
else
|
|
|
430 |
{
|
|
|
431 |
echo $elem;
|
|
|
432 |
}
|
|
|
433 |
}
|
|
|
434 |
?>
|
|
|
435 |
</td>
|
|
|
436 |
</tr>
|
|
|
437 |
<?
|
|
|
438 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query");
|
|
|
439 |
while ($zeile=mysql_fetch_array($result))
|
|
|
440 |
{
|
|
|
441 |
?>
|
|
|
442 |
<tr>
|
|
|
443 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="100%"> <font color="<? echo $webs[font_color_rechts] ?>">
|
|
|
444 |
<?
|
|
|
445 |
$format_string = "Name1;, ;PLZ; ;ORT; / ;E_Mail";
|
|
|
446 |
if ($web_rechte[modul_name][tool_name][edit_string])
|
|
|
447 |
{
|
|
|
448 |
$format_string = $web_rechte[modul_name][tool_name][edit_string];
|
|
|
449 |
}
|
|
|
450 |
foreach(explode(";",$format_string) as $elem)
|
|
|
451 |
{
|
|
|
452 |
if (array_key_exists($elem,$zeile))
|
|
|
453 |
{
|
|
|
454 |
echo $zeile[$elem];
|
|
|
455 |
}
|
|
|
456 |
else
|
|
|
457 |
{
|
|
|
458 |
echo $elem;
|
|
|
459 |
}
|
|
|
460 |
}
|
|
|
461 |
?>
|
|
|
462 |
</font> </td>
|
|
|
463 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" nowrap>
|
|
|
464 |
<input type="checkbox" name="ID[]" value="<? echo $zeile[ID]?>">
|
|
|
465 |
</td>
|
|
|
466 |
</tr>
|
|
|
467 |
<?
|
|
|
468 |
}
|
|
|
469 |
?>
|
|
|
470 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
471 |
<td colspan="2">
|
|
|
472 |
<?
|
|
|
473 |
if ($count >= 100)
|
|
|
474 |
{
|
|
|
475 |
?>
|
|
|
476 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
477 |
<tr>
|
|
|
478 |
<td width="10%" class="rechts">
|
|
|
479 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? if (($start) > 0) {echo $start-100;} else {echo "0";} ?>"><font color="#<? echo $webs[font_color_links] ?>">zurück</font></a>
|
|
|
480 |
</td>
|
|
|
481 |
<td width="85%" align="center" class="rechts">|<font color="#<? echo $webs[font_color_links] ?>">
|
|
|
482 |
<?
|
|
|
483 |
for ($a=0; $a < $count; $a+=100)
|
|
|
484 |
{
|
|
|
485 |
?>
|
|
|
486 |
<? if ($start == $a) {echo "<b>";} ?>
|
|
|
487 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? echo $a ?>">
|
|
|
488 |
<? echo $a ?> - <? if ($count - $a > 99) { echo $a + 99; } else { echo $count; } ?><? if ($start == $a) {echo "</b>";} ?> |
|
|
|
489 |
</a>
|
|
|
490 |
<?
|
|
|
491 |
}
|
|
|
492 |
?>
|
|
|
493 |
</font></td>
|
|
|
494 |
<td width="10%" align="right" class="rechts">
|
|
|
495 |
<a href="<? echo $self?>?action=delete&sort=<? echo $sort ?>&start=<? if ($start+$range < $count) {echo $start+$range;} else {echo $start;} ?>"><font color="#<? echo $webs[font_color_links] ?>">weiter</font></a>
|
|
|
496 |
</td>
|
|
|
497 |
</tr>
|
|
|
498 |
</table>
|
|
|
499 |
<?
|
|
|
500 |
}
|
|
|
501 |
?>
|
|
|
502 |
</td>
|
|
|
503 |
</tr>
|
|
|
504 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
505 |
<td colspan="2" align="right">
|
|
|
506 |
<input type="submit" value="Löschen">
|
|
|
507 |
<input type="hidden" name="action" value='delete'>
|
|
|
508 |
</td>
|
|
|
509 |
</tr>
|
|
|
510 |
</table>
|
|
|
511 |
<?
|
|
|
512 |
}
|
|
|
513 |
}
|
|
|
514 |
?>
|
|
|
515 |
<!-- Auswahl Löschen ENDE -->
|
|
|
516 |
<!-- Auswahl SELECT_EDIT START -->
|
|
|
517 |
<?
|
|
|
518 |
if ($action=="select_edit")
|
|
|
519 |
{
|
|
|
520 |
$query[]="SELECT * FROM $DB";
|
|
|
521 |
if ($suchname)
|
|
|
522 |
{
|
|
|
523 |
$search_query[]="Name1 like '%$suchname%'";
|
|
|
524 |
}
|
|
|
525 |
if ($select)
|
|
|
526 |
{
|
|
|
527 |
$search_query[]="status='$select'";
|
|
|
528 |
}
|
|
|
529 |
if ($search_query)
|
|
|
530 |
{
|
|
|
531 |
$query[]="where ".implode(" and ",$search_query);
|
|
|
532 |
}
|
|
|
533 |
$query[]="ORDER BY $sort";
|
|
|
534 |
|
|
|
535 |
$query=implode(" ",$query);
|
|
|
536 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query");
|
|
|
537 |
$count = mysql_num_rows($result);
|
|
|
538 |
|
|
|
539 |
switch ($count)
|
|
|
540 |
{
|
|
|
541 |
case 0:
|
|
|
542 |
?>
|
|
|
543 |
<p><b><font color="#<? echo $webs[font_color_seite] ?>">Es sind keine Daten eingetragen !</font></b></p>
|
|
|
544 |
<?
|
|
|
545 |
break;
|
|
|
546 |
case 1:
|
|
|
547 |
$zeile=mysql_fetch_array($result);
|
|
|
548 |
?>
|
|
|
549 |
<script language="JavaScript">
|
|
|
550 |
document.location="<?=$self;?>?action=edit&ID=<?=$zeile[ID];?>";
|
|
|
551 |
</script>
|
|
|
552 |
exit;
|
|
|
553 |
<?
|
|
|
554 |
break;
|
|
|
555 |
default:
|
|
|
556 |
if (!$start) {$start=0;}
|
|
|
557 |
$query=$query." limit $start, 100";
|
|
|
558 |
?>
|
|
|
559 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
560 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
561 |
<td colspan="2">
|
|
|
562 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
563 |
<tr>
|
|
|
564 |
<td class="headline"><font color="#<? echo $webs[font_color_links] ?>"><b>Benutzer:
|
|
|
565 |
Bearbeiten</b></font> </td>
|
|
|
566 |
<td class="headline" align="right"><font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
567 |
<? echo $count ?>
|
|
|
568 |
Einträge</b></font></td>
|
|
|
569 |
</tr>
|
|
|
570 |
<tr>
|
|
|
571 |
<td class="headline" colspan="2"><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
572 |
<? if (isset($user_rechte[modul_name][tool_name]["auswahl"])) { ?>
|
|
|
573 |
<?
|
|
|
574 |
$Feld="userlevel";
|
|
|
575 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
576 |
{
|
|
|
577 |
?><hr noshade width="100%">Status:<?
|
|
|
578 |
if (!$web_rechte[modul_name][tool_name][$Feld]) {$web_rechte[modul_name][tool_name][$Feld]="1;2;3;4;5;6";}
|
|
|
579 |
$kats=explode(";",$web_rechte[modul_name][tool_name][$Feld]);
|
|
|
580 |
?>
|
|
|
581 |
<select name="select">
|
|
|
582 |
<?
|
|
|
583 |
foreach($kats as $elem)
|
|
|
584 |
{
|
|
|
585 |
?>
|
|
|
586 |
<option <? if ($select == $elem) { ?>selected<? } ?>>
|
|
|
587 |
<? echo $elem ?>
|
|
|
588 |
</option>
|
|
|
589 |
<?
|
|
|
590 |
}
|
|
|
591 |
?>
|
|
|
592 |
</select>
|
|
|
593 |
<br><? } ?>
|
|
|
594 |
Suche nach Name:
|
|
|
595 |
<input name="suchname" type="text" id="suchname" value="<? echo $suchname ?>">
|
|
|
596 |
<input type="submit" name="Submit" value="Suchen"><? } ?><hr noshade width="100%"></font>
|
|
|
597 |
</td>
|
|
|
598 |
</tr>
|
|
|
599 |
</table>
|
|
|
600 |
<?
|
|
|
601 |
if ($count >= $range)
|
|
|
602 |
{
|
|
|
603 |
?>
|
|
|
604 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
605 |
<tr>
|
|
|
606 |
<td width="10%" class="rechts">
|
|
|
607 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? if (($start) > 0) {echo $start-$range;} else {echo "0";} ?>"><font color="#<? echo $webs[font_color_links] ?>">zurück</font></a>
|
|
|
608 |
</td>
|
|
|
609 |
<td width="85%" align="center" class="rechts">|
|
|
|
610 |
<?
|
|
|
611 |
for ($a=0; $a < $count; $a+=$range)
|
|
|
612 |
{
|
|
|
613 |
?>
|
|
|
614 |
<? if ($start == $a) {echo "<b>";} ?>
|
|
|
615 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? echo $a ?>">
|
|
|
616 |
<font color="#<? echo $webs[font_color_links] ?>">
|
|
|
617 |
<? echo $a ?> - <? if ($count - $a > $range-1) { echo $a + $range-1; } else { echo $count; } ?><? if ($start == $a) {echo "</b>";} ?> |
|
|
|
618 |
</font>
|
|
|
619 |
</a>
|
|
|
620 |
<?
|
|
|
621 |
}
|
|
|
622 |
?>
|
|
|
623 |
</td>
|
|
|
624 |
<td width="10%" align="right" class="rechts" nowrap>
|
|
|
625 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? if ($start+$range < $count) {echo $start+$range;} else {echo $start;} ?>"><font color="#<? echo $webs[font_color_links] ?>">weiter</font></a>
|
|
|
626 |
</td>
|
|
|
627 |
</tr>
|
|
|
628 |
</table>
|
|
|
629 |
<?
|
|
|
630 |
}
|
|
|
631 |
?>
|
|
|
632 |
</td>
|
|
|
633 |
</tr>
|
|
|
634 |
<tr>
|
|
|
635 |
<td colspan="2">
|
|
|
636 |
<?
|
|
|
637 |
$format_string = "Name1;, ;PLZ; ;ORT; / ;E_Mail";
|
|
|
638 |
if ($web_rechte[modul_name][tool_name][edit_string])
|
|
|
639 |
{
|
|
|
640 |
$format_string = $web_rechte[modul_name][tool_name][edit_string];
|
|
|
641 |
}
|
|
|
642 |
foreach(explode(";",$format_string) as $elem)
|
|
|
643 |
{
|
|
|
644 |
if ($web_rechte[modul_name][tool_name][$elem])
|
|
|
645 |
{
|
|
|
646 |
?><a href="<? echo $self?>?action=select_edit&sort=<? echo $elem ?>&start=<? echo $start ?>">
|
|
|
647 |
<? echo preg_replace("/:/", "", $web_rechte[modul_name][tool_name][$elem]); ?>
|
|
|
648 |
</a><?
|
|
|
649 |
}
|
|
|
650 |
else
|
|
|
651 |
{
|
|
|
652 |
echo $elem;
|
|
|
653 |
}
|
|
|
654 |
}
|
|
|
655 |
?>
|
|
|
656 |
</td>
|
|
|
657 |
</tr>
|
|
|
658 |
<?
|
|
|
659 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query");
|
|
|
660 |
while ($zeile=mysql_fetch_array($result))
|
|
|
661 |
{
|
|
|
662 |
?>
|
|
|
663 |
<tr>
|
|
|
664 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="100%"><a href="<? echo $self?>?action=edit&ID=<? echo $zeile[ID]; ?>">
|
|
|
665 |
<font color="<? echo $webs[font_color_rechts] ?>">
|
|
|
666 |
<?
|
|
|
667 |
$format_string = "Name1;, ;PLZ; ;ORT; / ;E_Mail";
|
|
|
668 |
if ($web_rechte[modul_name][tool_name][edit_string])
|
|
|
669 |
{
|
|
|
670 |
$format_string = $web_rechte[modul_name][tool_name][edit_string];
|
|
|
671 |
}
|
|
|
672 |
foreach(explode(";",$format_string) as $elem)
|
|
|
673 |
{
|
|
|
674 |
if (array_key_exists($elem,$zeile))
|
|
|
675 |
{
|
|
|
676 |
echo $zeile[$elem];
|
|
|
677 |
}
|
|
|
678 |
else
|
|
|
679 |
{
|
|
|
680 |
echo $elem;
|
|
|
681 |
}
|
|
|
682 |
}
|
|
|
683 |
?>
|
|
|
684 |
</font> </a> </td>
|
|
|
685 |
<? if ($web_rechte[modul_name][tool_name][userlevel]) { ?>
|
|
|
686 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" nowrap>
|
|
|
687 |
<font color="<? echo $webs[font_color_rechts] ?>"><? if ($zeile[Status]) {echo $zeile[Status];} else {echo " ";} ?></font>
|
|
|
688 |
</td>
|
|
|
689 |
<? } ?>
|
|
|
690 |
</tr>
|
|
|
691 |
<?
|
|
|
692 |
}
|
|
|
693 |
?>
|
|
|
694 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
695 |
<td colspan="2">
|
|
|
696 |
<?
|
|
|
697 |
if ($count >= $range)
|
|
|
698 |
{
|
|
|
699 |
?>
|
|
|
700 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
701 |
<tr>
|
|
|
702 |
<td width="10%" class="rechts">
|
|
|
703 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? if (($start) > 0) {echo $start-$range;} else {echo "0";} ?>"><font color="#<? echo $webs[font_color_links] ?>">zurück</font></a>
|
|
|
704 |
</td>
|
|
|
705 |
<td width="85%" align="center" class="rechts">|
|
|
|
706 |
<?
|
|
|
707 |
for ($a=0; $a < $count; $a+=$range)
|
|
|
708 |
{
|
|
|
709 |
?>
|
|
|
710 |
<? if ($start == $a) {echo "<b>";} ?>
|
|
|
711 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? echo $a ?>">
|
|
|
712 |
<font color="#<? echo $webs[font_color_links] ?>">
|
|
|
713 |
<? echo $a ?> - <? if ($count - $a > $range-1) { echo $a + $range-1; } else { echo $count; } ?><? if ($start == $a) {echo "</b>";} ?> |
|
|
|
714 |
</font>
|
|
|
715 |
</a>
|
|
|
716 |
<?
|
|
|
717 |
}
|
|
|
718 |
?>
|
|
|
719 |
</td>
|
|
|
720 |
<td width="10%" align="right" class="rechts" nowrap>
|
|
|
721 |
<a href="<? echo $self?>?action=<? echo $action ?>&sort=<? echo $sort ?>&start=<? if ($start+$range < $count) {echo $start+$range;} else {echo $start;} ?>"><font color="#<? echo $webs[font_color_links] ?>">weiter</font></a>
|
|
|
722 |
</td>
|
|
|
723 |
</tr>
|
|
|
724 |
</table>
|
|
|
725 |
<?
|
|
|
726 |
}
|
|
|
727 |
?>
|
|
|
728 |
</td>
|
|
|
729 |
</tr>
|
|
|
730 |
<tr bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
731 |
<td colspan="2"> </td>
|
|
|
732 |
</tr>
|
|
|
733 |
</table>
|
|
|
734 |
<?
|
|
|
735 |
}
|
|
|
736 |
}
|
|
|
737 |
?>
|
|
|
738 |
<!-- Auswahl SELECT_EDIT ENDE -->
|
|
|
739 |
<?
|
|
|
740 |
if ($action=="edit")
|
|
|
741 |
{
|
|
|
742 |
if ($ID)
|
|
|
743 |
{
|
|
|
744 |
$felder=array("*");
|
|
|
745 |
foreach (array("Datum1","Datum2") as $fn)
|
|
|
746 |
{
|
|
|
747 |
if (isset($user_rechte[modul_name][tool_name][$fn]))
|
|
|
748 |
{
|
|
|
749 |
$felder[] = "date_format($fn ,'%d.%m.%Y') as $fn";
|
|
|
750 |
}
|
|
|
751 |
}
|
|
|
752 |
|
|
|
753 |
if (isset($user_rechte[modul_name][tool_name]["Vereinsdaten"]))
|
|
|
754 |
{
|
|
|
755 |
foreach (array("Eintrittsdatum","Austrittsdatum","Beitrag_bezahlt","Beitrag_letztes","Mitgliedskarte") as $fn)
|
|
|
756 |
{
|
|
|
757 |
$felder[] = "date_format($fn ,'%d.%m.%Y') as $fn";
|
|
|
758 |
}
|
|
|
759 |
}
|
|
|
760 |
|
|
|
761 |
|
|
|
762 |
$result = mysql_query
|
|
|
763 |
("
|
|
|
764 |
SELECT
|
|
|
765 |
".implode(", ",$felder)."
|
|
|
766 |
FROM
|
|
|
767 |
$DB
|
|
|
768 |
where
|
|
|
769 |
ID = '$ID'
|
|
|
770 |
") or die (mysql_errno().": ".mysql_error());
|
|
|
771 |
$zeile=mysql_fetch_array($result);
|
|
|
772 |
}
|
|
|
773 |
?>
|
|
|
774 |
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
775 |
<tr>
|
|
|
776 |
<td colspan="3" bgcolor="#<? echo $webs[bgcolor_links] ?>"><b><font color="#<? echo $webs[font_color_links] ?>">Benutzer:
|
|
|
777 |
<?
|
|
|
778 |
if ($ID)
|
|
|
779 |
{
|
|
|
780 |
?>
|
|
|
781 |
Bearbeiten
|
|
|
782 |
<?
|
|
|
783 |
}
|
|
|
784 |
else
|
|
|
785 |
{
|
|
|
786 |
?>
|
|
|
787 |
Neueintrag
|
|
|
788 |
<?
|
|
|
789 |
}
|
|
|
790 |
?>
|
|
|
791 |
</font></b> </td>
|
|
|
792 |
</tr>
|
|
|
793 |
<?
|
|
|
794 |
$Feld="user";
|
|
|
795 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
796 |
{
|
|
|
797 |
?>
|
|
|
798 |
<tr>
|
|
|
799 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
800 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
801 |
Login:
|
|
|
802 |
<? } ?>
|
|
|
803 |
</font></b></td>
|
|
|
804 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
805 |
<input type="text" name="user" value="<? echo $zeile[user] ?>">
|
|
|
806 |
</td>
|
|
|
807 |
</tr>
|
|
|
808 |
<?
|
|
|
809 |
}
|
|
|
810 |
?>
|
|
|
811 |
<?
|
|
|
812 |
$Feld="passwd";
|
|
|
813 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
814 |
{
|
|
|
815 |
?>
|
|
|
816 |
<tr>
|
|
|
817 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
818 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
819 |
Passwort:
|
|
|
820 |
<? } ?>
|
|
|
821 |
</font></b></td>
|
|
|
822 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
823 |
<input type="password" name="passwd">
|
|
|
824 |
(Passwort)<br>
|
|
|
825 |
<input type="password" name="pwdcheck">
|
|
|
826 |
(Passwortbestätigung) </font></td>
|
|
|
827 |
</tr>
|
|
|
828 |
<?
|
|
|
829 |
}
|
|
|
830 |
?>
|
|
|
831 |
<?
|
|
|
832 |
$Feld="userlevel";
|
|
|
833 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
834 |
{
|
|
|
835 |
?>
|
|
|
836 |
<tr>
|
|
|
837 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
838 |
Status: </font></b></td>
|
|
|
839 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
840 |
<?
|
|
|
841 |
if (!$web_rechte[modul_name][tool_name][$Feld]) {$web_rechte[modul_name][tool_name][$Feld]="1;2;3;4;5;6";}
|
|
|
842 |
$kats=explode(";",$web_rechte[modul_name][tool_name][$Feld]);
|
|
|
843 |
?>
|
|
|
844 |
<select name="Status">
|
|
|
845 |
<?
|
|
|
846 |
foreach($kats as $elem)
|
|
|
847 |
{
|
|
|
848 |
?>
|
|
|
849 |
<option <? if ($zeile[Status] == $elem) { ?>selected<? } ?>>
|
|
|
850 |
<? echo $elem ?>
|
|
|
851 |
</option>
|
|
|
852 |
<?
|
|
|
853 |
}
|
|
|
854 |
?>
|
|
|
855 |
</select>
|
|
|
856 |
</td>
|
|
|
857 |
</tr>
|
|
|
858 |
<?
|
|
|
859 |
}
|
|
|
860 |
?>
|
|
|
861 |
<?
|
|
|
862 |
$Feld="Anrede";
|
|
|
863 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
864 |
{
|
|
|
865 |
?>
|
|
|
866 |
<tr>
|
|
|
867 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
868 |
<?
|
|
|
869 |
if (($web_rechte[modul_name][tool_name][$Feld]) and (!strrpos($web_rechte[modul_name][tool_name][$Feld],";")))
|
|
|
870 |
{
|
|
|
871 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
872 |
}
|
|
|
873 |
else
|
|
|
874 |
{
|
|
|
875 |
?>
|
|
|
876 |
Anrede:
|
|
|
877 |
<?
|
|
|
878 |
}
|
|
|
879 |
?>
|
|
|
880 |
</b></font> </td>
|
|
|
881 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
882 |
<?
|
|
|
883 |
if (!$web_rechte[modul_name][tool_name][$Feld]) {$web_rechte[modul_name][tool_name][$Feld]=" ;Herr;Frau;Firma";}
|
|
|
884 |
else
|
|
|
885 |
{$web_rechte[modul_name][tool_name][$Feld]=(substr(stristr($web_rechte[modul_name][tool_name][$Feld], ';'), 1));}
|
|
|
886 |
$kats=explode(";",$web_rechte[modul_name][tool_name][$Feld]);?>
|
|
|
887 |
<select name="<? echo $Feld ?>">
|
|
|
888 |
<?
|
|
|
889 |
$kat_runner=0;
|
|
|
890 |
foreach($kats as $elem)
|
|
|
891 |
{
|
|
|
892 |
?>
|
|
|
893 |
<option value="<? echo $elem ?>"<? if ($zeile[$Feld] == $elem) { ?>selected<? } ?>><? echo $elem ?></option>
|
|
|
894 |
<?
|
|
|
895 |
$kat_runner++;
|
|
|
896 |
}
|
|
|
897 |
?>
|
|
|
898 |
</select>
|
|
|
899 |
</td>
|
|
|
900 |
</tr>
|
|
|
901 |
<?
|
|
|
902 |
}
|
|
|
903 |
?>
|
|
|
904 |
<?
|
|
|
905 |
$Feld="Vorname";
|
|
|
906 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
907 |
{
|
|
|
908 |
?>
|
|
|
909 |
<tr>
|
|
|
910 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
911 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
912 |
Vorname:
|
|
|
913 |
<? } ?>
|
|
|
914 |
</font></b></td>
|
|
|
915 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
916 |
<input type="text" name="<? echo $Feld ?>" value="<? echo $zeile[$Feld] ?>">
|
|
|
917 |
</td>
|
|
|
918 |
</tr>
|
|
|
919 |
<?
|
|
|
920 |
}
|
|
|
921 |
?>
|
|
|
922 |
<?
|
|
|
923 |
$Feld="Name1";
|
|
|
924 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
925 |
{
|
|
|
926 |
?>
|
|
|
927 |
<tr>
|
|
|
928 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
929 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
930 |
Name1:
|
|
|
931 |
<? } ?>
|
|
|
932 |
</font></b></td>
|
|
|
933 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
934 |
<input type="text" name="Name1" value="<? echo $zeile[Name1] ?>">
|
|
|
935 |
</td>
|
|
|
936 |
</tr>
|
|
|
937 |
<?
|
|
|
938 |
}
|
|
|
939 |
?>
|
|
|
940 |
<?
|
|
|
941 |
$Feld="Name2";
|
|
|
942 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
943 |
{
|
|
|
944 |
?>
|
|
|
945 |
|
|
|
946 |
<tr>
|
|
|
947 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
948 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
949 |
Name2:
|
|
|
950 |
<? } ?>
|
|
|
951 |
</font></b></td>
|
|
|
952 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
953 |
<input type="text" name="Name2" value="<? echo $zeile[Name2] ?>">
|
|
|
954 |
</td>
|
|
|
955 |
</tr>
|
|
|
956 |
<?
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
$Feld="Strasse";
|
|
|
960 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
961 |
{
|
|
|
962 |
?>
|
|
|
963 |
<tr>
|
|
|
964 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
965 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>Strasse:<? } ?>
|
|
|
966 |
</font></b></td>
|
|
|
967 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
968 |
<input type="text" name="Strasse" value="<? echo $zeile[Strasse] ?>">
|
|
|
969 |
<?
|
|
|
970 |
if (isset($user_rechte[modul_name][tool_name][Hausnummer]))
|
|
|
971 |
{
|
|
|
972 |
?>Nr.:
|
|
|
973 |
<input type="text" name="Hausnummer" value="<? echo $zeile[Hausnummer] ?>" size="5"><?
|
|
|
974 |
}
|
|
|
975 |
?>
|
|
|
976 |
</td>
|
|
|
977 |
</tr>
|
|
|
978 |
<?
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
$Feld="PLZ_Ort";
|
|
|
982 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
983 |
{
|
|
|
984 |
?>
|
|
|
985 |
|
|
|
986 |
<tr>
|
|
|
987 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
988 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
989 |
Plz / Ort:
|
|
|
990 |
<? } ?>
|
|
|
991 |
</font></b></td>
|
|
|
992 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
993 |
<input type="text" name="PLZ" value="<? echo $zeile[PLZ] ?>" size="5">
|
|
|
994 |
<input type="text" name="ORT" value="<? echo $zeile[ORT] ?>">
|
|
|
995 |
</td>
|
|
|
996 |
</tr>
|
|
|
997 |
<?
|
|
|
998 |
}
|
|
|
999 |
?>
|
|
|
1000 |
<?
|
|
|
1001 |
$Feld="Land";
|
|
|
1002 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1003 |
{
|
|
|
1004 |
?>
|
|
|
1005 |
<tr>
|
|
|
1006 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1007 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
1008 |
Land:
|
|
|
1009 |
<? } ?>
|
|
|
1010 |
</font></b></td>
|
|
|
1011 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1012 |
<input type="text" name="Land" value="<? echo $zeile[Land] ?>">
|
|
|
1013 |
</td>
|
|
|
1014 |
</tr>
|
|
|
1015 |
<?
|
|
|
1016 |
}
|
|
|
1017 |
?>
|
|
|
1018 |
<?
|
|
|
1019 |
$Feld="Telefon";
|
|
|
1020 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1021 |
{
|
|
|
1022 |
?>
|
|
|
1023 |
|
|
|
1024 |
<tr>
|
|
|
1025 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1026 |
<?
|
|
|
1027 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
1028 |
{
|
|
|
1029 |
$felder = explode(";",$web_rechte[modul_name][tool_name][$Feld]);
|
|
|
1030 |
echo array_shift($felder);
|
|
|
1031 |
}
|
|
|
1032 |
else
|
|
|
1033 |
{
|
|
|
1034 |
echo "Telefon:";
|
|
|
1035 |
$felder=array("");
|
|
|
1036 |
}
|
|
|
1037 |
?>
|
|
|
1038 |
</font></b></td>
|
|
|
1039 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1040 |
<?
|
|
|
1041 |
foreach(array_keys($felder) as $fkey)
|
|
|
1042 |
{
|
|
|
1043 |
if ($fkey > 0) {$fIndex = $fkey;} else {unset($fIndex);}
|
|
|
1044 |
?><input type="text" name="Telefon<?=$fIndex;?>" value="<? echo $zeile["Telefon".$fIndex] ?>"><?
|
|
|
1045 |
echo " (".$felder[$fkey].")";
|
|
|
1046 |
?><br><?
|
|
|
1047 |
}
|
|
|
1048 |
?>
|
|
|
1049 |
</td>
|
|
|
1050 |
</tr>
|
|
|
1051 |
<?
|
|
|
1052 |
}
|
|
|
1053 |
?>
|
|
|
1054 |
<?
|
|
|
1055 |
$Feld="Fax";
|
|
|
1056 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1057 |
{
|
|
|
1058 |
?>
|
|
|
1059 |
|
|
|
1060 |
<tr>
|
|
|
1061 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1062 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
1063 |
Fax:
|
|
|
1064 |
<? } ?>
|
|
|
1065 |
</font></b></td>
|
|
|
1066 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1067 |
<input type="text" name="Fax" value="<? echo $zeile[Fax] ?>">
|
|
|
1068 |
</td>
|
|
|
1069 |
</tr>
|
|
|
1070 |
<?
|
|
|
1071 |
}
|
|
|
1072 |
?>
|
|
|
1073 |
<?
|
|
|
1074 |
$Feld="E_Mail";
|
|
|
1075 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1076 |
{
|
|
|
1077 |
?>
|
|
|
1078 |
<tr>
|
|
|
1079 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1080 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
1081 |
E-Mail:
|
|
|
1082 |
<? } ?>
|
|
|
1083 |
</font></b></td>
|
|
|
1084 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1085 |
<input type="text" name="E_Mail" value="<? echo $zeile[E_Mail] ?>">
|
|
|
1086 |
</td>
|
|
|
1087 |
</tr>
|
|
|
1088 |
<?
|
|
|
1089 |
}
|
|
|
1090 |
?>
|
|
|
1091 |
<?
|
|
|
1092 |
$Feld="URL";
|
|
|
1093 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1094 |
{
|
|
|
1095 |
?>
|
|
|
1096 |
<tr>
|
|
|
1097 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1098 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
1099 |
Homepage:
|
|
|
1100 |
<? } ?>
|
|
|
1101 |
</font></b></td>
|
|
|
1102 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1103 |
<input type="text" name="URL" value="<? echo $zeile[URL] ?>">
|
|
|
1104 |
</td>
|
|
|
1105 |
</tr>
|
|
|
1106 |
<?
|
|
|
1107 |
}
|
|
|
1108 |
?>
|
|
|
1109 |
<?
|
|
|
1110 |
for ($x=1; $x<=2; $x++)
|
|
|
1111 |
{
|
|
|
1112 |
$Feld="Datum".$x;
|
|
|
1113 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1114 |
{
|
|
|
1115 |
?>
|
|
|
1116 |
<tr>
|
|
|
1117 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1118 |
<?
|
|
|
1119 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
1120 |
{
|
|
|
1121 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
1122 |
}
|
|
|
1123 |
else
|
|
|
1124 |
{
|
|
|
1125 |
echo "Datum ".$x;
|
|
|
1126 |
}
|
|
|
1127 |
?>
|
|
|
1128 |
</font></b>
|
|
|
1129 |
</td>
|
|
|
1130 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1131 |
<input type="text" name="Datum<? echo $x ?>" value="<?=$zeile[$Feld];?>">
|
|
|
1132 |
</td>
|
|
|
1133 |
</tr>
|
|
|
1134 |
<?
|
|
|
1135 |
}
|
|
|
1136 |
}
|
|
|
1137 |
?>
|
|
|
1138 |
<?
|
|
|
1139 |
for ($Eigenschaft_nr=1; $Eigenschaft_nr<=5; $Eigenschaft_nr++)
|
|
|
1140 |
{
|
|
|
1141 |
$Feld="Eigenschaft_".$Eigenschaft_nr;
|
|
|
1142 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1143 |
{
|
|
|
1144 |
?>
|
|
|
1145 |
<tr>
|
|
|
1146 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>"><?
|
|
|
1147 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
1148 |
{
|
|
|
1149 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
1150 |
}
|
|
|
1151 |
else
|
|
|
1152 |
{
|
|
|
1153 |
?>
|
|
|
1154 |
Eigenschaft
|
|
|
1155 |
<? echo $Eigenschaft_nr ?>
|
|
|
1156 |
<?
|
|
|
1157 |
}
|
|
|
1158 |
?>
|
|
|
1159 |
</font></b>
|
|
|
1160 |
</td>
|
|
|
1161 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1162 |
<input type="hidden" name="Eigenschaft_<? echo $Eigenschaft_nr ?>" value="0">
|
|
|
1163 |
<input type="checkbox" name="Eigenschaft_<? echo $Eigenschaft_nr ?>" <? if ($zeile[$Feld] == 1) {echo "checked";} ?> value="1">
|
|
|
1164 |
</td>
|
|
|
1165 |
</tr>
|
|
|
1166 |
<?
|
|
|
1167 |
}
|
|
|
1168 |
}
|
|
|
1169 |
?>
|
|
|
1170 |
<?
|
|
|
1171 |
for($bild_nr=1; $bild_nr <=7; $bild_nr++)
|
|
|
1172 |
{
|
|
|
1173 |
$Feld="bild$bild_nr";
|
|
|
1174 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1175 |
{
|
|
|
1176 |
?>
|
|
|
1177 |
<tr>
|
|
|
1178 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="21%">
|
|
|
1179 |
<font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
1180 |
<?
|
|
|
1181 |
$Felddaten = explode(";", $web_rechte[modul_name][tool_name][$Feld]);
|
|
|
1182 |
if ($Felddaten[0])
|
|
|
1183 |
{
|
|
|
1184 |
echo $Felddaten[0];
|
|
|
1185 |
}
|
|
|
1186 |
else
|
|
|
1187 |
{
|
|
|
1188 |
echo "Bild ".$bild_nr;
|
|
|
1189 |
}
|
|
|
1190 |
?>
|
|
|
1191 |
</b></font> </td>
|
|
|
1192 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" colspan="2" width="79%">
|
|
|
1193 |
<table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
|
1194 |
<tr>
|
|
|
1195 |
<td width="55%" nowrap colspan="2"> <font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
1196 |
<?
|
|
|
1197 |
$image_name="bild_".$bild_nr."_url";
|
|
|
1198 |
$image_Path="/images/Login/Bild_".$bild_nr."/";
|
|
|
1199 |
$image_Path=$webs[verzeichnis].$image_Path;
|
|
|
1200 |
|
|
|
1201 |
if ($Language_neueintrag)
|
|
|
1202 |
{
|
|
|
1203 |
?><input type="hidden" name="<? echo $image_name ?>" value="<? echo $zeile[$image_name] ?>"><?
|
|
|
1204 |
}
|
|
|
1205 |
?><input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>"><?
|
|
|
1206 |
|
|
|
1207 |
if ($zeile[$image_name] != "")
|
|
|
1208 |
{
|
|
|
1209 |
?>
|
|
|
1210 |
<input type="radio" name="_<? echo $image_name ?>" value="0" checked>
|
|
|
1211 |
<a href="http://<? echo $site."/images/Login/Bild_".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
1212 |
<? echo $zeile[$image_name]; ?> </a>
|
|
|
1213 |
<?
|
|
|
1214 |
if (file_exists($image_Path.$zeile[$image_name]))
|
|
|
1215 |
{
|
|
|
1216 |
$size= filesize ($image_Path.$zeile[$image_name]) >> 10;
|
|
|
1217 |
$imgsize = GetImageSize ($image_Path.$zeile[$image_name]);
|
|
|
1218 |
echo " ( $size KB";
|
|
|
1219 |
if ($imgsize) { echo " $imgsize[0]x$imgsize[1]"; }
|
|
|
1220 |
echo " )<BR>";
|
|
|
1221 |
} else { echo "<br>";}
|
|
|
1222 |
}
|
|
|
1223 |
?>
|
|
|
1224 |
<input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>>
|
|
|
1225 |
kein
|
|
|
1226 |
<? if (substr($Felddaten[0],0,4) == "Doku")
|
|
|
1227 |
{ ?>
|
|
|
1228 |
Dokument
|
|
|
1229 |
<? }
|
|
|
1230 |
else
|
|
|
1231 |
{ ?>
|
|
|
1232 |
Bild
|
|
|
1233 |
<? } ?>
|
|
|
1234 |
<br>
|
|
|
1235 |
<input type="radio" name="_<? echo $image_name ?>" value="2">
|
|
|
1236 |
<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;">
|
|
|
1237 |
</font> </td>
|
|
|
1238 |
<td width="45%" nowrap align="center"><font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
1239 |
</font>
|
|
|
1240 |
<? if (substr($Felddaten[0],0,4) <> "Doku")
|
|
|
1241 |
{
|
|
|
1242 |
if ($zeile[$image_name] != "")
|
|
|
1243 |
{ ?>
|
|
|
1244 |
<a href="http://<? echo $site."/images/Login/Bild_".$bild_nr."/".$zeile[$image_name] ?>" target="blank"><img height="60" src="http://<? echo $site."/images/Login/Bild_".$bild_nr."/".$zeile[$image_name] ?>" border="0"></a>
|
|
|
1245 |
<? }
|
|
|
1246 |
} ?>
|
|
|
1247 |
<font color="#<? echo $webs[font_color_rechts] ?>">
|
|
|
1248 |
</font> </td>
|
|
|
1249 |
</tr>
|
|
|
1250 |
</table>
|
|
|
1251 |
<?
|
|
|
1252 |
if ((isset($user_rechte[modul_name][tool_name]["bild".$bild_nr."_text"])) and (isset($user_rechte[modul_name][tool_name]["bild_pos".$bild_nr])))
|
|
|
1253 |
{
|
|
|
1254 |
?>
|
|
|
1255 |
<hr width="100%">
|
|
|
1256 |
<?
|
|
|
1257 |
}
|
|
|
1258 |
?>
|
|
|
1259 |
<table border="0" width="50%" cellspacing="0" cellpadding="0">
|
|
|
1260 |
<?
|
|
|
1261 |
if (isset($user_rechte[modul_name][tool_name]["bild".$bild_nr."_text"]))
|
|
|
1262 |
{
|
|
|
1263 |
?>
|
|
|
1264 |
<tr>
|
|
|
1265 |
<td width="27%" nowrap><font color="#<? echo $webs[font_color_rechts] ?>">Unterschrift:</font></td>
|
|
|
1266 |
<td width="28%" nowrap>
|
|
|
1267 |
<input type="text" name="bildunterschrift_<? echo $bild_nr ?>" value="<? echo $zeile["bildunterschrift_".$bild_nr] ?>">
|
|
|
1268 |
</td>
|
|
|
1269 |
</tr>
|
|
|
1270 |
<?
|
|
|
1271 |
}
|
|
|
1272 |
if (isset($user_rechte[modul_name][tool_name]["bild_pos".$bild_nr]))
|
|
|
1273 |
{
|
|
|
1274 |
?>
|
|
|
1275 |
<tr>
|
|
|
1276 |
<td width="27%" height="23" nowrap><font color="#<? echo $webs[font_color_rechts] ?>">Position:</font></td>
|
|
|
1277 |
<td width="28%" nowrap>
|
|
|
1278 |
<? $kats=explode(";",$web_rechte[modul_name][tool_name]["bild_pos".$bild_nr]); ?>
|
|
|
1279 |
<select name="bild_position_<? echo $bild_nr ?>"
|
|
|
1280 |
<? echo $web_rechte[modul_name][tool_name][$Feld."_EventHandler"]; ?>>
|
|
|
1281 |
<?
|
|
|
1282 |
$kat_runner=0;
|
|
|
1283 |
foreach($kats as $elem)
|
|
|
1284 |
{
|
|
|
1285 |
?>
|
|
|
1286 |
<option value="<? echo $kat_runner ?>"<? if ($zeile["bild_position_".$bild_nr] == $kat_runner) { ?>selected<? } ?>>
|
|
|
1287 |
<? echo $elem ?>
|
|
|
1288 |
</option>
|
|
|
1289 |
<?
|
|
|
1290 |
$kat_runner++;
|
|
|
1291 |
}
|
|
|
1292 |
?>
|
|
|
1293 |
</select>
|
|
|
1294 |
</td>
|
|
|
1295 |
</tr>
|
|
|
1296 |
<?
|
|
|
1297 |
}
|
|
|
1298 |
?>
|
|
|
1299 |
</table>
|
|
|
1300 |
</td>
|
|
|
1301 |
</tr>
|
|
|
1302 |
<?
|
|
|
1303 |
}
|
|
|
1304 |
}
|
|
|
1305 |
?>
|
|
|
1306 |
<?
|
|
|
1307 |
$Feld="AP_Daten";
|
|
|
1308 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1309 |
{
|
|
|
1310 |
?>
|
|
|
1311 |
<tr>
|
|
|
1312 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="20%" rowspan="3"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1313 |
<? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
|
|
|
1314 |
Ansprechpartner:
|
|
|
1315 |
<? } ?>
|
|
|
1316 |
</font></b></td>
|
|
|
1317 |
<td width="14%" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><b><font color="#<? echo $webs[font_color_rechts] ?>">Name:</font></b></td>
|
|
|
1318 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1319 |
<input type="text" name="AP_Name" value="<? echo $zeile[AP_Name] ?>">
|
|
|
1320 |
</td>
|
|
|
1321 |
</tr>
|
|
|
1322 |
<tr>
|
|
|
1323 |
<td width="14%" height="36" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><b><font color="#<? echo $webs[font_color_rechts] ?>">Handy:</font></b></td>
|
|
|
1324 |
<td height="36" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1325 |
<input type="text" name="AP_Handy" value="<? echo $zeile[AP_Handy] ?>">
|
|
|
1326 |
</td>
|
|
|
1327 |
</tr>
|
|
|
1328 |
<tr>
|
|
|
1329 |
<td width="14%" valign="top" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><b><font color="#<? echo $webs[font_color_rechts] ?>">Bemerkung:</font></b></td>
|
|
|
1330 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1331 |
<textarea name="AP_Bemerkung" cols="60" rows="5"><? echo $zeile[AP_Bemerkung] ?></textarea>
|
|
|
1332 |
</td>
|
|
|
1333 |
</tr>
|
|
|
1334 |
<? } ?>
|
|
|
1335 |
<?
|
|
|
1336 |
for ($Notiz_nr=1; $Notiz_nr<=5; $Notiz_nr++)
|
|
|
1337 |
{
|
|
|
1338 |
$Feld="Notiz_".$Notiz_nr;
|
|
|
1339 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1340 |
{
|
|
|
1341 |
?>
|
|
|
1342 |
<tr>
|
|
|
1343 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>"><?
|
|
|
1344 |
if ($web_rechte[modul_name][tool_name][$Feld])
|
|
|
1345 |
{
|
|
|
1346 |
echo $web_rechte[modul_name][tool_name][$Feld];
|
|
|
1347 |
}
|
|
|
1348 |
else
|
|
|
1349 |
{
|
|
|
1350 |
?>
|
|
|
1351 |
Notiz
|
|
|
1352 |
<? echo $Notiz_nr ?>
|
|
|
1353 |
<?
|
|
|
1354 |
}
|
|
|
1355 |
?>
|
|
|
1356 |
</font></b>
|
|
|
1357 |
</td>
|
|
|
1358 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1359 |
<input type="text" name="Notiz_<? echo $Notiz_nr ?>" value="<?=$zeile[$Feld];?>">
|
|
|
1360 |
</td>
|
|
|
1361 |
</tr>
|
|
|
1362 |
<?
|
|
|
1363 |
}
|
|
|
1364 |
}
|
|
|
1365 |
?>
|
|
|
1366 |
<?
|
|
|
1367 |
$Feld="Vereinsdaten";
|
|
|
1368 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1369 |
{
|
|
|
1370 |
?>
|
|
|
1371 |
<tr>
|
|
|
1372 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle"><b><font color="#<? echo $webs[font_color_links] ?>">Eintrittsdatum:</font></b></td>
|
|
|
1373 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><input type="text" name="Eintrittsdatum" value="<? echo $zeile[Eintrittsdatum] ?>"></td>
|
|
|
1374 |
</tr>
|
|
|
1375 |
<tr>
|
|
|
1376 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle"><b><font color="#<? echo $webs[font_color_links] ?>">Austrittsdatum:</font></b></td>
|
|
|
1377 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><input type="text" name="Austrittsdatum" value="<? echo $zeile[Austrittsdatum] ?>">
|
|
|
1378 |
Grund:
|
|
|
1379 |
<input name="Austrittsgrund" type="text" value="<? echo $zeile[Austrittsgrund] ?>" size="30"></td>
|
|
|
1380 |
</tr>
|
|
|
1381 |
<tr>
|
|
|
1382 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle"><b><font color="#<? echo $webs[font_color_links] ?>">Beitrag
|
|
|
1383 |
bezahlt:</font></b></td>
|
|
|
1384 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><input type="text" name="Beitrag_bezahlt" value="<? echo $zeile[Beitrag_bezahlt] ?>">
|
|
|
1385 |
<input name="Beitrag_Wert" type="text" value="<? echo $zeile[Beitrag_Wert] ?>" size="8" onChange="this.value=killkomma(this.value);">
|
|
|
1386 |
€</td>
|
|
|
1387 |
</tr>
|
|
|
1388 |
<tr>
|
|
|
1389 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle"><b><font color="#<? echo $webs[font_color_links] ?>">Beitrag
|
|
|
1390 |
letztes J.:</font></b></td>
|
|
|
1391 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><? echo $zeile[Beitrag_letztes] ?> <? echo $zeile[Betrag_letzter_Wert] ?> €</td>
|
|
|
1392 |
</tr>
|
|
|
1393 |
<tr>
|
|
|
1394 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="middle" width="20%"><b><font color="#<? echo $webs[font_color_links] ?>">
|
|
|
1395 |
Mitgliedskarte ausgegeben:</font></b></td>
|
|
|
1396 |
<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1397 |
<input type="text" name="Mitgliedskarte" value="<? echo $zeile[Mitgliedskarte] ?>"> <br>
|
|
|
1398 |
</td>
|
|
|
1399 |
</tr>
|
|
|
1400 |
<?
|
|
|
1401 |
}
|
|
|
1402 |
?>
|
|
|
1403 |
<?
|
|
|
1404 |
$Feld="bemerkung";
|
|
|
1405 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1406 |
{
|
|
|
1407 |
?>
|
|
|
1408 |
<tr>
|
|
|
1409 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" valign="top" width="21%">
|
|
|
1410 |
<font color="#<? echo $webs[font_color_links] ?>"><b>Bemerkung</b></font>
|
|
|
1411 |
</td>
|
|
|
1412 |
<td width="79%" colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
1413 |
<font color="#<? echo $webs[font_color_links] ?>"><b>
|
|
|
1414 |
<textarea name="<? echo $Feld ?>" cols="75" rows="6"><? echo $zeile[$Feld]; ?></textarea>
|
|
|
1415 |
</b></font></td>
|
|
|
1416 |
</tr>
|
|
|
1417 |
<?
|
|
|
1418 |
}
|
|
|
1419 |
?>
|
|
|
1420 |
<?
|
|
|
1421 |
if ($ID)
|
|
|
1422 |
{
|
|
|
1423 |
if ($zeile[erstellt_am])
|
|
|
1424 |
{
|
|
|
1425 |
?>
|
|
|
1426 |
<tr>
|
|
|
1427 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" width="20%">
|
|
|
1428 |
<font color="#<? echo $webs[font_color_links] ?>"><b>erstellt:</b></font>
|
|
|
1429 |
</td>
|
|
|
1430 |
<td colspan="3" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_rechts] ?>">am:
|
|
|
1431 |
<? $erstellt_am=datetime2human($zeile[erstellt_am]); ?>
|
|
|
1432 |
<? echo $erstellt_am[Datum] ?>
|
|
|
1433 |
um:
|
|
|
1434 |
<? echo $erstellt_am[Zeit] ?>
|
|
|
1435 |
von:
|
|
|
1436 |
<? echo $zeile[erstellt_von] ?></font>
|
|
|
1437 |
</td>
|
|
|
1438 |
</tr>
|
|
|
1439 |
<?
|
|
|
1440 |
}
|
|
|
1441 |
?>
|
|
|
1442 |
<tr>
|
|
|
1443 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" width="20%" nowrap>
|
|
|
1444 |
<font color="#<? echo $webs[font_color_links] ?>"><b>letzte Änderung:</b></font>
|
|
|
1445 |
</td>
|
|
|
1446 |
<td colspan="3" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_rechts] ?>">am:
|
|
|
1447 |
<?
|
|
|
1448 |
if (strpos ($zeile[letzte_Aenderung_am], " "))
|
|
|
1449 |
{
|
|
|
1450 |
$letzte_Aenderung_am=datetime2human($zeile[letzte_Aenderung_am]);
|
|
|
1451 |
}
|
|
|
1452 |
else
|
|
|
1453 |
{
|
|
|
1454 |
$letzte_Aenderung_am=timestamp2human($zeile[letzte_Aenderung_am]);
|
|
|
1455 |
}
|
|
|
1456 |
?>
|
|
|
1457 |
<? echo $letzte_Aenderung_am[Datum] ?>
|
|
|
1458 |
um:
|
|
|
1459 |
<? echo $letzte_Aenderung_am[Zeit] ?>
|
|
|
1460 |
von:
|
|
|
1461 |
<? echo $zeile[letzte_Aenderung_von] ?></font>
|
|
|
1462 |
</td>
|
|
|
1463 |
</tr>
|
|
|
1464 |
<?
|
|
|
1465 |
}
|
|
|
1466 |
?>
|
|
|
1467 |
|
|
|
1468 |
<tr>
|
|
|
1469 |
<td align="right" colspan="3" bgcolor="#<? echo $webs[bgcolor_links] ?>">
|
|
|
1470 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
1471 |
<input type="hidden" name="action" value="update">
|
|
|
1472 |
<input type="submit" value="OK" onClick="if (this.form.passwd) {if (this.form.passwd.value != this.form.pwdcheck.value) {alert('Passwort und Passwortbestätigung stimmen nicht überein !');return false;}}">
|
|
|
1473 |
<input type="reset" name="Button" value="Zurücksetzen">
|
|
|
1474 |
</td>
|
|
|
1475 |
</tr>
|
|
|
1476 |
</table>
|
|
|
1477 |
<?
|
|
|
1478 |
}
|
|
|
1479 |
?> </td>
|
|
|
1480 |
<td width="77" align="right">
|
|
|
1481 |
<table width="67" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
1482 |
<tr>
|
|
|
1483 |
<td class="frame"><a href="<? echo $self ?>?action=edit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','../images/navigation/bt_neu_f2.gif',1)"><img name="Image5" border="0" src="../images/navigation/bt_neu.gif" width="67" height="40"></a></td>
|
|
|
1484 |
</tr>
|
|
|
1485 |
<tr>
|
|
|
1486 |
<td class="frame"><a href="<? echo $self ?>?action=select_edit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','../images/navigation/bt_bearbeiten_f2.gif',1)"><img name="Image6" border="0" src="../images/navigation/bt_bearbeiten.gif" width="67" height="40"></a></td>
|
|
|
1487 |
</tr>
|
|
|
1488 |
<tr>
|
|
|
1489 |
<td><a href="<? echo $self ?>?action=delete<? if (($action=="edit") && ($ID > 0)) { ?>&ID[]=<?=$ID?>" onClick="return confirm('Diesen Eintrag wirklich löschen ?');"<? } else { ?>"<? } ?> 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>
|
|
|
1490 |
</tr>
|
|
|
1491 |
<?
|
|
|
1492 |
$Feld="import";
|
|
|
1493 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
1494 |
{
|
|
|
1495 |
?>
|
|
|
1496 |
<tr>
|
|
|
1497 |
<td class="frame" align="center"><a href="<? echo $self ?>?action=import">import</a></td>
|
|
|
1498 |
</tr>
|
|
|
1499 |
<? } ?>
|
|
|
1500 |
|
|
|
1501 |
</table>
|
|
|
1502 |
</td>
|
|
|
1503 |
</tr>
|
|
|
1504 |
</table>
|
|
|
1505 |
</form>
|
|
|
1506 |
</body>
|