%%95^956^956F74FD%%catalogs_basket.tpl.php
24.6 KB
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<?php /* Smarty version 2.6.16, created on 2015-09-16 11:35:27
compiled from catalogs_basket.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'catalogs_basket.tpl', 22, false),array('modifier', 'stripslashes', 'catalogs_basket.tpl', 23, false),array('modifier', 'escape', 'catalogs_basket.tpl', 23, false),array('modifier', 'default', 'catalogs_basket.tpl', 95, false),)), $this); ?>
<script src="/js/agreement.js" type="text/javascript"></script>
<h1><?php echo @YOURBASKET; ?>
</h1>
<div> </div>
<form method="post" action="<?php echo @URL; ?>
catalogs/?modAction=basket" name='form_order' id="form_order">
<table cellpadding="8" cellspacing="1" border="0" width="100%" bgcolor="#c2c2c2" style="border-radius:5px;">
<tr bgcolor="#d7d7d7" >
<td style="border-radius:5px 0px 0px 0px;" align="center"><b>Ôîòî</b></td>
<td align="center"><b><?php echo @BASKET_TD_1; ?>
</b></td>
<td align="center"><b><?php echo @BASKET_TD_2; ?>
</b></td>
<td align="center"><b><?php echo @BASKET_TD_3; ?>
</b></td>
<td align="center"><b><?php echo @BASKET_TD_4; ?>
</b></td>
<td style="border-radius:0px 5px 0px 0px;" align="center"><b><?php echo @BASKET_TD_5; ?>
</b></td>
</tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['basket_products']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
if ($this->_sections['i']['total'] == 0)
$this->_sections['i']['show'] = false;
} else
$this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):
for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first'] = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last'] = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
<tr bgcolor='<?php echo smarty_function_cycle(array('values' => "#ffffff,#f8f8f8"), $this);?>
'>
<td valign='middle' align='center'><a href="<?php echo @URL; ?>
uploaded/pic/catalogs/modifications/big/<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['pic_big']; ?>
" rel="shadowbox[gal]" title="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['name']; ?>
"><img src="<?php if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['pic']): echo @URL; ?>
uploaded/pic/catalogs/modifications/<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['pic']; else: echo @URL; ?>
img/noproduct.jpg<?php endif; ?>" border="0" alt="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="pic" /></a></td>
<td><input type="hidden" name="product_id[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['id']; ?>
"><input type="hidden" name="product_name2[]" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" /><input type="hidden" name="product_size[]" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['size'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" /><input type="hidden" name="product_color[]" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['color'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" /><input type="hidden" name="product_name[]" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
: <?php if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['size']): ?>ðàçìåð: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['size']; ?>
, <?php endif; if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['color']): ?>öâåò: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['color']; ?>
, <?php endif; if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['code']): ?>Êîä: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['code']; endif; ?>"><input type="hidden" name="product_code[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['code']; ?>
" /><span class="txtb"><?php echo ((is_array($_tmp=$this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</span><br /><?php if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['size']): ?>ðàçìåð: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['size']; ?>
, <?php endif; if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['color']): ?>öâåò: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['color']; ?>
, <?php endif; if ($this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['code']): ?>Êîä: <?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['code']; endif; ?></td>
<td style="width: 85px;"><input type="hidden" name="rubric_id[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['rubric_id']; ?>
"><input type="hidden" name="rubric_parent_id[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['rubric_parent_id']; ?>
"><input type="hidden" name="product_price[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['cine']; ?>
" /><input type="hidden" name="product_cine[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['cine']; ?>
<?php if ($this->_tpl_vars['curs'] == 'uah'): ?>ãðí<?php elseif ($this->_tpl_vars['curs'] == 'uah_bank'): ?>ãðí. áåçíàëè÷íûé<?php else: ?>$<?php endif; ?>"><b><?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['cine']; ?>
</b> <?php if ($this->_tpl_vars['curs'] == 'uah'): ?>ãðí<?php elseif ($this->_tpl_vars['curs'] == 'uah_bank'): ?>ãðí. áåçíàëè÷íûé<?php else: ?>$<?php endif; ?></td>
<td style="width: 65px;"><input type="hidden" name="product_count[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['products_count']; ?>
"><input class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" type="text" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['products_count']; ?>
" name="proructs_count[<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['id']; ?>
]" size="2"></td>
<td style="width: 85px;"><input type="hidden" name="product_cine_all[]" value="<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['products_cine_all']; ?>
<?php if ($this->_tpl_vars['curs'] == 'uah'): ?>ãðí<?php elseif ($this->_tpl_vars['curs'] == 'uah_bank'): ?>ãðí. áåçíàëè÷íûé<?php else: ?>$<?php endif; ?>"><b><?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['products_cine_all']; ?>
</b> <?php if ($this->_tpl_vars['curs'] == 'uah'): ?>ãðí<?php elseif ($this->_tpl_vars['curs'] == 'uah_bank'): ?>ãðí. áåçíàëè÷íûé<?php else: ?>$<?php endif; ?></td>
<td align="center"><a href="<?php echo @URL; ?>
catalogs/basket/?deleteID=<?php echo $this->_tpl_vars['basket_products'][$this->_sections['i']['index']]['id']; ?>
">Óäàëèòü</a></td>
</tr>
<?php endfor; endif; ?>
<tr bgcolor="#d7d7d7">
<td style="border-radius:0px 0px 0px 5px;" colspan="3"></td>
<td><input type="submit" name="upload_order" value=" <?php echo @BASKET_UPDATE; ?>
" class="submit" /></td>
<td style="border-radius:0px 0px 5px 0px;"><b><input type="hidden" name="discount" value="<?php echo $this->_tpl_vars['user']['discount']; ?>
"><input type="hidden" name="cineAll" value="<?php echo $this->_tpl_vars['cineAll']; ?>
"><input type="hidden" name="cineAll_discount" value="<?php echo $this->_tpl_vars['cineAll_discount']; ?>
"><?php echo $this->_tpl_vars['cineAll']; ?>
ãðí.</b></td>
</tr>
<?php if ($this->_tpl_vars['user']['id'] > 0): ?>
<tr bgcolor="#FFF0F0">
<td colspan="5" class="txtrb cnt">Âàøà ñêèäêà: <?php echo $this->_tpl_vars['user']['discount']; ?>
% Èòîãî ê îïëàòå: <?php echo $this->_tpl_vars['cineAll_discount']; ?>
ãðí.</td>
</tr>
<?php endif; ?>
</table>
<div> </div>
<div class="itemsbox">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "error.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php
if (!isset($_POST['order_name'])) { if (isset($_SESSION['user']['name'])) {$_POST['order_name']=$_SESSION['user']['name']; }}
if (!isset($_POST['order_email'])) { if (isset($_SESSION['user']['email'])) {$_POST['order_email']=$_SESSION['user']['email']; }}
if (!isset($_POST['order_phone'])) { if (isset($_SESSION['user']['tel'])) {$_POST['order_phone']=str_replace("+38", "", $_SESSION['user']['tel']); } else { $_POST['order_phone']='';}}else{$_POST['order_phone']=str_replace("+38", "", $_POST['order_phone']); }
if (!isset($_POST['order_phone2'])) { if (isset($_SESSION['user']['tel2'])) {$_POST['order_phone2']=$_SESSION['user']['tel2']; }}
if (!isset($_POST['order_adress'])) { if (isset($_SESSION['user']['address'])) {$_POST['order_adress']=$_SESSION['user']['address']; }}
if (!isset($_POST['order_city'])) { if (isset($_SESSION['user']['city'])) {$_POST['order_city']=$_SESSION['user']['city']; }}
if (!isset($_POST['delivery'])) { $_POST['delivery']=0; }
// Çàêðûâàåì îò ðåäàêòèðîâàíèÿ
// if (isset($_SESSION['user']['name'])) { $lockname='readonly="readonly"'; } else { $lockname='';}
if (isset($_SESSION['user']['email'])) { $lockemail='readonly="readonly"'; } else { $lockemail='';}
/*
if (isset($_SESSION['user']['tel'])) { $locktel='readonly="readonly"'; } else { $locktel='';}
if (isset($_SESSION['user']['tel2'])) { $locktel2='readonly="readonly"'; } else { $locktel2='';}
if (isset($_SESSION['user']['address'])) { $lockaddress='readonly="readonly"'; } else { $lockaddress='';}
if (isset($_SESSION['user']['city'])) { $lockcity='readonly="readonly"'; } else { $lockcity='';}
*/
$lockname='';
// $lockemail='';
$locktel='';
$locktel2='';
$lockaddress='';
$lockcity='';
?>
<?php if(!isset($_SESSION['user']['id'])) { ?>
<?php } ?>
<ul class="list mrt" id="list1">
<li id="tab31"><span class="l"></span><a href="#etab31"><?php if ($_SESSION['user']['id'] > 0): echo @IREG; else: echo @NEWUSER; endif; ?></a><span class="r"></span></li>
<?php if (! $_SESSION['user']['id']): ?><li id="tab32"><span class="l"></span><a href="#etab32"><?php echo @IREG; ?>
</a><span class="r"></span></li><?php endif; ?>
</ul>
<div class="tab_container" id="tab_container">
<div id="etab31" class="tab_content">
<div id="client_new">
<span class='attention' style="float:right;"><?php echo @BASKET_FIELDS_ALLOWS; ?>
<span class="red">*</span></span>
<label><?php echo @BASKET_FIELD_NAME; ?>
<span class="red">*</span></label>
<input type="text" name="order_name" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_name'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['name']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['name'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $lockname; ?>/>
<?php if(!isset($_SESSION['user']['id'])) { ?>
<label>Âàø e-mail:</label>
<input type="text" name="order_email" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_email'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['email']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['email'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $lockemail; ?> />
<span class='advice'>
<?php echo @BASKET_CREATE_CABINET; ?>
<?php } else { ?>
<span id="order_email">
<label>Âàø e-mail:</label>
<input type="text" name="order_email" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_email'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['email']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['email'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" readonly="readonly"/>
</span>
<?php } ?>
<?php if(!isset($_SESSION['user']['id'])) { ?>
<div class="optional mailing">
<input type="checkbox" name="form[mailing]" id="mailing" value="1" checked> <?php echo @BASKET_SEND_NEWS; ?>
</div>
<div class="optional mailing">
<input type="checkbox" name="form[no_account]" id="account" value="1" onChange='unCheckedMailing();'> <?php echo @BASKET_DONT_CABINET; ?>
</div>
<?php } ?>
</span>
<div class='clear'></div>
<div class="fl" style="padding-right:30px;">
<label><?php echo @BASKET_FIELD_PHONE; ?>
<span class="red">*</span></label>
<input id="phone" type="text" name="order_phone" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="30" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_phone'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['tel']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['tel'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $locktel; ?> />
<span class='advice'><?php echo @BASKET_FIELD_PHONE_EXEMPLE; ?>
</span>
</div>
<label><?php echo @BASKET_FIELD_PHONE2; ?>
</label>
<input type="text" name="order_phone2" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="30" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_phone2'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['tel2']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['tel2'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $locktel2; ?> />
<div class='both'></div>
<label><?php echo @BASKET_FIELD_CITY; ?>
<span class="red">*</span></label>
<div class="city_inp">
<input type="text" name="order_city" id="input_city" placeholder="<?php echo @BASKET_FIELD_CITY_PLACEHOLDER; ?>
" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_city'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['city']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['city'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $lockcity; ?> /><div class="city_sel"></div><div class="both"></div>
<div class="city_box">
<ul>
<li class="name_city"><?php echo @MISTO1; ?>
</li>
<li class="name_city"><?php echo @MISTO2; ?>
</li>
<li class="name_city"><?php echo @MISTO3; ?>
</li>
<li class="name_city"><?php echo @MISTO4; ?>
</li>
<li class="other"><?php echo @MISTO_OTHER; ?>
</li>
</ul>
</div>
</div>
<label><?php echo @BASKET_FIELD_ADRESS; ?>
<span class="red">*</span></label>
<input type="text" name="order_adress" class="idle" onblur="this.className='idle'" onfocus="this.className='activeField'" size="60" value="<?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_adress'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['adress']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['adress'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" <?php echo $lockaddress; ?> />
<div class="delivery">
<label class="txtb"><?php echo @BASKET_FIELD_DELIVERY; ?>
<span class="red">*</span></label>
<?php
global $lang;
$sql="SELECT * FROM zlo_book_delivery WHERE parent_id='0' order by sort asc";
$result = mysql_query($sql) or die(mysql_error());
$l=0;
if (mysql_affected_rows()!=0) {
//echo"<select name='delivery'>";
//echo "<option value='0'>[âûáîð]</option>";
while ($row = mysql_fetch_assoc($result)) {
$l++;
if($row['id']==$_POST['delivery']) { $selected="selected='selected'";} else { $selected='';}
echo "<label><input ".(($l==1)?"CHECKED":"")." onClick=\"".(($row['id']=='2')?"jQuery('#s30').hide();jQuery('#p30').show();jQuery('.nf1').show();":"jQuery('#s30').show();jQuery('#p30').hide();jQuery('.nf1').hide();jQuery('.ss2').hide();")."jQuery('.ss').hide();jQuery('#m".$row['id']."').show();\" type=\"radio\" name=\"delivery\" value=\"".$row['id']."\"$selected>".(($lang=='ukr')?$row['title_ukr']:$row['title'])."</label>";
echo "<div class=\"ss\" id=\"m".$row['id']."\" style=\"display:none;padding-left:20px;\">";
echo ($lang=='ukr')?$row['text_ukr']:$row['text'];
if($row['id']=='3'){
echo'<div>';
echo'<b>Âûáåðèòå óäîáíûé ïóíêò âûäà÷è:</b>';
$sql="SELECT * FROM zlo_book_delivery WHERE parent_id='".$row['id']."' order by sort asc";
//print $sql;
$result2 = mysql_query($sql);
while ($row2 = mysql_fetch_assoc($result2)) {
echo'<label><input type="radio" name="delivery" value="'.$row2['id'].'" onClick="jQuery(\'.ss2\').hide();jQuery(\'#m'.$row2['id'].'\').show();" />'.(($lang=='ukr')?$row2['title_ukr']:$row2['title']).'</label>';
echo "<div class=\"ss2\" id=\"m".$row2['id']."\" style=\"display:none;padding-left:20px;\">";
echo ($lang=='ukr')?$row2['text_ukr']:$row2['text'];
echo'</div>';
}
echo'</div>';
}
echo"</div>";
}
// echo"</select>";
}
?>
</div>
<?php
$sql="SELECT * FROM zlo_book_delivery";
$result = mysql_query($sql) or die(mysql_error());
if (mysql_affected_rows()!=0) {
while ($row = mysql_fetch_assoc($result)) {
//echo "<div class=\"ss\" id=\"m".$row['id']."\" style=\"display:none;\">".$row['text']."</div>";
}
}
?>
<br/>
<div class="payment">
<label class="txtb"><?php echo @BASKET_FIELD_SALE; ?>
<span class="red">*</span></label>
<label class="nf1" style="display:none;"><input onClick="jQuery('.ss2').hide();jQuery('#p31').show();" type="radio" name="payment" value="Íàëîæåííûì ïëàòåæîì" CHECKED>Íàëîæåííûì ïëàòåæîì</label>
<div class="ss2" id="p31" style="display:none;padding-left:20px;">
+2% îò ñóììû çàêàçà è 23 ãðí.<br />
Îòïðàâêà íàëîæåííûì ïëàòåæîì âîçìîæíà, òîëüêî â ñëó÷àå åñëè òîâàð èç Âàøåãî çàêàçà íàõîäèòñÿ â ã. Êèåâ<br />
<p style="font-weight:bold;color:green;">Íàëîæåííûì ïëàòåæîì îòïðàâëÿåì çàêàçû îò 300 ãðí. è äî 6000 ãðí.<br />
Ãàáàðèòíûé òîâàð (ëûæè, áîòèíêè ã/ë, ðîëèêè, êàéòû è òä.) îòïðàâëÿåì ïî ïðåäîïëàòå.</p>
<p style="font-weight:bold;color:red;">ÂÎÇÂÐÀÒ È ÎÁÌÅÍ ÏÎËÍÎÑÒÜÞ ÇÀ Ñ×ÅÒ ÏÎÊÓÏÀÒÅËß</p>
</div>
<label class="nf" id="s30"><input onClick="jQuery('.ss2').hide();" type="radio" name="payment" value="Îïëàòèòü íàëè÷íûìè" CHECKED><?php echo @BASKET_FIELD_SALE_INFO_1; ?>
</label>
<label><input onClick="jQuery('.ss2').hide();" type="radio" name="payment" value="Îïëàòèòü íà êàðòó Ïðèâàò Áàíêà"><?php echo @BASKET_FIELD_SALE_INFO_2; ?>
</label>
<label><input onClick="jQuery('.ss2').hide();" type="radio" name="payment" value="Îïëàòèòü ïî áåçíàëè÷íîìó ðàñ÷åòó"><?php echo @BASKET_FIELD_SALE_INFO_3; ?>
</label>
<label><input type="radio" name="payment" value="Îïëàòèòü Ïðàâåêñ-òåëåãðàô"><?php echo @BASKET_FIELD_SALE_INFO_4; ?>
</label>
</div>
<div>
<label><?php echo @BASKET_FIELD_COMMENT; ?>
</label>
<textarea rows="4" cols="62" name="order_comment" class="idle" onblur = "this.className='idle'" onfocus = "this.className='activeField'"><?php echo ((is_array($_tmp=((is_array($_tmp=@$_POST['order_comment'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['user']['about']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['user']['about'])))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</textarea>
<?php echo @BASKET_FIELD_COMMENT_INFO; ?>
</div>
<div style="padding:30px 0px 0px 0px;">
<?php echo @BASKET_FIELD_RIGHT; ?>
<input type="checkbox" name="rule" id="is_rule" />
<input type="hidden" name="send_order"><input type="submit" value="<?php echo @checkout; ?>
" class="submit4" onClick="formSubmit('form_order');" />
</div>
<div class="both"></div>
</form>
</div></div>
<div id="etab32" class="tab_content">
<?php if(!isset($_SESSION['user']['id'])) { ?>
<div id="client_old">
<div class="signup">
<div class="col-1" ></div>
<div class="col-2">
<form name="form1" method="POST" id='form_signup_2' action="">
<label>Email:</label>
<input type="text" name="form[login]">
<label>Ïàðîëü:</label>
<input type="password" name="form[pass]">
<div class="buttons">
<input type="hidden" name="signup" value="ok">
<input type="submit" value="<?php echo @SUBENTER; ?>
" />
</div>
</form>
</div>
<div class="col-3">
<span class="remind"><a href="/account/remind/"><?php echo @RESTORE_PASSWORD; ?>
</a></span>
<span class="noaccount"><?php echo @NOT_ACCOUNT; ?>
</span>
<span class="registration"><a href="/account/registration/"><?php echo @REG; ?>
</a></span>
<span class="noaccount"><?php echo @SOCIAL; ?>
</span>
<div style="margin-top:10px; margin-left:250px;">
<table>
<tr>
<td><span onClick="window.location='http://oauth.vk.com/authorize?client_id=3079859&scope=&redirect_uri=http://extremstyle.ua/social/login-vkontakte.php&response_type=code';" id="login_social_vkontakte" style="padding: 8px 0 10px 30px; cursor:pointer;"> </span></td>
<td><span onClick="window.location='/social/index.php?login&oauth_provider=facebook';" id="login_social_facebook" style="padding: 8px 0 10px 30px; cursor:pointer;"> </span></td>
<td><span onClick="window.location='https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Fextremstyle.ua%2Fsocial%2Findex2.php&client_id=1065339127035.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.me';" id="login_social_twitter" style="padding: 8px 0 10px 30px; cursor:pointer;"> </span></td>
</tr>
</table>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div><div class="both"></div>
</div>