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

Revision

Revision 113 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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