- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
$orders = $DB->Query("INSERT INTO `zcrm_orders` SET
`ORDER_NUMBER` = '09/".str_pad($arEventFields['ORDER_ID'], 6, '0', STR_PAD_LEFT)."',
`DATETIME` = '".$dateOrder."',
`FIO` = '".$arEventFields['ORDER_PROP_7']."',
`NAME_ORGANIZATION` = '".$arEventFields['ORDER_PROP_1']."',
`TELEFON` = '".$arEventFields['ORDER_PROP_4']."',
`TELEFON_MOD` = '".preg_replace('/[^\d]+/','', $arEventFields['ORDER_PROP_4'])."',
`EMAIL` = '".$arEventFields['ORDER_PROP_6']."',
`OPLATA` = '8',
`DOSTAVKA` = '".$_POST["id_dostavka"]."',
`CITY` ='".$arEventFields['NASPUNKT_DOSTAVKA']."',
`PUNKT_DOSTAVKA` = '".$arEventFields['ADRESS_DOSTAVKA']." ".$arEventFields['SKLAD_DOSTAVKA']."',
`DATE_DOSTAVKA` = '".$arEventFields['DATE_DOSTAVKA']."',
`TIME_DOSTAVKA` = '".$arEventFields['TIME_DOSTAVKA']."',
`PRICE_DOSTAVKA` = '".$arEventFields['PRICE_DELIVERY2']."',
`COMMENTS` = '".$arOrder['USER_DESCRIPTION']."' ");
bober_maniac 15.02.2012 07:49 # +12
DBdev 16.02.2012 23:51 # 0