Commit cd99b534c21349cca4c73ff2374bf98c762fbb86

Authored by Mihail
2 parents d73ee737 3bec2566

Merge branch 'master' of gitlab.artweb.com.ua:root/test_1

Showing 149 changed files with 4780 additions and 109 deletions   Show diff stats
backend/controllers/AccountsVinController.php
... ... @@ -13,7 +13,7 @@ use yii\filters\VerbFilter;
13 13 * AccountsVinController implements the CRUD actions for AccountsVin model.
14 14 */
15 15 class AccountsVinController extends Controller
16   -{
  16 +{ public $layout = "/column";
17 17 public function behaviors()
18 18 {
19 19 return [
... ...
backend/controllers/ArtHistoryController.php
... ... @@ -14,6 +14,7 @@ use yii\filters\VerbFilter;
14 14 */
15 15 class ArtHistoryController extends Controller
16 16 {
  17 + public $layout = "/column";
17 18 public function behaviors()
18 19 {
19 20 return [
... ...
backend/controllers/CheckPriceController.php
... ... @@ -8,7 +8,6 @@ use yii\filters\AccessControl;
8 8 use backend\components\base\BaseController;
9 9 use yii\filters\VerbFilter;
10 10 use backend\models\Details;
11   -use common\models\DetailsCurrency;
12 11 use backend\models\ImportersFiles;
13 12 use backend\models\Importers;
14 13 use yii\base\ErrorException;
... ... @@ -62,7 +61,7 @@ class CheckPriceController extends BaseController
62 61  
63 62 public function actionIndex()
64 63 {
65   -
  64 + //$query = (new Query())->select('*')->from('{{%importer_files}}')->where(['not', ['time_end' => null]])->orderBy(['upload_time' => SORT_DESC]);
66 65 $query = Importers::find()->where(['active' => true])->orderBy(['price_date_update' => SORT_DESC]);
67 66 $provider = new ActiveDataProvider([
68 67 'query' => $query,
... ... @@ -80,12 +79,11 @@ class CheckPriceController extends BaseController
80 79 public function actionView ($id, $date_update)
81 80 {
82 81  
83   - $query = DetailsCurrency::find()->where(['IMPORT_ID' => $id, 'timestamp' => $date_update])->limit(20);
  82 + $query = Details::find()->where(['IMPORT_ID' => $id, 'timestamp' => $date_update])->limit(20);
84 83  
85   - $importer = Importers::findOne( $id );
  84 + $importer = Importers::findOne($id)->name;
86 85 $date = Yii::$app->formatter->asDate( $date_update, 'yyyy-MM-dd' );
87 86  
88   -
89 87 $provider = new ActiveDataProvider([
90 88 'query' => $query,
91 89 'pagination' => false,
... ...
backend/controllers/DeliveriesController.php
... ... @@ -14,6 +14,8 @@ use yii\filters\VerbFilter;
14 14 */
15 15 class DeliveriesController extends Controller
16 16 {
  17 +
  18 + public $layout = "/column";
17 19 public function behaviors()
18 20 {
19 21 return [
... ...
backend/controllers/DicStatusesController.php
... ... @@ -14,6 +14,7 @@ use yii\filters\VerbFilter;
14 14 */
15 15 class DicStatusesController extends Controller
16 16 {
  17 + public $layout = "/column";
17 18 public function behaviors()
18 19 {
19 20 return [
... ...
backend/controllers/EmailsController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Emails;
  7 +use common\models\EmailsSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * EmailsController implements the CRUD actions for Emails model.
  14 + */
  15 +class EmailsController 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 Emails models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new EmailsSearch();
  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 Emails 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 Emails 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 Emails();
  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 Emails 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 Emails 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 Emails 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 Emails the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Emails::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
... ... @@ -14,6 +14,8 @@ use yii\filters\VerbFilter;
14 14 */
15 15 class ManufacturersController extends Controller
16 16 {
  17 +
  18 + public $layout = "/column";
17 19 public function behaviors()
18 20 {
19 21 return [
... ...
backend/controllers/NewsController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\News;
  7 +use common\models\NewsSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * NewsController implements the CRUD actions for News model.
  14 + */
  15 +class NewsController 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 News models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new NewsSearch();
  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 News 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 News 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 News();
  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 News 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 News 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 News 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 News the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = News::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/PageController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Page;
  7 +use common\models\PageSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * PageController implements the CRUD actions for Page model.
  14 + */
  15 +class PageController 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 Page models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new PageSearch();
  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 Page 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 Page 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 Page();
  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 Page 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 Page 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 Page 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 Page the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Page::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/PartnersController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Partners;
  7 +use common\models\PartnersSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * PartnersController implements the CRUD actions for Partners model.
  14 + */
  15 +class PartnersController 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 Partners models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new PartnersSearch();
  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 Partners 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 Partners 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 Partners();
  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 Partners 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 Partners 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 Partners 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 Partners the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Partners::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/PayMessagesController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\PayMessages;
  7 +use common\models\PayMessagesSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * PayMessagesController implements the CRUD actions for PayMessages model.
  14 + */
  15 +class PayMessagesController 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 PayMessages models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new PayMessagesSearch();
  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 PayMessages 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 PayMessages 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 PayMessages();
  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 PayMessages 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 PayMessages 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 PayMessages 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 PayMessages the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = PayMessages::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/PriceMailingController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\PriceMailing;
  7 +use common\models\PriceMailingSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * PriceMailingController implements the CRUD actions for PriceMailing model.
  14 + */
  15 +class PriceMailingController 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 PriceMailing models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new PriceMailingSearch();
  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 PriceMailing 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 PriceMailing 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 PriceMailing();
  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 PriceMailing 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 PriceMailing 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 PriceMailing 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 PriceMailing the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = PriceMailing::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/SettingsMerchantsListController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\SettingsMerchantsList;
  7 +use common\models\SettingsMerchantsListSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * SettingsMerchantsListController implements the CRUD actions for SettingsMerchantsList model.
  14 + */
  15 +class SettingsMerchantsListController 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 SettingsMerchantsList models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new SettingsMerchantsListSearch();
  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 SettingsMerchantsList 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 SettingsMerchantsList 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 SettingsMerchantsList();
  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 SettingsMerchantsList 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 SettingsMerchantsList 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 SettingsMerchantsList 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 SettingsMerchantsList the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = SettingsMerchantsList::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/SliderController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Slider;
  7 +use common\models\SliderSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * SliderController implements the CRUD actions for Slider model.
  14 + */
  15 +class SliderController 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 Slider models.
  31 + * @return mixed
  32 + */
  33 + public function actionIndex()
  34 + {
  35 + $searchModel = new SliderSearch();
  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 Slider 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 Slider 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 Slider();
  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 Slider 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 Slider 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 Slider 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 Slider the loaded model
  111 + * @throws NotFoundHttpException if the model cannot be found
  112 + */
  113 + protected function findModel($id)
  114 + {
  115 + if (($model = Slider::findOne($id)) !== null) {
  116 + return $model;
  117 + } else {
  118 + throw new NotFoundHttpException('The requested page does not exist.');
  119 + }
  120 + }
  121 +}
... ...
backend/controllers/TeamController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\Team;
  7 +use common\models\TeamSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * TeamController implements the CRUD actions for Team model.
  14 + */
  15 +class TeamController extends Controller
  16 +{
  17 + public $layout = '/column';
  18 + public function behaviors()
  19 + {
  20 + return [
  21 + 'verbs' => [
  22 + 'class' => VerbFilter::className(),
  23 + 'actions' => [
  24 + 'delete' => ['post'],
  25 + ],
  26 + ],
  27 + ];
  28 + }
  29 +
  30 + /**
  31 + * Lists all Team models.
  32 + * @return mixed
  33 + */
  34 + public function actionIndex()
  35 + {
  36 + $searchModel = new TeamSearch();
  37 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  38 +
  39 + return $this->render('index', [
  40 + 'searchModel' => $searchModel,
  41 + 'dataProvider' => $dataProvider,
  42 + ]);
  43 + }
  44 +
  45 + /**
  46 + * Displays a single Team model.
  47 + * @param integer $id
  48 + * @return mixed
  49 + */
  50 + public function actionView($id)
  51 + {
  52 + return $this->render('view', [
  53 + 'model' => $this->findModel($id),
  54 + ]);
  55 + }
  56 +
  57 + /**
  58 + * Creates a new Team 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 Team();
  65 +
  66 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  67 + return $this->redirect(['view', 'id' => $model->id]);
  68 + } else {
  69 + return $this->render('create', [
  70 + 'model' => $model,
  71 + ]);
  72 + }
  73 + }
  74 +
  75 + /**
  76 + * Updates an existing Team model.
  77 + * If update is successful, the browser will be redirected to the 'view' page.
  78 + * @param integer $id
  79 + * @return mixed
  80 + */
  81 + public function actionUpdate($id)
  82 + {
  83 + $model = $this->findModel($id);
  84 +
  85 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  86 + return $this->redirect(['view', 'id' => $model->id]);
  87 + } else {
  88 + return $this->render('update', [
  89 + 'model' => $model,
  90 + ]);
  91 + }
  92 + }
  93 +
  94 + /**
  95 + * Deletes an existing Team model.
  96 + * If deletion is successful, the browser will be redirected to the 'index' page.
  97 + * @param integer $id
  98 + * @return mixed
  99 + */
  100 + public function actionDelete($id)
  101 + {
  102 + $this->findModel($id)->delete();
  103 +
  104 + return $this->redirect(['index']);
  105 + }
  106 +
  107 + /**
  108 + * Finds the Team model based on its primary key value.
  109 + * If the model is not found, a 404 HTTP exception will be thrown.
  110 + * @param integer $id
  111 + * @return Team the loaded model
  112 + * @throws NotFoundHttpException if the model cannot be found
  113 + */
  114 + protected function findModel($id)
  115 + {
  116 + if (($model = Team::findOne($id)) !== null) {
  117 + return $model;
  118 + } else {
  119 + throw new NotFoundHttpException('The requested page does not exist.');
  120 + }
  121 + }
  122 +}
... ...
backend/controllers/TeamGroupController.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +namespace backend\controllers;
  4 +
  5 +use Yii;
  6 +use common\models\TeamGroup;
  7 +use common\models\TeamGroupSearch;
  8 +use yii\web\Controller;
  9 +use yii\web\NotFoundHttpException;
  10 +use yii\filters\VerbFilter;
  11 +
  12 +/**
  13 + * TeamGroupController implements the CRUD actions for TeamGroup model.
  14 + */
  15 +class TeamGroupController extends Controller
  16 +{
  17 +
  18 + public $layout = '/column';
  19 + public function behaviors()
  20 + {
  21 + return [
  22 + 'verbs' => [
  23 + 'class' => VerbFilter::className(),
  24 + 'actions' => [
  25 + 'delete' => ['post'],
  26 + ],
  27 + ],
  28 + ];
  29 + }
  30 +
  31 + /**
  32 + * Lists all TeamGroup models.
  33 + * @return mixed
  34 + */
  35 + public function actionIndex()
  36 + {
  37 + $searchModel = new TeamGroupSearch();
  38 + $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  39 +
  40 + return $this->render('index', [
  41 + 'searchModel' => $searchModel,
  42 + 'dataProvider' => $dataProvider,
  43 + ]);
  44 + }
  45 +
  46 + /**
  47 + * Displays a single TeamGroup model.
  48 + * @param integer $id
  49 + * @return mixed
  50 + */
  51 + public function actionView($id)
  52 + {
  53 + return $this->render('view', [
  54 + 'model' => $this->findModel($id),
  55 + ]);
  56 + }
  57 +
  58 + /**
  59 + * Creates a new TeamGroup 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 TeamGroup();
  66 +
  67 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  68 + return $this->redirect(['view', 'id' => $model->id]);
  69 + } else {
  70 + return $this->render('create', [
  71 + 'model' => $model,
  72 + ]);
  73 + }
  74 + }
  75 +
  76 + /**
  77 + * Updates an existing TeamGroup model.
  78 + * If update is successful, the browser will be redirected to the 'view' page.
  79 + * @param integer $id
  80 + * @return mixed
  81 + */
  82 + public function actionUpdate($id)
  83 + {
  84 + $model = $this->findModel($id);
  85 +
  86 + if ($model->load(Yii::$app->request->post()) && $model->save()) {
  87 + return $this->redirect(['view', 'id' => $model->id]);
  88 + } else {
  89 + return $this->render('update', [
  90 + 'model' => $model,
  91 + ]);
  92 + }
  93 + }
  94 +
  95 + /**
  96 + * Deletes an existing TeamGroup model.
  97 + * If deletion is successful, the browser will be redirected to the 'index' page.
  98 + * @param integer $id
  99 + * @return mixed
  100 + */
  101 + public function actionDelete($id)
  102 + {
  103 + $this->findModel($id)->delete();
  104 +
  105 + return $this->redirect(['index']);
  106 + }
  107 +
  108 + /**
  109 + * Finds the TeamGroup model based on its primary key value.
  110 + * If the model is not found, a 404 HTTP exception will be thrown.
  111 + * @param integer $id
  112 + * @return TeamGroup the loaded model
  113 + * @throws NotFoundHttpException if the model cannot be found
  114 + */
  115 + protected function findModel($id)
  116 + {
  117 + if (($model = TeamGroup::findOne($id)) !== null) {
  118 + return $model;
  119 + } else {
  120 + throw new NotFoundHttpException('The requested page does not exist.');
  121 + }
  122 + }
  123 +}
... ...
backend/models/Currency.php
... ... @@ -15,6 +15,13 @@ use Yii;
15 15 */
16 16 class Currency extends \yii\db\ActiveRecord
17 17 {
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_currency';
  24 + }
18 25  
19 26 /**
20 27 * @inheritdoc
... ...
backend/models/Importers.php
... ... @@ -5,7 +5,6 @@ namespace backend\models;
5 5 use common\components\CustomVarDamp;
6 6 use Yii;
7 7 use backend\components\base\BaseActiveRecord;
8   -use backend\models\Currency;
9 8  
10 9 /**
11 10 *
... ... @@ -90,15 +89,6 @@ class Importers extends BaseActiveRecord
90 89 ];
91 90 }
92 91  
93   - public function getCurrency ()
94   - {
95   - return $this->hasOne(Currency::className(), ['id' => 'currency_id'])->one()->name;
96   - }
97   -
98   - public function getCurrencyRate ()
99   - {
100   - return $this->hasOne(Currency::className(), ['id' => 'currency_id'])->one()->rate;
101   - }
102 92  
103 93 public function getKeys ()
104 94 {
... ...
backend/views/accounts_vin/_form.php renamed to backend/views/accounts-vin/_form.php
backend/views/accounts_vin/_search.php renamed to backend/views/accounts-vin/_search.php
backend/views/accounts_vin/create.php renamed to backend/views/accounts-vin/create.php
backend/views/accounts_vin/index.php renamed to backend/views/accounts-vin/index.php
backend/views/accounts_vin/update.php renamed to backend/views/accounts-vin/update.php
backend/views/accounts_vin/view.php renamed to backend/views/accounts-vin/view.php
backend/views/art_history/_form.php renamed to backend/views/art-history/_form.php
backend/views/art_history/_search.php renamed to backend/views/art-history/_search.php
backend/views/art_history/create.php renamed to backend/views/art-history/create.php
backend/views/art_history/index.php renamed to backend/views/art-history/index.php
... ... @@ -7,6 +7,7 @@ use yii\grid\GridView;
7 7 /* @var $searchModel common\models\ArtHistorySearch */
8 8 /* @var $dataProvider yii\data\ActiveDataProvider */
9 9  
  10 +
10 11 $this->title = 'Art Histories';
11 12 $this->params['breadcrumbs'][] = $this->title;
12 13 ?>
... ... @@ -21,16 +22,21 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
21 22  
22 23 <?= GridView::widget([
23 24 'dataProvider' => $dataProvider,
  25 +
24 26 'filterModel' => $searchModel,
25 27 'columns' => [
26 28 ['class' => 'yii\grid\SerialColumn'],
  29 + [
  30 + 'attribute' => 'name',
  31 + 'value' => 'name',
27 32  
28   - 'id',
29   - 'user_id',
  33 + ],
30 34 'art',
31   - 'dt',
  35 + [
  36 + 'attribute' => 'dt',
  37 + 'value' => 'date',
32 38  
33   - ['class' => 'yii\grid\ActionColumn'],
  39 + ]
34 40 ],
35 41 ]); ?>
36 42  
... ...
backend/views/art_history/update.php renamed to backend/views/art-history/update.php
backend/views/art_history/view.php renamed to backend/views/art-history/view.php
backend/views/check-price/view.php
... ... @@ -8,29 +8,24 @@ use yii\bootstrap\Modal;
8 8 /* @var $this yii\web\View */
9 9 /* @var $searchModel backend\models\CatalogSearch */
10 10 /* @var $dataProvider yii\data\ActiveDataProvider */
11   -$this->title = 'ะŸั€ะฐะนั ' . Html::encode("{$importer->name} ะพั‚ {$date}");
  11 +$this->title = 'ะŸั€ะฐะนั ' . Html::encode( "{$importer} ะพั‚ {$date}" );
12 12 $this->params['breadcrumbs'][] = $this->title;
13 13  
14 14 ?>
15   - <div class="catalog-index">
16   -
17   - <h1><?= Html::encode($this->title) ?></h1>
18   -
19   - <?= GridView::widget( ['dataProvider' => $dataProvider,
20   - 'columns' => [
21   - ['attribute' => 'FULL_ARTICLE'],
22   - ['attribute' => 'ARTICLE'],
23   - ['attribute' => 'BRAND'],
24   - ['attribute' => 'DESCR'],
25   - ['attribute' => 'BOX'],
26   - ['attribute' => 'ADD_BOX'],
27   - ['attribute' => 'GROUP'],
28   - ['attribute' => 'name'],
29   - ['attribute' => 'PRICE'],
30   - ]
31   - ] ); ?>
32   -
33   - </div>
  15 +<div class="catalog-index">
  16 +
  17 + <h1><?= Html::encode($this->title) ?></h1>
  18 +
  19 + <?= GridView::widget( ['dataProvider' => $dataProvider,
  20 +
  21 + ] );
  22 +
  23 +
  24 + ?>
  25 +
  26 +
  27 +
  28 +</div>
34 29 <?php
35 30  
36 31 ?>
37 32 \ No newline at end of file
... ...
backend/views/dic_statuses/_form.php renamed to backend/views/dic-statuses/_form.php
backend/views/dic_statuses/_search.php renamed to backend/views/dic-statuses/_search.php
backend/views/dic_statuses/create.php renamed to backend/views/dic-statuses/create.php
backend/views/dic_statuses/index.php renamed to backend/views/dic-statuses/index.php
backend/views/dic_statuses/update.php renamed to backend/views/dic-statuses/update.php
backend/views/dic_statuses/view.php renamed to backend/views/dic-statuses/view.php
backend/views/emails/_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\Emails */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="emails-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'value')->textarea(['rows' => 6]) ?>
  20 +
  21 + <?= $form->field($model, 'to_email')->textInput(['maxlength' => true]) ?>
  22 +
  23 + <?= $form->field($model, 'from_email')->textInput(['maxlength' => true]) ?>
  24 +
  25 + <?= $form->field($model, 'from_name')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'done')->textInput() ?>
  28 +
  29 + <?= $form->field($model, 'who_comment')->textInput(['maxlength' => true]) ?>
  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/emails/_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\EmailsSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="emails-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, 'code') ?>
  21 +
  22 + <?= $form->field($model, 'name') ?>
  23 +
  24 + <?= $form->field($model, 'value') ?>
  25 +
  26 + <?= $form->field($model, 'to_email') ?>
  27 +
  28 + <?php // echo $form->field($model, 'from_email') ?>
  29 +
  30 + <?php // echo $form->field($model, 'from_name') ?>
  31 +
  32 + <?php // echo $form->field($model, 'done') ?>
  33 +
  34 + <?php // echo $form->field($model, 'who_comment') ?>
  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/emails/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\Emails */
  8 +
  9 +$this->title = 'Create Emails';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Emails', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="emails-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/emails/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\EmailsSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Emails';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="emails-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Emails', ['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 + 'code',
  30 + 'name',
  31 + 'value:ntext',
  32 + 'to_email:email',
  33 + // 'from_email:email',
  34 + // 'from_name',
  35 + // 'done',
  36 + // 'who_comment',
  37 +
  38 + ['class' => 'yii\grid\ActionColumn'],
  39 + ],
  40 + ]); ?>
  41 +
  42 +</div>
... ...
backend/views/emails/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Emails */
  7 +
  8 +$this->title = 'Update Emails: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Emails', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="emails-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/emails/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\Emails */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Emails', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="emails-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 + 'code',
  33 + 'name',
  34 + 'value:ntext',
  35 + 'to_email:email',
  36 + 'from_email:email',
  37 + 'from_name',
  38 + 'done',
  39 + 'who_comment',
  40 + ],
  41 + ]) ?>
  42 +
  43 +</div>
... ...
backend/views/layouts/column.php
... ... @@ -297,6 +297,9 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;);
297 297 ['label' => 'ะŸะพะบัƒะฟะฐั‚ะตะปะธ', 'url' => ['accounts/index']],
298 298 ['label' => 'ะŸะพัั‚ะฐะฒั‰ะธะบะธ', 'url' => ['importers/index']],
299 299 ['label' => 'ะะดะผะธะฝะธัั‚ั€ะฐั‚ะพั€ั‹', 'url' => ['user/index']],
  300 + ['label' => 'ะšะพะผะฐะฝะดะฐ', 'url' => ['team/index']],
  301 + ['label' => 'ะ“ั€ัƒะฟะฟั‹ ะบะพะผะฐะฝะดั‹', 'url' => ['team-group/index']],
  302 + ['label' => 'ะฆะตะฝั‹ ะดะปั ะผะตะฝะตะดะถะตั€ะฐ', 'url' => ['team-group/index']],
300 303 ],
301 304 ],
302 305 ['label' => 'ะฆะตะฝะพะพะฑั€ะฐะทะพะฒะฐะฝะธะต', 'url' => ['#'], 'items' => [
... ... @@ -323,6 +326,36 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;);
323 326 ['label' => 'ะ’ะฐะปัŽั‚ั‹', 'url' => ['currency/index']],
324 327 ],
325 328 ],
  329 + ['label' => 'ะะฝะฐะปะธะท', 'url' => ['#'], 'items' => [
  330 + ['label' => 'ะ‘ั€ะตะฝะดั‹', 'url' => ['#']],
  331 + ],
  332 + ],
  333 + ['label' => 'ะŸะธััŒะผะฐ', 'url' => ['#'], 'items' => [
  334 + ['label' => 'ะ ะฐััั‹ะปะบะฐ', 'url' => ['#']],
  335 + ['label' => 'ะ ะฐััั‹ะปะบะฐ ะŸั€ะฐะนัะพะฒ', 'url' => ['price-mailing/index']],
  336 + ['label' => 'ะกะพะพะฑั‰ะตะฝะธั ะพะฑ ะพะฟะปะฐั‚ะต', 'url' => ['pay-messages/index']],
  337 + ['label' => 'ะจะฐะฑะปะพะฝั‹ ะฟะธัะตะผ', 'url' => ['emails/index']],
  338 + ],
  339 + ],
  340 + ['label' => 'ะญะปะตะผะตะฝั‚ั‹ ัะฐะนั‚ะฐ', 'url' => ['#'], 'items' => [
  341 + ['label' => 'ะขะตะบัั‚ะพะฒั‹ะต ัั‚ั€ะฐะฝะธั†ั‹', 'url' => ['page/index']],
  342 + ['label' => 'ะะพะฒะพัั‚ะธ', 'url' => ['news/index']],
  343 + ['label' => 'ะกะปะฐะนะดะตั€', 'url' => ['slider/index']],
  344 + ['label' => 'ะŸะฐั€ั‚ะฝั‘ั€ั‹', 'url' => ['partners/index']],
  345 + ],
  346 + ],
  347 + ['label' => 'ะŸะปะฐั‚ะตะถะฝั‹ะต ัะธัั‚ะตะผั‹', 'url' => ['#'], 'items' => [
  348 + ['label' => 'ะžะฟะธัะฐะฝะธะต ัะธัั‚ะตะผ', 'url' => ['settings-merchants-list/index']],
  349 + ['label' => 'ะฅัƒั‚ะบะธ ะณั€ะพัˆ', 'url' => ['news/index']],
  350 + ['label' => 'QIWI', 'url' => ['slider/index']],
  351 + ['label' => 'ASSIST', 'url' => ['partners/index']],
  352 + ['label' => 'iPay', 'url' => ['team/index']],
  353 + ['label' => 'WEBPAY', 'url' => ['team-group/index']],
  354 + ['label' => 'ะ”ะตะฝัŒะณะธ.Online', 'url' => ['team-group/index']],
  355 + ['label' => 'ROBOKASSA', 'url' => ['team-group/index']],
  356 + ['label' => 'MONEXY', 'url' => ['team-group/index']],
  357 + ],
  358 + ],
326 359  
327 360 ],
328 361 'submenuTemplate' => "\n<ul class='treeview-menu'>\n{items}\n</ul>\n",
... ...
backend/views/news/_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\News */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="news-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'brief')->textarea(['rows' => 6]) ?>
  20 +
  21 + <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
  22 +
  23 + <?= $form->field($model, 'sort_delete')->textInput() ?>
  24 +
  25 + <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'kwords')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?>
  30 +
  31 + <?= $form->field($model, 'dt')->textInput(['maxlength' => true]) ?>
  32 +
  33 + <?= $form->field($model, 'is_active')->textInput() ?>
  34 +
  35 + <?= $form->field($model, 'mail_send')->textInput() ?>
  36 +
  37 + <?= $form->field($model, 'mails_count')->textInput() ?>
  38 +
  39 + <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>
  40 +
  41 + <div class="form-group">
  42 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  43 + </div>
  44 +
  45 + <?php ActiveForm::end(); ?>
  46 +
  47 +</div>
... ...
backend/views/news/_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\NewsSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="news-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, 'code') ?>
  23 +
  24 + <?= $form->field($model, 'brief') ?>
  25 +
  26 + <?= $form->field($model, 'content') ?>
  27 +
  28 + <?php // echo $form->field($model, 'sort_delete') ?>
  29 +
  30 + <?php // echo $form->field($model, 'title') ?>
  31 +
  32 + <?php // echo $form->field($model, 'kwords') ?>
  33 +
  34 + <?php // echo $form->field($model, 'descr') ?>
  35 +
  36 + <?php // echo $form->field($model, 'dt') ?>
  37 +
  38 + <?php // echo $form->field($model, 'is_active') ?>
  39 +
  40 + <?php // echo $form->field($model, 'mail_send') ?>
  41 +
  42 + <?php // echo $form->field($model, 'mails_count') ?>
  43 +
  44 + <?php // echo $form->field($model, 'img') ?>
  45 +
  46 + <div class="form-group">
  47 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  48 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  49 + </div>
  50 +
  51 + <?php ActiveForm::end(); ?>
  52 +
  53 +</div>
... ...
backend/views/news/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\News */
  8 +
  9 +$this->title = 'Create News';
  10 +$this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="news-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/news/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\NewsSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'News';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="news-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create News', ['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 + 'code',
  31 + 'brief:ntext',
  32 + 'content:ntext',
  33 + // 'sort_delete',
  34 + // 'title',
  35 + // 'kwords',
  36 + // 'descr',
  37 + // 'dt',
  38 + // 'is_active',
  39 + // 'mail_send',
  40 + // 'mails_count',
  41 + // 'img',
  42 +
  43 + ['class' => 'yii\grid\ActionColumn'],
  44 + ],
  45 + ]); ?>
  46 +
  47 +</div>
... ...
backend/views/news/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\News */
  7 +
  8 +$this->title = 'Update News: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="news-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/news/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\News */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'News', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="news-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 + 'code',
  34 + 'brief:ntext',
  35 + 'content:ntext',
  36 + 'sort_delete',
  37 + 'title',
  38 + 'kwords',
  39 + 'descr',
  40 + 'dt',
  41 + 'is_active',
  42 + 'mail_send',
  43 + 'mails_count',
  44 + 'img',
  45 + ],
  46 + ]) ?>
  47 +
  48 +</div>
... ...
backend/views/page/_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\Page */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="page-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
  20 +
  21 + <?= $form->field($model, 'sort')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  24 +
  25 + <?= $form->field($model, 'kwords')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'descr')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <?= $form->field($model, 'is_active')->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/page/_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\PageSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="page-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, 'code') ?>
  23 +
  24 + <?= $form->field($model, 'content') ?>
  25 +
  26 + <?= $form->field($model, 'sort') ?>
  27 +
  28 + <?php // echo $form->field($model, 'title') ?>
  29 +
  30 + <?php // echo $form->field($model, 'kwords') ?>
  31 +
  32 + <?php // echo $form->field($model, 'descr') ?>
  33 +
  34 + <?php // echo $form->field($model, 'is_active') ?>
  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/page/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\Page */
  8 +
  9 +$this->title = 'Create Page';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Pages', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="page-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/page/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\PageSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Pages';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="page-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Page', ['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 + 'code',
  31 + 'content:ntext',
  32 + 'sort',
  33 + // 'title',
  34 + // 'kwords',
  35 + // 'descr',
  36 + // 'is_active',
  37 +
  38 + ['class' => 'yii\grid\ActionColumn'],
  39 + ],
  40 + ]); ?>
  41 +
  42 +</div>
... ...
backend/views/page/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Page */
  7 +
  8 +$this->title = 'Update Page: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Pages', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="page-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/page/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\Page */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Pages', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="page-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 + 'code',
  34 + 'content:ntext',
  35 + 'sort',
  36 + 'title',
  37 + 'kwords',
  38 + 'descr',
  39 + 'is_active',
  40 + ],
  41 + ]) ?>
  42 +
  43 +</div>
... ...
backend/views/partners/_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\Partners */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="partners-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'sort')->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/partners/_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\PartnersSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="partners-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, 'url') ?>
  23 +
  24 + <?= $form->field($model, 'img') ?>
  25 +
  26 + <?= $form->field($model, 'sort') ?>
  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/partners/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\Partners */
  8 +
  9 +$this->title = 'Create Partners';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="partners-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/partners/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\PartnersSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Partners';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="partners-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Partners', ['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 + 'url:url',
  31 + 'img',
  32 + 'sort',
  33 +
  34 + ['class' => 'yii\grid\ActionColumn'],
  35 + ],
  36 + ]); ?>
  37 +
  38 +</div>
... ...
backend/views/partners/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Partners */
  7 +
  8 +$this->title = 'Update Partners: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="partners-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/partners/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\Partners */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Partners', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="partners-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 + 'url:url',
  34 + 'img',
  35 + 'sort',
  36 + ],
  37 + ]) ?>
  38 +
  39 +</div>
... ...
backend/views/pay-messages/_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\PayMessages */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="pay-messages-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'subject')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'message')->textarea(['rows' => 6]) ?>
  18 +
  19 + <?= $form->field($model, 'dt')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'user_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/pay-messages/_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\PayMessagesSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="pay-messages-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, 'subject') ?>
  21 +
  22 + <?= $form->field($model, 'message') ?>
  23 +
  24 + <?= $form->field($model, 'dt') ?>
  25 +
  26 + <?= $form->field($model, 'user_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/pay-messages/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\PayMessages */
  8 +
  9 +$this->title = 'Create Pay Messages';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="pay-messages-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/pay-messages/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\PayMessagesSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Pay Messages';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="pay-messages-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Pay Messages', ['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 + 'subject',
  30 + 'message:ntext',
  31 + 'dt',
  32 + 'user_id',
  33 +
  34 + ['class' => 'yii\grid\ActionColumn'],
  35 + ],
  36 + ]); ?>
  37 +
  38 +</div>
... ...
backend/views/pay-messages/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\PayMessages */
  7 +
  8 +$this->title = 'Update Pay Messages: ' . ' ' . $model->id;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="pay-messages-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/pay-messages/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\PayMessages */
  8 +
  9 +$this->title = $model->id;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Pay Messages', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="pay-messages-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 + 'subject',
  33 + 'message:ntext',
  34 + 'dt',
  35 + 'user_id',
  36 + ],
  37 + ]) ?>
  38 +
  39 +</div>
... ...
backend/views/price-mailing/_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\PriceMailing */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="price-mailing-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'price_id')->textInput() ?>
  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/price-mailing/_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\PriceMailingSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="price-mailing-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, 'email') ?>
  23 +
  24 + <?= $form->field($model, 'price_id') ?>
  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/price-mailing/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\PriceMailing */
  8 +
  9 +$this->title = 'Create Price Mailing';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="price-mailing-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/price-mailing/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\PriceMailingSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Price Mailings';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="price-mailing-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Price Mailing', ['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 + 'email:email',
  31 + 'price_id',
  32 +
  33 + ['class' => 'yii\grid\ActionColumn'],
  34 + ],
  35 + ]); ?>
  36 +
  37 +</div>
... ...
backend/views/price-mailing/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\PriceMailing */
  7 +
  8 +$this->title = 'Update Price Mailing: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="price-mailing-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/price-mailing/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\PriceMailing */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Price Mailings', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="price-mailing-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 + 'email:email',
  34 + 'price_id',
  35 + ],
  36 + ]) ?>
  37 +
  38 +</div>
... ...
backend/views/settings-merchants-list/_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\SettingsMerchantsList */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="settings-merchants-list-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
  18 +
  19 + <?= $form->field($model, 'sort')->textInput() ?>
  20 +
  21 + <?= $form->field($model, 'is_active')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'mcode')->textInput(['maxlength' => true]) ?>
  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/settings-merchants-list/_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\SettingsMerchantsListSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="settings-merchants-list-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, 'content') ?>
  23 +
  24 + <?= $form->field($model, 'sort') ?>
  25 +
  26 + <?= $form->field($model, 'is_active') ?>
  27 +
  28 + <?php // echo $form->field($model, 'mcode') ?>
  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/settings-merchants-list/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\SettingsMerchantsList */
  8 +
  9 +$this->title = 'Create Settings Merchants List';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="settings-merchants-list-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/settings-merchants-list/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\SettingsMerchantsListSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Settings Merchants Lists';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="settings-merchants-list-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Settings Merchants List', ['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 + 'content:ntext',
  31 + 'sort',
  32 + 'is_active',
  33 + // 'mcode',
  34 +
  35 + ['class' => 'yii\grid\ActionColumn'],
  36 + ],
  37 + ]); ?>
  38 +
  39 +</div>
... ...
backend/views/settings-merchants-list/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\SettingsMerchantsList */
  7 +
  8 +$this->title = 'Update Settings Merchants List: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="settings-merchants-list-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/settings-merchants-list/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\SettingsMerchantsList */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Settings Merchants Lists', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="settings-merchants-list-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 + 'content:ntext',
  34 + 'sort',
  35 + 'is_active',
  36 + 'mcode',
  37 + ],
  38 + ]) ?>
  39 +
  40 +</div>
... ...
backend/views/slider/_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\Slider */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="slider-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>
  18 +
  19 + <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'is_active')->textInput() ?>
  22 +
  23 + <?= $form->field($model, 'sort')->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/slider/_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\SliderSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="slider-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, 'img') ?>
  23 +
  24 + <?= $form->field($model, 'url') ?>
  25 +
  26 + <?= $form->field($model, 'is_active') ?>
  27 +
  28 + <?php // echo $form->field($model, 'sort') ?>
  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/slider/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\Slider */
  8 +
  9 +$this->title = 'Create Slider';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="slider-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/slider/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\SliderSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Sliders';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="slider-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Slider', ['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 + 'img',
  31 + 'url:url',
  32 + 'is_active',
  33 + // 'sort',
  34 +
  35 + ['class' => 'yii\grid\ActionColumn'],
  36 + ],
  37 + ]); ?>
  38 +
  39 +</div>
... ...
backend/views/slider/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Slider */
  7 +
  8 +$this->title = 'Update Slider: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="slider-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/slider/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\Slider */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Sliders', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="slider-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 + 'img',
  34 + 'url:url',
  35 + 'is_active',
  36 + 'sort',
  37 + ],
  38 + ]) ?>
  39 +
  40 +</div>
... ...
backend/views/team-group/_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\TeamGroup */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="team-group-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <div class="form-group">
  18 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  19 + </div>
  20 +
  21 + <?php ActiveForm::end(); ?>
  22 +
  23 +</div>
... ...
backend/views/team-group/_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\TeamGroupSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="team-group-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 + <div class="form-group">
  23 + <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
  24 + <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
  25 + </div>
  26 +
  27 + <?php ActiveForm::end(); ?>
  28 +
  29 +</div>
... ...
backend/views/team-group/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\TeamGroup */
  8 +
  9 +$this->title = 'Create Team Group';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-group-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/team-group/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\TeamGroupSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Team Groups';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-group-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Team Group', ['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 +
  31 + ['class' => 'yii\grid\ActionColumn'],
  32 + ],
  33 + ]); ?>
  34 +
  35 +</div>
... ...
backend/views/team-group/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\TeamGroup */
  7 +
  8 +$this->title = 'Update Team Group: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="team-group-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/team-group/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\TeamGroup */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Team Groups', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-group-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 + ],
  34 + ]) ?>
  35 +
  36 +</div>
... ...
backend/views/team/_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\Team */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="team-form">
  12 +
  13 + <?php $form = ActiveForm::begin(); ?>
  14 +
  15 + <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
  16 +
  17 + <?= $form->field($model, 'group_id')->textInput() ?>
  18 +
  19 + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  20 +
  21 + <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>
  22 +
  23 + <?= $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>
  24 +
  25 + <?= $form->field($model, 'skype')->textInput(['maxlength' => true]) ?>
  26 +
  27 + <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
  28 +
  29 + <div class="form-group">
  30 + <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  31 + </div>
  32 +
  33 + <?php ActiveForm::end(); ?>
  34 +
  35 +</div>
... ...
backend/views/team/_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\TeamSearch */
  8 +/* @var $form yii\widgets\ActiveForm */
  9 +?>
  10 +
  11 +<div class="team-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, 'email') ?>
  21 +
  22 + <?= $form->field($model, 'group_id') ?>
  23 +
  24 + <?= $form->field($model, 'name') ?>
  25 +
  26 + <?= $form->field($model, 'img') ?>
  27 +
  28 + <?php // echo $form->field($model, 'phone') ?>
  29 +
  30 + <?php // echo $form->field($model, 'skype') ?>
  31 +
  32 + <?php // echo $form->field($model, 'code') ?>
  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/team/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\Team */
  8 +
  9 +$this->title = 'Create Team';
  10 +$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-create">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/team/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\TeamSearch */
  8 +/* @var $dataProvider yii\data\ActiveDataProvider */
  9 +
  10 +$this->title = 'Teams';
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-index">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 + <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17 +
  18 + <p>
  19 + <?= Html::a('Create Team', ['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 + 'email:email',
  30 + 'group_id',
  31 + 'name',
  32 + 'img',
  33 + // 'phone',
  34 + // 'skype',
  35 + // 'code',
  36 +
  37 + ['class' => 'yii\grid\ActionColumn'],
  38 + ],
  39 + ]); ?>
  40 +
  41 +</div>
... ...
backend/views/team/update.php 0 โ†’ 100644
  1 +<?php
  2 +
  3 +use yii\helpers\Html;
  4 +
  5 +/* @var $this yii\web\View */
  6 +/* @var $model common\models\Team */
  7 +
  8 +$this->title = 'Update Team: ' . ' ' . $model->name;
  9 +$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']];
  10 +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  11 +$this->params['breadcrumbs'][] = 'Update';
  12 +?>
  13 +<div class="team-update">
  14 +
  15 + <h1><?= Html::encode($this->title) ?></h1>
  16 +
  17 + <?= $this->render('_form', [
  18 + 'model' => $model,
  19 + ]) ?>
  20 +
  21 +</div>
... ...
backend/views/team/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\Team */
  8 +
  9 +$this->title = $model->name;
  10 +$this->params['breadcrumbs'][] = ['label' => 'Teams', 'url' => ['index']];
  11 +$this->params['breadcrumbs'][] = $this->title;
  12 +?>
  13 +<div class="team-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 + 'email:email',
  33 + 'group_id',
  34 + 'name',
  35 + 'img',
  36 + 'phone',
  37 + 'skype',
  38 + 'code',
  39 + ],
  40 + ]) ?>
  41 +
  42 +</div>
... ...
common/components/parsers/CustomCsvParser.php
... ... @@ -16,7 +16,7 @@ use yii\base\ErrorException;
16 16  
17 17 class CustomCsvParser extends \yii\multiparser\CsvParser {
18 18  
19   - public $last_line = 100;
  19 + public $last_line = 10;
20 20 //public $hasHeaderRow = true;
21 21 // public $keys = ['first','second', 'third', 'forth', 'fifth'];
22 22 // public function setupConverter()
... ...
common/models/ArtHistory.php
... ... @@ -14,6 +14,8 @@ use Yii;
14 14 */
15 15 class ArtHistory extends \yii\db\ActiveRecord
16 16 {
  17 +
  18 +
17 19 /**
18 20 * @inheritdoc
19 21 */
... ... @@ -43,9 +45,31 @@ class ArtHistory extends \yii\db\ActiveRecord
43 45 {
44 46 return [
45 47 'id' => 'ID',
46   - 'user_id' => 'User ID',
47   - 'art' => 'Art',
48   - 'dt' => 'Dt',
  48 + 'user_id' => 'โ„–',
  49 + 'art' => 'ะะผะตั€',
  50 + 'dt' => 'ะ”ะฐั‚ะฐ',
  51 + 'name' => 'ะšะปะธะตะฝั‚'
49 52 ];
50 53 }
  54 +
  55 +
  56 + public function getAccounts()
  57 + {
  58 + return $this->hasOne(Accounts::className(), ['id' => 'user_id']);
  59 + }
  60 +
  61 + public function getName(){
  62 + if($this->accounts instanceof Accounts){
  63 + return "โ„–{$this->user_id}, {$this->accounts->name}";
  64 + } else {
  65 + return "โ„–{$this->user_id}";
  66 + }
  67 +
  68 + }
  69 +
  70 + public function getDate(){
  71 + return date("Y-m-d H:i:s", $this->dt);
  72 +
  73 + }
  74 +
51 75 }
... ...
common/models/ArtHistorySearch.php
... ... @@ -12,6 +12,8 @@ use common\models\ArtHistory;
12 12 */
13 13 class ArtHistorySearch extends ArtHistory
14 14 {
  15 + public $name;
  16 + public $date;
15 17 /**
16 18 * @inheritdoc
17 19 */
... ... @@ -19,7 +21,7 @@ class ArtHistorySearch extends ArtHistory
19 21 {
20 22 return [
21 23 [['id', 'user_id'], 'integer'],
22   - [['art', 'dt'], 'safe'],
  24 + [['art', 'dt', 'name','date'], 'safe'],
23 25 ];
24 26 }
25 27  
... ... @@ -46,7 +48,17 @@ class ArtHistorySearch extends ArtHistory
46 48 $dataProvider = new ActiveDataProvider([
47 49 'query' => $query,
48 50 ]);
49   -
  51 + $dataProvider->setSort([
  52 + 'attributes' => [
  53 + 'id',
  54 + 'dt',
  55 + 'art',
  56 + 'name' => [
  57 + 'asc' => ['user_id' => SORT_ASC, Accounts::tableName().'.name' => SORT_ASC],
  58 + 'desc' => ['user_id' => SORT_DESC, Accounts::tableName().'.name' => SORT_DESC],
  59 + ]
  60 + ]
  61 + ]);
50 62 $this->load($params);
51 63  
52 64 if (!$this->validate()) {
... ... @@ -54,6 +66,7 @@ class ArtHistorySearch extends ArtHistory
54 66 // $query->where('0=1');
55 67 return $dataProvider;
56 68 }
  69 + $query->joinWith(['accounts']);
57 70  
58 71 $query->andFilterWhere([
59 72 'id' => $this->id,
... ... @@ -62,7 +75,7 @@ class ArtHistorySearch extends ArtHistory
62 75  
63 76 $query->andFilterWhere(['like', 'art', $this->art])
64 77 ->andFilterWhere(['like', 'dt', $this->dt]);
65   -
  78 + $query->andFilterWhere(['like', Accounts::tableName().'.name', $this->name]);
66 79 return $dataProvider;
67 80 }
68 81 }
... ...
common/models/Emails.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_emails".
  9 + *
  10 + * @property integer $id
  11 + * @property string $code
  12 + * @property string $name
  13 + * @property string $value
  14 + * @property string $to_email
  15 + * @property string $from_email
  16 + * @property string $from_name
  17 + * @property integer $done
  18 + * @property string $who_comment
  19 + */
  20 +class Emails extends \yii\db\ActiveRecord
  21 +{
  22 + /**
  23 + * @inheritdoc
  24 + */
  25 + public static function tableName()
  26 + {
  27 + return 'w_emails';
  28 + }
  29 +
  30 + /**
  31 + * @inheritdoc
  32 + */
  33 + public function rules()
  34 + {
  35 + return [
  36 + [['code', 'name', 'value'], 'required'],
  37 + [['value'], 'string'],
  38 + [['done'], 'integer'],
  39 + [['code', 'name'], 'string', 'max' => 254],
  40 + [['to_email', 'from_email', 'from_name'], 'string', 'max' => 200],
  41 + [['who_comment'], 'string', 'max' => 50],
  42 + [['code'], 'unique']
  43 + ];
  44 + }
  45 +
  46 + /**
  47 + * @inheritdoc
  48 + */
  49 + public function attributeLabels()
  50 + {
  51 + return [
  52 + 'id' => 'ID',
  53 + 'code' => 'Code',
  54 + 'name' => 'Name',
  55 + 'value' => 'Value',
  56 + 'to_email' => 'To Email',
  57 + 'from_email' => 'From Email',
  58 + 'from_name' => 'From Name',
  59 + 'done' => 'Done',
  60 + 'who_comment' => 'Who Comment',
  61 + ];
  62 + }
  63 +}
... ...
common/models/EmailsSearch.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\Emails;
  9 +
  10 +/**
  11 + * EmailsSearch represents the model behind the search form about `common\models\Emails`.
  12 + */
  13 +class EmailsSearch extends Emails
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'done'], 'integer'],
  22 + [['code', 'name', 'value', 'to_email', 'from_email', 'from_name', 'who_comment'], '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 = Emails::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 + 'done' => $this->done,
  61 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'code', $this->code])
  64 + ->andFilterWhere(['like', 'name', $this->name])
  65 + ->andFilterWhere(['like', 'value', $this->value])
  66 + ->andFilterWhere(['like', 'to_email', $this->to_email])
  67 + ->andFilterWhere(['like', 'from_email', $this->from_email])
  68 + ->andFilterWhere(['like', 'from_name', $this->from_name])
  69 + ->andFilterWhere(['like', 'who_comment', $this->who_comment]);
  70 +
  71 + return $dataProvider;
  72 + }
  73 +}
... ...
common/models/News.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_news".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $code
  13 + * @property string $brief
  14 + * @property string $content
  15 + * @property integer $sort_delete
  16 + * @property string $title
  17 + * @property string $kwords
  18 + * @property string $descr
  19 + * @property string $dt
  20 + * @property integer $is_active
  21 + * @property integer $mail_send
  22 + * @property integer $mails_count
  23 + * @property string $img
  24 + */
  25 +class News extends \yii\db\ActiveRecord
  26 +{
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public static function tableName()
  31 + {
  32 + return 'w_news';
  33 + }
  34 +
  35 + /**
  36 + * @inheritdoc
  37 + */
  38 + public function rules()
  39 + {
  40 + return [
  41 + [['name', 'code', 'brief', 'content', 'title', 'kwords', 'descr', 'dt', 'is_active', 'img'], 'required'],
  42 + [['brief', 'content'], 'string'],
  43 + [['sort_delete', 'is_active', 'mail_send', 'mails_count'], 'integer'],
  44 + [['name', 'code', 'title', 'kwords', 'descr', 'img'], 'string', 'max' => 254],
  45 + [['dt'], 'string', 'max' => 15],
  46 + [['code'], 'unique']
  47 + ];
  48 + }
  49 +
  50 + /**
  51 + * @inheritdoc
  52 + */
  53 + public function attributeLabels()
  54 + {
  55 + return [
  56 + 'id' => 'ID',
  57 + 'name' => 'Name',
  58 + 'code' => 'Code',
  59 + 'brief' => 'Brief',
  60 + 'content' => 'Content',
  61 + 'sort_delete' => 'Sort Delete',
  62 + 'title' => 'Title',
  63 + 'kwords' => 'Kwords',
  64 + 'descr' => 'Descr',
  65 + 'dt' => 'Dt',
  66 + 'is_active' => 'Is Active',
  67 + 'mail_send' => 'Mail Send',
  68 + 'mails_count' => 'Mails Count',
  69 + 'img' => 'Img',
  70 + ];
  71 + }
  72 +}
... ...
common/models/NewsSearch.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\News;
  9 +
  10 +/**
  11 + * NewsSearch represents the model behind the search form about `common\models\News`.
  12 + */
  13 +class NewsSearch extends News
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort_delete', 'is_active', 'mail_send', 'mails_count'], 'integer'],
  22 + [['name', 'code', 'brief', 'content', 'title', 'kwords', 'descr', 'dt', 'img'], '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 = News::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_delete' => $this->sort_delete,
  61 + 'is_active' => $this->is_active,
  62 + 'mail_send' => $this->mail_send,
  63 + 'mails_count' => $this->mails_count,
  64 + ]);
  65 +
  66 + $query->andFilterWhere(['like', 'name', $this->name])
  67 + ->andFilterWhere(['like', 'code', $this->code])
  68 + ->andFilterWhere(['like', 'brief', $this->brief])
  69 + ->andFilterWhere(['like', 'content', $this->content])
  70 + ->andFilterWhere(['like', 'title', $this->title])
  71 + ->andFilterWhere(['like', 'kwords', $this->kwords])
  72 + ->andFilterWhere(['like', 'descr', $this->descr])
  73 + ->andFilterWhere(['like', 'dt', $this->dt])
  74 + ->andFilterWhere(['like', 'img', $this->img]);
  75 +
  76 + return $dataProvider;
  77 + }
  78 +}
... ...
common/models/Page.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_page".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $code
  13 + * @property string $content
  14 + * @property integer $sort
  15 + * @property string $title
  16 + * @property string $kwords
  17 + * @property string $descr
  18 + * @property integer $is_active
  19 + */
  20 +class Page extends \yii\db\ActiveRecord
  21 +{
  22 + /**
  23 + * @inheritdoc
  24 + */
  25 + public static function tableName()
  26 + {
  27 + return 'w_page';
  28 + }
  29 +
  30 + /**
  31 + * @inheritdoc
  32 + */
  33 + public function rules()
  34 + {
  35 + return [
  36 + [['name', 'code', 'content', 'title', 'kwords', 'descr'], 'required'],
  37 + [['content'], 'string'],
  38 + [['sort', 'is_active'], 'integer'],
  39 + [['name'], 'string', 'max' => 100],
  40 + [['code'], 'string', 'max' => 50],
  41 + [['title', 'kwords', 'descr'], 'string', 'max' => 254],
  42 + [['name'], 'unique'],
  43 + [['code'], 'unique']
  44 + ];
  45 + }
  46 +
  47 + /**
  48 + * @inheritdoc
  49 + */
  50 + public function attributeLabels()
  51 + {
  52 + return [
  53 + 'id' => 'ID',
  54 + 'name' => 'Name',
  55 + 'code' => 'Code',
  56 + 'content' => 'Content',
  57 + 'sort' => 'Sort',
  58 + 'title' => 'Title',
  59 + 'kwords' => 'Kwords',
  60 + 'descr' => 'Descr',
  61 + 'is_active' => 'Is Active',
  62 + ];
  63 + }
  64 +}
... ...
common/models/PageSearch.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\Page;
  9 +
  10 +/**
  11 + * PageSearch represents the model behind the search form about `common\models\Page`.
  12 + */
  13 +class PageSearch extends Page
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort', 'is_active'], 'integer'],
  22 + [['name', 'code', 'content', 'title', 'kwords', 'descr'], '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 = Page::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 + ]);
  63 +
  64 + $query->andFilterWhere(['like', 'name', $this->name])
  65 + ->andFilterWhere(['like', 'code', $this->code])
  66 + ->andFilterWhere(['like', 'content', $this->content])
  67 + ->andFilterWhere(['like', 'title', $this->title])
  68 + ->andFilterWhere(['like', 'kwords', $this->kwords])
  69 + ->andFilterWhere(['like', 'descr', $this->descr]);
  70 +
  71 + return $dataProvider;
  72 + }
  73 +}
... ...
common/models/Partners.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_partners".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $url
  13 + * @property string $img
  14 + * @property integer $sort
  15 + */
  16 +class Partners extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_partners';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['name', 'url', 'sort'], 'required'],
  33 + [['sort'], 'integer'],
  34 + [['name', 'url', 'img'], 'string', 'max' => 100],
  35 + [['name'], 'unique']
  36 + ];
  37 + }
  38 +
  39 + /**
  40 + * @inheritdoc
  41 + */
  42 + public function attributeLabels()
  43 + {
  44 + return [
  45 + 'id' => 'ID',
  46 + 'name' => 'Name',
  47 + 'url' => 'Url',
  48 + 'img' => 'Img',
  49 + 'sort' => 'Sort',
  50 + ];
  51 + }
  52 +}
... ...
common/models/PartnersSearch.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\Partners;
  9 +
  10 +/**
  11 + * PartnersSearch represents the model behind the search form about `common\models\Partners`.
  12 + */
  13 +class PartnersSearch extends Partners
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort'], 'integer'],
  22 + [['name', 'url', 'img'], '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 = Partners::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 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'name', $this->name])
  64 + ->andFilterWhere(['like', 'url', $this->url])
  65 + ->andFilterWhere(['like', 'img', $this->img]);
  66 +
  67 + return $dataProvider;
  68 + }
  69 +}
... ...
common/models/PayMessages.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_pay_messages".
  9 + *
  10 + * @property integer $id
  11 + * @property string $subject
  12 + * @property string $message
  13 + * @property string $dt
  14 + * @property integer $user_id
  15 + */
  16 +class PayMessages extends \yii\db\ActiveRecord
  17 +{
  18 + /**
  19 + * @inheritdoc
  20 + */
  21 + public static function tableName()
  22 + {
  23 + return 'w_pay_messages';
  24 + }
  25 +
  26 + /**
  27 + * @inheritdoc
  28 + */
  29 + public function rules()
  30 + {
  31 + return [
  32 + [['subject', 'message', 'dt', 'user_id'], 'required'],
  33 + [['message'], 'string'],
  34 + [['user_id'], 'integer'],
  35 + [['subject'], 'string', 'max' => 255],
  36 + [['dt'], 'string', 'max' => 15]
  37 + ];
  38 + }
  39 +
  40 + /**
  41 + * @inheritdoc
  42 + */
  43 + public function attributeLabels()
  44 + {
  45 + return [
  46 + 'id' => 'ID',
  47 + 'subject' => 'Subject',
  48 + 'message' => 'Message',
  49 + 'dt' => 'Dt',
  50 + 'user_id' => 'User ID',
  51 + ];
  52 + }
  53 +}
... ...
common/models/PayMessagesSearch.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\PayMessages;
  9 +
  10 +/**
  11 + * PayMessagesSearch represents the model behind the search form about `common\models\PayMessages`.
  12 + */
  13 +class PayMessagesSearch extends PayMessages
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'user_id'], 'integer'],
  22 + [['subject', 'message', '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 = PayMessages::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', 'subject', $this->subject])
  64 + ->andFilterWhere(['like', 'message', $this->message])
  65 + ->andFilterWhere(['like', 'dt', $this->dt]);
  66 +
  67 + return $dataProvider;
  68 + }
  69 +}
... ...
common/models/PriceMailing.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_price_mailing".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $email
  13 + * @property integer $price_id
  14 + */
  15 +class PriceMailing extends \yii\db\ActiveRecord
  16 +{
  17 + /**
  18 + * @inheritdoc
  19 + */
  20 + public static function tableName()
  21 + {
  22 + return 'w_price_mailing';
  23 + }
  24 +
  25 + /**
  26 + * @inheritdoc
  27 + */
  28 + public function rules()
  29 + {
  30 + return [
  31 + [['name', 'email', 'price_id'], 'required'],
  32 + [['price_id'], 'integer'],
  33 + [['name', 'email'], 'string', 'max' => 254]
  34 + ];
  35 + }
  36 +
  37 + /**
  38 + * @inheritdoc
  39 + */
  40 + public function attributeLabels()
  41 + {
  42 + return [
  43 + 'id' => 'ID',
  44 + 'name' => 'Name',
  45 + 'email' => 'Email',
  46 + 'price_id' => 'Price ID',
  47 + ];
  48 + }
  49 +}
... ...
common/models/PriceMailingSearch.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\PriceMailing;
  9 +
  10 +/**
  11 + * PriceMailingSearch represents the model behind the search form about `common\models\PriceMailing`.
  12 + */
  13 +class PriceMailingSearch extends PriceMailing
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'price_id'], 'integer'],
  22 + [['name', 'email'], '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 = PriceMailing::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 + 'price_id' => $this->price_id,
  61 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'name', $this->name])
  64 + ->andFilterWhere(['like', 'email', $this->email]);
  65 +
  66 + return $dataProvider;
  67 + }
  68 +}
... ...
common/models/SettingsMerchantsList.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_settings_merchants_list".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $content
  13 + * @property integer $sort
  14 + * @property integer $is_active
  15 + * @property string $mcode
  16 + */
  17 +class SettingsMerchantsList extends \yii\db\ActiveRecord
  18 +{
  19 + /**
  20 + * @inheritdoc
  21 + */
  22 + public static function tableName()
  23 + {
  24 + return 'w_settings_merchants_list';
  25 + }
  26 +
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public function rules()
  31 + {
  32 + return [
  33 + [['name', 'content', 'sort', 'is_active', 'mcode'], 'required'],
  34 + [['content'], 'string'],
  35 + [['sort', 'is_active'], 'integer'],
  36 + [['name'], 'string', 'max' => 1000],
  37 + [['mcode'], 'string', 'max' => 255]
  38 + ];
  39 + }
  40 +
  41 + /**
  42 + * @inheritdoc
  43 + */
  44 + public function attributeLabels()
  45 + {
  46 + return [
  47 + 'id' => 'ID',
  48 + 'name' => 'Name',
  49 + 'content' => 'Content',
  50 + 'sort' => 'Sort',
  51 + 'is_active' => 'Is Active',
  52 + 'mcode' => 'Mcode',
  53 + ];
  54 + }
  55 +}
... ...
common/models/SettingsMerchantsListSearch.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\SettingsMerchantsList;
  9 +
  10 +/**
  11 + * SettingsMerchantsListSearch represents the model behind the search form about `common\models\SettingsMerchantsList`.
  12 + */
  13 +class SettingsMerchantsListSearch extends SettingsMerchantsList
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'sort', 'is_active'], 'integer'],
  22 + [['name', 'content', 'mcode'], '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 = SettingsMerchantsList::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 + ]);
  63 +
  64 + $query->andFilterWhere(['like', 'name', $this->name])
  65 + ->andFilterWhere(['like', 'content', $this->content])
  66 + ->andFilterWhere(['like', 'mcode', $this->mcode]);
  67 +
  68 + return $dataProvider;
  69 + }
  70 +}
... ...
common/models/Slider.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_slider".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + * @property string $img
  13 + * @property string $url
  14 + * @property integer $is_active
  15 + * @property integer $sort
  16 + */
  17 +class Slider extends \yii\db\ActiveRecord
  18 +{
  19 + /**
  20 + * @inheritdoc
  21 + */
  22 + public static function tableName()
  23 + {
  24 + return 'w_slider';
  25 + }
  26 +
  27 + /**
  28 + * @inheritdoc
  29 + */
  30 + public function rules()
  31 + {
  32 + return [
  33 + [['name', 'img', 'url', 'sort'], 'required'],
  34 + [['is_active', 'sort'], 'integer'],
  35 + [['name'], 'string', 'max' => 100],
  36 + [['img', 'url'], 'string', 'max' => 254]
  37 + ];
  38 + }
  39 +
  40 + /**
  41 + * @inheritdoc
  42 + */
  43 + public function attributeLabels()
  44 + {
  45 + return [
  46 + 'id' => 'ID',
  47 + 'name' => 'Name',
  48 + 'img' => 'Img',
  49 + 'url' => 'Url',
  50 + 'is_active' => 'Is Active',
  51 + 'sort' => 'Sort',
  52 + ];
  53 + }
  54 +}
... ...
common/models/SliderSearch.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\Slider;
  9 +
  10 +/**
  11 + * SliderSearch represents the model behind the search form about `common\models\Slider`.
  12 + */
  13 +class SliderSearch extends Slider
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'is_active', 'sort'], 'integer'],
  22 + [['name', 'img', '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 = Slider::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 + 'is_active' => $this->is_active,
  61 + 'sort' => $this->sort,
  62 + ]);
  63 +
  64 + $query->andFilterWhere(['like', 'name', $this->name])
  65 + ->andFilterWhere(['like', 'img', $this->img])
  66 + ->andFilterWhere(['like', 'url', $this->url]);
  67 +
  68 + return $dataProvider;
  69 + }
  70 +}
... ...
common/models/Team.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_team".
  9 + *
  10 + * @property integer $id
  11 + * @property string $email
  12 + * @property integer $group_id
  13 + * @property string $name
  14 + * @property string $img
  15 + * @property string $phone
  16 + * @property string $skype
  17 + * @property string $code
  18 + */
  19 +class Team extends \yii\db\ActiveRecord
  20 +{
  21 + /**
  22 + * @inheritdoc
  23 + */
  24 + public static function tableName()
  25 + {
  26 + return 'w_team';
  27 + }
  28 +
  29 + /**
  30 + * @inheritdoc
  31 + */
  32 + public function rules()
  33 + {
  34 + return [
  35 + [['email', 'group_id', 'name', 'img', 'phone', 'skype', 'code'], 'required'],
  36 + [['group_id'], 'integer'],
  37 + [['email', 'name', 'img', 'phone', 'skype', 'code'], 'string', 'max' => 255]
  38 + ];
  39 + }
  40 +
  41 + /**
  42 + * @inheritdoc
  43 + */
  44 + public function attributeLabels()
  45 + {
  46 + return [
  47 + 'id' => 'ID',
  48 + 'email' => 'Email',
  49 + 'group_id' => 'Group ID',
  50 + 'name' => 'Name',
  51 + 'img' => 'Img',
  52 + 'phone' => 'Phone',
  53 + 'skype' => 'Skype',
  54 + 'code' => 'Code',
  55 + ];
  56 + }
  57 +}
... ...
common/models/TeamGroup.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_team_group".
  9 + *
  10 + * @property integer $id
  11 + * @property string $name
  12 + */
  13 +class TeamGroup extends \yii\db\ActiveRecord
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public static function tableName()
  19 + {
  20 + return 'w_team_group';
  21 + }
  22 +
  23 + /**
  24 + * @inheritdoc
  25 + */
  26 + public function rules()
  27 + {
  28 + return [
  29 + [['name'], 'required'],
  30 + [['name'], 'string', 'max' => 255]
  31 + ];
  32 + }
  33 +
  34 + /**
  35 + * @inheritdoc
  36 + */
  37 + public function attributeLabels()
  38 + {
  39 + return [
  40 + 'id' => 'ID',
  41 + 'name' => 'Name',
  42 + ];
  43 + }
  44 +}
... ...
common/models/TeamGroupSearch.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\TeamGroup;
  9 +
  10 +/**
  11 + * TeamGroupSearch represents the model behind the search form about `common\models\TeamGroup`.
  12 + */
  13 +class TeamGroupSearch extends TeamGroup
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id'], '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 = TeamGroup::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 + ]);
  61 +
  62 + $query->andFilterWhere(['like', 'name', $this->name]);
  63 +
  64 + return $dataProvider;
  65 + }
  66 +}
... ...
common/models/TeamSearch.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\Team;
  9 +
  10 +/**
  11 + * TeamSearch represents the model behind the search form about `common\models\Team`.
  12 + */
  13 +class TeamSearch extends Team
  14 +{
  15 + /**
  16 + * @inheritdoc
  17 + */
  18 + public function rules()
  19 + {
  20 + return [
  21 + [['id', 'group_id'], 'integer'],
  22 + [['email', 'name', 'img', 'phone', 'skype', 'code'], '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 = Team::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 + 'group_id' => $this->group_id,
  61 + ]);
  62 +
  63 + $query->andFilterWhere(['like', 'email', $this->email])
  64 + ->andFilterWhere(['like', 'name', $this->name])
  65 + ->andFilterWhere(['like', 'img', $this->img])
  66 + ->andFilterWhere(['like', 'phone', $this->phone])
  67 + ->andFilterWhere(['like', 'skype', $this->skype])
  68 + ->andFilterWhere(['like', 'code', $this->code]);
  69 +
  70 + return $dataProvider;
  71 + }
  72 +}
... ...
console/controllers/ParserController.php
... ... @@ -35,7 +35,8 @@ class ParserController extends Controller
35 35 'importer_id' => $importer_id,
36 36 'parser_config' => ['keys' => $keys,
37 37 'converter_conf' =>
38   - [ 'sign' => $sign, 'multiplier' => $multiplier, 'importer_id' => $importer_id ],
  38 + ['sign' => $sign,
  39 + 'multiplier' => $multiplier],
39 40 'mode' => 'console']
40 41 ];
41 42 if ($this->parseFileConsole($file_path, $config)) {
... ...
console/migrations/m150925_111922_add_foreign_key_ImportFiles.php
... ... @@ -22,7 +22,7 @@ class m150925_111922_add_foreign_key_ImportFiles extends Migration
22 22 $this->addForeignKey('importer_fk', '{{%importers_files}}', 'importer_id', '{{%importers}}', 'id');
23 23 }
24 24  
25   - public function safeDown()
  25 + public function down()
26 26 {
27 27 $this->dropForeignKey('importer_fk', '{{%importers_files}}');
28 28 }
... ...
frontend/views/site/BC2_catalog_zapchasti.php
... ... @@ -20,7 +20,7 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
20 20  
21 21 <div class="search_span zapchasti">
22 22  
23   - <img src="/images/car1.png">
  23 + <img src="/images/car1.png" id="zapchasti_car">
24 24 <p>ะฃะบะฐะถะธั‚ะต ัะฒะพะน ะฐะฒั‚ะพะผะพะฑะธะปัŒ
25 25 ะธ ะผั‹ ะฟั€ะตะดะปะพะถะธะผ ะฒะฐะผ
26 26 ะตั‰ะต ะะบะบัƒะผัƒะปัั‚ะพั€ั‹ (ะะšะ‘)</p>
... ... @@ -198,7 +198,7 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
198 198 </td>
199 199 <td class="large_width">12V 88Ah 740A
200 200 <a href=""><img src="/images/gear.png"></a>
201   - <a href="" type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."><img src="/images/icon_cam.png"></a>
  201 + <a href="" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."><img src="/images/icon_cam.png"></a>
202 202 </td>
203 203 <td class="right instock">
204 204 <table class="right" cellspacing="0" cellpadding="0" border="0" style="border-bottom: 0;
... ...
frontend/views/site/notepad.php
1 1 <?php
2 2  
3   -$this->registerCssFile('/css/style/notepad.css.css');
  3 +$this->registerCssFile('/css/style/notepad.css');
4 4  
5 5 $this->params['breadcrumbs'][] = $this->title;
6 6 ?>
... ...
frontend/web/css/BC2_catalog.css
... ... @@ -484,4 +484,14 @@ color: #8ca1c8;
484 484 font-weight: 500;
485 485 margin-top: -15px;
486 486 margin-bottom: 20px;
  487 +}
  488 +
  489 +.filter-box-two a:hover{
  490 + text-decoration: none;
  491 +}
  492 +
  493 +table.trackbar {
  494 + width: 250px;
  495 + margin: 10px 30px;
  496 + background: none!important;
487 497 }
488 498 \ No newline at end of file
... ...
frontend/web/css/BC2_catalog_zapchasti.css
... ... @@ -16,7 +16,7 @@
16 16 }
17 17  
18 18 .vin{
19   - width: 960px;
  19 + width: 960px!important;
20 20 margin: 34px auto;
21 21 }
22 22  
... ... @@ -71,9 +71,9 @@
71 71  
72 72  
73 73 .zapchasti{
74   - width:220px;
75   - height: 264px;
76   - border:1px solid #dfdfdf;
  74 + width: 220px!important;
  75 + height: 264px!important;
  76 + border: 1px solid #dfdfdf;
77 77 }
78 78  
79 79 .zapchasti select{
... ... @@ -82,7 +82,7 @@
82 82 margin-left:21px;
83 83 }
84 84  
85   -.zapchasti img{
  85 +#zapchasti_car{
86 86 margin-left: 57px!important;
87 87 margin-top: 32px;
88 88 }
... ... @@ -90,7 +90,7 @@
90 90 .zapchasti p{
91 91 text-align: center;
92 92 font-size: 13px;
93   - margin: 13px 0 0 0;
  93 + margin: 13px 0 0 0!important;
94 94 }
95 95  
96 96 .zapchasti .purple{
... ... @@ -541,4 +541,6 @@ td .purple {
541 541 background-position:95% 58%;
542 542 background-color: #f5f5f5;
543 543 border: 1px solid #dfdfdf;
  544 + width: 180px;
  545 + margin-left: 20px;
544 546 }
545 547 \ No newline at end of file
... ...
frontend/web/css/catalog_marok.css
... ... @@ -336,6 +336,7 @@ td input {
336 336 }
337 337  
338 338 td .purple {
  339 + margin-left: -8px;
339 340 height: 31px;
340 341 width: 90px;
341 342 position: absolute;
... ... @@ -387,9 +388,12 @@ tr{
387 388 }
388 389  
389 390 td{
390   - padding-left: 17px;
  391 + padding-left: 17px!important;
  392 +}
  393 +table a {
  394 + color: #6b84b5;
  395 + text-decoration: none!important;
391 396 }
392   -
393 397 .modification_name{
394 398 font-size: 13px;
395 399 font-weight: 500;
... ... @@ -599,9 +603,7 @@ table a:visited{
599 603 top: 12px;
600 604 }
601 605  
602   -.left_small_menu{
603   - display: none;
604   -}
  606 +
605 607 .left_small_menu .header_small_menu{
606 608 background-color: #8da6d6;
607 609 color:#fff;
... ... @@ -626,6 +628,7 @@ table a:visited{
626 628  
627 629 .left_small_menu{
628 630 margin-bottom: -8px;
  631 + display: none;
629 632 }
630 633  
631 634 .gallery_tovars{
... ... @@ -732,8 +735,12 @@ table a:visited{
732 735  
733 736 .dropdown-menu{
734 737 position: static!important;
735   -}
736 738  
  739 +
  740 +}
  741 +.open .dropdown-menu{
  742 + margin-left: -48px;
  743 +}
737 744 .small_menu_width {
738 745 float: none
739 746 }
740 747 \ No newline at end of file
... ...
frontend/web/css/general_styles.css
... ... @@ -20,7 +20,9 @@ img {
20 20 a{
21 21 text-decoration: none;
22 22 }
23   -
  23 +a:hover{
  24 + text-decoration: none;
  25 +}
24 26 ul{
25 27 margin: 0 0 10px 0;
26 28 }
... ... @@ -618,7 +620,6 @@ li a{
618 620 .areamark {
619 621 width: 240px;
620 622 margin-left: 51px;
621   - background-color: #f5f5f5;
622 623 }
623 624 .selectize_item2 span {
624 625 margin-left: 0!important;
... ... @@ -632,7 +633,6 @@ li a{
632 633 margin-top: 15px;
633 634 width: 240px;
634 635 margin-left: 51px;
635   - background-color: #f5f5f5;
636 636 opacity: 0;
637 637 }
638 638  
... ... @@ -641,7 +641,6 @@ li a{
641 641 margin-top: 15px;
642 642 width: 240px;
643 643 margin-left: 51px;
644   - background-color: #f5f5f5;
645 644 }
646 645 .selectize_item3 span{
647 646 margin-left: 0!important;
... ... @@ -678,13 +677,11 @@ li a{
678 677 .area3{
679 678 width: 240px;
680 679 margin-left: 51px;
681   - background-color: #f5f5f5;
682 680 }
683 681 .area4{
684 682 margin-top: 15px;
685 683 width: 240px;
686 684 margin-left: 51px;
687   - background-color: #f5f5f5;
688 685 opacity: 0;
689 686 }
690 687  
... ... @@ -693,9 +690,42 @@ li a{
693 690 margin-top: 15px;
694 691 width: 240px;
695 692 margin-left: 51px;
696   - background-color: #f5f5f5;
697 693 }
698 694  
  695 +.areamark .selectize-input{
  696 + background: #f5f5f5;
  697 +}
  698 +.area1 .selectize-input{
  699 + background: #f5f5f5;
  700 +}
  701 +.area3 .selectize-input{
  702 + background: #f5f5f5;
  703 +}
  704 +.area4 .selectize-input{
  705 + background: #f5f5f5;
  706 +}
  707 +.area5 .selectize-input{
  708 + background: #f5f5f5;
  709 +}
  710 +
  711 +.areamark .selectize-input.full{
  712 + background: #f5f5f5;
  713 +}
  714 +.area1 .selectize-input.full{
  715 + background: #f5f5f5;
  716 +}
  717 +.area2 .selectize-input.full{
  718 + background: #f5f5f5;
  719 +}
  720 +.area5 .selectize-input.full{
  721 + background: #f5f5f5;
  722 +}
  723 +.area3 .selectize-input.full{
  724 + background: #f5f5f5;
  725 +}
  726 +.area4 .selectize-input.full{
  727 + background: #f5f5f5;
  728 +}
699 729 .registration_for_detail_search .selectize-input {
700 730 padding-bottom: 8px;
701 731 display: block;
... ... @@ -1314,6 +1344,7 @@ li a{
1314 1344 width:960px;
1315 1345 margin:0 auto;
1316 1346 margin-top:40px;
  1347 + position: relative;
1317 1348 }
1318 1349 /*td{
1319 1350 width:240px;
... ... @@ -2358,11 +2389,13 @@ left: -444px;
2358 2389 .number_of{
2359 2390 font-weight: 500;
2360 2391 font-size: 22px;
  2392 + margin-left: 15px;
2361 2393 }
2362 2394  
2363 2395 .general_number{
2364 2396 font-weight: 500;
2365 2397 font-size: 22px;
  2398 + margin-right: 6px;
2366 2399 }
2367 2400  
2368 2401 .block_project {
... ... @@ -2947,4 +2980,25 @@ input{
2947 2980  
2948 2981 #replace_form{
2949 2982 position: relative;
2950   -}
2951 2983 \ No newline at end of file
  2984 +}
  2985 +
  2986 +.telephone span{
  2987 + float: left;
  2988 + margin-top: 5px;
  2989 + margin-right: 3px;
  2990 +}
  2991 +
  2992 +.close {
  2993 + float: right;
  2994 + font-size: 21px;
  2995 + font-weight: bold;
  2996 + line-height: 1;
  2997 + color: #000;
  2998 + filter: alpha(opacity=20);
  2999 + opacity: 1!important;
  3000 +}
  3001 +.slider_block1 span img:nth-child(1) {
  3002 + position: absolute;
  3003 + top: 6px;
  3004 +}
  3005 +
... ...
frontend/web/css/search_filters.css
... ... @@ -374,8 +374,9 @@ input[type=&quot;checkbox&quot;] + label span {
374 374 display: inline-block;
375 375 }
376 376 .filter-box-two img{
377   - margin-bottom: 17px;
  377 + margin-bottom: 16px;
378 378 margin-left: 8px;
  379 + float: right;
379 380 }
380 381 .filter-box-two1 p{
381 382 position: absolute;
... ... @@ -564,4 +565,39 @@ td .purple {
564 565 }
565 566 .opposite1{
566 567 border-radius: 0 4px 4px 0;
  568 +}
  569 +
  570 +table.trackbar {
  571 + width: 250px;
  572 + margin: 10px 30px;
  573 + background: none!important;
  574 +}
  575 +
  576 +table.trackbar .l div{
  577 + height: 8px;
  578 + border: 3px solid #dfdfdf;
  579 + margin-top: 1.5px;
  580 + background-color: white;
  581 + border-radius: 13px 0 0 13px;
  582 +}
  583 +
  584 +table.trackbar .r div{
  585 + height: 8px;
  586 + border: 3px solid #dfdfdf;
  587 + margin-top: 3px;
  588 + background-color: white;
  589 + border-radius: 0 13px 13px 0;
  590 +}
  591 +
  592 +table.trackbar .c {
  593 + font-size: 1px;
  594 + width: 100%;
  595 + height: 6px;
  596 + background-image: url('../js/TrackBar/imgtrackbar/track_bar.png');
  597 + background-repeat: repeat no-repeat;
  598 + background-position: 1% 75%;
  599 +}
  600 +
  601 +table.trackbar {
  602 + margin: 10px 38px;
567 603 }
568 604 \ No newline at end of file
... ...
frontend/web/css/style.css
... ... @@ -47,7 +47,7 @@ li a{
47 47 margin-top:5px;
48 48 }
49 49 .arrow_down{
50   - left: 129!important;
  50 + left: 129px!important;
51 51 top: 18px!important;
52 52 }
53 53 .our_project{
... ... @@ -59,7 +59,9 @@ li a{
59 59 -o-border-bottom: 1px dashed;
60 60 -ms-border-bottom: 1px dashed;
61 61 }
62   -
  62 +.our_project:hover{
  63 + text-decoration: none;
  64 +}
63 65 .contacts{
64 66 margin: 25px auto;
65 67 width:960px;
... ... @@ -736,7 +738,7 @@ ul span{
736 738  
737 739 .selectize_item .steel{
738 740 width: 241px!important;
739   - top: 9px;
  741 + top: 8px;
740 742 }
741 743  
742 744 .selectize_item1{
... ... @@ -1615,7 +1617,7 @@ span:first-child .tovars{
1615 1617 .slider_block span img:nth-child(1){
1616 1618 position: absolute;
1617 1619 top: 6px;
1618   - left: 181px;
  1620 + left: 188px;
1619 1621 }
1620 1622  
1621 1623 .slider_block span:nth-child(2) img{
... ... @@ -2338,12 +2340,13 @@ span:first-child .tovars{
2338 2340 .number_of{
2339 2341 font-weight: 500;
2340 2342 font-size: 22px;
2341   - margin-left: 15px;
  2343 + margin-left: 20px;
2342 2344 }
2343 2345  
2344 2346 .general_number{
2345 2347 font-weight: 500;
2346 2348 font-size: 22px;
  2349 + margin-right: 5px;
2347 2350 }
2348 2351  
2349 2352 .block_project{
... ... @@ -2449,28 +2452,60 @@ span:first-child .tovars{
2449 2452 }
2450 2453  
2451 2454 .steel .selectize-dropdown-content{
2452   - margin-left: -1!important;
  2455 + margin-left: -1px!important;
2453 2456 }
2454 2457  
2455 2458 .areamark{
2456 2459 width: 240px;
2457 2460 margin-left: 51px;
2458   - background-color: #f5f5f5;
  2461 +}
  2462 +
  2463 +.areamark .selectize-input.full{
  2464 + background: #f5f5f5;
  2465 +}
  2466 +.area1 .selectize-input.full{
  2467 + background: #f5f5f5;
  2468 +}
  2469 +.area2 .selectize-input.full{
  2470 + background: #f5f5f5;
  2471 +}
  2472 +.area5 .selectize-input.full{
  2473 + background: #f5f5f5;
  2474 +}
  2475 +.area3 .selectize-input.full{
  2476 + background: #f5f5f5;
  2477 +}
  2478 +.area4 .selectize-input.full{
  2479 + background: #f5f5f5;
2459 2480 }
2460 2481 .area1{
2461 2482 margin-top: 15px;
2462 2483 width: 240px;
2463 2484 margin-left: 51px;
2464   - background-color: #f5f5f5;
2465 2485 opacity: 0;
2466 2486 }
2467   -
  2487 +.area1 .selectize-input{
  2488 + background: #f5f5f5;
  2489 +}
  2490 +.area3 .selectize-input{
  2491 + background: #f5f5f5;
  2492 +}
  2493 +.area4 .selectize-input{
  2494 + background: #f5f5f5;
  2495 +}
  2496 +.area5 .selectize-input{
  2497 + background: #f5f5f5;
  2498 +}
2468 2499 .area2{
2469 2500 opacity: 0;
2470 2501 margin-top: 15px;
2471 2502 width: 240px;
2472 2503 margin-left: 51px;
2473   - background-color: #f5f5f5;
  2504 +
  2505 +}
  2506 +
  2507 +.area2 .selectize-input{
  2508 + background: #f5f5f5;
2474 2509 }
2475 2510 .selectize_item2 span{
2476 2511 margin-left: 0!important;
... ... @@ -2483,13 +2518,11 @@ span:first-child .tovars{
2483 2518 .area3{
2484 2519 width: 240px;
2485 2520 margin-left: 51px;
2486   - background-color: #f5f5f5;
2487 2521 }
2488 2522 .area4{
2489 2523 margin-top: 15px;
2490 2524 width: 240px;
2491 2525 margin-left: 51px;
2492   - background-color: #f5f5f5;
2493 2526 opacity: 0;
2494 2527 }
2495 2528  
... ... @@ -2498,7 +2531,6 @@ span:first-child .tovars{
2498 2531 margin-top: 15px;
2499 2532 width: 240px;
2500 2533 margin-left: 51px;
2501   - background-color: #f5f5f5;
2502 2534 }
2503 2535  
2504 2536 .shadow{
... ... @@ -3010,5 +3042,34 @@ input[type=&quot;checkbox&quot;]:checked + label span {
3010 3042 background-clip: padding-box;
3011 3043 height: 145px !important;
3012 3044 width: 732px !important;
3013   - left: -131px !important;
  3045 + left: -132px !important;
  3046 +}
  3047 +
  3048 +.telephone span{
  3049 + float: left;
  3050 + margin-top: 5px;
  3051 + margin-right: 3px;
  3052 +}
  3053 +
  3054 +.close {
  3055 + float: right;
  3056 + font-size: 21px;
  3057 + font-weight: bold;
  3058 + line-height: 1;
  3059 + color: #000;
  3060 + filter: alpha(opacity=20);
  3061 + opacity: 1!important;
  3062 +}
  3063 +
  3064 +
  3065 +.modal-header{
  3066 + border-bottom: none!important;
  3067 +}
  3068 +
  3069 +.selectize-control.single .selectize-input:after{
  3070 + top: 30%!important;
  3071 +}
  3072 +
  3073 +.search_by_vin .selectize-input{
  3074 + margin-top: -1px;
3014 3075 }
3015 3076 \ No newline at end of file
... ...
frontend/web/css/style/busket.css
... ... @@ -248,12 +248,12 @@ input[type=&quot;radio&quot;] + label span {
248 248 width:16px;
249 249 height:16px;
250 250 margin-bottom: 16px;
251   - background: url('../images/radio.png') no-repeat;
  251 + background: url('/images/radio.png') no-repeat;
252 252 cursor:pointer;
253 253  
254 254 }
255 255 input[type="radio"]:checked + label span{
256   - background: url('../images/blue_dot.png') no-repeat;
  256 + background: url('/images/blue_dot.png') no-repeat;
257 257 }
258 258  
259 259 input[type="radio"] + label span,
... ... @@ -278,13 +278,13 @@ input[type=&quot;checkbox&quot;] + label span {
278 278 width:16px;
279 279 height:16px;
280 280 margin-bottom: 16px;
281   - background: url('../images/checkbox.png') no-repeat;
  281 + background: url('/images/checkbox.png') no-repeat;
282 282 cursor:pointer;
283 283 margin-top: 10px;
284 284  
285 285 }
286 286 input[type="checkbox"]:checked + label span{
287   - background: url('../images/input-type-checked.png') no-repeat;
  287 + background: url('/images/input-type-checked.png') no-repeat;
288 288 margin-top: 10px;
289 289 }
290 290  
... ...
frontend/web/css/style/my_profile.css
... ... @@ -163,7 +163,7 @@ margin-left: -37px;
163 163 }
164 164  
165 165 .lend-tovar-cart-number {
166   - height: 29px;
  166 + height: 31px;
167 167 width: 28px;
168 168 border: none;
169 169 outline: none;
... ... @@ -175,6 +175,7 @@ margin-left: -37px;
175 175 position: relative;
176 176 padding-left: 0;
177 177 padding-bottom: 2px;
  178 + border-radius: 7px;
178 179 }
179 180  
180 181 .lend-tovar-cart-left {
... ...
frontend/web/css/style/news_all.css
... ... @@ -75,15 +75,9 @@ p, a, label, span{
75 75 width: 308px;
76 76 }
77 77  
78   -#pagination {
79   - height: 19px;
80   - display: table;
81   - margin: 0 auto;
82   -}
83   -
84 78 .pagination>li:first-child>a, .pagination>li:first-child>span {
85   - border-top-left-radius: 20px;
86   - border-bottom-left-radius: 20px;
  79 + border-top-left-radius: 20px!important;
  80 + border-bottom-left-radius: 20px!important;
87 81 height: 24px;
88 82 width: 24px;
89 83 padding-top: 1px;
... ... @@ -97,8 +91,7 @@ p, a, label, span{
97 91 float: left;
98 92 height: 24px;
99 93 width: 24px;
100   - padding-top: 1px;
101   - padding-left: 7px;
  94 + padding: 1px 7px!important;
102 95 margin-left: -1px;
103 96 line-height: 1.42857143;
104 97 color: #333;
... ... @@ -117,8 +110,14 @@ p, a, label, span{
117 110 }
118 111  
119 112 .pagination>li:last-child>a, .pagination>li:last-child>span {
120   - border-top-right-radius: 20px;
121   - border-bottom-right-radius: 20px;
  113 + border-top-right-radius: 20px!important;
  114 + border-bottom-right-radius: 20px!important;
  115 +}
  116 +
  117 +.pagination{
  118 + display: table!important;
  119 + padding-top: 23px!important;
  120 + margin: 20px auto!important;
122 121 }
123 122  
124 123 .choose_tovar a {
... ... @@ -154,7 +153,7 @@ p, a, label, span{
154 153  
155 154  
156 155 .back_news{
157   - background-image: url('../images/arrow_slider_back.png');
  156 + background-image: url('/images/arrow_slider_back.png');
158 157 background-repeat: no-repeat;
159 158 background-position: 0% 46%;
160 159 position: relative;
... ... @@ -163,7 +162,7 @@ p, a, label, span{
163 162 }
164 163 .next_news{
165 164 float: right;
166   - background-image: url('../images/arrow_slider_go.png');
  165 + background-image: url('/images/arrow_slider_go.png');
167 166 background-repeat: no-repeat;
168 167 background-position: 100% 42%;
169 168 position: relative;
... ...
frontend/web/css/style/optovikam.css
... ... @@ -49,7 +49,7 @@
49 49 }
50 50 .choose_tovar-list li{
51 51 padding-left: 13px;
52   - background-image: url("../images/purple_eclipse.png");
  52 + background-image: url("/images/purple_eclipse.png");
53 53 background-position: 2px 6px;
54 54 background-repeat: no-repeat;
55 55  
... ...
frontend/web/css/style_vin.css
... ... @@ -520,4 +520,10 @@ table a{
520 520 margin-left: 133px!important;
521 521 color: #6b84b5;
522 522 text-decoration: underline;
  523 +}
  524 +
  525 +.search_input .orange{
  526 + float: right;
  527 + margin-top: 4px;
  528 + margin-right: 3px;
523 529 }
524 530 \ No newline at end of file
... ...
frontend/web/js/script.js
... ... @@ -142,11 +142,11 @@ $(&#39;.phone_control, .phone_placeholder&#39;).click(
142 142  
143 143 $('#auto_staff').hover(
144 144 function(){
145   - $('.dropdown_menu').stop().slideDown(500);
  145 + $('.dropdown_menu').stop().fadeIn(500);
146 146  
147 147 },
148 148 function(){
149   - $('.dropdown_menu').stop().slideUp(400);
  149 + $('.dropdown_menu').stop().fadeOut(400);
150 150 // $('.dropdown_menu').delay(300).queue(function () {
151 151 // $(this).css({display:'none'});
152 152 // $(this).dequeue();});
... ...
storage/1e54f0824124e8e01fe53f6cd24aa278/200x200.png 0 โ†’ 100644

73.1 KB

storage/1e54f0824124e8e01fe53f6cd24aa278/original.png 0 โ†’ 100644

88.3 KB

storage/40303fdd44b5ef0b7e91d160b0685a77/200x200.png 0 โ†’ 100644

1.64 KB

storage/40303fdd44b5ef0b7e91d160b0685a77/original.png 0 โ†’ 100644

278 Bytes

storage/4a94428188ea08e7689af186d8bf0c31/200x200.png 0 โ†’ 100644

59.5 KB

storage/4a94428188ea08e7689af186d8bf0c31/original.png 0 โ†’ 100644

84.7 KB

storage/7160cae25ca4674697274dc288200ea1/200x200.png 0 โ†’ 100644

27.2 KB

storage/7160cae25ca4674697274dc288200ea1/original.png 0 โ†’ 100644

9.79 KB

storage/84f933764827939b158a42cbbbbb2170/200x200.png 0 โ†’ 100644

22.7 KB

storage/84f933764827939b158a42cbbbbb2170/original.png 0 โ†’ 100644

19.5 KB

storage/cb32318e7f1ef8e5dea0090346f3e511/200x200.png 0 โ†’ 100644

95.5 KB

storage/cb32318e7f1ef8e5dea0090346f3e511/original.png 0 โ†’ 100644

581 KB