Commit 35532d3731107de625322e3743d90daf9f16f4af
1 parent
4e1001ed
- купон больше приходит после регистрации
Showing
2 changed files
with
179 additions
and
198 deletions
Show diff stats
account/auto_registration.php
account/func/func.eMailing.php
@@ -142,11 +142,15 @@ function MimeEncode($str, $data_charset='windows-1251', $send_charset='windows-1 | @@ -142,11 +142,15 @@ function MimeEncode($str, $data_charset='windows-1251', $send_charset='windows-1 | ||
142 | } | 142 | } |
143 | 143 | ||
144 | 144 | ||
145 | -function eMailing ($action, $user_id='',$order_id='',$discont_id='') { | 145 | +function eMailing ($action, $user_id='',$order_id='',$discont_id='') |
146 | +{ | ||
147 | + switch ($action) | ||
148 | + { | ||
149 | + // ===================== | ||
150 | + // ==== ðåãèñòðàöèÿ ==== | ||
151 | + // ===================== | ||
146 | 152 | ||
147 | - switch ($action) { | ||
148 | - | ||
149 | - case 'reg': // ===================[ Îòïðàâêà ðååñòðàöèè ]========================= | 153 | + case 'reg': |
150 | 154 | ||
151 | global $_POST; | 155 | global $_POST; |
152 | 156 | ||
@@ -191,16 +195,15 @@ function eMailing ($action, $user_id='',$order_id='',$discont_id='') { | @@ -191,16 +195,15 @@ function eMailing ($action, $user_id='',$order_id='',$discont_id='') { | ||
191 | sendMail ($admin['email'], $admin['username'], 'registration@extremstyle.ua', 'extremstyle.ua', $subject, $mail); | 195 | sendMail ($admin['email'], $admin['username'], 'registration@extremstyle.ua', 'extremstyle.ua', $subject, $mail); |
192 | } | 196 | } |
193 | 197 | ||
194 | - | ||
195 | - | ||
196 | - | ||
197 | - | ||
198 | - | ||
199 | - | ||
200 | - | ||
201 | - | ||
202 | -////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
203 | - $result2 = mysql_query("SELECT * FROM `card` ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | 198 | + break; |
199 | + | ||
200 | + // ============== | ||
201 | + // ==== NONE ==== | ||
202 | + // ============== | ||
203 | + | ||
204 | + case 'NONE': | ||
205 | + | ||
206 | + $result2 = mysql_query("SELECT * FROM `card` ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
204 | // Øëåì ïèñüìà | 207 | // Øëåì ïèñüìà |
205 | $row55 = mysql_fetch_assoc($result2); | 208 | $row55 = mysql_fetch_assoc($result2); |
206 | if(!@$row55['card']) $row55['card'] = 0; | 209 | if(!@$row55['card']) $row55['card'] = 0; |
@@ -209,88 +212,76 @@ function eMailing ($action, $user_id='',$order_id='',$discont_id='') { | @@ -209,88 +212,76 @@ function eMailing ($action, $user_id='',$order_id='',$discont_id='') { | ||
209 | $discont_id = $row55['card']; | 212 | $discont_id = $row55['card']; |
210 | $result2 = mysql_query("INSERT INTO `card` (`card`,`user_id`) VALUES ('".$row55['card']."','".$user['id']."')"); | 213 | $result2 = mysql_query("INSERT INTO `card` (`card`,`user_id`) VALUES ('".$row55['card']."','".$user['id']."')"); |
211 | } | 214 | } |
212 | - | ||
213 | - | ||
214 | - | ||
215 | - | ||
216 | - | ||
217 | - | ||
218 | -$result2 = mysql_query("SELECT * FROM `card` WHERE `card`='".$discont_id."' ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
219 | -$cc = mysql_fetch_assoc($result2); | ||
220 | -$to = $user['email']; | ||
221 | -$subject = 'Êëóáíàÿ êàðòà ExtremStyle'; | ||
222 | -$message = <<<HTML | ||
223 | -<img src="http://extremstyle.ua/p301.png"> | ||
224 | -<br/> | ||
225 | -<br/> | ||
226 | - | ||
227 | -<table cellspacing=0 cellpadding=0 style="border:1px dashed #000;border-radius:10px;padding:10px;width:660px;margin-left:4px;"> | ||
228 | -<tr> | ||
229 | -<td> | ||
230 | -<table> | ||
231 | -<tr> | ||
232 | -<td rowspan="2"> | ||
233 | -<img src="http://extremstyle.ua/img/kvlogo.png" /> | ||
234 | -</td> | ||
235 | -<td align="center" style="padding:10px;"> | ||
236 | -<div style="font-size:24px;border:1px dashed #000;padding:10px;border-radius:10px;">{$cc['card']}</div> | ||
237 | -</td> | ||
238 | -</tr> | ||
239 | -<tr> | ||
240 | -<td style="font-size:24px;" align="center"> | ||
241 | -ÍÀÉÁ²ËÜØÈÉ ÂÈÁ²Ð | ||
242 | -ÍÀÉÊÐÀÙÎÃÎ ÑÏÎÐßÄÆÅÍÍß | ||
243 | -</td> | ||
244 | -</tr> | ||
245 | -</table> | ||
246 | -</td> | ||
247 | -<td rowspan="5"> | ||
248 | -<img src="http://extremstyle.ua/bcode.php?num={$cc['card']}"> | ||
249 | -</td> | ||
250 | -</tr> | ||
251 | -<tr> | ||
252 | -<td style="padding:10px;font-size:18px;text-transform:uppercase;"> | ||
253 | -Äîáðî ïîæàëîâàòü â êëóá ëþáèòåëåé "Ýêòðåì Ñòàéë"! | ||
254 | -</td> | ||
255 | -</tr> | ||
256 | -<tr> | ||
257 | -<td style="padding:10px;font-size:15px;"> | ||
258 | -Êëóáíàÿ êàðòà äàåò ïðàâî íà ñêèäêó â ïåðèîä äåéñòâèÿ àêöèé, óñëîâèÿ êîòîðûõ áóäóò âûêëàäûâàòüñÿ íà ñàéòå, à èìåííî â ðàçäåëå «Ðåãèñòðàöèÿ» è äóáëèðîâàòüñÿ â ðàçäåëå «Àêöèè»*, à òàêæå íà ãëàâíîé ñòðàíèöå â ðàìêàõ èíôîðìàöèîííîãî áàííåðà. | ||
259 | -<br /><br /> | ||
260 | -*Äåéñòâèå êëóáíîé êàðòû íå ðàñïðîñòðàíÿåòñÿ íà àêöèè, óñëîâèÿ êîòîðûõ íå èçëîæåíû â ðàçäåëå «Ðåãèñòðàöèÿ» | ||
261 | -</td> | ||
262 | -</tr> | ||
263 | -</table> | ||
264 | - | ||
265 | - | ||
266 | -<br/><br/> | ||
267 | -×òî áû ðàñïå÷àòàòü êóïîí ïåðåéäèòå ïî ññûëêå íèæå:\r\n | ||
268 | -<a href="http://extremstyle.ua/discont.php?id={$cc['id']}&uid={$user['id']}">http://extremstyle.ua/discont.php?id={$cc['id']}&uid={$user['id']}</a> | ||
269 | - | ||
270 | - | ||
271 | - | ||
272 | - | 215 | + |
216 | + $result2 = mysql_query("SELECT * FROM `card` WHERE `card`='".$discont_id."' ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
217 | + $cc = mysql_fetch_assoc($result2); | ||
218 | + $to = $user['email']; | ||
219 | + $subject = 'Êëóáíàÿ êàðòà ExtremStyle'; | ||
220 | + $message = | ||
221 | +<<<HTML | ||
222 | + <img src="http://extremstyle.ua/p301.png"> | ||
223 | + <br/> | ||
224 | + <br/> | ||
225 | + | ||
226 | + <table cellspacing=0 cellpadding=0 style="border:1px dashed #000;border-radius:10px;padding:10px;width:660px;margin-left:4px;"> | ||
227 | + <tr> | ||
228 | + <td> | ||
229 | + <table> | ||
230 | + <tr> | ||
231 | + <td rowspan="2"> | ||
232 | + <img src="http://extremstyle.ua/img/kvlogo.png" /> | ||
233 | + </td> | ||
234 | + <td align="center" style="padding:10px;"> | ||
235 | + <div style="font-size:24px;border:1px dashed #000;padding:10px;border-radius:10px;">{$cc['card']}</div> | ||
236 | + </td> | ||
237 | + </tr> | ||
238 | + <tr> | ||
239 | + <td style="font-size:24px;" align="center"> | ||
240 | + ÍÀÉÁ²ËÜØÈÉ ÂÈÁ²Ð | ||
241 | + ÍÀÉÊÐÀÙÎÃÎ ÑÏÎÐßÄÆÅÍÍß | ||
242 | + </td> | ||
243 | + </tr> | ||
244 | + </table> | ||
245 | + </td> | ||
246 | + <td rowspan="5"> | ||
247 | + <img src="http://extremstyle.ua/bcode.php?num={$cc['card']}"> | ||
248 | + </td> | ||
249 | + </tr> | ||
250 | + <tr> | ||
251 | + <td style="padding:10px;font-size:18px;text-transform:uppercase;"> | ||
252 | + Äîáðî ïîæàëîâàòü â êëóá ëþáèòåëåé "Ýêòðåì Ñòàéë"! | ||
253 | + </td> | ||
254 | + </tr> | ||
255 | + <tr> | ||
256 | + <td style="padding:10px;font-size:15px;"> | ||
257 | + Êëóáíàÿ êàðòà äàåò ïðàâî íà ñêèäêó â ïåðèîä äåéñòâèÿ àêöèé, óñëîâèÿ êîòîðûõ áóäóò âûêëàäûâàòüñÿ íà ñàéòå, à èìåííî â ðàçäåëå «Ðåãèñòðàöèÿ» è äóáëèðîâàòüñÿ â ðàçäåëå «Àêöèè»*, à òàêæå íà ãëàâíîé ñòðàíèöå â ðàìêàõ èíôîðìàöèîííîãî áàííåðà. | ||
258 | + <br /><br /> | ||
259 | + *Äåéñòâèå êëóáíîé êàðòû íå ðàñïðîñòðàíÿåòñÿ íà àêöèè, óñëîâèÿ êîòîðûõ íå èçëîæåíû â ðàçäåëå «Ðåãèñòðàöèÿ» | ||
260 | + </td> | ||
261 | + </tr> | ||
262 | + </table> | ||
263 | + | ||
264 | + | ||
265 | + <br/><br/> | ||
266 | + ×òî áû ðàñïå÷àòàòü êóïîí ïåðåéäèòå ïî ññûëêå íèæå:\r\n | ||
267 | + <a href="http://extremstyle.ua/discont.php?id={$cc['id']}&uid={$user['id']}">http://extremstyle.ua/discont.php?id={$cc['id']}&uid={$user['id']}</a> | ||
268 | + | ||
273 | HTML; | 269 | HTML; |
274 | -$headers = 'From: ExtremStyle.ua <extremstyle@extremstyle.ua>' . "\r\n"; | ||
275 | - | ||
276 | -$headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
277 | - | ||
278 | -//if($row2['active']=='0') | ||
279 | -//@mail($to, $subject, $message, $headers); | ||
280 | - | ||
281 | - | ||
282 | - | ||
283 | -//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
284 | - | ||
285 | 270 | ||
286 | - | ||
287 | - | ||
288 | - | ||
289 | - | ||
290 | - | ||
291 | - break; | 271 | + $headers = 'From: ExtremStyle.ua <extremstyle@extremstyle.ua>' . "\r\n"; |
272 | + | ||
273 | + $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
274 | + | ||
275 | + //if($row2['active']=='0') | ||
276 | + //@mail($to, $subject, $message, $headers); | ||
277 | + | ||
278 | + break; | ||
279 | + | ||
280 | + // ======================== | ||
281 | + // ==== àâòîðååñòðàöèÿ ==== | ||
282 | + // ======================== | ||
292 | 283 | ||
293 | - case 'auto': // ===================[ Îòïðàâêà àâòîðååñòðàöèè ]========================= | 284 | + case 'auto': |
294 | 285 | ||
295 | global $_POST; | 286 | global $_POST; |
296 | 287 | ||
@@ -334,22 +325,8 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | @@ -334,22 +325,8 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
334 | // sendMail ($admin['email'], $admin['username'], 'registration@extremstyle.ua', 'extremstyle.ua', $subject, $mail); | 325 | // sendMail ($admin['email'], $admin['username'], 'registration@extremstyle.ua', 'extremstyle.ua', $subject, $mail); |
335 | // } | 326 | // } |
336 | 327 | ||
337 | - | ||
338 | - | ||
339 | - | ||
340 | - | ||
341 | - | ||
342 | - | ||
343 | - | ||
344 | - | ||
345 | - | ||
346 | - | ||
347 | - | ||
348 | - | ||
349 | -////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
350 | - | ||
351 | - | ||
352 | - $result2 = mysql_query("SELECT * FROM `card` ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | 328 | + |
329 | + $result2 = mysql_query("SELECT * FROM `card` ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
353 | // Øëåì ïèñüìà | 330 | // Øëåì ïèñüìà |
354 | $row55 = mysql_fetch_assoc($result2); | 331 | $row55 = mysql_fetch_assoc($result2); |
355 | if(!@$row55['card']) $row55['card'] = 0; | 332 | if(!@$row55['card']) $row55['card'] = 0; |
@@ -358,13 +335,14 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | @@ -358,13 +335,14 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
358 | $discont_id = $row55['card']; | 335 | $discont_id = $row55['card']; |
359 | $result2 = mysql_query("INSERT INTO `card` (`card`,`user_id`) VALUES ('".$row55['card']."','".$user['id']."')"); | 336 | $result2 = mysql_query("INSERT INTO `card` (`card`,`user_id`) VALUES ('".$row55['card']."','".$user['id']."')"); |
360 | } | 337 | } |
361 | - | ||
362 | - | ||
363 | -$result2 = mysql_query("SELECT * FROM `card` WHERE `card`='".$discont_id."' ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
364 | -$cc = mysql_fetch_assoc($result2); | ||
365 | -$to = $user['email']; | ||
366 | -$subject = 'Êëóáíàÿ êàðòà ExtremStyle'; | ||
367 | -$message = <<<HTML | 338 | + |
339 | + | ||
340 | + $result2 = mysql_query("SELECT * FROM `card` WHERE `card`='".$discont_id."' ORDER BY `card` DESC LIMIT 1;") or die(mysql_error()); | ||
341 | + $cc = mysql_fetch_assoc($result2); | ||
342 | + $to = $user['email']; | ||
343 | + $subject = 'Êëóáíàÿ êàðòà ExtremStyle'; | ||
344 | + $message = | ||
345 | +<<<HTML | ||
368 | <img src="http://extremstyle.ua/p301.png"> | 346 | <img src="http://extremstyle.ua/p301.png"> |
369 | <br/> | 347 | <br/> |
370 | <br/> | 348 | <br/> |
@@ -439,30 +417,21 @@ $message = <<<HTML | @@ -439,30 +417,21 @@ $message = <<<HTML | ||
439 | 417 | ||
440 | 418 | ||
441 | HTML; | 419 | HTML; |
442 | -$headers = 'From: ExtremStyle.ua <extremstyle@extremstyle.ua>' . "\r\n"; | ||
443 | - | ||
444 | -$headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
445 | - | ||
446 | -//if($row2['active']=='0') | ||
447 | -//@mail($to, $subject, $message, $headers); | ||
448 | - | ||
449 | - | ||
450 | - | ||
451 | -//////////////////////////////////////////////////////////////////////////////////////////////////// | ||
452 | - | ||
453 | - | ||
454 | - | ||
455 | - | ||
456 | - | ||
457 | - | ||
458 | - | ||
459 | - | ||
460 | - | ||
461 | - | ||
462 | - | ||
463 | - break; | 420 | + $headers = 'From: ExtremStyle.ua <extremstyle@extremstyle.ua>' . "\r\n"; |
464 | 421 | ||
465 | - case 'order-new': // ===================[ Íîâûé çàêàç ]========================= | 422 | + $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; |
423 | + | ||
424 | + //if($row2['active']=='0') | ||
425 | + //@mail($to, $subject, $message, $headers); | ||
426 | + | ||
427 | + | ||
428 | + break; | ||
429 | + | ||
430 | + // ===================== | ||
431 | + // ==== Íîâûé çàêàç ==== | ||
432 | + // ===================== | ||
433 | + | ||
434 | + case 'order-new': | ||
466 | 435 | ||
467 | global $lang; | 436 | global $lang; |
468 | 437 | ||
@@ -477,16 +446,16 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | @@ -477,16 +446,16 @@ $headers .= 'Content-Type: text/html; charset=windows-1251' . "\r\n"; | ||
477 | $order=mysql_fetch_assoc($result); | 446 | $order=mysql_fetch_assoc($result); |
478 | 447 | ||
479 | 448 | ||
480 | - | ||
481 | -$tel = str_replace("+","",$order['phone']); | ||
482 | - | ||
483 | -if(trim($tel)=='') $tel = $user['tel']; | ||
484 | - | ||
485 | -//echo $tel; | ||
486 | -//exit; | ||
487 | -//$tel = "380969670748"; | ||
488 | -sendSMS($tel,"Vash zakaz Prinyat. # zakaza:".$order_id.". V blijayshee vremya menedjer svyajetsya s Vami. (044) 428-65-38; (050) 382-03-00"); | ||
489 | - | 449 | + |
450 | + $tel = str_replace("+","",$order['phone']); | ||
451 | + | ||
452 | + if(trim($tel)=='') $tel = $user['tel']; | ||
453 | + | ||
454 | + //echo $tel; | ||
455 | + //exit; | ||
456 | + //$tel = "380969670748"; | ||
457 | + sendSMS($tel,"Vash zakaz Prinyat. # zakaza:".$order_id.". V blijayshee vremya menedjer svyajetsya s Vami. (044) 428-65-38; (050) 382-03-00"); | ||
458 | + | ||
490 | 459 | ||
491 | 460 | ||
492 | $subject = "Íîâûé çàêàç íà ñàéòå extremstyle.ua - ïîëüçîâàòåëü : ". $user['username']; | 461 | $subject = "Íîâûé çàêàç íà ñàéòå extremstyle.ua - ïîëüçîâàòåëü : ". $user['username']; |
@@ -495,63 +464,63 @@ sendSMS($tel,"Vash zakaz Prinyat. # zakaza:".$order_id.". V blijayshee vremya me | @@ -495,63 +464,63 @@ sendSMS($tel,"Vash zakaz Prinyat. # zakaza:".$order_id.". V blijayshee vremya me | ||
495 | 464 | ||
496 | 465 | ||
497 | 466 | ||
498 | -$sql = "SELECT distinct s3.id, s5.name as fio, s4.translit as rub_name, s3 . * | ||
499 | -FROM catalogs_orders_products s1 | ||
500 | -LEFT JOIN catalogs_modifications s2 ON s2.id = s1.product_id | ||
501 | -LEFT JOIN catalogs_products s3 ON s3.id = s2.product_id | ||
502 | -LEFT JOIN catalogs_rubrics s4 ON s4.id = s3.rubric_id | ||
503 | -LEFT JOIN catalogs_orders s5 ON s5.id = s1.order_id | ||
504 | -WHERE s1.order_id = '".$order_id."';"; | 467 | + $sql = "SELECT distinct s3.id, s5.name as fio, s4.translit as rub_name, s3 . * |
468 | + FROM catalogs_orders_products s1 | ||
469 | + LEFT JOIN catalogs_modifications s2 ON s2.id = s1.product_id | ||
470 | + LEFT JOIN catalogs_products s3 ON s3.id = s2.product_id | ||
471 | + LEFT JOIN catalogs_rubrics s4 ON s4.id = s3.rubric_id | ||
472 | + LEFT JOIN catalogs_orders s5 ON s5.id = s1.order_id | ||
473 | + WHERE s1.order_id = '".$order_id."';"; | ||
505 | $result = mysql_query($sql) or die(mysql_error()); | 474 | $result = mysql_query($sql) or die(mysql_error()); |
506 | $datas = ""; | 475 | $datas = ""; |
507 | while ($product2 = mysql_fetch_assoc($result)){ | 476 | while ($product2 = mysql_fetch_assoc($result)){ |
508 | $datas .= "<table width=\"300px\"> | 477 | $datas .= "<table width=\"300px\"> |
509 | -<tr> | ||
510 | -<td> | ||
511 | -<a href=\"https://plus.google.com/share?url=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
512 | - '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"><img | ||
513 | - src=\"http://extremstyle.ua/img/32/googleplus_32.png\" alt=\"Share on Google+\" width=\"32px\" height=\"32px\"/></a> | ||
514 | -</td> | ||
515 | -<td> | ||
516 | -<a href=\"http://vkontakte.ru/share.php?url=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
517 | - '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"> | ||
518 | -<img | ||
519 | - src=\"http://extremstyle.ua/img/32/vkontakte_32.png\" alt=\"Share on VK\" width=\"32px\" height=\"32px\"/> | ||
520 | -</a> | ||
521 | - | ||
522 | -</td> | ||
523 | -<td><a href=\"http://www.facebook.com/sharer.php?u=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
524 | - '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"> | ||
525 | -<img | ||
526 | - src=\"http://extremstyle.ua/img/32/facebook_32.png\" alt=\"Share on FB\" width=\"32px\" height=\"32px\"/> | ||
527 | -</a></td> | ||
528 | -</tr> | ||
529 | -</table>"; | 478 | + <tr> |
479 | + <td> | ||
480 | + <a href=\"https://plus.google.com/share?url=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
481 | + '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"><img | ||
482 | + src=\"http://extremstyle.ua/img/32/googleplus_32.png\" alt=\"Share on Google+\" width=\"32px\" height=\"32px\"/></a> | ||
483 | + </td> | ||
484 | + <td> | ||
485 | + <a href=\"http://vkontakte.ru/share.php?url=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
486 | + '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"> | ||
487 | + <img | ||
488 | + src=\"http://extremstyle.ua/img/32/vkontakte_32.png\" alt=\"Share on VK\" width=\"32px\" height=\"32px\"/> | ||
489 | + </a> | ||
490 | + | ||
491 | + </td> | ||
492 | + <td><a href=\"http://www.facebook.com/sharer.php?u=http://extremstyle.ua/".$product2['rub_name']."-catalogs/".$product2['translit']."-".$product2['id']."/?title_as=".base64_encode($product2['fio']." êóïèë(à) ".$product2['name'])."\" onclick=\"javascript:window.open(this.href, | ||
493 | + '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"> | ||
494 | + <img | ||
495 | + src=\"http://extremstyle.ua/img/32/facebook_32.png\" alt=\"Share on FB\" width=\"32px\" height=\"32px\"/> | ||
496 | + </a></td> | ||
497 | + </tr> | ||
498 | + </table>"; | ||
530 | } | 499 | } |
531 | 500 | ||
532 | 501 | ||
533 | $mail= ' | 502 | $mail= ' |
534 | 503 | ||
535 | -<html> | ||
536 | -<meta content="text/html; charset=windows-1251" http-equiv="content-type" /> | ||
537 | -<img src="http://extremstyle.ua/p301.png"> | ||
538 | -<br/> | ||
539 | -<br/> | 504 | + <html> |
505 | + <meta content="text/html; charset=windows-1251" http-equiv="content-type" /> | ||
506 | + <img src="http://extremstyle.ua/p301.png"> | ||
507 | + <br/> | ||
508 | + <br/> | ||
540 | Çäðàâñòâóéòå,'. $user['username'].'!<br/><br/> | 509 | Çäðàâñòâóéòå,'. $user['username'].'!<br/><br/> |
541 | <b>Âàøà çàÿâêà ïðèíÿòà.<br/> | 510 | <b>Âàøà çàÿâêà ïðèíÿòà.<br/> |
542 | Äëÿ ïîäòâåðæäåíèÿ çàêàçà íàø ìåíåäæåð ñâÿæåòñÿ ñ Âàìè â áëèæàéøåå âðåìÿ.</b><br/><br/>'; | 511 | Äëÿ ïîäòâåðæäåíèÿ çàêàçà íàø ìåíåäæåð ñâÿæåòñÿ ñ Âàìè â áëèæàéøåå âðåìÿ.</b><br/><br/>'; |
543 | 512 | ||
544 | -if(!@ShowOrder($user_id, $order_id, $mail)) return false; | ||
545 | - | ||
546 | - $mail= ShowOrder($user_id, $order_id, $mail); | ||
547 | - | ||
548 | - $mail.=" | ||
549 | - Ñòîèìîñòü äîñòàâêè:<br /> | ||
550 | -- åñëè ñóììà çàêàçà ìåíüøå 1000 ãðí. - äîñòàâêà ñòîèò 30 èëè 50 ãðí. â çàâèñèìîñòè îò ãàáàðèòîâ.<br /> | ||
551 | -- åñëè ñóììà çàêàçà ðàâíà èëè áîëüøå 1000 ãðí. - äîñòàâêà ïî Êèåâó áåñïëàòíàÿ.<br /> | ||
552 | -<br /> | ||
553 | -Ïðè çàêàçå íà ñóììó áîëåå 1000 ãðí - äîñòàâêà ïî Óêðàèíå íà ñêëàä Íîâîé Ïî÷òû áåñïëàòíàÿ (êðîìå íàëîæåííîãî ïëàòåæà è àêöèîííûõ òîâàðîâ). | ||
554 | -<br /><br /> | 513 | + if(!@ShowOrder($user_id, $order_id, $mail)) return false; |
514 | + | ||
515 | + $mail= ShowOrder($user_id, $order_id, $mail); | ||
516 | + | ||
517 | + $mail.=" | ||
518 | + Ñòîèìîñòü äîñòàâêè:<br /> | ||
519 | + - åñëè ñóììà çàêàçà ìåíüøå 1000 ãðí. - äîñòàâêà ñòîèò 30 èëè 50 ãðí. â çàâèñèìîñòè îò ãàáàðèòîâ.<br /> | ||
520 | + - åñëè ñóììà çàêàçà ðàâíà èëè áîëüøå 1000 ãðí. - äîñòàâêà ïî Êèåâó áåñïëàòíàÿ.<br /> | ||
521 | + <br /> | ||
522 | + Ïðè çàêàçå íà ñóììó áîëåå 1000 ãðí - äîñòàâêà ïî Óêðàèíå íà ñêëàä Íîâîé Ïî÷òû áåñïëàòíàÿ (êðîìå íàëîæåííîãî ïëàòåæà è àêöèîííûõ òîâàðîâ). | ||
523 | + <br /><br /> | ||
555 | Ïðèñîåäèíÿéòåñü ê íàì: | 524 | Ïðèñîåäèíÿéòåñü ê íàì: |
556 | ".$datas." | 525 | ".$datas." |
557 | 526 | ||
@@ -589,8 +558,12 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | @@ -589,8 +558,12 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | ||
589 | eMailing('xml', $user_id, $order_id); | 558 | eMailing('xml', $user_id, $order_id); |
590 | 559 | ||
591 | break; | 560 | break; |
561 | + | ||
562 | + // ======================= | ||
563 | + // ==== Çàêàç èçìåíåí ==== | ||
564 | + // ======================= | ||
592 | 565 | ||
593 | - case 'order-changed': // ===================[ Çàêàç èçìåíåí ]========================= | 566 | + case 'order-changed': |
594 | 567 | ||
595 | global $lang; | 568 | global $lang; |
596 | 569 | ||
@@ -631,8 +604,12 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | @@ -631,8 +604,12 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | ||
631 | sendMail ($admin['email'], $admin['username'], 'order@extremstyle.ua', 'extremstyle.ua', $subject, $mail); | 604 | sendMail ($admin['email'], $admin['username'], 'order@extremstyle.ua', 'extremstyle.ua', $subject, $mail); |
632 | } | 605 | } |
633 | 606 | ||
634 | - break; | ||
635 | - | 607 | + break; |
608 | + | ||
609 | + // ============= | ||
610 | + // ==== xml ==== | ||
611 | + // ============= | ||
612 | + | ||
636 | case 'xml': | 613 | case 'xml': |
637 | 614 | ||
638 | // Äàííûå î ïîëüçîâàòåëå | 615 | // Äàííûå î ïîëüçîâàòåëå |
@@ -728,7 +705,11 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | @@ -728,7 +705,11 @@ if(!@ShowOrder($user_id, $order_id, $mail)) return false; | ||
728 | 705 | ||
729 | break; | 706 | break; |
730 | 707 | ||
731 | - case 'remind': // ===================[ Íàïîìèíàíèå ïàðîëÿ ]========================= | 708 | + // ============================ |
709 | + // ==== Íàïîìèíàíèå ïàðîëÿ ==== | ||
710 | + // ============================ | ||
711 | + | ||
712 | + case 'remind': | ||
732 | 713 | ||
733 | // óçíàåì âñå äàííûå î ïîëüçîâàòåëå | 714 | // óçíàåì âñå äàííûå î ïîëüçîâàòåëå |
734 | $sql = "SELECT * FROM zlo_users as u WHERE u.id=$user_id"; | 715 | $sql = "SELECT * FROM zlo_users as u WHERE u.id=$user_id"; |