Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 99 | Revision 103 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
93 lars 1
<!-- $Id: manufacturer.tpl 101 2023-07-14 21:42:45Z lars $ BEGIN -->
2
<script>
3
    $(function () {
4
        $('#alle').button().click(function() {
5
            $('.gesperrte_hersteller').prop("checked",true);
6
        })
7
        $('#keine').button().click(function() {
8
            $('.gesperrte_hersteller').prop("checked",false);
9
        })
10
        $('#umkehren').button().click(function() {
11
            $('.gesperrte_hersteller').each(function(){
12
                $(this).prop("checked",!$(this).prop("checked"));
2 lars 13
            });
14
        })
93 lars 15
    })
16
</script>
101 lars 17
<form id="manufacturerForm" method="post">
98 lars 18
    <input type="hidden" name="_method" value="PATCH">
19
    <input type="hidden" name="_token" value="{csrf_token()}">
101 lars 20
    <input type="hidden" id="ID" value="{$zeile.id}"/>
98 lars 21
    <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
2 lars 22
        <tr>
98 lars 23
            <td colspan="2" class="links">Hersteller: {if $zeile.id}Bearbeiten{else}Neueintrag{/if}</td>
2 lars 24
        </tr>
98 lars 25
        {$Feld="headline"}
26
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
27
            <tr>
28
                <td class="links" width="20%">
29
                    <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
30
                </td>
31
                <td class="rechts">
32
                    <input type="text" name="{$Feld}" size="40" value="{{$zeile[$Feld]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}}" maxlength="255"/>
33
                </td>
34
            </tr>
35
        {/if}
36
        {$Feld="Name"}
37
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
38
            <tr>
39
                <td class="links" width="20%">
40
                    <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
41
                </td>
42
                <td class="rechts">
43
                    <input type="text" name="name" size="40" value="{$zeile["name"]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}" maxlength="255"/>
44
                </td>
45
            </tr>
46
        {/if}
47
        {$Feld="Bezeichnung"}
48
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
49
            <tr>
50
                <td class="links" width="20%">
51
                    <b>{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</b>
52
                </td>
53
                <td class="rechts">
54
                    <input type="text" name="description" size="40" value="{$zeile["description"]|htmlentities:$smarty.const.ENT_COMPAT:$smarty.session["charset"]}" maxlength="255"/>
55
                </td>
56
            </tr>
57
        {/if}
58
        {if $sub}
59
            <tr>
60
                <td class="links" width="20%"><b>Aliase</b></td>
61
                <td class="rechts">
62
                    <a id="add_hs">Herstelleralias anlegen</a>
63
                    <br/>
64
                    <div id="show_hersteller_alias">
65
                        {include file="herstelleraliase.tpl"}
66
                    </div>
67
                </td>
68
            </tr>
93 lars 69
 
98 lars 70
        {/if}
71
        {$Feld = "Text"}
94 lars 72
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
2 lars 73
            <tr>
93 lars 74
                <td class="links" width="20%">
98 lars 75
                    <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
2 lars 76
                </td>
93 lars 77
                <td class="rechts">
98 lars 78
                    <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
93 lars 79
                </td>
2 lars 80
            </tr>
98 lars 81
        {/if}
82
        {$Feld = "Text2"}
83
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
84
            <tr>
85
                <td class="links" width="20%">
86
                    <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
87
                </td>
88
                <td class="rechts">
89
                    <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
90
                </td>
91
            </tr>
92
        {/if}
93
        {$Feld = "Text3"}
94
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
95
            <tr>
96
                <td class="links" width="20%">
97
                    <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]|default:"$Feld"}</label></b>
98
                </td>
99
                <td class="rechts">
100
                    <textarea name="{$Feld}" id="{$Feld}" cols="50" rows="4">{$zeile[$Feld]}</textarea>
101
                </td>
102
            </tr>
103
        {/if}
104
        {for $bild_nr = 1; $bild_nr <= 2; $bild_nr++}
105
            {$Feld="Logo$bild_nr"}
106
            {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld ] ) )}
93 lars 107
                <tr>
98 lars 108
                    <td class="links" width="20%">
109
                        {$name=$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld ]}
110
                        {$name=";"|explode:$name}
111
                        {$name=$name[0]}
112
                        <b><label for="{$Feld}">{$name|default:"$Feld"}</label></b>
113
                    </td>
93 lars 114
                    <td class="rechts">
98 lars 115
                        <table>
116
                            <tr>
117
                                <td>
118
                                    {$pfadExtra="/images/manufacturer/$bild_nr/"}
119
                                    <input type="hidden" name="{$Feld}_Pfad" value="{$webs.verzeichnis}{$pfadExtra}">
120
                                    {if $zeile[$Feld]}
121
                                        <input type="radio" name="_{$Feld}" value="0" id="{$Feld}_0" checked="checked">
122
                                        <label for="{$Feld}_0"><a href="{$domain}{$pfadExtra}/{$zeile[$Feld]}" target="_blank">{$zeile[$Feld]}</a>
123
                                            {$zeile.size[$bild_nr]|fsize_format:"":2:",":"."}
124
                                            ({$zeile.imgsize[$bild_nr][0]} x {$zeile.imgsize[$bild_nr][1]} Pixel)</label>
125
                                        <br>
126
                                    {/if}
127
                                    <input type="radio" name="_{$Feld}" value="1" {if !$zeile[$Feld]}checked="checked"{/if} id="{$Feld}_1"><label for="{$Feld}_1">kein Bild</label><br>
128
                                    <input type="radio" name="_{$Feld}" value="2" id="{$Feld}_2"><input type="file" name="{$Feld}" onfocus="$('#{$Feld}_2').prop('checked',true)">
129
                                </td>
130
                                <td width="45%" nowrap align="center">
131
                                    {if ( $zeile[ $Feld ] != "" )}
132
                                        <a href="{$domain}{$pfadExtra}{$zeile[ $Feld ]}" target="_blank"><img src="{$domain}{$pfadExtra}{$zeile[ $Feld ]}" border="0"/></a>
133
                                    {/if}
134
                                </td>
135
                            </tr>
136
                        </table>
93 lars 137
                    </td>
138
                </tr>
98 lars 139
                {$extra="_href"}
140
                {$Feld2="$Feld$extra"}
141
                {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ][ $Feld2 ] ) )}
142
                    <tr>
143
                        <td class="links" width="20%"><b><label for="{$Feld2}">{$web_rechte[ "online_shop" ][ "hersteller" ][ $Feld2 ]|default:"$Feld-Link"}</label> </b></td>
144
                        <td class="rechts">
145
                            <input type="text" name="{$Feld2}" id="{$Feld2}" size="40" value="{$zeile[ $Feld2 ]}" maxlength="255"/>
146
                        </td>
147
                    </tr>
148
                {/if}
93 lars 149
            {/if}
98 lars 150
        {/for}
151
        {for $i=1;$i<=10;$i++}
152
            {$Feld="Eigenschaft_$i"}
153
            {if isset($web_rechte[ "online_shop" ][ "hersteller" ][strtolower($Feld)])}
154
                <tr>
155
                    <td class="links" width="20%">
156
                        <b><label for="{$Feld}">{$web_rechte[ "online_shop" ][ "hersteller" ][ strtolower($Feld) ]|default:"$Feld"}</label></b>
157
                    </td>
158
                    <td class="rechts">
159
                        <input type="hidden" name="property_{$i}" value="0"/>
160
                        <input type="checkbox" name="property_{$i}" id="{$Feld}" value="1" {if ( $zeile[ "property_$i" ] == 1 )}checked="checked"{/if}/>
161
                    </td>
162
                </tr>
163
            {/if}
164
        {/for}
165
        {*assign var=Feld value="meta_daten"}
166
        {if ( isset( $user_rechte["online_shop"]['directory'][$Feld] ) )}
167
            {include file="google_seo.tpl"}
93 lars 168
            <tr>
98 lars 169
                <td class="links" valign="top"><b>Meta-Robots:</b></td>
170
                <td class="rechts">
171
                    {html_options name="meta_robots" options=$meta_robots selected=$zeile.meta.meta_robots.meta_content}
93 lars 172
                </td>
98 lars 173
            </tr>
174
        {/if*}
175
        {assign var=Feld value="abwKalkulation"}
176
        {if ( isset( $user_rechte["online_shop"]["hersteller"][$Feld] ) )}
177
            <tr>
178
                <td class="links"><b>abweichende Preiskalkulation</b></td>
93 lars 179
                <td class="rechts">
98 lars 180
                    <input type="hidden" name="calculation" value="0"/>
181
                    <input type="checkbox" name="calculation" value="1" {if ( $zeile[ "calculation" ] == 1 )}checked="checked"{/if} />
182
                    {*if $zeile.calculation}
183
                        {include file="../toolbox/templates/common/edit_preiskalkulation.tpl"}
184
                    {/if*}
93 lars 185
                </td>
186
            </tr>
187
        {/if}
98 lars 188
        {if isset($zeile.hstatus)}
189
            <tr>
190
                <td class="links" width="20%"><b>Status:</b></td>
191
                <td class="rechts">
192
                    <input type="hidden" name="hstatus" value="0"/>
193
                    <select name="hstatus">
194
                        <option value="0" {if ( $zeile['hstatus'] == 0 )}selected='selected'{/if}>freigegeben</option>
195
                        <option value="1" {if ( $zeile['hstatus'] == 1 )}selected='selected'{/if}>verborgen</option>
196
                        <option value="2" {if ( $zeile['hstatus'] == 2 )}selected='selected'{/if}>gesperrt</option>
197
                    </select>
198
                </td>
199
            </tr>
200
        {/if}
201
        {if ( isset( $user_rechte[ "online_shop" ][ "hersteller" ]["herstellersperren"] ) )}
202
            <tr>
203
                <td class="links">gesperrte Hersteller</td>
204
                <td>
205
                    <table class="keinRand">
206
                        <tr>
207
                            <th>Preisagentur</th>
208
                            <th>sperren?
209
                                <br>
210
                                <a id="alle">alle</a>&nbsp;<a id="keine">keine</a>&nbsp;<a id="umkehren">umkehren</a>
211
                            </th>
212
                        </tr>
213
                        {foreach $preisagenturen as $pa}
214
                            <tr class="{cycle values=",gerade"}">
215
                                <td><label for="pa_{$pa.id}">{$pa.titel}</label></td>
216
                                <td>
217
                                    <input type="hidden" name="gesperrte_hersteller[{$pa.id}]" value="0">
218
                                    <input class="gesperrte_hersteller" type="checkbox" name="gesperrte_hersteller[{$pa.id}]" value="1" id="pa_{$pa.id}" {if in_array($zeile.ID,$pa.gesperrte_hersteller)}checked="checked"{/if}>
219
                                </td>
220
                            </tr>
221
                        {/foreach}
222
                    </table>
223
                </td>
224
            </tr>
225
        {/if}
93 lars 226
        <tr>
98 lars 227
            <td class="links" width="20%"><b>erstellt:</b></td>
228
            <td class="rechts">am: {$zeile.created_at|date_format:"%x"} um: {$zeile.created_at|date_format:"%X"} Uhr von: {$zeile["created_by"]}</td>
93 lars 229
        </tr>
230
        <tr>
98 lars 231
            <td class="links" width="20%"><b>letzte&nbsp;Änderung:</b></td>
232
            <td class="rechts">am: {$zeile.update_at|date_format:"%x"} um: {$zeile.updated_at|date_format:"%X"} Uhr von: {$zeile["updated_by"]}</td>
93 lars 233
        </tr>
99 lars 234
    </table>
98 lars 235
</form>
93 lars 236
<!-- $Id: manufacturer.tpl 101 2023-07-14 21:42:45Z lars $ END -->