-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyshop_admin_discounts.html
198 lines (194 loc) · 15.5 KB
/
myshop_admin_discounts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<{if $action == 'default'}>
<{elseif $action == 'edit'}>
<form method="post" action="<{$baseurl}>" name="frmdiscount" id="frmdiscount">
<input type='hidden' name='op' id='op' value='discounts' />
<input type='hidden' name='action' id='action' value='saveedit' />
<input type='hidden' name='disc_id' id='disc_id' value='<{$discount.disc_id}>' />
<h3><{$formTitle}></h3>
<table width='100%' class='outer' cellspacing='1'>
<tr>
<th colspan="2" align="center"><{$smarty.const._AM_MYSHOP_DISCOUNT_INFORMATION}></th> <{* Informations sur la réduction *}>
</tr>
<tr>
<td class='head'><label for="disc_title"><{$smarty.const._AM_MYSHOP_DISCOUNT_TITLE}></label></td>
<td class='even'><input type="text" name="disc_title" id="disc_title" value="<{$discount.disc_title}>" size="50" maxlength="255" /></td>
</tr>
<tr>
<td class='head' valign="top"><label for="disc_description"><{$smarty.const._AM_MYSHOP_DISCOUNT_DESCRIPTION}></label></td>
<td class='even'><{$editor}></td>
</tr>
<tr>
<td class='head'><label for="disc_pediod"><{$smarty.const._AM_MYSHOP_DISCOUNT_PERIOD}></label></td>
<td class='even'><input type="checkbox" name="disc_pediod" id="disc_pediod" value="1" <{$discount.disc_pediod_checked}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_PERFROM}> <{$discount.disc_date_from}> <{$smarty.const._AM_MYSHOP_DISCOUNT_PERTO}> <{$discount.disc_date_to}></td>
</tr>
</table>
<br />
<div class="tips">
<p align="left"><{$smarty.const._AM_MYSHOP_DISCOUNT_HELP2}>
<br />
<{$smarty.const._AM_MYSHOP_DISCOUNT_HELP3}>
<br />
<{$smarty.const._AM_MYSHOP_DISCOUNT_HELP4}>
<br />
<{$smarty.const._AM_MYSHOP_DISCOUNT_HELP5}>
<br />
<{$smarty.const._AM_MYSHOP_DISCOUNT_HELP6}>
</p>
</div>
<br />
<table class="outer">
<tr>
<th colspan="2" align="center"><{$smarty.const._AM_MYSHOP_DISCOUNT_WHOWHAT}></th>
</tr>
<tr>
<td class='head'><label for="disc_group"><{$smarty.const._AM_MYSHOP_DISCOUNT_XOOPS_GROUP}></label></td>
<td class='even'><select name="disc_group" id="disc_group"><{html_options options=$disc_groups_options selected=$disc_groups_selected}></select></td>
</tr>
<tr>
<td class='head'><label for="disc_cat_cid"><{$smarty.const._AM_MYSHOP_DISCOUNT_CATEGORY}></label></td>
<td class='even'><{$discount.disc_cat_cid_select}></td>
</tr>
<tr>
<td class='head'><label for="disc_store_id"><{$smarty.const._AM_MYSHOP_DISCOUNT_STORE}></label></td>
<td class='even'><select name="disc_store_id" id="disc_store_id"><{html_options options=$disc_store_id_options selected=$disc_store_id_selected}></select></td>
</tr>
<tr>
<td class='head'><label for="disc_product_id"><{$smarty.const._AM_MYSHOP_DISCOUNT_PRODUCT}></label><br /><span class='xoops-form-element-help'><{$smarty.const._AM_MYSHOP_DISCOUNT_HELP1}></span></td>
<td class='even'><select name="disc_product_id" id="disc_product_id"><{html_options options=$disc_product_id_options selected=$disc_product_id_selected}></select></td>
</tr>
</table>
<table class="outer">
<tr> <{* Réduction sur le prix du produit ou le montant de la commande *}>
<th colspan="2" align="center"><{$smarty.const._AM_MYSHOP_DISCOUNT_REDUCTION_PRICE}></th>
</tr>
<tr>
<td class='head' valign="top"><{$smarty.const._AM_MYSHOP_DISCOUNT_REDUCTION_TYPE}></td>
<td class='even'>
<table border="0">
<tr>
<td>
<input type="radio" name="disc_price_type" id="disc_price_type" value="1" <{$discount.disc_price_type_checked1}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_DEGRESSIV}>
<table border="0">
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_price_degress_l1qty1" id="disc_price_degress_l1qty1" value="<{$discount.disc_price_degress_l1qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_price_degress_l1qty2" id="disc_price_degress_l1qty2" value="<{$discount.disc_price_degress_l1qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_price_degress_l1total" id="disc_price_degress_l1total" value="<{$discount.disc_price_degress_l1total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_price_degress_l2qty1" id="disc_price_degress_l2qty1" value="<{$discount.disc_price_degress_l2qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_price_degress_l2qty2" id="disc_price_degress_l2qty2" value="<{$discount.disc_price_degress_l2qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_price_degress_l2total" id="disc_price_degress_l2total" value="<{$discount.disc_price_degress_l2total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_price_degress_l3qty1" id="disc_price_degress_l3qty1" value="<{$discount.disc_price_degress_l3qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_price_degress_l3qty2" id="disc_price_degress_l3qty2" value="<{$discount.disc_price_degress_l3qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_price_degress_l3total" id="disc_price_degress_l3total" value="<{$discount.disc_price_degress_l3total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_price_degress_l4qty1" id="disc_price_degress_l4qty1" value="<{$discount.disc_price_degress_l4qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_price_degress_l4qty2" id="disc_price_degress_l4qty2" value="<{$discount.disc_price_degress_l4qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_price_degress_l4total" id="disc_price_degress_l4total" value="<{$discount.disc_price_degress_l4total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_price_degress_l5qty1" id="disc_price_degress_l5qty1" value="<{$discount.disc_price_degress_l5qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_price_degress_l5qty2" id="disc_price_degress_l5qty2" value="<{$discount.disc_price_degress_l5qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_price_degress_l5total" id="disc_price_degress_l5total" value="<{$discount.disc_price_degress_l5total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<input type="radio" name="disc_price_type" id="disc_price_type" value="2" <{$discount.disc_price_type_checked2}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_AMOUNT_PERCENT}>
<table border="0">
<tr>
<td width="5%"> </td>
<td><input type="text" name="disc_price_amount_amount" id="disc_price_amount_amount" value="<{$discount.disc_price_amount_amount}>" size="5" maxlength="10" /> <input type="radio" name="disc_price_amount_type" id="disc_price_amount_type" value="1" <{$discount.disc_price_amount_type_checked1}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_PERCENT}> <input type="radio" name="disc_price_amount_type" id="disc_price_amount_type" value="2" <{$discount.disc_price_amount_type_checked2}> /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td>
<{$smarty.const._AM_MYSHOP_DISCOUNT_ON}> <input type="radio" name="disc_price_amount_on" id="disc_price_amount_on" value="1" <{$discount.disc_price_amount_on_checked1}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_THE_PRODUCT}>
<input type="radio" name="disc_price_amount_on" id="disc_price_amount_on" value="2" <{$discount.disc_price_amount_on_checked2}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_THE_CART}>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='head' valign="top"><{$smarty.const._AM_MYSHOP_DISCOUNT_IN_WHICH_CASE}></td>
<td class='even'>
<input type="radio" name="disc_price_case" id="disc_price_case" value="1" <{$discount.disc_price_case_checked1}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_ALL_CASES}><br />
<input type="radio" name="disc_price_case" id="disc_price_case" value="2" <{$discount.disc_price_case_checked2}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_FIRST_PURCHASE}><br />
<input type="radio" name="disc_price_case" id="disc_price_case" value="3" <{$discount.disc_price_case_checked3}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_NEVER_BOUGHT}><br />
<input type="radio" name="disc_price_case" id="disc_price_case" value="4" <{$discount.disc_price_case_checked4}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_IS}> <select name="disc_price_case_qty_cond" id="disc_price_case_qty_cond"><{html_options options=$disc_price_case_qty_cond_options selected=$disc_price_case_qty_cond_selected}></select> <input type="text" name="disc_price_case_qty_value" id="disc_price_case_qty_value" value="<{$discount.disc_price_case_qty_value}>" size="3" maxlength="5" />
</td>
</tr>
</table>
<table class="outer">
<tr>
<th colspan="2" align="center"><{$smarty.const._AM_MYSHOP_DISCOUNT_SHIPPING_REDUCTIONS}></th>
</tr>
<tr>
<td class='head' valign='top'><{$smarty.const._AM_MYSHOP_DISCOUNT_SHIPPINGS_ARE}></td>
<td class='even'>
<table border="0">
<tr>
<td><input type="radio" name="disc_shipping_type" id="disc_shipping_type" value="1" <{$discount.disc_shipping_type_checked1}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_FULL_PAY}></td>
</tr>
<tr>
<td>
<input type="radio" name="disc_shipping_type" id="disc_shipping_type" value="2" <{$discount.disc_shipping_type_checked2}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_SHIPPING_FREE}>
<table border="0">
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_ORDER_OVER}> <input type="text" name="disc_shipping_free_morethan" id="disc_shipping_free_morethan" value="<{$discount.disc_shipping_free_morethan}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<input type="radio" name="disc_shipping_type" id="disc_shipping_type" value="3" <{$discount.disc_shipping_type_checked3}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_REDUCED_FOR}>
<table border="0">
<tr>
<td width="5%"> </td>
<td><input type="text" name="disc_shipping_reduce_amount" id="disc_shipping_reduce_amount" value="<{$discount.disc_shipping_reduce_amount}>" size="5" maxlength="10" /> <{$currencyName}> <{$smarty.const._AM_MYSHOP_DISCOUNT_REDUCED_IF}> <input type="text" name="disc_shipping_reduce_cartamount" id="disc_shipping_reduce_cartamount" value="<{$discount.disc_shipping_reduce_cartamount}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<input type="radio" name="disc_shipping_type" id="disc_shipping_type" value="4" <{$discount.disc_shipping_type_checked4}> /> <{$smarty.const._AM_MYSHOP_DISCOUNT_DEGRESSIV}>
<table border="0">
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_shipping_degress_l1qty1" id="disc_shipping_degress_l1qty1" value="<{$discount.disc_shipping_degress_l1qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_shipping_degress_l1qty2" id="disc_shipping_degress_l1qty2" value="<{$discount.disc_shipping_degress_l1qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_shipping_degress_l1total" id="disc_shipping_degress_l1total" value="<{$discount.disc_shipping_degress_l1total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_shipping_degress_l2qty1" id="disc_shipping_degress_l2qty1" value="<{$discount.disc_shipping_degress_l2qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_shipping_degress_l2qty2" id="disc_shipping_degress_l2qty2" value="<{$discount.disc_shipping_degress_l2qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_shipping_degress_l2total" id="disc_shipping_degress_l2total" value="<{$discount.disc_shipping_degress_l2total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_shipping_degress_l3qty1" id="disc_shipping_degress_l3qty1" value="<{$discount.disc_shipping_degress_l3qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_shipping_degress_l3qty2" id="disc_shipping_degress_l3qty2" value="<{$discount.disc_shipping_degress_l3qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_shipping_degress_l3total" id="disc_shipping_degress_l3total" value="<{$discount.disc_shipping_degress_l3total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_shipping_degress_l4qty1" id="disc_shipping_degress_l4qty1" value="<{$discount.disc_shipping_degress_l4qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_shipping_degress_l4qty2" id="disc_shipping_degress_l4qty2" value="<{$discount.disc_shipping_degress_l4qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_shipping_degress_l4total" id="disc_shipping_degress_l4total" value="<{$discount.disc_shipping_degress_l4total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
<tr>
<td width="5%"> </td>
<td><{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_FROM}> <input type="text" name="disc_shipping_degress_l5qty1" id="disc_shipping_degress_l5qty1" value="<{$discount.disc_shipping_degress_l5qty1}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_TO}> <input type="text" name="disc_shipping_degress_l5qty2" id="disc_shipping_degress_l5qty2" value="<{$discount.disc_shipping_degress_l5qty2}>" size="3" maxlength="5" /> <{$smarty.const._AM_MYSHOP_DISCOUNT_QUANTITY_INCLUDED}> <input type="text" name="disc_shipping_degress_l5total" id="disc_shipping_degress_l5total" value="<{$discount.disc_shipping_degress_l5total}>" size="5" maxlength="10" /> <{$currencyName}></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" class='foot'><input type="submit" name="btngo" id="btngo" value="<{$label_submit}>" /></td>
</tr>
</table>
</form>
<{/if}>