|
|
@ -404,37 +404,11 @@ class CarController extends BaseController |
|
|
|
$info = new CarT(); |
|
|
|
$info = new CarT(); |
|
|
|
} |
|
|
|
} |
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
$car_use_items = CarUseT::find()->all(); |
|
|
|
$car_type_items = CarTypeT::find()->all(); |
|
|
|
|
|
|
|
$brand_items = Brand2T::find()->all(); |
|
|
|
|
|
|
|
$factory_items = FactoryT::find() |
|
|
|
|
|
|
|
->where('brand_id='.intval($info->brand_id)) |
|
|
|
|
|
|
|
->all(); |
|
|
|
|
|
|
|
$series_items = Series2T::find() |
|
|
|
|
|
|
|
->where('factory_id='.intval($info->factory_id)) |
|
|
|
|
|
|
|
->all(); |
|
|
|
|
|
|
|
$displacement_items = Displacement2T::find() |
|
|
|
|
|
|
|
->where('series_id='.intval($info->series_id)) |
|
|
|
|
|
|
|
->all(); |
|
|
|
|
|
|
|
$year_items = YearT::find() |
|
|
|
|
|
|
|
->where('series_id='.intval($info->series_id.' and displacement_id='.intval($info->displacement_id))) |
|
|
|
|
|
|
|
->all(); |
|
|
|
|
|
|
|
$model_items = ModelT::find() |
|
|
|
|
|
|
|
->where('series_id='.intval($info->series_id)) |
|
|
|
|
|
|
|
->andWhere('displacement_id='.intval($info->displacement_id)) |
|
|
|
|
|
|
|
->andWhere('year_id='.intval($info->year_id)) |
|
|
|
|
|
|
|
->all(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->render('edit',[ |
|
|
|
return $this->render('edit',[ |
|
|
|
'user_id' => $user_id, |
|
|
|
'user_id' => $user_id, |
|
|
|
'info' => $info, |
|
|
|
'info' => $info, |
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
'car_use_items' => $car_use_items, |
|
|
|
'car_type_items' => $car_type_items, |
|
|
|
|
|
|
|
'brand_items' => $brand_items, |
|
|
|
|
|
|
|
'factory_items' => $factory_items, |
|
|
|
|
|
|
|
'series_items' => $series_items, |
|
|
|
|
|
|
|
'displacement_items' => $displacement_items, |
|
|
|
|
|
|
|
'year_items' => $year_items, |
|
|
|
|
|
|
|
'model_items' => $model_items, |
|
|
|
|
|
|
|
'back_params' => $back_params |
|
|
|
'back_params' => $back_params |
|
|
|
]); |
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|