- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
for($i=0;$i<count($data_cor);$i++)
{
if(($data_cor[$i]['status'] == 1) && (($data_cor[$i]['number_packet'] == "9999998") || ($data_cor[$i]['number_packet'] == $iNumber)))
{ $_MY_LOG_counter_2 ++;
foreach($data_cor[$i] as $key=>$value)
$data_cor[$i][$key] = str_replace(";","",str_replace("\n","",str_replace("\r\n","",$value)));
$d .= "\$Заявка\r\n";
$d .= $data_cor[$i]['guid']. ";".$data_cor[$i]['number_1c']. ";".$data_cor[$i]['date_request']. ";".$data_cor[$i]['number_request'].";"
.$data_cor[$i]['contractor']. ";".$data_cor[$i]['contractor_doc'].";".$data_cor[$i]['general_request_id'].";".$data_cor[$i]['date_dispatch'].";"
.$data_cor[$i]['type_dispatch']. ";".$data_cor[$i]['g_contactor_id'].";".$data_cor[$i]['address']. ";"
.$data_cor[$i]['station_name']. ";".$data_cor[$i]['station_code']. ";".$data_cor[$i]['status']. ";"
.$data_cor[$i]['transport_id']. ";".$data_cor[$i]['contact_person'].";".$data_cor[$i]['phone_number']. ";"
.$data_cor[$i]['station_guid']. ";".$data_cor[$i]['guid_cont_4']. ";".$data_cor[$i]['transport_type']. ";"
.$data_cor[$i]['trailer']. ";".$data_cor[$i]['driver']. ";".$data_cor[$i]['driver_reserve']. ";"
.$data_cor[$i]['address_delivery'].";".$data_cor[$i]['comment'];
$d .= "\r\n";
if(count($data_cor['products']>0))
{
$d .= "#Товары\r\n";
foreach($data_cor[$i]['products'] as $p)
$d .= $p['guid'].";".$p['ob'].";".$p['get'].";".$p['doc_guid']."\r\n";
$d .= "#Состояния\r\n";
foreach($data_cor[$i]['statuses'] as $s)
$d .= $s['status'].";".$s['date'].";".$s['user'].";".$s['type'].";".$s['guid']."\r\n";
}
}
}
clauclauclau 22.01.2013 12:28 # 0
отличающихся отличающиеся
Lure Of Chaos 23.01.2013 00:15 # +1
COMHPiI 25.08.2021 02:32 # 0