Commit 0084d3369ab57ca138877ffc92f70c150ce1db3c

Authored by Administrator
1 parent a0405ed6

Importers CRUD

Showing 4766 changed files with 745638 additions and 331 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 4766 files are displayed.

backend/controllers/AccountsVinController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\AccountsVin;
  7 +use common\models\AccountsVinSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * AccountsVinController implements the CRUD actions for AccountsVin model.
  14 + */
  15 +class AccountsVinController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all AccountsVin models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new AccountsVinSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single AccountsVin model.
  46 + * @param integer $account_id
  47 + * @param integer $id
  48 + * @return mixed
  49 + */
  50 + public function actionView($account_id, $id)
  51 + {
  52 + return $this->render('view', [
  53 + 'model' => $this->findModel($account_id, $id),
  54 + ]);
  55 + }
  56 +
  57 + /**
  58 + * Creates a new AccountsVin model.
  59 + * If creation is successful, the browser will be redirected to the 'view' page.
  60 + * @return mixed
  61 + */
  62 + public function actionCreate()
  63 + {
  64 + $model = new AccountsVin();
  65 +
  66 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  67 + return $this->redirect(['view', 'account_id' => $model->account_id, 'id' => $model->id]);
  68 + } else {
  69 + return $this->render('create', [
  70 + 'model' => $model,
  71 + ]);
  72 + }
  73 + }
  74 +
  75 + /**
  76 + * Updates an existing AccountsVin model.
  77 + * If update is successful, the browser will be redirected to the 'view' page.
  78 + * @param integer $account_id
  79 + * @param integer $id
  80 + * @return mixed
  81 + */
  82 + public function actionUpdate($account_id, $id)
  83 + {
  84 + $model = $this->findModel($account_id, $id);
  85 +
  86 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  87 + return $this->redirect(['view', 'account_id' => $model->account_id, 'id' => $model->id]);
  88 + } else {
  89 + return $this->render('update', [
  90 + 'model' => $model,
  91 + ]);
  92 + }
  93 + }
  94 +
  95 + /**
  96 + * Deletes an existing AccountsVin model.
  97 + * If deletion is successful, the browser will be redirected to the 'index' page.
  98 + * @param integer $account_id
  99 + * @param integer $id
  100 + * @return mixed
  101 + */
  102 + public function actionDelete($account_id, $id)
  103 + {
  104 + $this->findModel($account_id, $id)->delete();
  105 +
  106 + return $this->redirect(['index']);
  107 + }
  108 +
  109 + /**
  110 + * Finds the AccountsVin model based on its primary key value.
  111 + * If the model is not found, a 404 HTTP exception will be thrown.
  112 + * @param integer $account_id
  113 + * @param integer $id
  114 + * @return AccountsVin the loaded model
  115 + * @throws NotFoundHttpException if the model cannot be found
  116 + */
  117 + protected function findModel($account_id, $id)
  118 + {
  119 + if (($model = AccountsVin::findOne(['account_id' => $account_id, 'id' => $id])) !== null) {
  120 + return $model;
  121 + } else {
  122 + throw new NotFoundHttpException('The requested page does not exist.');
  123 + }
  124 + }
  125 +}
... ...
backend/controllers/ArtHistoryController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\ArtHistory;
  7 +use common\models\ArtHistorySearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * ArtHistoryController implements the CRUD actions for ArtHistory model.
  14 + */
  15 +class ArtHistoryController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all ArtHistory models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new ArtHistorySearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single ArtHistory model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new ArtHistory model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new ArtHistory();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->id]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing ArtHistory model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->id]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing ArtHistory model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the ArtHistory model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return ArtHistory the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = ArtHistory::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/BrandsController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Brands;
  7 +use common\models\BrandsSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * BrandsController implements the CRUD actions for Brands model.
  14 + */
  15 +class BrandsController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Brands models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new BrandsSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Brands model.
  46 + * @param string $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new Brands model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new Brands();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->BRAND]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing Brands model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param string $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->BRAND]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing Brands model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param string $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the Brands model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param string $id
  110 + * @return Brands the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Brands::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/BrandsReplaceController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\BrandsReplace;
  7 +use common\models\BrandsReplaceSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * BrandsReplaceController implements the CRUD actions for BrandsReplace model.
  14 + */
  15 +class BrandsReplaceController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all BrandsReplace models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new BrandsReplaceSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single BrandsReplace model.
  46 + * @param string $from_brand
  47 + * @param string $to_brand
  48 + * @return mixed
  49 + */
  50 + public function actionView($from_brand, $to_brand)
  51 + {
  52 + return $this->render('view', [
  53 + 'model' => $this->findModel($from_brand, $to_brand),
  54 + ]);
  55 + }
  56 +
  57 + /**
  58 + * Creates a new BrandsReplace model.
  59 + * If creation is successful, the browser will be redirected to the 'view' page.
  60 + * @return mixed
  61 + */
  62 + public function actionCreate()
  63 + {
  64 + $model = new BrandsReplace();
  65 +
  66 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  67 + return $this->redirect(['view', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand]);
  68 + } else {
  69 + return $this->render('create', [
  70 + 'model' => $model,
  71 + ]);
  72 + }
  73 + }
  74 +
  75 + /**
  76 + * Updates an existing BrandsReplace model.
  77 + * If update is successful, the browser will be redirected to the 'view' page.
  78 + * @param string $from_brand
  79 + * @param string $to_brand
  80 + * @return mixed
  81 + */
  82 + public function actionUpdate($from_brand, $to_brand)
  83 + {
  84 + $model = $this->findModel($from_brand, $to_brand);
  85 +
  86 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  87 + return $this->redirect(['view', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand]);
  88 + } else {
  89 + return $this->render('update', [
  90 + 'model' => $model,
  91 + ]);
  92 + }
  93 + }
  94 +
  95 + /**
  96 + * Deletes an existing BrandsReplace model.
  97 + * If deletion is successful, the browser will be redirected to the 'index' page.
  98 + * @param string $from_brand
  99 + * @param string $to_brand
  100 + * @return mixed
  101 + */
  102 + public function actionDelete($from_brand, $to_brand)
  103 + {
  104 + $this->findModel($from_brand, $to_brand)->delete();
  105 +
  106 + return $this->redirect(['index']);
  107 + }
  108 +
  109 + /**
  110 + * Finds the BrandsReplace model based on its primary key value.
  111 + * If the model is not found, a 404 HTTP exception will be thrown.
  112 + * @param string $from_brand
  113 + * @param string $to_brand
  114 + * @return BrandsReplace the loaded model
  115 + * @throws NotFoundHttpException if the model cannot be found
  116 + */
  117 + protected function findModel($from_brand, $to_brand)
  118 + {
  119 + if (($model = BrandsReplace::findOne(['from_brand' => $from_brand, 'to_brand' => $to_brand])) !== null) {
  120 + return $model;
  121 + } else {
  122 + throw new NotFoundHttpException('The requested page does not exist.');
  123 + }
  124 + }
  125 +}
... ...
backend/controllers/CatController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Cat;
  7 +use common\models\CatSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * CatController implements the CRUD actions for Cat model.
  14 + */
  15 +class CatController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Cat models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new CatSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Cat model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new Cat model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new Cat();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->id]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing Cat model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->id]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing Cat model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the Cat model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return Cat the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Cat::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/DeliveriesController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Deliveries;
  7 +use common\models\DeliveriesSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * DeliveriesController implements the CRUD actions for Deliveries model.
  14 + */
  15 +class DeliveriesController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Deliveries models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new DeliveriesSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Deliveries model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new Deliveries model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new Deliveries();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->id]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing Deliveries model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->id]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing Deliveries model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the Deliveries model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return Deliveries the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Deliveries::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/DetailsController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Details;
  7 +use common\models\DetailsSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * DetailsController implements the CRUD actions for Details model.
  14 + */
  15 +class DetailsController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Details models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new DetailsSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Details model.
  46 + * @param integer $IMPORT_ID
  47 + * @param string $BRAND
  48 + * @param string $ARTICLE
  49 + * @return mixed
  50 + */
  51 + public function actionView($IMPORT_ID, $BRAND, $ARTICLE)
  52 + {
  53 + return $this->render('view', [
  54 + 'model' => $this->findModel($IMPORT_ID, $BRAND, $ARTICLE),
  55 + ]);
  56 + }
  57 +
  58 + /**
  59 + * Creates a new Details model.
  60 + * If creation is successful, the browser will be redirected to the 'view' page.
  61 + * @return mixed
  62 + */
  63 + public function actionCreate()
  64 + {
  65 + $model = new Details();
  66 +
  67 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  68 + return $this->redirect(['view', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE]);
  69 + } else {
  70 + return $this->render('create', [
  71 + 'model' => $model,
  72 + ]);
  73 + }
  74 + }
  75 +
  76 + /**
  77 + * Updates an existing Details model.
  78 + * If update is successful, the browser will be redirected to the 'view' page.
  79 + * @param integer $IMPORT_ID
  80 + * @param string $BRAND
  81 + * @param string $ARTICLE
  82 + * @return mixed
  83 + */
  84 + public function actionUpdate($IMPORT_ID, $BRAND, $ARTICLE)
  85 + {
  86 + $model = $this->findModel($IMPORT_ID, $BRAND, $ARTICLE);
  87 +
  88 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  89 + return $this->redirect(['view', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE]);
  90 + } else {
  91 + return $this->render('update', [
  92 + 'model' => $model,
  93 + ]);
  94 + }
  95 + }
  96 +
  97 + /**
  98 + * Deletes an existing Details model.
  99 + * If deletion is successful, the browser will be redirected to the 'index' page.
  100 + * @param integer $IMPORT_ID
  101 + * @param string $BRAND
  102 + * @param string $ARTICLE
  103 + * @return mixed
  104 + */
  105 + public function actionDelete($IMPORT_ID, $BRAND, $ARTICLE)
  106 + {
  107 + $this->findModel($IMPORT_ID, $BRAND, $ARTICLE)->delete();
  108 +
  109 + return $this->redirect(['index']);
  110 + }
  111 +
  112 + /**
  113 + * Finds the Details model based on its primary key value.
  114 + * If the model is not found, a 404 HTTP exception will be thrown.
  115 + * @param integer $IMPORT_ID
  116 + * @param string $BRAND
  117 + * @param string $ARTICLE
  118 + * @return Details the loaded model
  119 + * @throws NotFoundHttpException if the model cannot be found
  120 + */
  121 + protected function findModel($IMPORT_ID, $BRAND, $ARTICLE)
  122 + {
  123 + if (($model = Details::findOne(['IMPORT_ID' => $IMPORT_ID, 'BRAND' => $BRAND, 'ARTICLE' => $ARTICLE])) !== null) {
  124 + return $model;
  125 + } else {
  126 + throw new NotFoundHttpException('The requested page does not exist.');
  127 + }
  128 + }
  129 +}
... ...
backend/controllers/DetailsCrossesController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\DetailsCrosses;
  7 +use common\models\DetailsCrossesSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * DetailsCrossesController implements the CRUD actions for DetailsCrosses model.
  14 + */
  15 +class DetailsCrossesController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all DetailsCrosses models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new DetailsCrossesSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single DetailsCrosses model.
  46 + * @param string $ARTICLE
  47 + * @param string $BRAND
  48 + * @param string $CROSS_BRAND
  49 + * @param string $CROSS_ARTICLE
  50 + * @return mixed
  51 + */
  52 + public function actionView($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE)
  53 + {
  54 + return $this->render('view', [
  55 + 'model' => $this->findModel($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE),
  56 + ]);
  57 + }
  58 +
  59 + /**
  60 + * Creates a new DetailsCrosses model.
  61 + * If creation is successful, the browser will be redirected to the 'view' page.
  62 + * @return mixed
  63 + */
  64 + public function actionCreate()
  65 + {
  66 + $model = new DetailsCrosses();
  67 +
  68 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  69 + return $this->redirect(['view', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE]);
  70 + } else {
  71 + return $this->render('create', [
  72 + 'model' => $model,
  73 + ]);
  74 + }
  75 + }
  76 +
  77 + /**
  78 + * Updates an existing DetailsCrosses model.
  79 + * If update is successful, the browser will be redirected to the 'view' page.
  80 + * @param string $ARTICLE
  81 + * @param string $BRAND
  82 + * @param string $CROSS_BRAND
  83 + * @param string $CROSS_ARTICLE
  84 + * @return mixed
  85 + */
  86 + public function actionUpdate($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE)
  87 + {
  88 + $model = $this->findModel($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE);
  89 +
  90 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  91 + return $this->redirect(['view', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE]);
  92 + } else {
  93 + return $this->render('update', [
  94 + 'model' => $model,
  95 + ]);
  96 + }
  97 + }
  98 +
  99 + /**
  100 + * Deletes an existing DetailsCrosses model.
  101 + * If deletion is successful, the browser will be redirected to the 'index' page.
  102 + * @param string $ARTICLE
  103 + * @param string $BRAND
  104 + * @param string $CROSS_BRAND
  105 + * @param string $CROSS_ARTICLE
  106 + * @return mixed
  107 + */
  108 + public function actionDelete($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE)
  109 + {
  110 + $this->findModel($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE)->delete();
  111 +
  112 + return $this->redirect(['index']);
  113 + }
  114 +
  115 + /**
  116 + * Finds the DetailsCrosses model based on its primary key value.
  117 + * If the model is not found, a 404 HTTP exception will be thrown.
  118 + * @param string $ARTICLE
  119 + * @param string $BRAND
  120 + * @param string $CROSS_BRAND
  121 + * @param string $CROSS_ARTICLE
  122 + * @return DetailsCrosses the loaded model
  123 + * @throws NotFoundHttpException if the model cannot be found
  124 + */
  125 + protected function findModel($ARTICLE, $BRAND, $CROSS_BRAND, $CROSS_ARTICLE)
  126 + {
  127 + if (($model = DetailsCrosses::findOne(['ARTICLE' => $ARTICLE, 'BRAND' => $BRAND, 'CROSS_BRAND' => $CROSS_BRAND, 'CROSS_ARTICLE' => $CROSS_ARTICLE])) !== null) {
  128 + return $model;
  129 + } else {
  130 + throw new NotFoundHttpException('The requested page does not exist.');
  131 + }
  132 + }
  133 +}
... ...
backend/controllers/DicStatusesController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\DicStatuses;
  7 +use common\models\DicStatusesSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * DicStatusesController implements the CRUD actions for DicStatuses model.
  14 + */
  15 +class DicStatusesController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all DicStatuses models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new DicStatusesSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single DicStatuses model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new DicStatuses model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new DicStatuses();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->id]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing DicStatuses model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->id]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing DicStatuses model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the DicStatuses model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return DicStatuses the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = DicStatuses::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/ManufacturersController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Manufacturers;
  7 +use common\models\ManufacturersSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * ManufacturersController implements the CRUD actions for Manufacturers model.
  14 + */
  15 +class ManufacturersController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Manufacturers models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new ManufacturersSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Manufacturers model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new Manufacturers model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new Manufacturers();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->MFA_ID]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing Manufacturers model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->MFA_ID]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing Manufacturers model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the Manufacturers model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return Manufacturers the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Manufacturers::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/OfficesController.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Offices;
  7 +use common\models\OfficesSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * OfficesController implements the CRUD actions for Offices model.
  14 + */
  15 +class OfficesController extends Controller
  16 +{
  17 + public function behaviors()
  18 + {
  19 + return [
  20 + 'verbs' => [
  21 + 'class' => VerbFilter::className(),
  22 + 'actions' => [
  23 + 'delete' => ['post'],
  24 + ],
  25 + ],
  26 + ];
  27 + }
  28 +
  29 + /**
  30 + * Lists all Offices models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new OfficesSearch();
  36 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  37 +
  38 + return $this->render('index', [
  39 + 'searchModel' => $searchModel,
  40 + 'dataProvider' => $dataProvider,
  41 + ]);
  42 + }
  43 +
  44 + /**
  45 + * Displays a single Offices model.
  46 + * @param integer $id
  47 + * @return mixed
  48 + */
  49 + public function actionView($id)
  50 + {
  51 + return $this->render('view', [
  52 + 'model' => $this->findModel($id),
  53 + ]);
  54 + }
  55 +
  56 + /**
  57 + * Creates a new Offices model.
  58 + * If creation is successful, the browser will be redirected to the 'view' page.
  59 + * @return mixed
  60 + */
  61 + public function actionCreate()
  62 + {
  63 + $model = new Offices();
  64 +
  65 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  66 + return $this->redirect(['view', 'id' => $model->id]);
  67 + } else {
  68 + return $this->render('create', [
  69 + 'model' => $model,
  70 + ]);
  71 + }
  72 + }
  73 +
  74 + /**
  75 + * Updates an existing Offices model.
  76 + * If update is successful, the browser will be redirected to the 'view' page.
  77 + * @param integer $id
  78 + * @return mixed
  79 + */
  80 + public function actionUpdate($id)
  81 + {
  82 + $model = $this->findModel($id);
  83 +
  84 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  85 + return $this->redirect(['view', 'id' => $model->id]);
  86 + } else {
  87 + return $this->render('update', [
  88 + 'model' => $model,
  89 + ]);
  90 + }
  91 + }
  92 +
  93 + /**
  94 + * Deletes an existing Offices model.
  95 + * If deletion is successful, the browser will be redirected to the 'index' page.
  96 + * @param integer $id
  97 + * @return mixed
  98 + */
  99 + public function actionDelete($id)
  100 + {
  101 + $this->findModel($id)->delete();
  102 +
  103 + return $this->redirect(['index']);
  104 + }
  105 +
  106 + /**
  107 + * Finds the Offices model based on its primary key value.
  108 + * If the model is not found, a 404 HTTP exception will be thrown.
  109 + * @param integer $id
  110 + * @return Offices the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Offices::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/views/accounts_vin/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\AccountsVin */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="accounts-vin-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'account_id')->textInput() ?>
  16 +
  17 + <?= $form->field($model, 'id')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'vin')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'car_name')->textInput(['maxlength' => true]) ?>
  22 +
  23 + <?= $form->field($model, 'car_mfa_id')->textInput() ?>
  24 +
  25 + <?= $form->field($model, 'car_model')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'car_mod_id')->textInput() ?>
  28 +
  29 + <?= $form->field($model, 'timestamp')->textInput() ?>
  30 +
  31 + <div class="form-group">
  32 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  33 + </div>
  34 +
  35 + <?php ActiveForm::end(); ?>
  36 +
  37 +</div>
... ...
backend/views/accounts_vin/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\AccountsVinSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="accounts-vin-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'account_id') ?>
  19 +
  20 + <?= $form->field($model, 'id') ?>
  21 +
  22 + <?= $form->field($model, 'vin') ?>
  23 +
  24 + <?= $form->field($model, 'car_name') ?>
  25 +
  26 + <?= $form->field($model, 'car_mfa_id') ?>
  27 +
  28 + <?php // echo $form->field($model, 'car_model') ?>
  29 +
  30 + <?php // echo $form->field($model, 'car_mod_id') ?>
  31 +
  32 + <?php // echo $form->field($model, 'timestamp') ?>
  33 +
  34 + <div class="form-group">
  35 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  36 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  37 + </div>
  38 +
  39 + <?php ActiveForm::end(); ?>
  40 +
  41 +</div>
... ...
backend/views/accounts_vin/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\AccountsVin */
  8 +
  9 +$this->title = 'Create Accounts Vin';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Accounts Vins', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="accounts-vin-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/accounts_vin/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\AccountsVinSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Accounts Vins';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="accounts-vin-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Accounts Vin', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'account_id',
  29 + 'id',
  30 + 'vin',
  31 + 'car_name',
  32 + 'car_mfa_id',
  33 + // 'car_model',
  34 + // 'car_mod_id',
  35 + // 'timestamp',
  36 +
  37 + ['class' => 'yii\grid\ActionColumn'],
  38 + ],
  39 + ]); ?>
  40 +
  41 +</div>
... ...
backend/views/accounts_vin/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\AccountsVin */
  7 +
  8 +$this->title = 'Update Accounts Vin: ' . ' ' . $model->account_id;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Accounts Vins', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->account_id, 'url' => ['view', 'account_id' => $model->account_id, 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="accounts-vin-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/accounts_vin/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\AccountsVin */
  8 +
  9 +$this->title = $model->account_id;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Accounts Vins', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="accounts-vin-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'account_id' => $model->account_id, 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'account_id' => $model->account_id, 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'account_id',
  32 + 'id',
  33 + 'vin',
  34 + 'car_name',
  35 + 'car_mfa_id',
  36 + 'car_model',
  37 + 'car_mod_id',
  38 + 'timestamp',
  39 + ],
  40 + ]) ?>
  41 +
  42 +</div>
... ...
backend/views/art_history/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\ArtHistory */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="art-history-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'user_id')->textInput() ?>
  16 +
  17 + <?= $form->field($model, 'art')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'dt')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <div class="form-group">
  22 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  23 + </div>
  24 +
  25 + <?php ActiveForm::end(); ?>
  26 +
  27 +</div>
... ...
backend/views/art_history/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\ArtHistorySearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="art-history-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'user_id') ?>
  21 +
  22 + <?= $form->field($model, 'art') ?>
  23 +
  24 + <?= $form->field($model, 'dt') ?>
  25 +
  26 + <div class="form-group">
  27 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  28 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  29 + </div>
  30 +
  31 + <?php ActiveForm::end(); ?>
  32 +
  33 +</div>
... ...
backend/views/art_history/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\ArtHistory */
  8 +
  9 +$this->title = 'Create Art History';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Art Histories', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="art-history-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/art_history/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\ArtHistorySearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Art Histories';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="art-history-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Art History', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'user_id',
  30 + 'art',
  31 + 'dt',
  32 +
  33 + ['class' => 'yii\grid\ActionColumn'],
  34 + ],
  35 + ]); ?>
  36 +
  37 +</div>
... ...
backend/views/art_history/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\ArtHistory */
  7 +
  8 +$this->title = 'Update Art History: ' . ' ' . $model->id;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Art Histories', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="art-history-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/art_history/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\ArtHistory */
  8 +
  9 +$this->title = $model->id;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Art Histories', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="art-history-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'user_id',
  33 + 'art',
  34 + 'dt',
  35 + ],
  36 + ]) ?>
  37 +
  38 +</div>
... ...
backend/views/brands/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Brands */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="brands-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'BRAND')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'if_tecdoc')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'tecdoc_logo')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'if_oem')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'if_checked')->textInput() ?>
  24 +
  25 + <?= $form->field($model, 'CONTENT')->textarea(['rows' => 6]) ?>
  26 +
  27 + <?= $form->field($model, 'IMG')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <?= $form->field($model, 'timestamp')->textInput() ?>
  30 +
  31 + <div class="form-group">
  32 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  33 + </div>
  34 +
  35 + <?php ActiveForm::end(); ?>
  36 +
  37 +</div>
... ...
backend/views/brands/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\BrandsSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="brands-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'ID') ?>
  19 +
  20 + <?= $form->field($model, 'BRAND') ?>
  21 +
  22 + <?= $form->field($model, 'if_tecdoc') ?>
  23 +
  24 + <?= $form->field($model, 'tecdoc_logo') ?>
  25 +
  26 + <?= $form->field($model, 'if_oem') ?>
  27 +
  28 + <?php // echo $form->field($model, 'if_checked') ?>
  29 +
  30 + <?php // echo $form->field($model, 'CONTENT') ?>
  31 +
  32 + <?php // echo $form->field($model, 'IMG') ?>
  33 +
  34 + <?php // echo $form->field($model, 'timestamp') ?>
  35 +
  36 + <div class="form-group">
  37 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  38 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  39 + </div>
  40 +
  41 + <?php ActiveForm::end(); ?>
  42 +
  43 +</div>
... ...
backend/views/brands/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Brands */
  8 +
  9 +$this->title = 'Create Brands';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Brands', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/brands/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\BrandsSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Brands';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Brands', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'ID',
  29 + 'BRAND',
  30 + 'if_tecdoc',
  31 + 'tecdoc_logo',
  32 + 'if_oem',
  33 + // 'if_checked',
  34 + // 'CONTENT:ntext',
  35 + // 'IMG',
  36 + // 'timestamp',
  37 +
  38 + ['class' => 'yii\grid\ActionColumn'],
  39 + ],
  40 + ]); ?>
  41 +
  42 +</div>
... ...
backend/views/brands/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Brands */
  7 +
  8 +$this->title = 'Update Brands: ' . ' ' . $model->BRAND;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Brands', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->BRAND, 'url' => ['view', 'id' => $model->BRAND]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="brands-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/brands/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Brands */
  8 +
  9 +$this->title = $model->BRAND;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Brands', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->BRAND], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->BRAND], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'ID',
  32 + 'BRAND',
  33 + 'if_tecdoc',
  34 + 'tecdoc_logo',
  35 + 'if_oem',
  36 + 'if_checked',
  37 + 'CONTENT:ntext',
  38 + 'IMG',
  39 + 'timestamp',
  40 + ],
  41 + ]) ?>
  42 +
  43 +</div>
... ...
backend/views/brands_replace/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\BrandsReplace */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="brands-replace-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'from_brand')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'to_brand')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'finish')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'timestamp')->textInput() ?>
  22 +
  23 + <div class="form-group">
  24 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  25 + </div>
  26 +
  27 + <?php ActiveForm::end(); ?>
  28 +
  29 +</div>
... ...
backend/views/brands_replace/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\BrandsReplaceSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="brands-replace-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'from_brand') ?>
  21 +
  22 + <?= $form->field($model, 'to_brand') ?>
  23 +
  24 + <?= $form->field($model, 'finish') ?>
  25 +
  26 + <?= $form->field($model, 'timestamp') ?>
  27 +
  28 + <div class="form-group">
  29 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  30 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  31 + </div>
  32 +
  33 + <?php ActiveForm::end(); ?>
  34 +
  35 +</div>
... ...
backend/views/brands_replace/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\BrandsReplace */
  8 +
  9 +$this->title = 'Create Brands Replace';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Brands Replaces', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-replace-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/brands_replace/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\BrandsReplaceSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Brands Replaces';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-replace-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Brands Replace', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'from_brand',
  30 + 'to_brand',
  31 + 'finish',
  32 + 'timestamp',
  33 +
  34 + ['class' => 'yii\grid\ActionColumn'],
  35 + ],
  36 + ]); ?>
  37 +
  38 +</div>
... ...
backend/views/brands_replace/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\BrandsReplace */
  7 +
  8 +$this->title = 'Update Brands Replace: ' . ' ' . $model->from_brand;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Brands Replaces', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->from_brand, 'url' => ['view', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="brands-replace-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/brands_replace/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\BrandsReplace */
  8 +
  9 +$this->title = $model->from_brand;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Brands Replaces', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="brands-replace-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'from_brand' => $model->from_brand, 'to_brand' => $model->to_brand], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'from_brand',
  33 + 'to_brand',
  34 + 'finish',
  35 + 'timestamp',
  36 + ],
  37 + ]) ?>
  38 +
  39 +</div>
... ...
backend/views/cat/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Cat */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="cat-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'description')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'sort')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'is_active')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'parent_id')->textInput() ?>
  22 +
  23 + <div class="form-group">
  24 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  25 + </div>
  26 +
  27 + <?php ActiveForm::end(); ?>
  28 +
  29 +</div>
... ...
backend/views/cat/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\CatSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="cat-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'description') ?>
  21 +
  22 + <?= $form->field($model, 'sort') ?>
  23 +
  24 + <?= $form->field($model, 'is_active') ?>
  25 +
  26 + <?= $form->field($model, 'parent_id') ?>
  27 +
  28 + <div class="form-group">
  29 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  30 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  31 + </div>
  32 +
  33 + <?php ActiveForm::end(); ?>
  34 +
  35 +</div>
... ...
backend/views/cat/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Cat */
  8 +
  9 +$this->title = 'Create Cat';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Cats', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="cat-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/cat/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\CatSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Cats';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="cat-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Cat', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'description',
  30 + 'sort',
  31 + 'is_active',
  32 + 'parent_id',
  33 +
  34 + ['class' => 'yii\grid\ActionColumn'],
  35 + ],
  36 + ]); ?>
  37 +
  38 +</div>
... ...
backend/views/cat/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Cat */
  7 +
  8 +$this->title = 'Update Cat: ' . ' ' . $model->id;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Cats', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="cat-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/cat/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Cat */
  8 +
  9 +$this->title = $model->id;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Cats', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="cat-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'description',
  33 + 'sort',
  34 + 'is_active',
  35 + 'parent_id',
  36 + ],
  37 + ]) ?>
  38 +
  39 +</div>
... ...
backend/views/deliveries/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Deliveries */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="deliveries-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'sort')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'is_active')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'is_default')->textInput() ?>
  22 +
  23 + <div class="form-group">
  24 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  25 + </div>
  26 +
  27 + <?php ActiveForm::end(); ?>
  28 +
  29 +</div>
... ...
backend/views/deliveries/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DeliveriesSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="deliveries-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'name') ?>
  21 +
  22 + <?= $form->field($model, 'sort') ?>
  23 +
  24 + <?= $form->field($model, 'is_active') ?>
  25 +
  26 + <?= $form->field($model, 'is_default') ?>
  27 +
  28 + <div class="form-group">
  29 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  30 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  31 + </div>
  32 +
  33 + <?php ActiveForm::end(); ?>
  34 +
  35 +</div>
... ...
backend/views/deliveries/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Deliveries */
  8 +
  9 +$this->title = 'Create Deliveries';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="deliveries-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/deliveries/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\DeliveriesSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Deliveries';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="deliveries-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Deliveries', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'name',
  30 + 'sort',
  31 + 'is_active',
  32 + 'is_default',
  33 +
  34 + ['class' => 'yii\grid\ActionColumn'],
  35 + ],
  36 + ]); ?>
  37 +
  38 +</div>
... ...
backend/views/deliveries/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Deliveries */
  7 +
  8 +$this->title = 'Update Deliveries: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="deliveries-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/deliveries/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Deliveries */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="deliveries-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'name',
  33 + 'sort',
  34 + 'is_active',
  35 + 'is_default',
  36 + ],
  37 + ]) ?>
  38 +
  39 +</div>
... ...
backend/views/details/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Details */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="details-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'IMPORT_ID')->textInput() ?>
  16 +
  17 + <?= $form->field($model, 'BRAND')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'ARTICLE')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'FULL_ARTICLE')->textInput(['maxlength' => true]) ?>
  22 +
  23 + <?= $form->field($model, 'PRICE')->textInput() ?>
  24 +
  25 + <?= $form->field($model, 'DESCR')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'BOX')->textInput() ?>
  28 +
  29 + <?= $form->field($model, 'ADD_BOX')->textInput() ?>
  30 +
  31 + <?= $form->field($model, 'GROUP')->textInput(['maxlength' => true]) ?>
  32 +
  33 + <?= $form->field($model, 'timestamp')->textInput() ?>
  34 +
  35 + <div class="form-group">
  36 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  37 + </div>
  38 +
  39 + <?php ActiveForm::end(); ?>
  40 +
  41 +</div>
... ...
backend/views/details/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DetailsSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="details-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'ID') ?>
  19 +
  20 + <?= $form->field($model, 'IMPORT_ID') ?>
  21 +
  22 + <?= $form->field($model, 'BRAND') ?>
  23 +
  24 + <?= $form->field($model, 'ARTICLE') ?>
  25 +
  26 + <?= $form->field($model, 'FULL_ARTICLE') ?>
  27 +
  28 + <?php // echo $form->field($model, 'PRICE') ?>
  29 +
  30 + <?php // echo $form->field($model, 'DESCR') ?>
  31 +
  32 + <?php // echo $form->field($model, 'BOX') ?>
  33 +
  34 + <?php // echo $form->field($model, 'ADD_BOX') ?>
  35 +
  36 + <?php // echo $form->field($model, 'GROUP') ?>
  37 +
  38 + <?php // echo $form->field($model, 'timestamp') ?>
  39 +
  40 + <div class="form-group">
  41 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  42 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  43 + </div>
  44 +
  45 + <?php ActiveForm::end(); ?>
  46 +
  47 +</div>
... ...
backend/views/details/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Details */
  8 +
  9 +$this->title = 'Create Details';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Details', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/details/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\DetailsSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Details';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Details', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'ID',
  29 + 'IMPORT_ID',
  30 + 'BRAND',
  31 + 'ARTICLE',
  32 + 'FULL_ARTICLE',
  33 + // 'PRICE',
  34 + // 'DESCR',
  35 + // 'BOX',
  36 + // 'ADD_BOX',
  37 + // 'GROUP',
  38 + // 'timestamp',
  39 +
  40 + ['class' => 'yii\grid\ActionColumn'],
  41 + ],
  42 + ]); ?>
  43 +
  44 +</div>
... ...
backend/views/details/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Details */
  7 +
  8 +$this->title = 'Update Details: ' . ' ' . $model->IMPORT_ID;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Details', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->IMPORT_ID, 'url' => ['view', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="details-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/details/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Details */
  8 +
  9 +$this->title = $model->IMPORT_ID;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Details', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'IMPORT_ID' => $model->IMPORT_ID, 'BRAND' => $model->BRAND, 'ARTICLE' => $model->ARTICLE], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'ID',
  32 + 'IMPORT_ID',
  33 + 'BRAND',
  34 + 'ARTICLE',
  35 + 'FULL_ARTICLE',
  36 + 'PRICE',
  37 + 'DESCR',
  38 + 'BOX',
  39 + 'ADD_BOX',
  40 + 'GROUP',
  41 + 'timestamp',
  42 + ],
  43 + ]) ?>
  44 +
  45 +</div>
... ...
backend/views/details_crosses/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DetailsCrosses */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="details-crosses-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'ARTICLE')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'BRAND')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'CROSS_BRAND')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'CROSS_ARTICLE')->textInput(['maxlength' => true]) ?>
  22 +
  23 + <?= $form->field($model, 'timestamp')->textInput() ?>
  24 +
  25 + <div class="form-group">
  26 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  27 + </div>
  28 +
  29 + <?php ActiveForm::end(); ?>
  30 +
  31 +</div>
... ...
backend/views/details_crosses/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DetailsCrossesSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="details-crosses-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'ID') ?>
  19 +
  20 + <?= $form->field($model, 'ARTICLE') ?>
  21 +
  22 + <?= $form->field($model, 'BRAND') ?>
  23 +
  24 + <?= $form->field($model, 'CROSS_BRAND') ?>
  25 +
  26 + <?= $form->field($model, 'CROSS_ARTICLE') ?>
  27 +
  28 + <?php // echo $form->field($model, 'timestamp') ?>
  29 +
  30 + <div class="form-group">
  31 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  32 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  33 + </div>
  34 +
  35 + <?php ActiveForm::end(); ?>
  36 +
  37 +</div>
... ...
backend/views/details_crosses/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DetailsCrosses */
  8 +
  9 +$this->title = 'Create Details Crosses';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Details Crosses', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-crosses-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/details_crosses/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\DetailsCrossesSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Details Crosses';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-crosses-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Details Crosses', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'ID',
  29 + 'ARTICLE',
  30 + 'BRAND',
  31 + 'CROSS_BRAND',
  32 + 'CROSS_ARTICLE',
  33 + // 'timestamp',
  34 +
  35 + ['class' => 'yii\grid\ActionColumn'],
  36 + ],
  37 + ]); ?>
  38 +
  39 +</div>
... ...
backend/views/details_crosses/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\DetailsCrosses */
  7 +
  8 +$this->title = 'Update Details Crosses: ' . ' ' . $model->ARTICLE;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Details Crosses', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->ARTICLE, 'url' => ['view', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="details-crosses-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/details_crosses/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DetailsCrosses */
  8 +
  9 +$this->title = $model->ARTICLE;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Details Crosses', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="details-crosses-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'ARTICLE' => $model->ARTICLE, 'BRAND' => $model->BRAND, 'CROSS_BRAND' => $model->CROSS_BRAND, 'CROSS_ARTICLE' => $model->CROSS_ARTICLE], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'ID',
  32 + 'ARTICLE',
  33 + 'BRAND',
  34 + 'CROSS_BRAND',
  35 + 'CROSS_ARTICLE',
  36 + 'timestamp',
  37 + ],
  38 + ]) ?>
  39 +
  40 +</div>
... ...
backend/views/dic_statuses/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DicStatuses */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="dic-statuses-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'color')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'active')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'sort')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'if_mail')->textInput() ?>
  24 +
  25 + <div class="form-group">
  26 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  27 + </div>
  28 +
  29 + <?php ActiveForm::end(); ?>
  30 +
  31 +</div>
... ...
backend/views/dic_statuses/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DicStatusesSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="dic-statuses-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'name') ?>
  21 +
  22 + <?= $form->field($model, 'color') ?>
  23 +
  24 + <?= $form->field($model, 'active') ?>
  25 +
  26 + <?= $form->field($model, 'sort') ?>
  27 +
  28 + <?php // echo $form->field($model, 'if_mail') ?>
  29 +
  30 + <div class="form-group">
  31 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  32 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  33 + </div>
  34 +
  35 + <?php ActiveForm::end(); ?>
  36 +
  37 +</div>
... ...
backend/views/dic_statuses/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DicStatuses */
  8 +
  9 +$this->title = 'Create Dic Statuses';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Dic Statuses', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="dic-statuses-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/dic_statuses/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\DicStatusesSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Dic Statuses';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="dic-statuses-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Dic Statuses', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'name',
  30 + 'color',
  31 + 'active',
  32 + 'sort',
  33 + // 'if_mail',
  34 +
  35 + ['class' => 'yii\grid\ActionColumn'],
  36 + ],
  37 + ]); ?>
  38 +
  39 +</div>
... ...
backend/views/dic_statuses/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\DicStatuses */
  7 +
  8 +$this->title = 'Update Dic Statuses: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Dic Statuses', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="dic-statuses-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/dic_statuses/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\DicStatuses */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Dic Statuses', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="dic-statuses-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'name',
  33 + 'color',
  34 + 'active',
  35 + 'sort',
  36 + 'if_mail',
  37 + ],
  38 + ]) ?>
  39 +
  40 +</div>
... ...
backend/views/layouts/column.php
... ... @@ -283,7 +283,6 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;);
283 283 'options' => ['class' => 'sidebar-menu'],
284 284 'items' => [
285 285 ['label' => "Загрузка файлов", 'url' => ['#'], 'items' => [
286   - ['label' => 'Кросс-файлы', 'url' => ['crossing-upload/index']],
287 286 ['label' => 'Файлы на сервере', 'url' => ['parser/server-files']],
288 287 ['label' => 'Загрузить файл на сервер', 'url' => ['parser/index', 'mode' => 1]],
289 288 ['label' => 'Ручная загрузка', 'url' => ['parser/index']],
... ... @@ -305,19 +304,21 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;);
305 304 ['label' => 'Коэфициенты на группы RG', 'url' => ['margins-groups/index']],
306 305 ],
307 306 ],
308   -// Справочник
309   -//Замены брендов
310   -//Карточки товаров
311   -//Товары поставщиков
312   -//Кроссы
313   -//Бренды
314   -//Марки авто
315   -//Статусы заказов
316   -//Типы доставок
317   -//Категории товаров
318   -//Vin коды
319   -//Запросы по номеру
320   -//Офисы
  307 + ['label' => 'Справочник', 'url' => ['#'], 'items' => [
  308 + ['label' => 'Замены брендов', 'url' => ['currency/index']],
  309 + ['label' => 'Карточки товаров', 'url' => ['currency/index']],
  310 + ['label' => 'Товары поставщиков', 'url' => ['currency/index']],
  311 + ['label' => 'Кроссы', 'url' => ['currency/index']],
  312 + ['label' => 'Бренды', 'url' => ['currency/index']],
  313 + ['label' => 'Марки авто', 'url' => ['currency/index']],
  314 + ['label' => 'Статусы заказов', 'url' => ['currency/index']],
  315 + ['label' => 'Типы доставок', 'url' => ['currency/index']],
  316 + ['label' => 'Категории товаров', 'url' => ['currency/index']],
  317 + ['label' => 'Vin коды', 'url' => ['currency/index']],
  318 + ['label' => 'Запросы по номеру', 'url' => ['currency/index']],
  319 + ['label' => 'Офисы', 'url' => ['currency/index']],
  320 + ],
  321 + ],
321 322  
322 323 ],
323 324 'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",
... ...
backend/views/manufacturers/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Manufacturers */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="manufacturers-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'MFA_ID')->textInput() ?>
  16 +
  17 + <?= $form->field($model, 'MFA_PC_MFC')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'MFA_CV_MFC')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'MFA_AXL_MFC')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'MFA_ENG_MFC')->textInput() ?>
  24 +
  25 + <?= $form->field($model, 'MFA_ENG_TYP')->textInput() ?>
  26 +
  27 + <?= $form->field($model, 'MFA_MFC_CODE')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <?= $form->field($model, 'MFA_BRAND')->textInput(['maxlength' => true]) ?>
  30 +
  31 + <?= $form->field($model, 'MFA_MF_NR')->textInput() ?>
  32 +
  33 + <?= $form->field($model, 'MY_SORT')->textInput() ?>
  34 +
  35 + <?= $form->field($model, 'MY_ACTIVE')->textInput() ?>
  36 +
  37 + <?= $form->field($model, 'MY_IMG')->textInput(['maxlength' => true]) ?>
  38 +
  39 + <?= $form->field($model, 'MY_DEFAULT')->textInput() ?>
  40 +
  41 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  42 +
  43 + <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
  44 +
  45 + <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  46 +
  47 + <?= $form->field($model, 'kwords')->textInput(['maxlength' => true]) ?>
  48 +
  49 + <?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?>
  50 +
  51 + <?= $form->field($model, 'h1')->textInput(['maxlength' => true]) ?>
  52 +
  53 + <?= $form->field($model, 'original_url')->textInput(['maxlength' => true]) ?>
  54 +
  55 + <div class="form-group">
  56 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  57 + </div>
  58 +
  59 + <?php ActiveForm::end(); ?>
  60 +
  61 +</div>
... ...
backend/views/manufacturers/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\ManufacturersSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="manufacturers-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'MFA_ID') ?>
  19 +
  20 + <?= $form->field($model, 'MFA_PC_MFC') ?>
  21 +
  22 + <?= $form->field($model, 'MFA_CV_MFC') ?>
  23 +
  24 + <?= $form->field($model, 'MFA_AXL_MFC') ?>
  25 +
  26 + <?= $form->field($model, 'MFA_ENG_MFC') ?>
  27 +
  28 + <?php // echo $form->field($model, 'MFA_ENG_TYP') ?>
  29 +
  30 + <?php // echo $form->field($model, 'MFA_MFC_CODE') ?>
  31 +
  32 + <?php // echo $form->field($model, 'MFA_BRAND') ?>
  33 +
  34 + <?php // echo $form->field($model, 'MFA_MF_NR') ?>
  35 +
  36 + <?php // echo $form->field($model, 'MY_SORT') ?>
  37 +
  38 + <?php // echo $form->field($model, 'MY_ACTIVE') ?>
  39 +
  40 + <?php // echo $form->field($model, 'MY_IMG') ?>
  41 +
  42 + <?php // echo $form->field($model, 'MY_DEFAULT') ?>
  43 +
  44 + <?php // echo $form->field($model, 'name') ?>
  45 +
  46 + <?php // echo $form->field($model, 'content') ?>
  47 +
  48 + <?php // echo $form->field($model, 'title') ?>
  49 +
  50 + <?php // echo $form->field($model, 'kwords') ?>
  51 +
  52 + <?php // echo $form->field($model, 'descr') ?>
  53 +
  54 + <?php // echo $form->field($model, 'h1') ?>
  55 +
  56 + <?php // echo $form->field($model, 'original_url') ?>
  57 +
  58 + <div class="form-group">
  59 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  60 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  61 + </div>
  62 +
  63 + <?php ActiveForm::end(); ?>
  64 +
  65 +</div>
... ...
backend/views/manufacturers/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Manufacturers */
  8 +
  9 +$this->title = 'Create Manufacturers';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Manufacturers', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="manufacturers-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/manufacturers/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\ManufacturersSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Manufacturers';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="manufacturers-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Manufacturers', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'MFA_ID',
  29 + 'MFA_PC_MFC',
  30 + 'MFA_CV_MFC',
  31 + 'MFA_AXL_MFC',
  32 + 'MFA_ENG_MFC',
  33 + // 'MFA_ENG_TYP',
  34 + // 'MFA_MFC_CODE',
  35 + // 'MFA_BRAND',
  36 + // 'MFA_MF_NR',
  37 + // 'MY_SORT',
  38 + // 'MY_ACTIVE',
  39 + // 'MY_IMG',
  40 + // 'MY_DEFAULT',
  41 + // 'name',
  42 + // 'content:ntext',
  43 + // 'title',
  44 + // 'kwords',
  45 + // 'descr',
  46 + // 'h1',
  47 + // 'original_url:url',
  48 +
  49 + ['class' => 'yii\grid\ActionColumn'],
  50 + ],
  51 + ]); ?>
  52 +
  53 +</div>
... ...
backend/views/manufacturers/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Manufacturers */
  7 +
  8 +$this->title = 'Update Manufacturers: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Manufacturers', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->MFA_ID]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="manufacturers-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/manufacturers/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Manufacturers */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Manufacturers', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="manufacturers-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->MFA_ID], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->MFA_ID], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'MFA_ID',
  32 + 'MFA_PC_MFC',
  33 + 'MFA_CV_MFC',
  34 + 'MFA_AXL_MFC',
  35 + 'MFA_ENG_MFC',
  36 + 'MFA_ENG_TYP',
  37 + 'MFA_MFC_CODE',
  38 + 'MFA_BRAND',
  39 + 'MFA_MF_NR',
  40 + 'MY_SORT',
  41 + 'MY_ACTIVE',
  42 + 'MY_IMG',
  43 + 'MY_DEFAULT',
  44 + 'name',
  45 + 'content:ntext',
  46 + 'title',
  47 + 'kwords',
  48 + 'descr',
  49 + 'h1',
  50 + 'original_url:url',
  51 + ],
  52 + ]) ?>
  53 +
  54 +</div>
... ...
backend/views/offices/_form.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Offices */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="offices-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'info')->textarea(['rows' => 6]) ?>
  18 +
  19 + <?= $form->field($model, 'city_id')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'is_default')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'content_delete')->textarea(['rows' => 6]) ?>
  24 +
  25 + <?= $form->field($model, 'coords')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'phones')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
  30 +
  31 + <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
  32 +
  33 + <?= $form->field($model, 'skype')->textInput(['maxlength' => true]) ?>
  34 +
  35 + <div class="form-group">
  36 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  37 + </div>
  38 +
  39 + <?php ActiveForm::end(); ?>
  40 +
  41 +</div>
... ...
backend/views/offices/_search.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\ActiveForm;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\OfficesSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="offices-search">
  12 +
  13 + <?php $form = ActiveForm::begin([
  14 + 'action' => ['index'],
  15 + 'method' => 'get',
  16 + ]); ?>
  17 +
  18 + <?= $form->field($model, 'id') ?>
  19 +
  20 + <?= $form->field($model, 'name') ?>
  21 +
  22 + <?= $form->field($model, 'info') ?>
  23 +
  24 + <?= $form->field($model, 'city_id') ?>
  25 +
  26 + <?= $form->field($model, 'is_default') ?>
  27 +
  28 + <?php // echo $form->field($model, 'content_delete') ?>
  29 +
  30 + <?php // echo $form->field($model, 'coords') ?>
  31 +
  32 + <?php // echo $form->field($model, 'phones') ?>
  33 +
  34 + <?php // echo $form->field($model, 'address') ?>
  35 +
  36 + <?php // echo $form->field($model, 'email') ?>
  37 +
  38 + <?php // echo $form->field($model, 'skype') ?>
  39 +
  40 + <div class="form-group">
  41 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  42 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  43 + </div>
  44 +
  45 + <?php ActiveForm::end(); ?>
  46 +
  47 +</div>
... ...
backend/views/offices/create.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Offices */
  8 +
  9 +$this->title = 'Create Offices';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="offices-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/offices/index.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\grid\GridView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $searchModel common\models\OfficesSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Offices';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="offices-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Offices', ['create'], ['class' => 'btn btn-success']) ?>
  20 + </p>
  21 +
  22 + <?= GridView::widget([
  23 + 'dataProvider' => $dataProvider,
  24 + 'filterModel' => $searchModel,
  25 + 'columns' => [
  26 + ['class' => 'yii\grid\SerialColumn'],
  27 +
  28 + 'id',
  29 + 'name',
  30 + 'info:ntext',
  31 + 'city_id',
  32 + 'is_default',
  33 + // 'content_delete:ntext',
  34 + // 'coords',
  35 + // 'phones',
  36 + // 'address',
  37 + // 'email:email',
  38 + // 'skype',
  39 +
  40 + ['class' => 'yii\grid\ActionColumn'],
  41 + ],
  42 + ]); ?>
  43 +
  44 +</div>
... ...
backend/views/offices/update.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Offices */
  7 +
  8 +$this->title = 'Update Offices: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="offices-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/offices/view.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +use yii\widgets\DetailView;
  5 +
  6 +/* @var $this yii\web\View */
  7 +/* @var $model common\models\Offices */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Offices', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="offices-view">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <p>
  18 + <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  19 + <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  20 + 'class' => 'btn btn-danger',
  21 + 'data' => [
  22 + 'confirm' => 'Are you sure you want to delete this item?',
  23 + 'method' => 'post',
  24 + ],
  25 + ]) ?>
  26 + </p>
  27 +
  28 + <?= DetailView::widget([
  29 + 'model' => $model,
  30 + 'attributes' => [
  31 + 'id',
  32 + 'name',
  33 + 'info:ntext',
  34 + 'city_id',
  35 + 'is_default',
  36 + 'content_delete:ntext',
  37 + 'coords',
  38 + 'phones',
  39 + 'address',
  40 + 'email:email',
  41 + 'skype',
  42 + ],
  43 + ]) ?>
  44 +
  45 +</div>
... ...
common/models/AccountsVin.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_accounts_vin".
  9 + *
  10 + * @property integer $account_id
  11 + * @property integer $id
  12 + * @property string $vin
  13 + * @property string $car_name
  14 + * @property integer $car_mfa_id
  15 + * @property string $car_model
  16 + * @property integer $car_mod_id
  17 + * @property string $timestamp
  18 + *
  19 + * @property AccountsVinDetails[] $accountsVinDetails
  20 + */
  21 +class AccountsVin extends \yii\db\ActiveRecord
  22 +{
  23 + /**
  24 + * @inheritdoc
  25 + */
  26 + public static function tableName()
  27 + {
  28 + return 'w_accounts_vin';
  29 + }
  30 +
  31 + /**
  32 + * @inheritdoc
  33 + */
  34 + public function rules()
  35 + {
  36 + return [
  37 + [['account_id', 'id', 'vin', 'car_name', 'car_mfa_id', 'car_model', 'car_mod_id'], 'required'],
  38 + [['account_id', 'id', 'car_mfa_id', 'car_mod_id'], 'integer'],
  39 + [['timestamp'], 'safe'],
  40 + [['vin'], 'string', 'max' => 30],
  41 + [['car_name'], 'string', 'max' => 100],
  42 + [['car_model'], 'string', 'max' => 150]
  43 + ];
  44 + }
  45 +
  46 + /**
  47 + * @inheritdoc
  48 + */
  49 + public function attributeLabels()
  50 + {
  51 + return [
  52 + 'account_id' => 'Account ID',
  53 + 'id' => 'ID',
  54 + 'vin' => 'Vin',
  55 + 'car_name' => 'Car Name',
  56 + 'car_mfa_id' => 'Car Mfa ID',
  57 + 'car_model' => 'Car Model',
  58 + 'car_mod_id' => 'Car Mod ID',
  59 + 'timestamp' => 'Timestamp',
  60 + ];
  61 + }
  62 +
  63 + /**
  64 + * @return \yii\db\ActiveQuery
  65 + */
  66 + public function getAccountsVinDetails()
  67 + {
  68 + return $this->hasMany(AccountsVinDetails::className(), ['account_id' => 'account_id', 'id' => 'id']);
  69 + }
  70 +}
... ...
common/models/AccountsVinSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\AccountsVin;
  9 +
  10 +/**
  11 + * AccountsVinSearch represents the model behind the search form about `common\models\AccountsVin`.
  12 + */
  13 +class AccountsVinSearch extends AccountsVin
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['account_id', 'id', 'car_mfa_id', 'car_mod_id'], 'integer'],
  22 + [['vin', 'car_name', 'car_model', 'timestamp'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = AccountsVin::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'account_id' => $this->account_id,
  60 + 'id' => $this->id,
  61 + 'car_mfa_id' => $this->car_mfa_id,
  62 + 'car_mod_id' => $this->car_mod_id,
  63 + 'timestamp' => $this->timestamp,
  64 + ]);
  65 +
  66 + $query->andFilterWhere(['like', 'vin', $this->vin])
  67 + ->andFilterWhere(['like', 'car_name', $this->car_name])
  68 + ->andFilterWhere(['like', 'car_model', $this->car_model]);
  69 +
  70 + return $dataProvider;
  71 + }
  72 +}
... ...
common/models/ArtHistory.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_art_history".
  9 + *
  10 + * @property integer $id
  11 + * @property integer $user_id
  12 + * @property string $art
  13 + * @property string $dt
  14 + */
  15 +class ArtHistory extends \yii\db\ActiveRecord
  16 +{
  17 + /**
  18 + * @inheritdoc
  19 + */
  20 + public static function tableName()
  21 + {
  22 + return 'w_art_history';
  23 + }
  24 +
  25 + /**
  26 + * @inheritdoc
  27 + */
  28 + public function rules()
  29 + {
  30 + return [
  31 + [['user_id', 'art', 'dt'], 'required'],
  32 + [['user_id'], 'integer'],
  33 + [['art'], 'string', 'max' => 100],
  34 + [['dt'], 'string', 'max' => 15],
  35 + [['user_id', 'art'], 'unique', 'targetAttribute' => ['user_id', 'art'], 'message' => 'The combination of User ID and Art has already been taken.']
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'id' => 'ID',
  46 + 'user_id' => 'User ID',
  47 + 'art' => 'Art',
  48 + 'dt' => 'Dt',
  49 + ];
  50 + }
  51 +}
... ...
common/models/ArtHistorySearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\ArtHistory;
  9 +
  10 +/**
  11 + * ArtHistorySearch represents the model behind the search form about `common\models\ArtHistory`.
  12 + */
  13 +class ArtHistorySearch extends ArtHistory
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'user_id'], 'integer'],
  22 + [['art', 'dt'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = ArtHistory::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'id' => $this->id,
  60 + 'user_id' => $this->user_id,
  61 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'art', $this->art])
  64 + ->andFilterWhere(['like', 'dt', $this->dt]);
  65 +
  66 + return $dataProvider;
  67 + }
  68 +}
... ...
common/models/Brands.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_brands".
  9 + *
  10 + * @property integer $ID
  11 + * @property string $BRAND
  12 + * @property integer $if_tecdoc
  13 + * @property string $tecdoc_logo
  14 + * @property integer $if_oem
  15 + * @property integer $if_checked
  16 + * @property string $CONTENT
  17 + * @property string $IMG
  18 + * @property string $timestamp
  19 + */
  20 +class Brands extends \yii\db\ActiveRecord
  21 +{
  22 + /**
  23 + * @inheritdoc
  24 + */
  25 + public static function tableName()
  26 + {
  27 + return 'w_brands';
  28 + }
  29 +
  30 + /**
  31 + * @inheritdoc
  32 + */
  33 + public function rules()
  34 + {
  35 + return [
  36 + [['BRAND', 'CONTENT'], 'required'],
  37 + [['if_tecdoc', 'if_oem', 'if_checked'], 'integer'],
  38 + [['CONTENT'], 'string'],
  39 + [['timestamp'], 'safe'],
  40 + [['BRAND'], 'string', 'max' => 100],
  41 + [['tecdoc_logo'], 'string', 'max' => 50],
  42 + [['IMG'], 'string', 'max' => 255]
  43 + ];
  44 + }
  45 +
  46 + /**
  47 + * @inheritdoc
  48 + */
  49 + public function attributeLabels()
  50 + {
  51 + return [
  52 + 'ID' => 'ID',
  53 + 'BRAND' => 'Brand',
  54 + 'if_tecdoc' => 'If Tecdoc',
  55 + 'tecdoc_logo' => 'Tecdoc Logo',
  56 + 'if_oem' => 'If Oem',
  57 + 'if_checked' => 'If Checked',
  58 + 'CONTENT' => 'Content',
  59 + 'IMG' => 'Img',
  60 + 'timestamp' => 'Timestamp',
  61 + ];
  62 + }
  63 +}
... ...
common/models/BrandsReplace.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_brands_replace".
  9 + *
  10 + * @property integer $id
  11 + * @property string $from_brand
  12 + * @property string $to_brand
  13 + * @property integer $finish
  14 + * @property string $timestamp
  15 + */
  16 +class BrandsReplace extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_brands_replace';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['from_brand', 'to_brand'], 'required'],
  33 + [['finish'], 'integer'],
  34 + [['timestamp'], 'safe'],
  35 + [['from_brand', 'to_brand'], 'string', 'max' => 100]
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'id' => 'ID',
  46 + 'from_brand' => 'From Brand',
  47 + 'to_brand' => 'To Brand',
  48 + 'finish' => 'Finish',
  49 + 'timestamp' => 'Timestamp',
  50 + ];
  51 + }
  52 +}
... ...
common/models/BrandsReplaceSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\BrandsReplace;
  9 +
  10 +/**
  11 + * BrandsReplaceSearch represents the model behind the search form about `common\models\BrandsReplace`.
  12 + */
  13 +class BrandsReplaceSearch extends BrandsReplace
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'finish'], 'integer'],
  22 + [['from_brand', 'to_brand', 'timestamp'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = BrandsReplace::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'id' => $this->id,
  60 + 'finish' => $this->finish,
  61 + 'timestamp' => $this->timestamp,
  62 + ]);
  63 +
  64 + $query->andFilterWhere(['like', 'from_brand', $this->from_brand])
  65 + ->andFilterWhere(['like', 'to_brand', $this->to_brand]);
  66 +
  67 + return $dataProvider;
  68 + }
  69 +}
... ...
common/models/BrandsSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\Brands;
  9 +
  10 +/**
  11 + * BrandsSearch represents the model behind the search form about `common\models\Brands`.
  12 + */
  13 +class BrandsSearch extends Brands
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['ID', 'if_tecdoc', 'if_oem', 'if_checked'], 'integer'],
  22 + [['BRAND', 'tecdoc_logo', 'CONTENT', 'IMG', 'timestamp'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = Brands::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'ID' => $this->ID,
  60 + 'if_tecdoc' => $this->if_tecdoc,
  61 + 'if_oem' => $this->if_oem,
  62 + 'if_checked' => $this->if_checked,
  63 + 'timestamp' => $this->timestamp,
  64 + ]);
  65 +
  66 + $query->andFilterWhere(['like', 'BRAND', $this->BRAND])
  67 + ->andFilterWhere(['like', 'tecdoc_logo', $this->tecdoc_logo])
  68 + ->andFilterWhere(['like', 'CONTENT', $this->CONTENT])
  69 + ->andFilterWhere(['like', 'IMG', $this->IMG]);
  70 +
  71 + return $dataProvider;
  72 + }
  73 +}
... ...
common/models/Cat.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_cat".
  9 + *
  10 + * @property integer $id
  11 + * @property string $description
  12 + * @property integer $sort
  13 + * @property integer $is_active
  14 + * @property integer $parent_id
  15 + */
  16 +class Cat extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_cat';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['description'], 'required'],
  33 + [['sort', 'is_active', 'parent_id'], 'integer'],
  34 + [['description'], 'string', 'max' => 100]
  35 + ];
  36 + }
  37 +
  38 + /**
  39 + * @inheritdoc
  40 + */
  41 + public function attributeLabels()
  42 + {
  43 + return [
  44 + 'id' => 'ID',
  45 + 'description' => 'Description',
  46 + 'sort' => 'Sort',
  47 + 'is_active' => 'Is Active',
  48 + 'parent_id' => 'Parent ID',
  49 + ];
  50 + }
  51 +}
... ...
common/models/CatSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\Cat;
  9 +
  10 +/**
  11 + * CatSearch represents the model behind the search form about `common\models\Cat`.
  12 + */
  13 +class CatSearch extends Cat
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort', 'is_active', 'parent_id'], 'integer'],
  22 + [['description'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = Cat::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'id' => $this->id,
  60 + 'sort' => $this->sort,
  61 + 'is_active' => $this->is_active,
  62 + 'parent_id' => $this->parent_id,
  63 + ]);
  64 +
  65 + $query->andFilterWhere(['like', 'description', $this->description]);
  66 +
  67 + return $dataProvider;
  68 + }
  69 +}
... ...
common/models/Deliveries.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_deliveries".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property integer $sort
  13 + * @property integer $is_active
  14 + * @property integer $is_default
  15 + */
  16 +class Deliveries extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_deliveries';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['name', 'sort', 'is_active'], 'required'],
  33 + [['sort', 'is_active', 'is_default'], 'integer'],
  34 + [['name'], 'string', 'max' => 255]
  35 + ];
  36 + }
  37 +
  38 + /**
  39 + * @inheritdoc
  40 + */
  41 + public function attributeLabels()
  42 + {
  43 + return [
  44 + 'id' => 'ID',
  45 + 'name' => 'Name',
  46 + 'sort' => 'Sort',
  47 + 'is_active' => 'Is Active',
  48 + 'is_default' => 'Is Default',
  49 + ];
  50 + }
  51 +}
... ...
common/models/DeliveriesSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\Deliveries;
  9 +
  10 +/**
  11 + * DeliveriesSearch represents the model behind the search form about `common\models\Deliveries`.
  12 + */
  13 +class DeliveriesSearch extends Deliveries
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort', 'is_active', 'is_default'], 'integer'],
  22 + [['name'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = Deliveries::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'id' => $this->id,
  60 + 'sort' => $this->sort,
  61 + 'is_active' => $this->is_active,
  62 + 'is_default' => $this->is_default,
  63 + ]);
  64 +
  65 + $query->andFilterWhere(['like', 'name', $this->name]);
  66 +
  67 + return $dataProvider;
  68 + }
  69 +}
... ...
common/models/Details.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_details".
  9 + *
  10 + * @property integer $ID
  11 + * @property integer $IMPORT_ID
  12 + * @property string $BRAND
  13 + * @property string $ARTICLE
  14 + * @property string $FULL_ARTICLE
  15 + * @property double $PRICE
  16 + * @property string $DESCR
  17 + * @property integer $BOX
  18 + * @property integer $ADD_BOX
  19 + * @property string $GROUP
  20 + * @property string $timestamp
  21 + */
  22 +class Details extends \yii\db\ActiveRecord
  23 +{
  24 + /**
  25 + * @inheritdoc
  26 + */
  27 + public static function tableName()
  28 + {
  29 + return 'w_details';
  30 + }
  31 +
  32 + /**
  33 + * @inheritdoc
  34 + */
  35 + public function rules()
  36 + {
  37 + return [
  38 + [['IMPORT_ID', 'BRAND', 'ARTICLE', 'FULL_ARTICLE', 'PRICE', 'DESCR', 'BOX'], 'required'],
  39 + [['IMPORT_ID', 'BOX', 'ADD_BOX'], 'integer'],
  40 + [['PRICE'], 'number'],
  41 + [['timestamp'], 'safe'],
  42 + [['BRAND', 'ARTICLE'], 'string', 'max' => 100],
  43 + [['FULL_ARTICLE'], 'string', 'max' => 150],
  44 + [['DESCR', 'GROUP'], 'string', 'max' => 200]
  45 + ];
  46 + }
  47 +
  48 + /**
  49 + * @inheritdoc
  50 + */
  51 + public function attributeLabels()
  52 + {
  53 + return [
  54 + 'ID' => 'ID',
  55 + 'IMPORT_ID' => 'Import ID',
  56 + 'BRAND' => 'Brand',
  57 + 'ARTICLE' => 'Article',
  58 + 'FULL_ARTICLE' => 'Full Article',
  59 + 'PRICE' => 'Price',
  60 + 'DESCR' => 'Descr',
  61 + 'BOX' => 'Box',
  62 + 'ADD_BOX' => 'Add Box',
  63 + 'GROUP' => 'Group',
  64 + 'timestamp' => 'Timestamp',
  65 + ];
  66 + }
  67 +}
... ...
common/models/DetailsCrosses.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_details_crosses".
  9 + *
  10 + * @property integer $ID
  11 + * @property string $ARTICLE
  12 + * @property string $BRAND
  13 + * @property string $CROSS_BRAND
  14 + * @property string $CROSS_ARTICLE
  15 + * @property string $timestamp
  16 + */
  17 +class DetailsCrosses extends \yii\db\ActiveRecord
  18 +{
  19 + /**
  20 + * @inheritdoc
  21 + */
  22 + public static function tableName()
  23 + {
  24 + return 'w_details_crosses';
  25 + }
  26 +
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public function rules()
  31 + {
  32 + return [
  33 + [['ARTICLE', 'BRAND', 'CROSS_BRAND', 'CROSS_ARTICLE'], 'required'],
  34 + [['timestamp'], 'safe'],
  35 + [['ARTICLE', 'BRAND', 'CROSS_BRAND', 'CROSS_ARTICLE'], 'string', 'max' => 100]
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'ID' => 'ID',
  46 + 'ARTICLE' => 'Article',
  47 + 'BRAND' => 'Brand',
  48 + 'CROSS_BRAND' => 'Cross Brand',
  49 + 'CROSS_ARTICLE' => 'Cross Article',
  50 + 'timestamp' => 'Timestamp',
  51 + ];
  52 + }
  53 +}
... ...
common/models/DetailsCrossesSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\DetailsCrosses;
  9 +
  10 +/**
  11 + * DetailsCrossesSearch represents the model behind the search form about `common\models\DetailsCrosses`.
  12 + */
  13 +class DetailsCrossesSearch extends DetailsCrosses
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['ID'], 'integer'],
  22 + [['ARTICLE', 'BRAND', 'CROSS_BRAND', 'CROSS_ARTICLE', 'timestamp'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = DetailsCrosses::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'ID' => $this->ID,
  60 + 'timestamp' => $this->timestamp,
  61 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'ARTICLE', $this->ARTICLE])
  64 + ->andFilterWhere(['like', 'BRAND', $this->BRAND])
  65 + ->andFilterWhere(['like', 'CROSS_BRAND', $this->CROSS_BRAND])
  66 + ->andFilterWhere(['like', 'CROSS_ARTICLE', $this->CROSS_ARTICLE]);
  67 +
  68 + return $dataProvider;
  69 + }
  70 +}
... ...
common/models/DetailsSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\Details;
  9 +
  10 +/**
  11 + * DetailsSearch represents the model behind the search form about `common\models\Details`.
  12 + */
  13 +class DetailsSearch extends Details
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['ID', 'IMPORT_ID', 'BOX', 'ADD_BOX'], 'integer'],
  22 + [['BRAND', 'ARTICLE', 'FULL_ARTICLE', 'DESCR', 'GROUP', 'timestamp'], 'safe'],
  23 + [['PRICE'], 'number'],
  24 + ];
  25 + }
  26 +
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public function scenarios()
  31 + {
  32 + // bypass scenarios() implementation in the parent class
  33 + return Model::scenarios();
  34 + }
  35 +
  36 + /**
  37 + * Creates data provider instance with search query applied
  38 + *
  39 + * @param array $params
  40 + *
  41 + * @return ActiveDataProvider
  42 + */
  43 + public function search($params)
  44 + {
  45 + $query = Details::find();
  46 +
  47 + $dataProvider = new ActiveDataProvider([
  48 + 'query' => $query,
  49 + ]);
  50 +
  51 + $this->load($params);
  52 +
  53 + if (!$this->validate()) {
  54 + // uncomment the following line if you do not want to return any records when validation fails
  55 + // $query->where('0=1');
  56 + return $dataProvider;
  57 + }
  58 +
  59 + $query->andFilterWhere([
  60 + 'ID' => $this->ID,
  61 + 'IMPORT_ID' => $this->IMPORT_ID,
  62 + 'PRICE' => $this->PRICE,
  63 + 'BOX' => $this->BOX,
  64 + 'ADD_BOX' => $this->ADD_BOX,
  65 + 'timestamp' => $this->timestamp,
  66 + ]);
  67 +
  68 + $query->andFilterWhere(['like', 'BRAND', $this->BRAND])
  69 + ->andFilterWhere(['like', 'ARTICLE', $this->ARTICLE])
  70 + ->andFilterWhere(['like', 'FULL_ARTICLE', $this->FULL_ARTICLE])
  71 + ->andFilterWhere(['like', 'DESCR', $this->DESCR])
  72 + ->andFilterWhere(['like', 'GROUP', $this->GROUP]);
  73 +
  74 + return $dataProvider;
  75 + }
  76 +}
... ...
common/models/DicStatuses.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_dic_statuses".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $color
  13 + * @property integer $active
  14 + * @property integer $sort
  15 + * @property integer $if_mail
  16 + */
  17 +class DicStatuses extends \yii\db\ActiveRecord
  18 +{
  19 + /**
  20 + * @inheritdoc
  21 + */
  22 + public static function tableName()
  23 + {
  24 + return 'w_dic_statuses';
  25 + }
  26 +
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public function rules()
  31 + {
  32 + return [
  33 + [['name', 'color', 'sort'], 'required'],
  34 + [['active', 'sort', 'if_mail'], 'integer'],
  35 + [['name', 'color'], 'string', 'max' => 50]
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'id' => 'ID',
  46 + 'name' => 'Name',
  47 + 'color' => 'Color',
  48 + 'active' => 'Active',
  49 + 'sort' => 'Sort',
  50 + 'if_mail' => 'If Mail',
  51 + ];
  52 + }
  53 +}
... ...
common/models/DicStatusesSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\DicStatuses;
  9 +
  10 +/**
  11 + * DicStatusesSearch represents the model behind the search form about `common\models\DicStatuses`.
  12 + */
  13 +class DicStatusesSearch extends DicStatuses
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'active', 'sort', 'if_mail'], 'integer'],
  22 + [['name', 'color'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = DicStatuses::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'id' => $this->id,
  60 + 'active' => $this->active,
  61 + 'sort' => $this->sort,
  62 + 'if_mail' => $this->if_mail,
  63 + ]);
  64 +
  65 + $query->andFilterWhere(['like', 'name', $this->name])
  66 + ->andFilterWhere(['like', 'color', $this->color]);
  67 +
  68 + return $dataProvider;
  69 + }
  70 +}
... ...
common/models/Manufacturers.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_manufacturers".
  9 + *
  10 + * @property integer $MFA_ID
  11 + * @property integer $MFA_PC_MFC
  12 + * @property integer $MFA_CV_MFC
  13 + * @property integer $MFA_AXL_MFC
  14 + * @property integer $MFA_ENG_MFC
  15 + * @property integer $MFA_ENG_TYP
  16 + * @property string $MFA_MFC_CODE
  17 + * @property string $MFA_BRAND
  18 + * @property integer $MFA_MF_NR
  19 + * @property integer $MY_SORT
  20 + * @property integer $MY_ACTIVE
  21 + * @property string $MY_IMG
  22 + * @property integer $MY_DEFAULT
  23 + * @property string $name
  24 + * @property string $content
  25 + * @property string $title
  26 + * @property string $kwords
  27 + * @property string $descr
  28 + * @property string $h1
  29 + * @property string $original_url
  30 + */
  31 +class Manufacturers extends \yii\db\ActiveRecord
  32 +{
  33 + /**
  34 + * @inheritdoc
  35 + */
  36 + public static function tableName()
  37 + {
  38 + return 'w_manufacturers';
  39 + }
  40 +
  41 + /**
  42 + * @inheritdoc
  43 + */
  44 + public function rules()
  45 + {
  46 + return [
  47 + [['MFA_ID', 'MY_SORT', 'MY_ACTIVE', 'MY_IMG', 'MY_DEFAULT', 'name', 'content', 'title', 'kwords', 'descr', 'h1', 'original_url'], 'required'],
  48 + [['MFA_ID', 'MFA_PC_MFC', 'MFA_CV_MFC', 'MFA_AXL_MFC', 'MFA_ENG_MFC', 'MFA_ENG_TYP', 'MFA_MF_NR', 'MY_SORT', 'MY_ACTIVE', 'MY_DEFAULT'], 'integer'],
  49 + [['content'], 'string'],
  50 + [['MFA_MFC_CODE'], 'string', 'max' => 30],
  51 + [['MFA_BRAND'], 'string', 'max' => 60],
  52 + [['MY_IMG'], 'string', 'max' => 254],
  53 + [['name', 'title', 'kwords', 'descr', 'h1', 'original_url'], 'string', 'max' => 255]
  54 + ];
  55 + }
  56 +
  57 + /**
  58 + * @inheritdoc
  59 + */
  60 + public function attributeLabels()
  61 + {
  62 + return [
  63 + 'MFA_ID' => 'Mfa ID',
  64 + 'MFA_PC_MFC' => 'Mfa Pc Mfc',
  65 + 'MFA_CV_MFC' => 'Mfa Cv Mfc',
  66 + 'MFA_AXL_MFC' => 'Mfa Axl Mfc',
  67 + 'MFA_ENG_MFC' => 'Mfa Eng Mfc',
  68 + 'MFA_ENG_TYP' => 'Mfa Eng Typ',
  69 + 'MFA_MFC_CODE' => 'Mfa Mfc Code',
  70 + 'MFA_BRAND' => 'Mfa Brand',
  71 + 'MFA_MF_NR' => 'Mfa Mf Nr',
  72 + 'MY_SORT' => 'My Sort',
  73 + 'MY_ACTIVE' => 'My Active',
  74 + 'MY_IMG' => 'My Img',
  75 + 'MY_DEFAULT' => 'My Default',
  76 + 'name' => 'Name',
  77 + 'content' => 'Content',
  78 + 'title' => 'Title',
  79 + 'kwords' => 'Kwords',
  80 + 'descr' => 'Descr',
  81 + 'h1' => 'H1',
  82 + 'original_url' => 'Original Url',
  83 + ];
  84 + }
  85 +}
... ...
common/models/ManufacturersSearch.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +use yii\base\Model;
  7 +use yii\data\ActiveDataProvider;
  8 +use common\models\Manufacturers;
  9 +
  10 +/**
  11 + * ManufacturersSearch represents the model behind the search form about `common\models\Manufacturers`.
  12 + */
  13 +class ManufacturersSearch extends Manufacturers
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['MFA_ID', 'MFA_PC_MFC', 'MFA_CV_MFC', 'MFA_AXL_MFC', 'MFA_ENG_MFC', 'MFA_ENG_TYP', 'MFA_MF_NR', 'MY_SORT', 'MY_ACTIVE', 'MY_DEFAULT'], 'integer'],
  22 + [['MFA_MFC_CODE', 'MFA_BRAND', 'MY_IMG', 'name', 'content', 'title', 'kwords', 'descr', 'h1', 'original_url'], 'safe'],
  23 + ];
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function scenarios()
  30 + {
  31 + // bypass scenarios() implementation in the parent class
  32 + return Model::scenarios();
  33 + }
  34 +
  35 + /**
  36 + * Creates data provider instance with search query applied
  37 + *
  38 + * @param array $params
  39 + *
  40 + * @return ActiveDataProvider
  41 + */
  42 + public function search($params)
  43 + {
  44 + $query = Manufacturers::find();
  45 +
  46 + $dataProvider = new ActiveDataProvider([
  47 + 'query' => $query,
  48 + ]);
  49 +
  50 + $this->load($params);
  51 +
  52 + if (!$this->validate()) {
  53 + // uncomment the following line if you do not want to return any records when validation fails
  54 + // $query->where('0=1');
  55 + return $dataProvider;
  56 + }
  57 +
  58 + $query->andFilterWhere([
  59 + 'MFA_ID' => $this->MFA_ID,
  60 + 'MFA_PC_MFC' => $this->MFA_PC_MFC,
  61 + 'MFA_CV_MFC' => $this->MFA_CV_MFC,
  62 + 'MFA_AXL_MFC' => $this->MFA_AXL_MFC,
  63 + 'MFA_ENG_MFC' => $this->MFA_ENG_MFC,
  64 + 'MFA_ENG_TYP' => $this->MFA_ENG_TYP,
  65 + 'MFA_MF_NR' => $this->MFA_MF_NR,
  66 + 'MY_SORT' => $this->MY_SORT,
  67 + 'MY_ACTIVE' => $this->MY_ACTIVE,
  68 + 'MY_DEFAULT' => $this->MY_DEFAULT,
  69 + ]);
  70 +
  71 + $query->andFilterWhere(['like', 'MFA_MFC_CODE', $this->MFA_MFC_CODE])
  72 + ->andFilterWhere(['like', 'MFA_BRAND', $this->MFA_BRAND])
  73 + ->andFilterWhere(['like', 'MY_IMG', $this->MY_IMG])
  74 + ->andFilterWhere(['like', 'name', $this->name])
  75 + ->andFilterWhere(['like', 'content', $this->content])
  76 + ->andFilterWhere(['like', 'title', $this->title])
  77 + ->andFilterWhere(['like', 'kwords', $this->kwords])
  78 + ->andFilterWhere(['like', 'descr', $this->descr])
  79 + ->andFilterWhere(['like', 'h1', $this->h1])
  80 + ->andFilterWhere(['like', 'original_url', $this->original_url]);
  81 +
  82 + return $dataProvider;
  83 + }
  84 +}
... ...
common/models/MarginsImporters.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_margins_importers".
  9 + *
  10 + * @property integer $id
  11 + * @property integer $importer_id
  12 + * @property integer $margin_id
  13 + * @property double $koef
  14 + */
  15 +class MarginsImporters extends \yii\db\ActiveRecord
  16 +{
  17 + /**
  18 + * @inheritdoc
  19 + */
  20 + public static function tableName()
  21 + {
  22 + return 'w_margins_importers';
  23 + }
  24 +
  25 + /**
  26 + * @inheritdoc
  27 + */
  28 + public function rules()
  29 + {
  30 + return [
  31 + [['importer_id', 'margin_id', 'koef'], 'required'],
  32 + [['importer_id', 'margin_id'], 'integer'],
  33 + [['koef'], 'number'],
  34 + [['importer_id', 'margin_id'], 'unique', 'targetAttribute' => ['importer_id', 'margin_id'], 'message' => 'The combination of Importer ID and Margin ID has already been taken.']
  35 + ];
  36 + }
  37 +
  38 + /**
  39 + * @inheritdoc
  40 + */
  41 + public function attributeLabels()
  42 + {
  43 + return [
  44 + 'id' => 'ID',
  45 + 'importer_id' => 'Importer ID',
  46 + 'margin_id' => 'Margin ID',
  47 + 'koef' => 'Koef',
  48 + ];
  49 + }
  50 +}
... ...
common/models/MarginsImportersImport.php 0 → 100644
  1 +<?php
  2 +
  3 +namespace common\models;
  4 +
  5 +use Yii;
  6 +
  7 +/**
  8 + * This is the model class for table "w_margins_importers_import".
  9 + *
  10 + * @property integer $id
  11 + * @property integer $importer_id
  12 + * @property integer $margin_id
  13 + * @property double $koef
  14 + * @property integer $finish
  15 + */
  16 +class MarginsImportersImport extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_margins_importers_import';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['importer_id', 'margin_id', 'koef', 'finish'], 'required'],
  33 + [['importer_id', 'margin_id', 'finish'], 'integer'],
  34 + [['koef'], 'number'],
  35 + [['importer_id', 'margin_id'], 'unique', 'targetAttribute' => ['importer_id', 'margin_id'], 'message' => 'The combination of Importer ID and Margin ID has already been taken.']
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'id' => 'ID',
  46 + 'importer_id' => 'Importer ID',
  47 + 'margin_id' => 'Margin ID',
  48 + 'koef' => 'Koef',
  49 + 'finish' => 'Finish',
  50 + ];
  51 + }
  52 +}
... ...