- 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
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
//стандарт
$price_st = mysql_query("select price from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do>= '$izmer' and `type`='$type_st' limit 1");
$price_st = mysql_result($price_st, 0);
$minprice_st = mysql_query("select minprice from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_st' limit 1");
$minprice_st = mysql_result($minprice_st, 0);
$time_st = mysql_query("select time from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_st' limit 1");
$time_st = mysql_result($time_st, 0);
//экспресс
$price_ex = mysql_query("select price from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do>= '$izmer' and `type`='$type_ex' limit 1");
$price_ex = mysql_result($price_ex, 0);
$minprice_ex = mysql_query("select minprice from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_ex' limit 1");
$minprice_ex = mysql_result($minprice_ex, 0);
$time_ex = mysql_query("select time from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_ex' limit 1");
$time_ex = mysql_result($time_ex, 0);
//Ритейл
$price_pallet = mysql_query("select price from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$pallets' and ves_do>= '$pallets' and `type`='$type_rit' limit 1");
$price_pallet = mysql_result($price_pallet, 0);
$time_pallet = mysql_query("select time from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$pallets' and ves_do >= '$pallets' and `type`='$type_rit' limit 1");
$time_pallet = mysql_result($time_pallet, 0);
//авиа
if ($start==getIdCity('Москва')){
if ($volume*167>$weight){
$izmer=(float)($volume*167);
$kol_av = $volume*167;
}
else
{
$izmer=$weight;
$kol_av = $weight;
}
$price_av = mysql_query("select price from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do>= '$izmer' and `type`='$type_av' limit 1");
$price_av = mysql_result($price_av, 0);
$minprice_av = mysql_query("select minprice from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_av' limit 1");
$minprice_av = mysql_result($minprice_av, 0);
$time_av = mysql_query("select time from db_tarif where `from` = '$start' and `to` = '$finish' and ves_ot <= '$izmer' and ves_do >= '$izmer' and `type`='$type_av' limit 1");
$time_av = mysql_result($time_av, 0);
}
else{
$cost_av = "Тариф недоступен";
}
dekameron 09.04.2011 13:24 # +3