| 1 |
lars |
1 |
<?
|
|
|
2 |
for($bild_nr=1; $bild_nr <=5; $bild_nr++)
|
|
|
3 |
{
|
|
|
4 |
$Feld="Bild$bild_nr";
|
|
|
5 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
6 |
{
|
|
|
7 |
?>
|
|
|
8 |
<tr>
|
|
|
9 |
<td class=links>
|
|
|
10 |
<?
|
|
|
11 |
$Felddaten = explode(";", $web_rechte[modul_name][tool_name][$Feld]);
|
|
|
12 |
if (!empty($Felddaten[0])) {
|
|
|
13 |
echo $Felddaten[0];
|
|
|
14 |
}
|
|
|
15 |
else {
|
|
|
16 |
?>
|
|
|
17 |
Bild
|
|
|
18 |
<? echo $bild_nr; ?>
|
|
|
19 |
<?
|
|
|
20 |
}
|
|
|
21 |
?>
|
|
|
22 |
</td>
|
|
|
23 |
<td class=rechts>
|
|
|
24 |
<table border="0" width="100%" cellspacing="0" cellpadding="0">
|
|
|
25 |
<tr>
|
|
|
26 |
<td nowrap colspan="2">
|
|
|
27 |
<?
|
|
|
28 |
$image_name="bild_url";
|
|
|
29 |
if ($bild_nr > 1) {$image_name=$image_name.$bild_nr;}
|
|
|
30 |
$image_Path="/images/directory/".$bild_nr."/";
|
|
|
31 |
$image_Path=$webs[verzeichnis].$image_Path;
|
|
|
32 |
|
|
|
33 |
if ($Language_neueintrag)
|
|
|
34 |
{
|
|
|
35 |
?>
|
|
|
36 |
<input type="hidden" name="<? echo $image_name ?>" value="<? echo $zeile[$image_name] ?>">
|
|
|
37 |
<?
|
|
|
38 |
}
|
|
|
39 |
?>
|
|
|
40 |
<input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>">
|
|
|
41 |
<?
|
|
|
42 |
|
|
|
43 |
if ($zeile[$image_name] != "")
|
|
|
44 |
{
|
|
|
45 |
?>
|
|
|
46 |
<input type="radio" name="_<? echo $image_name ?>" value="0" checked>
|
|
|
47 |
<a href="http://www.<? echo $site."/images/directory/".$bild_nr."/".$zeile[$image_name] ?>" target="blank">
|
|
|
48 |
<? echo $zeile[$image_name]; ?>
|
|
|
49 |
</a>
|
|
|
50 |
<?
|
|
|
51 |
if (file_exists($image_Path.$zeile[$image_name]))
|
|
|
52 |
{
|
|
|
53 |
$size= filesize ($image_Path.$zeile[$image_name]) >> 10;
|
|
|
54 |
$imgsize = GetImageSize ($image_Path.$zeile[$image_name]);
|
|
|
55 |
echo " ( $size KB";
|
|
|
56 |
if ($imgsize) { echo " $imgsize[0]x$imgsize[1]"; }
|
|
|
57 |
echo " )<BR>";
|
|
|
58 |
} else { echo "<br>";}
|
|
|
59 |
}
|
|
|
60 |
?>
|
|
|
61 |
<input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>>
|
|
|
62 |
kein
|
|
|
63 |
<? if (substr($Felddaten[0],0,4) == "Doku")
|
|
|
64 |
{ ?>
|
|
|
65 |
Dokument
|
|
|
66 |
<? }
|
|
|
67 |
else
|
|
|
68 |
{ ?>
|
|
|
69 |
Bild
|
|
|
70 |
<? } ?>
|
|
|
71 |
<br>
|
|
|
72 |
<input type="radio" name="_<? echo $image_name ?>" value="2">
|
|
|
73 |
<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;">
|
|
|
74 |
</td>
|
|
|
75 |
<td width="45%" nowrap align="center">
|
|
|
76 |
<? if (substr($Felddaten[0],0,4) <> "Doku")
|
|
|
77 |
{
|
|
|
78 |
if ($zeile[$image_name] != "")
|
|
|
79 |
{ ?>
|
|
|
80 |
<a href="http://www.<? echo $site."/images/directory/".$bild_nr."/".$zeile[$image_name] ?>" target="blank"><img height="60" src="http://www.<? echo $site."/images/directory/".$bild_nr."/".$zeile[$image_name] ?>" border="0"></a>
|
|
|
81 |
<? }
|
|
|
82 |
} ?>
|
|
|
83 |
</td>
|
|
|
84 |
</tr>
|
|
|
85 |
</table>
|
|
|
86 |
<?
|
|
|
87 |
if ((isset($user_rechte[modul_name][tool_name]["bild".$bild_nr."_text"])) and (isset($user_rechte[modul_name][tool_name]["bild_pos".$bild_nr])))
|
|
|
88 |
{
|
|
|
89 |
?>
|
|
|
90 |
<hr width="100%">
|
|
|
91 |
<?
|
|
|
92 |
}
|
|
|
93 |
?>
|
|
|
94 |
<table border="0" width="50%" cellspacing="0" cellpadding="0">
|
|
|
95 |
<?
|
|
|
96 |
if (isset($user_rechte[modul_name][tool_name]["bild".$bild_nr."_text"]))
|
|
|
97 |
{
|
|
|
98 |
?>
|
|
|
99 |
<tr>
|
|
|
100 |
<td width="27%" nowrap>Unterschrift:</td>
|
|
|
101 |
<td width="28%" nowrap>
|
|
|
102 |
<input type="text" name="bildunterschrift_<? echo $bild_nr ?>" value="<? echo $zeile["bildunterschrift_".$bild_nr] ?>">
|
|
|
103 |
</td>
|
|
|
104 |
</tr>
|
|
|
105 |
<?
|
|
|
106 |
}
|
|
|
107 |
if (isset($user_rechte[modul_name][tool_name]["bild_pos".$bild_nr]))
|
|
|
108 |
{
|
|
|
109 |
?>
|
|
|
110 |
<tr>
|
|
|
111 |
<td width="27%" nowrap>Position:</td>
|
|
|
112 |
<td width="28%" nowrap>
|
|
|
113 |
<select name="bild_position_<? echo $bild_nr ?>">
|
|
|
114 |
<option value="0"<? if ($zeile["bild_position_".$bild_nr] == 0) {echo " selected";}?>>links</option>
|
|
|
115 |
<option value="1"<? if ($zeile["bild_position_".$bild_nr] == 1) {echo " selected";}?>>rechts</option>
|
|
|
116 |
</select>
|
|
|
117 |
</td>
|
|
|
118 |
</tr>
|
|
|
119 |
<?
|
|
|
120 |
}
|
|
|
121 |
?>
|
|
|
122 |
</table>
|
|
|
123 |
</td>
|
|
|
124 |
</tr>
|
|
|
125 |
<?
|
|
|
126 |
}
|
|
|
127 |
}
|
|
|
128 |
?>
|