| 1493 |
lars |
1 |
{extends file="admin/index.tpl"}
|
|
|
2 |
{block name="maincontent"}
|
|
|
3 |
<!-- $Id: action.tpl 1504 2023-04-26 19:01:21Z lars $ BEGIN -->
|
| 1502 |
lars |
4 |
<script type="text/javascript" src="/admin/js/tinymce/tinymce.min.js?{$smarty.now}"></script>
|
| 1500 |
lars |
5 |
<script type="text/javascript" src="/admin/js/aktion.js"></script>
|
| 1495 |
lars |
6 |
<script>
|
|
|
7 |
$(document).ready(function(){
|
|
|
8 |
getDatepicker();
|
|
|
9 |
|
|
|
10 |
$("html").delegate("div.tabs", initTab());
|
| 1504 |
lars |
11 |
$("input[type=submit]").uibutton();
|
| 1495 |
lars |
12 |
$("html").delegate("select.aktionsArt", changeArt());
|
| 1504 |
lars |
13 |
$("html").delegate("textarea", initTinyMCE());
|
| 1495 |
lars |
14 |
|
|
|
15 |
$(document).on( "click", ".noPictureChooseMulti", function(){
|
|
|
16 |
$(this).prev().prev().prev().prop( "checked", false );
|
|
|
17 |
});
|
|
|
18 |
$(document).on( "click", ".pictureChooseMulti", function(){
|
|
|
19 |
$(this).next().next().next().prop( "checked", false );
|
|
|
20 |
});
|
|
|
21 |
|
|
|
22 |
{if isset( $meldung )}
|
|
|
23 |
alert("{$meldung}");
|
|
|
24 |
{/if}
|
|
|
25 |
});
|
|
|
26 |
</script>
|
|
|
27 |
<div class="tabs">
|
|
|
28 |
<ul>
|
|
|
29 |
<li>
|
|
|
30 |
<a href="#grundeinstellung">Grundeinstellung</a>
|
|
|
31 |
</li>
|
|
|
32 |
<li>
|
|
|
33 |
<a href="#darstellung">Darstellung</a>
|
|
|
34 |
</li>
|
|
|
35 |
<li>
|
|
|
36 |
<a href="#artikelzuweisungDirectory">Artikelzuweisung</a>
|
|
|
37 |
</li>
|
|
|
38 |
</ul>
|
|
|
39 |
<form action="aktion.php" method="post" enctype="multipart/form-data">
|
|
|
40 |
<div id="grundeinstellung">
|
|
|
41 |
<div class="tabelle">
|
|
|
42 |
<div>
|
|
|
43 |
<div class="headlineVertical">Überschrift:</div>
|
|
|
44 |
<div>
|
| 1499 |
lars |
45 |
<input type="text" name="headline" value="{$action->headline}" />
|
| 1495 |
lars |
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
<div>
|
|
|
49 |
<div class="headlineVertical">Sprache:</div>
|
|
|
50 |
<div>
|
|
|
51 |
<select name="language">
|
|
|
52 |
{foreach $language_pack as $index => $language}
|
| 1499 |
lars |
53 |
<option value="{$language[0]}" {if $action->Language == $language[0]}selected{/if}>{$language[0]}</option>
|
| 1495 |
lars |
54 |
{/foreach}
|
|
|
55 |
</select>
|
|
|
56 |
</div>
|
|
|
57 |
</div>
|
|
|
58 |
{if (count($shops) >= 1)}
|
|
|
59 |
<div>
|
|
|
60 |
<div class="headlineVertical">Shop:</div>
|
|
|
61 |
<div>
|
|
|
62 |
<select name="shops_ID">
|
|
|
63 |
{foreach $shops as $id => $shop}
|
| 1499 |
lars |
64 |
<option value="{$id}" {if $action->shops_ID == $id}selected{/if}>{$shop->name}</option>
|
| 1495 |
lars |
65 |
{/foreach}
|
|
|
66 |
</select>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
{/if}
|
|
|
70 |
{if ( isset( $user_rechte["online_shop"]["aktion"]["Kategorie"] ) )}
|
|
|
71 |
<div>
|
|
|
72 |
<div class="headlineVertical">{$kategorien[0]}</div>
|
|
|
73 |
<div>
|
|
|
74 |
<select name="kategorie">
|
|
|
75 |
{foreach $kategorien as $index => $katName}
|
|
|
76 |
{if $index != 0}
|
| 1499 |
lars |
77 |
<option value="{$katName}" {if $action->Kategorie == $katName}selected{/if}>{$katName}</option>
|
| 1495 |
lars |
78 |
{/if}
|
|
|
79 |
{/foreach}
|
|
|
80 |
</select>
|
|
|
81 |
</div>
|
|
|
82 |
</div>
|
|
|
83 |
{/if}
|
|
|
84 |
<div>
|
| 1499 |
lars |
85 |
<div class="headlineVertical">Gültigkeit:</div>
|
| 1495 |
lars |
86 |
<div>
|
| 1499 |
lars |
87 |
<div>von: <input type="date" name="von" value="{$action->valid_from}" class="datepicker"/></div>
|
|
|
88 |
<div>bis: <input type="date" name="bis" value="{$action->valid_to}" class="datepicker"/></div>
|
| 1495 |
lars |
89 |
</div>
|
|
|
90 |
</div>
|
|
|
91 |
<div>
|
|
|
92 |
<div class="headlineVertical" style="vertical-align:top;">Rang:</div>
|
|
|
93 |
<div>
|
| 1499 |
lars |
94 |
<input type="text" name="rang" value="{$action["rang"]}"/>
|
| 1495 |
lars |
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
<div>
|
|
|
98 |
<div class="headlineVertical" style="vertical-align:top;">Notizen / Designvorgaben:</div>
|
|
|
99 |
<div>
|
| 1499 |
lars |
100 |
<textarea name="notizen" cols="50" rows="10" wrap="OFF">{$action["notizen"]}</textarea>
|
| 1495 |
lars |
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
{if ( isset( $user_rechte["online_shop"]["aktion"]["html_alternative"] ) )}
|
|
|
104 |
<div>
|
|
|
105 |
<div class="headlineVertical" style="vertical-align:top;">
|
|
|
106 |
{if $web_rechte["online_shop"]["aktion"]["html_alternative"]}
|
|
|
107 |
{$web_rechte["online_shop"]["aktion"]["html_alternative"]}
|
|
|
108 |
{else}
|
|
|
109 |
Freie html-Seite:
|
|
|
110 |
{/if}
|
|
|
111 |
</div>
|
|
|
112 |
<div>
|
| 1499 |
lars |
113 |
<input name="html_seite_schalter" class="html_seite_schalter" type="radio" value="1" {if $action["html_seite_schalter"] == 1}checked="true"{/if}/>Ein
|
|
|
114 |
<input name="html_seite_schalter" class="html_seite_schalter" type="radio" value="0" {if $action["html_seite_schalter"] == 1}checked="true"{/if}/>Aus
|
| 1495 |
lars |
115 |
<br />
|
|
|
116 |
<div id="messageHTML">
|
| 1499 |
lars |
117 |
<textarea name="html_seite" cols="50" rows="10" wrap="OFF" style="display:none;">{$action["html_seite"]}</textarea>
|
| 1495 |
lars |
118 |
</div>
|
|
|
119 |
</div>
|
|
|
120 |
</div>
|
|
|
121 |
{/if}
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|
|
|
124 |
<div id="darstellung">
|
|
|
125 |
<div class="tabelle">
|
|
|
126 |
<div>
|
|
|
127 |
<div class="headlineVertical" style="vertical-align:top;">Art:</div>
|
|
|
128 |
<div>
|
|
|
129 |
<select name="art" class="aktionsArt">
|
| 1499 |
lars |
130 |
{foreach $actionsarten as $index => $art}
|
|
|
131 |
<option value="{$index}" {if $action->art == $index}selected{/if}>{$art}</option>
|
| 1495 |
lars |
132 |
{/foreach}
|
|
|
133 |
</select>
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
<br />
|
|
|
138 |
<div class="tabelle darstellungListe">
|
| 1499 |
lars |
139 |
{*include file="aktion_darstellung_liste.tpl" aktionsArtID=$action->art*}
|
| 1495 |
lars |
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
<div id="artikelzuweisungDirectory" style="clear:both;">
|
|
|
143 |
<div style="display:inline-block;width:100%;">
|
|
|
144 |
<div style="width:49%;border-right:1px solid #666;overflow: auto;float:left;">
|
| 1499 |
lars |
145 |
{*include file="directory_tree_page.tpl" aktionsID=$action->id*}
|
| 1495 |
lars |
146 |
</div>
|
|
|
147 |
<div id="artikelListe" style="width:49%;float:left;">
|
|
|
148 |
{*include file="aktion_artikel_aktion.tpl"*}
|
|
|
149 |
</div>
|
|
|
150 |
</div>
|
|
|
151 |
</div>
|
|
|
152 |
<span style="clear:both;display:inline-block;">
|
| 1499 |
lars |
153 |
<input type="hidden" value="{$action->id}" name="id" id="aktionsID"/>
|
| 1495 |
lars |
154 |
<input type="submit" value="Speichern" name="mode"/>
|
|
|
155 |
<input type="submit" value="Abbrechen" name="mode"/>
|
|
|
156 |
</span>
|
|
|
157 |
</form>
|
|
|
158 |
</div>
|
|
|
159 |
<!-- $Id: action.tpl 1504 2023-04-26 19:01:21Z lars $ END -->
|
| 1493 |
lars |
160 |
{/block}
|