Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
    session_start();
3
 
4
    $self = basename( $PHP_SELF );
5
    // SEBASTIAN
6
    // verwendungsfilter
7
    if ( isset( $_GET[modul] ) )
8
    {
9
        $_SESSION[$self][verwendung] = $_GET[modul];
10
    }
11
    $DB = "Features";
12
    // SEBASTIAN
13
    if ( $_SESSION[$self][verwendung] == "Branchenbuch" )
14
    {
15
        define( "modul_name", "branchenbuch" );
16
    }
17
    else
18
    {
19
        define( "modul_name", "online_shop" );
20
    }
21
    define( "tool_name", "optionen" );
22
 
23
    require_once  "connect2.php";
24
    require_once "language_pack.php";
25
 
26
    // SEBASTIAN
27
    // prüfen, ob die spalte verwendung existiert
28
    if ( !isset( $_SESSION[$self][spalte_verwendung_existiert] ) )
29
    {
30
        $query = "show columns from Features like 'verwendung'";
31
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
32
            mysql_error() . "<hr>" . $query . "<hr>" );
33
        $_SESSION[$self][spalte_verwendung_existiert] = ( mysql_num_rows( $result ) >
34
 
35
    }
36
    if ( $action == "update" )
37
    {
38
        if ( !$ID )
39
        { // insert Dummy-Entry
40
            $query = "insert into $DB (ID) VALUES (0)";
41
            $result = mysql_query( $query ) or die( mysql_errno() . ": " .
42
                mysql_error() . "<hr>" . $query . "<hr>" );
43
            $ID = mysql_insert_id();
44
        }
45
 
46
        unset( $HTTP_POST_VARS[action] );
47
        unset( $HTTP_POST_VARS[ID] );
48
 
49
        foreach ( array_keys( $HTTP_POST_VARS ) as $elem )
50
        {
51
            if ( $elem[0] == "_" )
52
            {
53
                unset( $HTTP_POST_VARS[$elem] );
54
                $button = $$elem;
55
                $elem = substr( $elem, 1 );
56
                $Pfad = $HTTP_POST_VARS[$elem . "_Pfad"];
57
                unset( $HTTP_POST_VARS[$elem . "_Pfad"] );
58
                $image = $$elem;
59
                $image_name = $elem . "_name";
60
                $image_name = urlencode( $$image_name );
61
                switch ( $button )
62
                {
63
                    case 0:
64
                        break;
65
                    case 1:
66
                        $HTTP_POST_VARS[$elem] = '';
67
                        break;
68
                    case 2:
69
                        //$image_name=$ID."_".$image_name;
70
                        $image_name = $ID . strrchr( $image_name, "." );
71
                        $HTTP_POST_VARS[$elem] = $image_name;
72
                        copy( $image, $Pfad . $image_name );
73
                        break;
74
                    default:
75
                        break;
76
                }
77
            }
78
        }
79
        $names = array();
80
 
81
 
82
 
83
        /* DateiUPload START */
84
        // Datei löschen
85
        foreach ( $HTTP_POST_VARS as $kk => $vv )
86
        {
87
            if ( stristr( $kk, "delete_" ) )
88
            {
89
                $cnt = explode( "_", $kk );
90
                $cntArr[] = $cnt[2];
91
                unset( $HTTP_POST_VARS[$kk] );
92
            }
93
        }
94
        $upd = "update " . $DB . " set ";
95
        if ( $cntArr )
96
        {
97
            foreach ( $cntArr as $kk => $vv )
98
            {
99
                $updelem[] = "datei_" . $vv . "=''";
100
                $updelem[] = "titel_" . $vv . "=''";
101
                unset( $HTTP_POST_VARS["datei_" . $vv . ""] );
102
                unset( $HTTP_POST_VARS["titel_" . $vv . ""] );
103
            }
104
        }
105
        if ( $updelem )
106
        {
107
            $upd .= implode( ", ", $updelem );
108
            $upd .= " where ID=" . $ID . "";
109
            $result = mysql_query( $upd ) or die( mysql_errno() . ": " .
110
                mysql_error() . "<hr>$query<hr>" );
111
        }
112
        // Datei uploaden und in httpvars schreiben
113
        if ( $_FILES['error'] == 0 )
114
        {
115
 
116
            foreach ( $_FILES as $kk => $vv )
117
            {
118
                // Datei umbenennen: [SHOP_ID]_[FEATURE_ID]_[NAME]
119
                $new_filename = urlencode( $webs['ID'] . "_" . $ID . "_" . $vv['name'] );
120
 
121
                // Datei kopieren
122
                // pfad zum Optionenbild
123
                $image_Path = "/images/features/";
124
                $image_Path = $webs[verzeichnis] . $image_Path;
125
                $dest = $image_Path . $new_filename;
126
                move_uploaded_file( $vv['tmp_name'], $dest );
127
 
128
 
129
                if ( file_exists( $dest ) )
130
                {
131
                    // Filename dem http_post_vars array hinzufügen
132
                    $HTTP_POST_VARS[$kk] = $new_filename;
133
                }
134
            }
135
        }
136
        /* DateiUPload ENDE */
137
 
138
 
139
 
140
        foreach ( array_keys( $HTTP_POST_VARS ) as $elem )
141
        {
142
 
143
            array_push( $names, "$elem='$HTTP_POST_VARS[$elem]'" );
144
        }
145
        $query = "update $DB set " . join( $names, ', ' );
146
        // SEBASTIAN
147
        if ( $_SESSION[$self][spalte_verwendung_existiert] )
148
        {
149
            $query .= ", verwendung = '" . $_SESSION[$self][verwendung] .
150
                "' ";
151
        }
152
        $query = $query . " where ID = '$ID'";
153
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
154
            mysql_error() . "<hr>$query<hr>" );
155
        header( "Location: " . $self );
156
    }
157
 
158
    if ( $action == "delete" )
159
    {
160
        if ( $ID )
161
        {
162
            $condition = array();
163
            $condition2 = array();
164
            foreach ( $ID as $elem )
165
            {
166
                array_push( $condition, " ID = '$elem'" );
167
                array_push( $condition2, " Feature = '$elem'" );
168
            }
169
            $cond = join( " or ", $condition );
170
            $cond2 = join( " or ", $condition2 );
171
            $query = "DELETE FROM $DB WHERE $cond";
172
            $query2 = "DELETE FROM Feature_options WHERE $cond2";
173
            $result = mysql_query( "$query" ) or die( mysql_errno() . ": " .
174
                mysql_error() );
175
            $result = mysql_query( "$query2" ) or die( mysql_errno() . ": " .
176
                mysql_error() );
177
            header( "Location: " . $self );
178
        }
179
    }
180
    if ( !$action )
181
    {
182
        $action = "select_edit";
183
    }
184
    if ( !$sort )
185
    {
186
        $sort = 'Name';
187
    }
188
?>
189
<html>
190
<head>
191
<title><? echo $webs[kunde_bezeichnung]
192
?>: Redaktionssystem</title>
193
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
194
<link rel=stylesheet type="text/css" href="redaktion.css">
195
<style type="text/css">
196
body
197
{
198
	font-family: Arial, Helvetica, sans-serif; font-size: 10pt;
199
<? if ( $webs[font_color_seite] )
200
    {
201
?>color:				#<? echo $webs[font_color_seite]
202
?>;<? }
203
?>
204
<? if ( $webs[bgcolor_seite] )
205
    {
206
?>background-color:	#<? echo $webs[bgcolor_seite]
207
?>;<? }
208
?>
209
<? if ( $webs[hintergrundbild] )
210
    {
211
?>background-image: url(../images/hintergrundbild/<? echo
212
$webs[hintergrundbild]
213
?>);<? }
214
?>
215
}
216
 
217
.links
218
{
219
font-size: 10pt;
220
font-weight:bold;
221
vertical-align:top;
222
width:10%;
223
<? if ( $webs[font_color_links] )
224
    {
225
?>color:				#<? echo $webs[font_color_links]
226
?>;<? }
227
?>
228
<? if ( $webs[bgcolor_links] )
229
    {
230
?>background-color:	#<? echo $webs[bgcolor_links]
231
?>;<? }
232
?>
233
}
234
 
235
.rechts
236
{
237
font-size: 10pt;
238
<? if ( $webs[font_color_rechts] )
239
    {
240
?>color:				#<? echo $webs[font_color_rechts]
241
?>;<? }
242
?>
243
<? if ( $webs[bgcolor_rechts] )
244
    {
245
?>background-color:	#<? echo $webs[bgcolor_rechts]
246
?>;<? }
247
?>
248
}
249
 
250
A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo
251
$webs[font_color_rechts]
252
?>}
253
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo
254
$webs[font_color_rechts]
255
?>}
256
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo
257
$webs[font_color_rechts]
258
?>}
259
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo
260
$webs[font_color_rechts]
261
?>}
262
</style><MM:EndLock>
263
<script language="JavaScript">
264
<!--
265
function MM_swapImgRestore() { //v3.0
266
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
267
}
268
 
269
function MM_preloadImages() { //v3.0
270
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
271
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
272
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
273
}
274
 
275
function MM_swapImage() { //v3.0
276
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
277
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
278
}
279
 
280
function MM_findObj(n, d) { //v4.01
281
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
282
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
283
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
284
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
285
  if(!x && d.getElementById) x=d.getElementById(n); return x;
286
}
287
//-->
288
</script>
289
<meta name="description" content="Redaktionssystem">
290
<meta name="author" content="Webagentur Niewerth">
291
<meta name="robots" content="noindex">
292
</head>
293
 
294
<body bgcolor="#<? echo $webs[bgcolor_seite];
295
?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#000000" onLoad="MM_preloadImages('../images/navigation/bt_bearbeiten_f2.gif','../images/navigation/bt_delete_f2.gif','../images/navigation/bt_neu_f2.gif')">
296
<form method="post" action="#" name="formname" enctype="multipart/form-data">
297
<table width="595" border="0" cellspacing="0" cellpadding="0">
298
	<tr valign="top">
299
		<td width="508">
300
<?
301
    if ( $action == "delete" )
302
    {
303
        $query = "SELECT * FROM $DB ";
304
        // SEBASTIAN
305
        if ( $_SESSION[$self][spalte_verwendung_existiert] )
306
        {
307
            $query .= "where verwendung = '" . $_SESSION[$self][verwendung] .
308
                "' ";
309
        }
310
        $query = $query . "order by $sort";
311
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
312
            mysql_error() );
313
        if ( mysql_num_rows( $result ) == 0 )
314
        {
315
?>
316
			<font color="#<? echo $webs[font_color_seite]
317
?>"><b>Es sind keine Daten eingetragen !</b></font>
318
<?
319
        }
320
        else
321
        {
322
?>
323
			<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
324
				<tr bgcolor="#<? echo $webs[bgcolor_links]
325
?>">
326
					<td colspan="2"><font color="#<? echo $webs[font_color_links]
327
?>"><b>Option: L&ouml;schen</b></font></td>
328
				</tr>
329
				<?
330
            while ( $zeile = mysql_fetch_array( $result ) )
331
            {
332
?>
333
				<tr>
334
 
335
            <td bgcolor="#<? echo $webs[bgcolor_rechts]
336
?>"><a href="<? echo
337
$self
338
?>?action=edit&ID=<? echo
339
$zeile[ID];
340
?>"><? echo
341
$zeile[Name]
342
?></a></td>
343
					<td width="5%" align="center" bgcolor="#<? echo $webs[bgcolor_rechts]
344
?>"><input type="checkbox" name="ID[]" value="<? echo
345
$zeile[ID]
346
?>"></td>
347
				</tr>
348
				<?
349
            }
350
?>
351
 
352
 
353
 
354
				<tr bgcolor="#<? echo $webs[bgcolor_links]
355
?>">
356
					<td colspan="2" align="right">
357
						<input type="hidden" name="action" value='delete'>
358
						<input type="submit" value="LÖSCHEN">
359
						<input type="reset" value="Zur&uuml;cksetzen">
360
					</td>
361
				</tr>
362
			</table>
363
<?
364
        }
365
?>
366
<?
367
    }
368
?>
369
<!--  Auswahl Löschen ENDE  -->
370
<!--  Auswahl SELECT_EDIT START  -->
371
<?
372
    if ( $action == "select_edit" )
373
    {
374
        $query = "SELECT * FROM $DB ";
375
        // SEBASTIAN
376
        if ( $_SESSION[$self][spalte_verwendung_existiert] )
377
        {
378
            $query .= "where verwendung = '" . $_SESSION[$self][verwendung] .
379
                "' ";
380
        }
381
        $query = $query . "order by $sort";
382
 
383
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
384
            mysql_error() );
385
        if ( mysql_num_rows( $result ) == 0 )
386
        {
387
?>
388
			<font color="#<? echo $webs[font_color_seite]
389
?>"><b>Es sind keine Daten eingetragen !</b></font>
390
<?
391
        }
392
        else
393
        {
394
?>
395
        <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
396
          <tr bgcolor="#<? echo $webs[bgcolor_links]
397
?>">
398
            <td colspan="2"><font color="#<? echo $webs[font_color_links]
399
?>"><b>Option:
400
              Bearbeiten</b></font></td>
401
          </tr>
402
          <?
403
            while ( $zeile = mysql_fetch_array( $result ) )
404
            {
405
?>
406
          <tr bgcolor="#<? echo $webs[bgcolor_rechts]
407
?>">
408
            <td><a href="<? echo $self
409
?>?action=edit&ID=<? echo $zeile[ID];
410
?>">
411
              <? echo $zeile[Name]
412
?>
413
              </a></td>
414
          </tr>
415
          <?
416
            }
417
?>
418
          <tr bgcolor="#<? echo $webs[bgcolor_links]
419
?>">
420
            <td colspan="2">
421
              &nbsp;<input type="hidden" name="action" value='edit'>
422
            </td>
423
          </tr>
424
        </table>
425
 <?
426
        }
427
?>
428
        <?
429
    }
430
?>
431
<!--  Auswahl SELECT_EDIT ENDE  -->
432
<?
433
    if ( $action == "edit" )
434
    {
435
        if ( $ID )
436
        {
437
            $result = mysql_query( "SELECT * FROM $DB where ID = '$ID'" ) or
438
                die( mysql_errno() . ": " . mysql_error() );
439
            $zeile = mysql_fetch_array( $result );
440
        }
441
?>
442
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
443
	<tr bgcolor="#<? echo $webs[bgcolor_links]
444
?>">
445
		<td colspan="3"><font color="#<? echo $webs[font_color_links]
446
?>"><b>Option:
447
<?
448
        if ( $ID )
449
        {
450
?>
451
Bearbeiten
452
<?
453
        }
454
        else
455
        {
456
?>
457
Neueintrag
458
<?
459
        }
460
?>
461
		</b></font></td>
462
	</tr>
463
<?
464
        $Feld = "Name";
465
        if ( isset( $user_rechte[modul_name][tool_name][$Feld] ) )
466
        {
467
?>
468
	<tr>
469
		    <td bgcolor="#<? echo $webs[bgcolor_links]
470
?>" valign="middle" width="16%">
471
              <font color="#<? echo $webs[font_color_links]
472
?>"><b>
473
              <?
474
            if ( $web_rechte[modul_name][tool_name][$Feld] )
475
            {
476
                echo $web_rechte[modul_name][tool_name][$Feld];
477
            }
478
            else
479
            {
480
?>
481
              Name:
482
              <?
483
            }
484
?>
485
              </b></font> </td>
486
		<td width="84%" colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts]
487
?>">
488
			<input type="text" name="Name" value="<? echo $zeile[Name]
489
?>" >
490
		</td>
491
	</tr>
492
<?
493
        }
494
?>
495
<?
496
        if ( $language_pack )
497
        {
498
?>
499
	<tr>
500
		    <td bgcolor="#<? echo $webs[bgcolor_links]
501
?>" valign="middle" width="16%">
502
              <font color="#<? echo $webs[font_color_links]
503
?>"><b>
504
              <?
505
            if ( $web_rechte[modul_name][tool_name][$Feld] )
506
            {
507
                echo $web_rechte[modul_name][tool_name][$Feld];
508
            }
509
            else
510
            {
511
?>
512
              Sprache:
513
              <?
514
            }
515
?>
516
              </b></font> </td>
517
		    <td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts]
518
?>">
519
<?
520
            if ( $ID )
521
            {
522
                echo $zeile[Language];
523
            }
524
            else
525
            {
526
?>
527
              <select name="Language">
528
<?
529
                foreach ( $language_pack as $language )
530
                {
531
?>
532
<option value="<? echo $language[0]
533
?>" <? if ( $language[0] == $zeile[Language] )
534
                    {
535
?> selected<? }
536
?>><? echo
537
$language[2]
538
?></option>
539
<?
540
                }
541
?>
542
			</select>
543
<?
544
            }
545
?>
546
			</td>
547
	</tr>
548
<?
549
        }
550
?>
551
<?
552
        $Feld = "Sonderoption";
553
        if ( isset( $user_rechte[modul_name][tool_name][$Feld] ) )
554
        {
555
?>
556
	<tr>
557
		    <td bgcolor="#<? echo $webs[bgcolor_links]
558
?>" valign="middle" width="16%">
559
              <font color="#<? echo $webs[font_color_links]
560
?>"><b>
561
              <?
562
            if ( $web_rechte[modul_name][tool_name][$Feld] )
563
            {
564
                echo $web_rechte[modul_name][tool_name][$Feld];
565
            }
566
            else
567
            {
568
?>Sonderoption: <? }
569
?>
570
              </b></font> </td>
571
		<td width="84%" colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts]
572
?>">
573
			<input type="hidden" name="Sonderoption" value="0">
574
              <input type="checkbox" name="Sonderoption" value="1"<? if ( $zeile[Sonderoption] )
575
            {
576
                echo " checked";
577
            }
578
?>>
579
            </td>
580
	</tr>
581
<?
582
        }
583
?>
584
<?
585
        $Feld = "Einzeloption";
586
        if ( isset( $user_rechte[modul_name][tool_name][$Feld] ) )
587
        {
588
?>
589
	<tr>
590
		    <td bgcolor="#<? echo $webs[bgcolor_links]
591
?>" valign="middle" width="16%">
592
              <font color="#<? echo $webs[font_color_links]
593
?>"><b>
594
              <?
595
            if ( $web_rechte[modul_name][tool_name][$Feld] )
596
            {
597
                echo $web_rechte[modul_name][tool_name][$Feld];
598
            }
599
            else
600
            {
601
?>Einzeloption: <? }
602
?>
603
              </b></font> </td>
604
		<td width="84%" colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts]
605
?>">
606
			<input type="hidden" name="<?= $Feld
607
?>" value="0">
608
              <input type="checkbox" name="<?= $Feld
609
?>" value="1"<? if ( $zeile[$Feld] ==
610
1 )
611
            {
612
                echo " checked";
613
            }
614
?>>
615
            </td>
616
	</tr>
617
<?
618
        }
619
?>
620
<?
621
        $Feld = "Text";
622
        if ( isset( $user_rechte[modul_name][tool_name][$Feld] ) )
623
        {
624
?>
625
	<tr>
626
		    <td bgcolor="#<? echo $webs[bgcolor_links]
627
?>" valign="top" width="16%">
628
              <font color="#<? echo $webs[font_color_links]
629
?>"><b>
630
              <?
631
            if ( $web_rechte[modul_name][tool_name][$Feld] )
632
            {
633
                echo $web_rechte[modul_name][tool_name][$Feld];
634
            }
635
            else
636
            {
637
?>
638
              Text:
639
              <?
640
            }
641
?>
642
              </b></font> </td>
643
		<td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts]
644
?>">
645
			<textarea name="Beschreibung" cols="40" rows="5"><? echo $zeile[Beschreibung]
646
?></textarea>
647
		</td>
648
	</tr>
649
<?
650
        }
651
?>
652
<?php
653
        // Dateiupload und Titel START
654
        if ( $opt_kk = array_keys( $web_rechte[modul_name][tool_name] ) )
655
        {
656
 
657
            foreach ( $opt_kk as $kk => $vv )
658
            {
659
                if ( stristr( $vv, "datei_" ) )
660
                {
661
                    $opt_datei[] = $vv;
662
                }
663
                if ( stristr( $vv, "titel_" ) )
664
                {
665
                    $opt_titel[] = $vv;
666
                }
667
            }
668
            if ( $opt_datei )
669
            {
670
                foreach ( $opt_datei as $kk => $vv )
671
                {
672
                    $cnt = explode( "_", $vv );
673
                    $cnt = $cnt[1];
674
                    echo "<tr>
675
										<td bgcolor=\"#" . $webs[bgcolor_links] . "\" valign=\"top\" width=\"16%\">
676
											<font color=\"#" . $webs[font_color_links] . "\"><strong>Datei " .
677
                        $cnt . ":</strong></font>
678
										</td>\n";
679
                    echo "<td bgcolor=\"#" . $webs[bgcolor_rechts] . "\">";
680
                    // bild löschen ermöglichen
681
                    echo "\n<input id=\"delete_" . $vv . "\" name=\"delete_" .
682
                        $vv . "\" type=\"radio\" /> <label for=\"delete_" .
683
                        $vv . "\">Keine Datei</label><br />\n";
684
                    echo "\n<input type=\"file\" name=\"" . $vv . "\" />\n";
685
                    if ( $zeile[$vv] )
686
                    {
687
                        echo "<br>" . $zeile[$vv];
688
                        //echo "\n<br><img src=\"http://www.".$webs[domain]."/images/features/".$zeile[$vv]."\" width=\"100\" />\n";
689
                    }
690
                    echo "</td></tr>\n";
691
                }
692
            }
693
            if ( $opt_titel )
694
            {
695
                foreach ( $opt_titel as $kk => $vv )
696
                {
697
                    $cnt = explode( "_", $vv );
698
                    $cnt = $cnt[1];
699
                    echo "<tr>
700
										<td bgcolor=\"#" . $webs[bgcolor_links] . "\" valign=\"top\" width=\"16%\">
701
											<font color=\"#" . $webs[font_color_links] . "\"><strong>Titel " .
702
                        $cnt . ":</strong></font>
703
										</td>\n";
704
                    echo "<td bgcolor=\"#" . $webs[bgcolor_rechts] . "\">";
705
                    echo "\n<input type=\"text\" name=\"" . $vv . "\" value=\"" .
706
                        $zeile[$vv] . "\" />\n";
707
                    echo "</td></tr>\n";
708
                }
709
            }
710
        }
711
        // Dateiupload und Titel ENDE
712
 
713
?>
714
 
715
	<tr bgcolor="#<? echo $webs[bgcolor_links]
716
?>">
717
		<td align="right" colspan="3">
718
			<input type="hidden" name="ID" value="<? echo $ID
719
?>">
720
			<input type="hidden" name="action" value="update">
721
<?
722
        $Feld = "Werte";
723
        if ( ( $ID ) and ( isset( $user_rechte[modul_name][tool_name][$Feld] ) ) )
724
        {
725
?>
726
<input type="button" value="<? if ( $web_rechte[modul_name][tool_name][$Feld] )
727
            {
728
                echo $web_rechte[modul_name][tool_name][$Feld];
729
            }
730
            else
731
            {
732
?>Werte bearbeiten<? }
733
?>" onClick="location.href='Feature_options.php?ID=<? echo
734
$ID
735
?>'">
736
<?
737
        }
738
?>
739
              <input type="submit" value="OK">
740
              <input type="reset" name="Button" value="Zur&uuml;cksetzen">
741
            </td>
742
          </tr>
743
        </table>
744
        <?
745
    }
746
?> </td>
747
      <td width="77" align="right">
748
        <table width="67" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#999999">
749
  		<tr>
750
            <td><a href="<? echo $self
751
?>?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>
752
  		</tr>
753
 	 	<tr>
754
            <td><a href="<? echo $self
755
?>?action=select_edit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','../images/navigation/bt_bearbeiten_f2.gif',1)"><img name="Image4" border="0" src="../images/navigation/bt_bearbeiten.gif" width="67" height="40"></a></td>
756
  		</tr>
757
  		<tr>
758
            <td><a href="<? echo $self
759
?>?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&ouml;schen"></a></td>
760
  		</tr>
761
		</table>
762
      </td>
763
</tr>
764
</table>
765
</form>
766
</body>
767
</html>