Commit ecf49b1b64d23275e845a71f80dbeb964ef27830
1 parent
550eac02
second
Showing
396 changed files
with
21109 additions
and
1 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 396 files are displayed.
.gitignore
@@ -34,11 +34,13 @@ phpunit.phar | @@ -34,11 +34,13 @@ phpunit.phar | ||
34 | /common/config/params-local.php | 34 | /common/config/params-local.php |
35 | /backend/config/main-local.php | 35 | /backend/config/main-local.php |
36 | /backend/config/params-local.php | 36 | /backend/config/params-local.php |
37 | +/backend/runtime/ | ||
37 | /frontend/config/main-local.php | 38 | /frontend/config/main-local.php |
38 | /frontend/config/params-local.php | 39 | /frontend/config/params-local.php |
39 | - | 40 | +/frontend/runtime/ |
40 | /backend/web/assets/ | 41 | /backend/web/assets/ |
41 | /frontend/web/assets/ | 42 | /frontend/web/assets/ |
43 | +/frontend/web/upload/ | ||
42 | /frontend/web/css/node_modules/ | 44 | /frontend/web/css/node_modules/ |
43 | /frontend/views/вертска | 45 | /frontend/views/вертска |
44 | composer.lock | 46 | composer.lock |
1 | +AddDefaultCharset WINDOWS-1251 | ||
2 | +#php_value display_errors 1 | ||
3 | +#php_value error_reporting 2047 | ||
4 | + | ||
5 | +RewriteEngine on | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | +RewriteRule ^(.*)(date\.php|votebar|spam|\.css|uploaded|img|rating\.php|forum_comment\.php|js|admin|googlec87a9150150cf5d3.html)(.*)$ $1$2$3 [L] | ||
10 | +RewriteRule ^(.*)$ index.php [L] |
1 | +<?php | ||
2 | +namespace common\components\urlManager; | ||
3 | + | ||
4 | +use Yii; | ||
5 | +use yii\web\Request; | ||
6 | + | ||
7 | +class LangRequest extends Request | ||
8 | +{ | ||
9 | + protected function resolvePathInfo() | ||
10 | + { | ||
11 | + | ||
12 | + foreach(Yii::$app->urlManager->languages as $lang){ | ||
13 | + if(strpos($_SERVER['PHP_SELF'], '/'.$lang))Yii::$app->language = $lang; | ||
14 | + } | ||
15 | + return parent::resolvePathInfo(); | ||
16 | + } | ||
17 | +} | ||
0 | \ No newline at end of file | 18 | \ No newline at end of file |
1 | +<?php | ||
2 | +/* | ||
3 | + * To change this template, choose Tools | Templates | ||
4 | + * and open the template in the editor. | ||
5 | + */ | ||
6 | + | ||
7 | +/** | ||
8 | + * Description of LangUrlManager | ||
9 | + * | ||
10 | + * @author Ekstazi | ||
11 | + * @ver 1.2 | ||
12 | + */ | ||
13 | +namespace common\components\urlManager; | ||
14 | +use yii\web\UrlManager; | ||
15 | +use Yii; | ||
16 | +class LangUrlManager extends UrlManager{ | ||
17 | + public $languages=array('en'); | ||
18 | + public $lang='ru'; | ||
19 | + public $langParam='language'; | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + public function createUrl($params=array()){ | ||
24 | + | ||
25 | + if(!isset($params[$this->langParam])){ if(Yii::$app->language != $this->lang)$params[$this->langParam]=Yii::$app->language;} | ||
26 | + else if($params[$this->langParam] == $this->lang)unset($params[$this->langParam]); | ||
27 | + | ||
28 | + | ||
29 | + return parent::createUrl($params); | ||
30 | + } | ||
31 | + //put your code here | ||
32 | +} | ||
0 | \ No newline at end of file | 33 | \ No newline at end of file |
1 | +<?php | ||
2 | +/* | ||
3 | + * To change this template, choose Tools | Templates | ||
4 | + * and open the template in the editor. | ||
5 | + */ | ||
6 | + | ||
7 | +/** | ||
8 | + * Description of LangUrlManager | ||
9 | + * | ||
10 | + * @author Ekstazi | ||
11 | + * @ver 1.2 | ||
12 | + */ | ||
13 | +namespace common\components\urlManager; | ||
14 | +use yii\rest\UrlRule; | ||
15 | +use Yii; | ||
16 | +class LangUrlRule extends UrlRule{ | ||
17 | + public $languages=array('en'); | ||
18 | + public $lang='ru'; | ||
19 | + public $langParam='language'; | ||
20 | + | ||
21 | + /*public function parsePathInfo($pathInfo) | ||
22 | + { | ||
23 | + parent::parsePathInfo($pathInfo); | ||
24 | + | ||
25 | + $userLang=Yii::app()->getRequest()->getPreferredLanguage(); | ||
26 | + //if language pass via url use it | ||
27 | + if(isset($_GET[$this->langParam])&&in_array($_GET[$this->langParam],$this->languages)){ | ||
28 | + Yii::app()->language=$_GET[$this->langParam]; | ||
29 | + //else if preffered language is allowed | ||
30 | + }elseif(in_array($userLang,$this->languages)) { | ||
31 | + Yii::app()->language=$userLang; | ||
32 | + //else use the first language from the list | ||
33 | + }else Yii::app()->language=$this->lang; | ||
34 | + | ||
35 | + }*/ | ||
36 | + //put your code here | ||
37 | + | ||
38 | + public function init(){ | ||
39 | + print '=='; | ||
40 | + print Yii::$app->getRequest()->getQueryParam('language'); | ||
41 | + return parent::init(); | ||
42 | + } | ||
43 | + public function createUrl($params=array()){ | ||
44 | + $userLang=Yii::$app->getRequest()->getPreferredLanguage(); | ||
45 | + //if language pass via url use it | ||
46 | + if(isset($_GET[$this->langParam])&&in_array($_GET[$this->langParam],$this->languages)){ | ||
47 | + Yii::$app->language=$_GET[$this->langParam]; | ||
48 | + //else if preffered language is allowed | ||
49 | + }elseif(in_array($userLang,$this->languages)) { | ||
50 | + Yii::$app->language=$userLang; | ||
51 | + //else use the first language from the list | ||
52 | + }else Yii::$app->language=$this->lang; | ||
53 | + | ||
54 | + //print_r($_GET); | ||
55 | + if(!isset($params[$this->langParam])){ if(Yii::$app->language != $this->lang)$params[$this->langParam]=Yii::$app->language;} | ||
56 | + else if($params[$this->langParam] == $this->lang)unset($params[$this->langParam]); | ||
57 | + //print_r($params); | ||
58 | + return parent::createUrl($params); | ||
59 | + } | ||
60 | + //put your code here | ||
61 | +} | ||
0 | \ No newline at end of file | 62 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace common\models; | ||
4 | + | ||
5 | +class Bg extends \yii\db\ActiveRecord | ||
6 | +{ | ||
7 | + public $old_image; | ||
8 | + | ||
9 | + public static function tableName() | ||
10 | + { | ||
11 | + return 'bg'; | ||
12 | + } | ||
13 | + | ||
14 | + public function rules() | ||
15 | + { | ||
16 | + return [ | ||
17 | + [['title'], 'required'], | ||
18 | + [['old_image','url'], 'safe'], | ||
19 | + [['image'], 'file', 'extensions'=>'jpg, gif, png', 'skipOnEmpty'=>true], | ||
20 | + | ||
21 | + ]; | ||
22 | + } | ||
23 | + | ||
24 | + public function attributeLabels() | ||
25 | + { | ||
26 | + return [ | ||
27 | + 'title'=>'Название', | ||
28 | + 'body'=>'Описание', | ||
29 | + 'date'=>'Дата', | ||
30 | + 'image'=>'Изображения', | ||
31 | + ]; | ||
32 | + } | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + public function beforeDelete() { | ||
37 | + $this->deleteImage($this->image); | ||
38 | + return parent::beforeDelete(); | ||
39 | + } | ||
40 | + | ||
41 | + public function deleteImage($file){ | ||
42 | + if(!empty($file)){ | ||
43 | + @unlink('upload/bg/'.$file); | ||
44 | + } | ||
45 | + } | ||
46 | + | ||
47 | + | ||
48 | +} | ||
49 | + |
1 | +<?php | ||
2 | + | ||
3 | +use yii\db\Migration; | ||
4 | + | ||
5 | +class m160505_202248_bg extends Migration | ||
6 | +{ | ||
7 | + public function up() | ||
8 | + { | ||
9 | + $this->createTable('bg', [ | ||
10 | + 'id' => $this->primaryKey(), | ||
11 | + 'title' => $this->string(250)->notNull(), | ||
12 | + 'url' => $this->string(250)->notNull(), | ||
13 | + 'image' => $this->string(250)->notNull(), | ||
14 | + ]); | ||
15 | + } | ||
16 | + | ||
17 | + public function down() | ||
18 | + { | ||
19 | + $this->dropTable('bg'); | ||
20 | + } | ||
21 | + | ||
22 | + | ||
23 | +} |
1 | +<?php | ||
2 | + | ||
3 | +use yii\db\Migration; | ||
4 | + | ||
5 | +/** | ||
6 | + * Handles the creation for table `page`. | ||
7 | + */ | ||
8 | +/** | ||
9 | + * | ||
10 | + * @property integer $id | ||
11 | + * @property string $name | ||
12 | + * @property string $translit | ||
13 | + * @property string $title | ||
14 | + * @property string $body | ||
15 | + * @property string $meta_title | ||
16 | + * @property string $description | ||
17 | + * @property string $h1 | ||
18 | + * @property string $seo_text | ||
19 | + */ | ||
20 | +class m160505_235100_page extends Migration | ||
21 | +{ | ||
22 | + /** | ||
23 | + * @inheritdoc | ||
24 | + */ | ||
25 | + public function up() | ||
26 | + { | ||
27 | + | ||
28 | + $this->createTable('page', [ | ||
29 | + 'id' => $this->primaryKey(), | ||
30 | + 'translit'=> $this->string(), | ||
31 | + 'title'=> $this->string(), | ||
32 | + 'body'=> $this->text(), | ||
33 | + 'meta_title'=> $this->string(), | ||
34 | + 'meta_keywords' => $this->string(), | ||
35 | + 'meta_description'=> $this->string(), | ||
36 | + 'seo_text'=> $this->text(), | ||
37 | + 'h1'=> $this->string(), | ||
38 | + | ||
39 | + ]); | ||
40 | + } | ||
41 | + | ||
42 | + /** | ||
43 | + * @inheritdoc | ||
44 | + */ | ||
45 | + public function down() | ||
46 | + { | ||
47 | + $this->dropTable('page'); | ||
48 | + } | ||
49 | +} | ||
0 | \ No newline at end of file | 50 | \ No newline at end of file |
1 | +<?php | ||
2 | +namespace frontend\components; | ||
3 | + | ||
4 | +use Yii; | ||
5 | +use yii\base\Widget; | ||
6 | +use yii\helpers\Html; | ||
7 | +use yii\web\View; | ||
8 | +use common\models\Bg; | ||
9 | + | ||
10 | +class BgWidget extends Widget{ | ||
11 | + public $bg; | ||
12 | + | ||
13 | + public function init(){ | ||
14 | + parent::init(); | ||
15 | + $view = Yii::$app->getView(); | ||
16 | + $view->registerJs(" | ||
17 | + var heightR = $('.f').height();// высота экрана | ||
18 | + var widthR = $(window).width();// ширина экрана | ||
19 | + | ||
20 | + $('#bg').css({'height':heightR+100}); | ||
21 | + ", View::POS_READY, 'bg'); | ||
22 | + $this->bg = Bg::find()->orderBy('random()')->one(); | ||
23 | + } | ||
24 | + | ||
25 | + public function run(){ | ||
26 | + return '<a id="bg" style="width:100%;height:100%;position:absolute;z-index:-1;background: url(/storage/bg/'.$this->bg->image.') center top no-repeat;" href="'.$this->bg->url.'" title="'.$this->bg->title.'"></a> | ||
27 | +'; | ||
28 | + } | ||
29 | +} | ||
30 | +?> | ||
0 | \ No newline at end of file | 31 | \ No newline at end of file |
1 | +<?php | ||
2 | +namespace frontend\components; | ||
3 | + | ||
4 | +use Yii; | ||
5 | +use yii\base\Widget; | ||
6 | +use yii\helpers\Html; | ||
7 | +use yii\helpers\Url; | ||
8 | +use yii\helpers\ArrayHelper; | ||
9 | + | ||
10 | + | ||
11 | +class HreflangWidget extends Widget{ | ||
12 | + public $bg; | ||
13 | + | ||
14 | + public function init(){ | ||
15 | + parent::init(); | ||
16 | + } | ||
17 | + | ||
18 | + public function translateCurrentRequest($language) | ||
19 | + { | ||
20 | + $params = ArrayHelper::merge( | ||
21 | + ['/' . ltrim(Yii::$app->requestedRoute, '/')], | ||
22 | + Yii::$app->request->getQueryParams(), | ||
23 | + [ | ||
24 | + 'language' => $language, | ||
25 | + ] | ||
26 | + ); | ||
27 | + return Url::to($params); | ||
28 | + } | ||
29 | + | ||
30 | + public function run(){ | ||
31 | + //$lang = (Yii::$app->language=='ru') ? 'en' : 'ru'; | ||
32 | + $result = ''; | ||
33 | + foreach (Yii::$app->urlManager->languages as $language) { | ||
34 | + if ($language === Yii::$app->language) { | ||
35 | + // skip current language | ||
36 | + continue; | ||
37 | + } | ||
38 | + | ||
39 | + $result.= Html::tag( | ||
40 | + 'link', | ||
41 | + '', | ||
42 | + [ | ||
43 | + 'rel' => 'alternate', | ||
44 | + 'hreflang' => $language, | ||
45 | + 'href' => $this->translateCurrentRequest($language), | ||
46 | + ] | ||
47 | + ); | ||
48 | + } | ||
49 | + return $result; | ||
50 | + } | ||
51 | +} | ||
52 | +?> | ||
0 | \ No newline at end of file | 53 | \ No newline at end of file |
1 | +<?php | ||
2 | +namespace frontend\components; | ||
3 | +class Text | ||
4 | +{ | ||
5 | + public static function getShort($text,$count){ | ||
6 | + $text=strip_tags($text); | ||
7 | + if(mb_strlen($text, 'UTF-8')>$count) | ||
8 | + { | ||
9 | + //$pos = mb_strpos($text, ' ', $count, 'UTF-8'); | ||
10 | + $text = mb_substr($text, 0, $count, 'UTF-8'); | ||
11 | + return $text.'...'; | ||
12 | + } | ||
13 | + else | ||
14 | + return $text; | ||
15 | + } | ||
16 | +} | ||
0 | \ No newline at end of file | 17 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use frontend\models\Articles; | ||
8 | +use yii\web\HttpException; | ||
9 | +use yii\data\Pagination; | ||
10 | + | ||
11 | +class ArticlesController extends Controller | ||
12 | +{ | ||
13 | + | ||
14 | + public function actionIndex() | ||
15 | + { | ||
16 | + | ||
17 | + $query = Articles::find()->orderBy('id DESC') ; | ||
18 | + $countQuery = clone $query; | ||
19 | + $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize'=>18]); | ||
20 | + $pages->forcePageParam = false; | ||
21 | + $pages->pageSizeParam = false; | ||
22 | + $news = $query->offset($pages->offset) | ||
23 | + ->limit($pages->limit) | ||
24 | + ->all(); | ||
25 | + | ||
26 | + return $this->render('index', [ | ||
27 | + 'pages'=>$pages, | ||
28 | + 'news'=>$news, | ||
29 | + ]); | ||
30 | + } | ||
31 | + | ||
32 | + public function actionShow(){ | ||
33 | + if(!$news = Articles::find()->where(['id'=>$_GET['id']])->one()) | ||
34 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
35 | + | ||
36 | + return $this->render('show', [ | ||
37 | + 'news'=>$news, | ||
38 | + ]); | ||
39 | + } | ||
40 | + | ||
41 | +} | ||
0 | \ No newline at end of file | 42 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\Mod; | ||
8 | +use common\models\Order; | ||
9 | +use common\models\User; | ||
10 | +use common\models\OrdersProducts; | ||
11 | +use yii\web\HttpException; | ||
12 | + | ||
13 | +class BasketController extends Controller | ||
14 | +{ | ||
15 | + | ||
16 | + public function actionIndex(){ | ||
17 | + $modelMod = new Mod; | ||
18 | + $modelOrder = new Order; | ||
19 | + | ||
20 | + if(!empty($_GET['deleteID'])){ | ||
21 | + $modelMod->deleteBasketMod($_GET['deleteID']); | ||
22 | + return Yii::$app->response->redirect(['basket/index']); | ||
23 | + } | ||
24 | + | ||
25 | + if(isset($_POST['update'])){ | ||
26 | + foreach ($_POST['Mod'] as $index=>$row) { | ||
27 | + $modelMod->updateBasket($row); | ||
28 | + } | ||
29 | + }elseif(isset($_POST['Mod'])){ | ||
30 | + $body = ''; | ||
31 | + foreach ($_POST['Mod'] as $index=>$row) { | ||
32 | + $body .= $row['product_name'].' '.$row['name'].' Кол:'.$row['count'].' Цена:'.$row['sum_cost']; | ||
33 | + $body .= "\n\r"; | ||
34 | + } | ||
35 | + $body .= "\n\r"; | ||
36 | + | ||
37 | + if ($modelOrder->load(Yii::$app->request->post()) && $modelOrder->save() && $modelOrder->contact('borisenko.pavel@gmail.com',$body)) { | ||
38 | + foreach ($_POST['Mod'] as $index=>$row) { | ||
39 | + $modelOrdersProducts = new OrdersProducts; | ||
40 | + $mod_id = $row['id']; | ||
41 | + unset($row['id']); | ||
42 | + $data['OrdersProducts'] = $row; | ||
43 | + $data['OrdersProducts']['mod_id'] = $mod_id; | ||
44 | + $data['OrdersProducts']['order_id'] = $modelOrder->id; | ||
45 | + | ||
46 | + $modelOrdersProducts->load($data); | ||
47 | + $modelOrdersProducts->save(); | ||
48 | + } | ||
49 | + if(!Yii::$app->user->id){ | ||
50 | + $modelUser = new User; | ||
51 | + $modelUser->role = 'person'; | ||
52 | + $modelUser->username = $modelOrder->email; | ||
53 | + $modelUser->name = $modelOrder->name; | ||
54 | + $modelUser->phone = $modelOrder->phone; | ||
55 | + $modelUser->password = Yii::$app->getSecurity()->generateRandomString(10); | ||
56 | + $modelUser->group_id = 2; | ||
57 | + $modelUser->save(); | ||
58 | + } | ||
59 | + $modelMod->clearBasket(); | ||
60 | + return Yii::$app->response->redirect(['basket/success']); | ||
61 | + } | ||
62 | + } | ||
63 | + | ||
64 | + $basket_mods = $modelMod->getBasketMods(); | ||
65 | + | ||
66 | + if(!empty(Yii::$app->user->id)){ | ||
67 | + $user = User::findOne(Yii::$app->user->id); | ||
68 | + $modelOrder->email = $user->username; | ||
69 | + $modelOrder->phone = $user->phone; | ||
70 | + $modelOrder->name = $user->name; | ||
71 | + $modelOrder->surname = $user->surname; | ||
72 | + } | ||
73 | + | ||
74 | + return $this->render('index', [ | ||
75 | + 'modelMod'=>$modelMod, | ||
76 | + 'basket_mods'=>$basket_mods, | ||
77 | + 'modelOrder'=>$modelOrder, | ||
78 | + ]); | ||
79 | + } | ||
80 | + | ||
81 | + public function actionItems(){ | ||
82 | + $modelMod = new Mod; | ||
83 | + if(!empty($_GET['deleteID'])){ | ||
84 | + $modelMod->deleteBasketMod($_GET['deleteID']); | ||
85 | + } | ||
86 | + | ||
87 | + if(isset($_POST['Mod'])){ | ||
88 | + foreach ($_POST['Mod'] as $index=>$row) { | ||
89 | + $modelMod->updateBasket($row); | ||
90 | + } | ||
91 | + } | ||
92 | + $basket_mods = $modelMod->getBasketMods(); | ||
93 | + return $this->renderAjax('ajax_items', [ | ||
94 | + 'modelMod'=>$modelMod, | ||
95 | + 'basket_mods'=>$basket_mods, | ||
96 | + ]); | ||
97 | + } | ||
98 | + | ||
99 | + public function actionInfo() | ||
100 | + { | ||
101 | + $modelMod = new Mod; | ||
102 | + $info = $modelMod->rowBasket(); | ||
103 | + return $this->renderAjax('ajax_info', [ | ||
104 | + 'info'=>$info, | ||
105 | + ]); | ||
106 | + } | ||
107 | + | ||
108 | + public function actionAdd(){ | ||
109 | + $modelMod = new Mod; | ||
110 | + if(isset($_GET['mod_id'],$_GET['count']) && $_GET['mod_id']>0 && $_GET['count']>0){ | ||
111 | + $modelMod->addBasket($_GET['mod_id'],$_GET['count']); | ||
112 | + } | ||
113 | + | ||
114 | + Yii::$app->end(); | ||
115 | + } | ||
116 | + | ||
117 | + | ||
118 | + public function actionSuccess(){ | ||
119 | + return $this->render('success'); | ||
120 | + } | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | +} | ||
0 | \ No newline at end of file | 125 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\Brends; | ||
8 | +use common\models\Products; | ||
9 | +use yii\web\HttpException; | ||
10 | +use yii\data\Pagination; | ||
11 | + | ||
12 | +class BrendsController extends Controller | ||
13 | +{ | ||
14 | + | ||
15 | + public function actionShow() | ||
16 | + { | ||
17 | + | ||
18 | + if(!$brend = Brends::find()->where(['translit'=>$_GET['translit']])->one()) | ||
19 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
20 | + | ||
21 | + $query = Products::find()->where('brend_id=:brend_id',[':brend_id' => $brend->id])->with(['catalog'])->innerJoinWith(['cost']); | ||
22 | + $countQuery = clone $query; | ||
23 | + $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize'=>18]); | ||
24 | + $pages->forcePageParam = false; | ||
25 | + $pages->pageSizeParam = false; | ||
26 | + $products = $query->offset($pages->offset) | ||
27 | + ->limit($pages->limit) | ||
28 | + ->all(); | ||
29 | + | ||
30 | + return $this->render('show', [ | ||
31 | + 'brend'=>$brend, | ||
32 | + 'products'=>$products, | ||
33 | + 'pages'=>$pages, | ||
34 | + ]); | ||
35 | + } | ||
36 | + | ||
37 | + public function actionIndex() | ||
38 | + { | ||
39 | + | ||
40 | + $brends = Brends::find()->orderBy('sort ASC')->all(); | ||
41 | + | ||
42 | + return $this->render('index', [ | ||
43 | + 'brends'=>$brends, | ||
44 | + ]); | ||
45 | + } | ||
46 | + | ||
47 | +} | ||
0 | \ No newline at end of file | 48 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\Call; | ||
8 | +use yii\web\HttpException; | ||
9 | + | ||
10 | +class CallController extends Controller | ||
11 | +{ | ||
12 | + | ||
13 | + public function actionIndex() | ||
14 | + { | ||
15 | + | ||
16 | + $model = new Call; | ||
17 | + | ||
18 | + if ($model->load(Yii::$app->request->post()) && $model->contact('borisenko.pavel@gmail.com')) { | ||
19 | + | ||
20 | + return Yii::$app->response->redirect(['call/success']); | ||
21 | + } | ||
22 | + | ||
23 | + return $this->render('index', [ | ||
24 | + 'model'=>$model, | ||
25 | + ]); | ||
26 | + } | ||
27 | + | ||
28 | + | ||
29 | + public function actionSuccess(){ | ||
30 | + return $this->render('success'); | ||
31 | + } | ||
32 | + | ||
33 | +} | ||
0 | \ No newline at end of file | 34 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use yii\filters\AccessControl; | ||
8 | +use yii\filters\VerbFilter; | ||
9 | +use yii\data\ActiveDataProvider; | ||
10 | +use yii\data\Pagination; | ||
11 | +use common\models\User; | ||
12 | +use common\models\Order; | ||
13 | +use common\models\OrdersProducts; | ||
14 | +use common\models\Share; | ||
15 | +use common\models\Price; | ||
16 | + | ||
17 | + | ||
18 | +class IamController extends Controller | ||
19 | +{ | ||
20 | + | ||
21 | + public function behaviors() | ||
22 | + { | ||
23 | + return [ | ||
24 | + 'access' => [ | ||
25 | + 'class' => AccessControl::className(), | ||
26 | + //'only' => ['person'], | ||
27 | + 'rules' => [ | ||
28 | + [ | ||
29 | + 'actions' => ['index','edit','myorders','show_order','share','price'], | ||
30 | + 'allow' => true, | ||
31 | + 'roles' => ['@'], | ||
32 | + ], | ||
33 | + ], | ||
34 | + ], | ||
35 | + 'verbs' => [ | ||
36 | + 'class' => VerbFilter::className(), | ||
37 | + 'actions' => [ | ||
38 | + 'logout' => ['post'], | ||
39 | + ], | ||
40 | + ], | ||
41 | + ]; | ||
42 | + } | ||
43 | + | ||
44 | + | ||
45 | + public function actionIndex() | ||
46 | + { | ||
47 | + | ||
48 | + | ||
49 | + $model = User::findOne(Yii::$app->user->id); | ||
50 | + | ||
51 | + | ||
52 | + return $this->render(Yii::$app->user->identity->role, [ | ||
53 | + 'model' => $model, | ||
54 | + ]); | ||
55 | + } | ||
56 | + | ||
57 | + public function actionEdit() | ||
58 | + { | ||
59 | + | ||
60 | + | ||
61 | + $model = User::findOne(Yii::$app->user->id); | ||
62 | + | ||
63 | + $model->scenario = 'edit_'.Yii::$app->user->identity->role; | ||
64 | + | ||
65 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
66 | + | ||
67 | + return Yii::$app->response->redirect(['/iam/index']); | ||
68 | + | ||
69 | + | ||
70 | + } | ||
71 | + | ||
72 | + return $this->render('edit_'.Yii::$app->user->identity->role, [ | ||
73 | + 'model' => $model, | ||
74 | + ]); | ||
75 | + } | ||
76 | + | ||
77 | + public function actionMyorders(){ | ||
78 | + | ||
79 | + | ||
80 | + $model = Order::find()->where(['user_id'=>Yii::$app->user->id])->orderBy('id DESC')->all(); | ||
81 | + | ||
82 | + return $this->render('myorders',['model'=>$model]); | ||
83 | + | ||
84 | + } | ||
85 | + | ||
86 | + public function actionShow_order() | ||
87 | + { | ||
88 | + $model = Order::findOne($_GET['id']); | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + $dataProvider = new ActiveDataProvider([ | ||
93 | + 'query' => OrdersProducts::find()->where(['order_id'=>$_GET['id']]), | ||
94 | + 'pagination' => [ | ||
95 | + 'pageSize' => 20, | ||
96 | + ], | ||
97 | + ]); | ||
98 | + return $this->render('show_order',['model'=>$model,'dataProvider'=>$dataProvider]); | ||
99 | + } | ||
100 | + | ||
101 | + public function actionShare(){ | ||
102 | + if(!empty($_GET['id'])){ | ||
103 | + if(!$model = Share::find()->where('user_id=:user_id and product_id=:product_id',[':user_id'=>Yii::$app->user->id,':product_id'=>$_GET['id']])->one()) | ||
104 | + $model = new Share; | ||
105 | + | ||
106 | + $model->product_id = $_GET['id']; | ||
107 | + $model->save(); | ||
108 | + | ||
109 | + Yii::$app->getSession()->setFlash('success', 'Этот товар добавлен в закладку!'); | ||
110 | + return $this->redirect(Yii::$app->request->referrer); | ||
111 | + } | ||
112 | + else{ | ||
113 | + /* $dataProvider = new ActiveDataProvider([ | ||
114 | + 'query' => Share::find()->where(['user_id'=>Yii::$app->user->id])->orderBy('date_time DESC'), | ||
115 | + 'pagination' => [ | ||
116 | + 'pageSize' => 20, | ||
117 | + ], | ||
118 | + ]);*/ | ||
119 | + if(!empty($_GET['deleteID'])){ | ||
120 | + $model = Share::find()->where(['user_id'=>Yii::$app->user->id,'id'=>$_GET['deleteID']])->one(); | ||
121 | + $model->delete(); | ||
122 | + return $this->redirect(Yii::$app->request->referrer); | ||
123 | + } | ||
124 | + $query = Share::find()->where(['user_id'=>Yii::$app->user->id])->groupBy('date')->orderBy('date DESC'); | ||
125 | + $countQuery = clone $query; | ||
126 | + $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize'=>20]); | ||
127 | + $pages->forcePageParam = false; | ||
128 | + $pages->pageSizeParam = false; | ||
129 | + $share = $query->offset($pages->offset) | ||
130 | + ->limit($pages->limit) | ||
131 | + ->all(); | ||
132 | + return $this->render('share',['share'=>$share,'pages'=>$pages]); | ||
133 | + } | ||
134 | + } | ||
135 | + | ||
136 | + | ||
137 | + public function actionPrice(){ | ||
138 | + if(!empty($_GET['id'])){ | ||
139 | + if(!$model = Price::find()->where('user_id=:user_id and product_id=:product_id',[':user_id'=>Yii::$app->user->id,':product_id'=>$_GET['id']])->one()) | ||
140 | + $model = new Price; | ||
141 | + | ||
142 | + $model->product_id = $_GET['id']; | ||
143 | + $model->save(); | ||
144 | + | ||
145 | + Yii::$app->getSession()->setFlash('success', 'Этот товар добавлен в закладку Узнать о снижение цены!'); | ||
146 | + return $this->redirect(Yii::$app->request->referrer); | ||
147 | + } | ||
148 | + else{ | ||
149 | + $dataProvider = new ActiveDataProvider([ | ||
150 | + 'query' => Price::find()->where(['user_id'=>Yii::$app->user->id])->orderBy('date_time DESC'), | ||
151 | + 'pagination' => [ | ||
152 | + 'pageSize' => 20, | ||
153 | + ], | ||
154 | + ]); | ||
155 | + return $this->render('price',['dataProvider'=>$dataProvider]); | ||
156 | + } | ||
157 | + } | ||
158 | + | ||
159 | +} | ||
0 | \ No newline at end of file | 160 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\LoginForm; | ||
8 | +use common\models\User; | ||
9 | + | ||
10 | +class LoginController extends Controller | ||
11 | +{ | ||
12 | + //public $layout='layout'; | ||
13 | + public function actionIndex() | ||
14 | + { | ||
15 | + if (!\Yii::$app->user->isGuest) { | ||
16 | + return $this->goHome(); | ||
17 | + } | ||
18 | + | ||
19 | + $model = new LoginForm(); | ||
20 | + if ($model->load(Yii::$app->request->post()) && $model->login()) { | ||
21 | + return $this->goBack(); | ||
22 | + } else { | ||
23 | + return $this->render('index', [ | ||
24 | + 'model' => $model, | ||
25 | + ]); | ||
26 | + } | ||
27 | + } | ||
28 | + | ||
29 | + public function actionLogout() | ||
30 | + { | ||
31 | + Yii::$app->user->logout(); | ||
32 | + | ||
33 | + return $this->goHome(); | ||
34 | + } | ||
35 | + | ||
36 | + public function actionForgot(){ | ||
37 | + | ||
38 | + $model = new User; | ||
39 | + if(!empty($_POST['User']['username'])){ | ||
40 | + if($user = User::find()->where(['username'=>$_POST['User']['username']])->one()) | ||
41 | + $user->sendMsg(); | ||
42 | + Yii::$app->getSession()->setFlash('success', 'На указанный Вами эмейл отправленно письмо с паролем!'); | ||
43 | + return $this->refresh(); | ||
44 | + } | ||
45 | + | ||
46 | + return $this->render('forgot', [ | ||
47 | + 'model' => $model, | ||
48 | + ]); | ||
49 | + } | ||
50 | +} | ||
0 | \ No newline at end of file | 51 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\News; | ||
8 | +use yii\web\HttpException; | ||
9 | +use yii\data\Pagination; | ||
10 | + | ||
11 | +class NewsController extends Controller | ||
12 | +{ | ||
13 | + | ||
14 | + public function actionIndex() | ||
15 | + { | ||
16 | + | ||
17 | + $query = News::find()->orderBy('id DESC') ; | ||
18 | + $countQuery = clone $query; | ||
19 | + $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize'=>18]); | ||
20 | + $pages->forcePageParam = false; | ||
21 | + $pages->pageSizeParam = false; | ||
22 | + $news = $query->offset($pages->offset) | ||
23 | + ->limit($pages->limit) | ||
24 | + ->all(); | ||
25 | + | ||
26 | + return $this->render('index', [ | ||
27 | + 'pages'=>$pages, | ||
28 | + 'news'=>$news, | ||
29 | + ]); | ||
30 | + } | ||
31 | + | ||
32 | + public function actionShow(){ | ||
33 | + if(!$news = News::find()->where(['id'=>$_GET['id']])->one()) | ||
34 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
35 | + | ||
36 | + return $this->render('show', [ | ||
37 | + 'news'=>$news, | ||
38 | + ]); | ||
39 | + } | ||
40 | + | ||
41 | +} | ||
0 | \ No newline at end of file | 42 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use yii\web\HttpException; | ||
8 | +use yii\data\Pagination; | ||
9 | +use yii\web\Session; | ||
10 | +use common\models\Catalog; | ||
11 | +use common\models\Products; | ||
12 | +use common\models\Mod; | ||
13 | +use common\models\Filters; | ||
14 | +use common\models\ProductsFilters; | ||
15 | +use common\models\ProductsType; | ||
16 | +use common\models\ProductsBrends; | ||
17 | +use common\models\ViewProduct; | ||
18 | + | ||
19 | +class ProductsController extends Controller | ||
20 | +{ | ||
21 | + public function actionIndex () | ||
22 | + { | ||
23 | + $modelProducts = new Products; | ||
24 | + $modelProducts->load ($_POST); | ||
25 | + if (! $catalog = Catalog::find ()->where (['translit' => $_GET['translit']])->with ('parent')->one ()) | ||
26 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
27 | + $query = Products::find ()->where ('catalog_id=:catalog_id OR catalog_parent_id=:catalog_parent_id', [':catalog_id' => $catalog->id, ':catalog_parent_id' => $catalog->id])->with (['catalog'])->innerJoinWith (['cost']); | ||
28 | + if (! empty($_POST['Products']['minCost']) && ! empty($_POST['Products']['maxCost'])) $query->andWhere ('(cost>=:minCost and cost<=:maxCost)', [':minCost' => $_POST['Products']['minCost'], ':maxCost' => $_POST['Products']['maxCost']]); | ||
29 | + if (! empty($_GET['brends'])) | ||
30 | + { | ||
31 | + $b = explode (';', $_GET['brends']); | ||
32 | + $query->andWhere (['brend_id' => $b]); | ||
33 | + } | ||
34 | + if (! empty($_GET['filters'])) | ||
35 | + { | ||
36 | + $l = explode (';', $_GET['filters']); | ||
37 | + $items = Filters::find ()->where (['parent_id' => 0])->all (); | ||
38 | + foreach ($items as $key => $it) | ||
39 | + { | ||
40 | + $f = []; | ||
41 | + foreach ($it->childs as $c) | ||
42 | + { | ||
43 | + if (in_array ($c['id'], $l)) $f[] = $c['id']; | ||
44 | + } | ||
45 | + if (count ($f) > 0) | ||
46 | + $query->innerJoin ('productsFilters as filter_' . $key, 'filter_' . $key . '.product_id=products.id')->andWhere (['filter_' . $key . '.filter_id' => $f]); | ||
47 | + // $childs->leftJoin('productsFilters as pf_'.$key, 'pf_'.$key.'.product_id = productsFilters.product_id')->andWhere(['pf_'.$key.'.filter_id'=>$f]); | ||
48 | + } | ||
49 | + } | ||
50 | + if (! empty($modelProducts->fasovka)) | ||
51 | + { | ||
52 | + $query->innerJoinWith (['fasovka'])->andWhere ([ProductsFasovka::tableName () . '.fasovka_id' => $modelProducts->fasovka]); | ||
53 | + } | ||
54 | + if (! empty($modelProducts->type)) | ||
55 | + { | ||
56 | + $query->innerJoinWith (['type'])->andWhere ([ProductsType::tableName () . '.type_id' => $modelProducts->type]); | ||
57 | + } | ||
58 | + if (! empty($modelProducts->brends)) | ||
59 | + { | ||
60 | + $query->innerJoinWith (['brends'])->andWhere ([ProductsBrends::tableName () . '.brend_id' => $modelProducts->brends]); | ||
61 | + } | ||
62 | + $query->groupBy (['id']); | ||
63 | + $countQuery = clone $query; | ||
64 | + $pages = new Pagination(['totalCount' => $countQuery->count (), 'pageSize' => 15]); | ||
65 | + $pages->forcePageParam = false; | ||
66 | + $pages->pageSizeParam = false; | ||
67 | + $products = $query->offset ($pages->offset) | ||
68 | + ->limit ($pages->limit) | ||
69 | + ->all (); | ||
70 | + | ||
71 | + return $this->render ('index', [ | ||
72 | + 'modelProducts' => $modelProducts, | ||
73 | + 'catalog' => $catalog, | ||
74 | + 'pages' => $pages, | ||
75 | + 'products' => $products, | ||
76 | + ]); | ||
77 | + } | ||
78 | + | ||
79 | + public function actionSearch () | ||
80 | + { | ||
81 | + $query = Products::find ()->innerJoinWith (['catalog'])->innerJoinWith (['cost'])->innerJoinWith (['brend']); | ||
82 | + if (! empty($_GET['search_str'])) | ||
83 | + { | ||
84 | + $query->andWhere (['like', 'products.name', $_GET['search_str']]); | ||
85 | + $query->orWhere (['like', 'catalog.name', $_GET['search_str']]); | ||
86 | + $query->orWhere (['like', 'catalog_brends.name', $_GET['search_str']]); | ||
87 | + $query->orWhere (['like', 'mod.art', $_GET['search_str']]); | ||
88 | + } | ||
89 | + $query->groupBy (['id']); | ||
90 | + $countQuery = clone $query; | ||
91 | + $pages = new Pagination(['totalCount' => $countQuery->count (), 'pageSize' => 20]); | ||
92 | + $pages->forcePageParam = false; | ||
93 | + $pages->pageSizeParam = false; | ||
94 | + $products = $query->offset ($pages->offset) | ||
95 | + ->limit ($pages->limit) | ||
96 | + ->all (); | ||
97 | + | ||
98 | + return $this->render ('search', [ | ||
99 | + 'pages' => $pages, | ||
100 | + 'products' => $products, | ||
101 | + ]); | ||
102 | + } | ||
103 | + | ||
104 | + public function actionShow () | ||
105 | + { | ||
106 | + if (! $catalog = Catalog::find ()->where (['translit' => $_GET['translit_rubric']])->with ('parent')->one ()) | ||
107 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
108 | + if (! $product = Products::find ()->where (['id' => $_GET['id']])->one ()) | ||
109 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
110 | + ViewProduct::add ($product->id); | ||
111 | + | ||
112 | + return $this->render ('show', [ | ||
113 | + 'catalog' => $catalog, | ||
114 | + 'product' => $product, | ||
115 | + ]); | ||
116 | + } | ||
117 | + | ||
118 | + public function actionCompare () | ||
119 | + { | ||
120 | + $session = new Session; | ||
121 | + $session->open (); | ||
122 | + if (! empty($_GET['id'])) | ||
123 | + { | ||
124 | + $i = 0; | ||
125 | + if (isset($session['compare'])) | ||
126 | + { | ||
127 | + foreach ($session['compare'] as $key => $compare) | ||
128 | + { | ||
129 | + if ($_GET['id'] == $compare) | ||
130 | + { | ||
131 | + $i++; | ||
132 | + } | ||
133 | + } | ||
134 | + } | ||
135 | + if ($i == 0) | ||
136 | + { | ||
137 | + $data[] = $_GET['id']; | ||
138 | + $session['compare'] = $data; | ||
139 | + } | ||
140 | + Yii::$app->getSession ()->setFlash ('success', 'Этот товар добавлен к сравнению!'); | ||
141 | + | ||
142 | + return $this->redirect (Yii::$app->request->referrer); | ||
143 | + } | ||
144 | + else | ||
145 | + { | ||
146 | + //print_r($session['compare']); | ||
147 | + $products = Products::find ()->where (['id' => $session['compare']])->all (); | ||
148 | + | ||
149 | + return $this->render ('compare', [ | ||
150 | + 'products' => $products, | ||
151 | + ]); | ||
152 | + } | ||
153 | + } | ||
154 | +} | ||
0 | \ No newline at end of file | 155 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use yii\filters\AccessControl; | ||
8 | +use yii\filters\VerbFilter; | ||
9 | +use common\models\LoginForm; | ||
10 | +use common\models\User; | ||
11 | + | ||
12 | + | ||
13 | +class RegController extends Controller | ||
14 | +{ | ||
15 | + public function behaviors() | ||
16 | + { | ||
17 | + return [ | ||
18 | + 'access' => [ | ||
19 | + 'class' => AccessControl::className(), | ||
20 | + //'only' => ['person'], | ||
21 | + 'rules' => [ | ||
22 | + [ | ||
23 | + 'actions' => ['person','captcha'], | ||
24 | + 'allow' => true, | ||
25 | + 'roles' => ['?'], | ||
26 | + ], | ||
27 | + ], | ||
28 | + ], | ||
29 | + 'verbs' => [ | ||
30 | + 'class' => VerbFilter::className(), | ||
31 | + 'actions' => [ | ||
32 | + 'logout' => ['post'], | ||
33 | + ], | ||
34 | + ], | ||
35 | + ]; | ||
36 | + } | ||
37 | + | ||
38 | + public function actions() | ||
39 | + { | ||
40 | + return [ | ||
41 | + 'captcha' => [ | ||
42 | + 'class' => 'yii\captcha\CaptchaAction', | ||
43 | + ], | ||
44 | + ]; | ||
45 | + } | ||
46 | + | ||
47 | + private function saveUser($scenario = null){ | ||
48 | + $model = new User(); | ||
49 | + | ||
50 | + $model = (!empty($_GET['id'])) ? User::findOne($_GET['id']) : new User; | ||
51 | + if(!empty($scenario))$model->scenario = $scenario; | ||
52 | + | ||
53 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
54 | + | ||
55 | + $modelLogin = new LoginForm(); | ||
56 | + $modelLogin->username = $model->username; | ||
57 | + $modelLogin->password = $model->password; | ||
58 | + $modelLogin->login(); | ||
59 | + return Yii::$app->response->redirect(['/iam']); | ||
60 | + | ||
61 | + | ||
62 | + } | ||
63 | + | ||
64 | + return $model; | ||
65 | + } | ||
66 | + | ||
67 | + public function actionPerson() | ||
68 | + { | ||
69 | + | ||
70 | + $model = $this->saveUser('person'); | ||
71 | + | ||
72 | + | ||
73 | + return $this->render('person', [ | ||
74 | + 'model' => $model, | ||
75 | + ]); | ||
76 | + } | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | +} | ||
0 | \ No newline at end of file | 81 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\Subscribe; | ||
8 | +use yii\web\HttpException; | ||
9 | +use yii\data\Pagination; | ||
10 | + | ||
11 | +class SubscribeController extends Controller | ||
12 | +{ | ||
13 | + | ||
14 | + public function actionIndex() | ||
15 | + { | ||
16 | + $model = new Subscribe; | ||
17 | + | ||
18 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
19 | + | ||
20 | + Yii::$app->getSession()->setFlash('success', 'Вы успешно подписались на рассылку!'); | ||
21 | + return $this->refresh(); | ||
22 | + } | ||
23 | + return $this->render('index',['model'=>$model]); | ||
24 | + } | ||
25 | + | ||
26 | +} | ||
0 | \ No newline at end of file | 27 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\web\Controller; | ||
7 | +use common\models\Page; | ||
8 | +use yii\web\HttpException; | ||
9 | + | ||
10 | +class TextController extends Controller | ||
11 | +{ | ||
12 | + | ||
13 | + public function actionIndex() | ||
14 | + { | ||
15 | + | ||
16 | + if(!$modelText = Page::find()->where(['translit'=>$_GET['translit']])->one()) | ||
17 | + throw new HttpException(404, 'Данной странице не существует!'); | ||
18 | + | ||
19 | + return $this->render('index', [ | ||
20 | + 'text'=>$modelText, | ||
21 | + ]); | ||
22 | + } | ||
23 | + | ||
24 | +} | ||
0 | \ No newline at end of file | 25 | \ No newline at end of file |
1 | +[23-Mar-2015 04:22:39 UTC] PHP Fatal error: Class 'yii\web\Controller' not found in /home/webplusn/public_html/yii2/controllers/SiteController.php on line 14 |
1 | +<?php | ||
2 | +use yii\helpers\Html; | ||
3 | +use yii\helpers\Url; | ||
4 | +?> | ||
5 | +<div class="black hidden"> | ||
6 | + <div class="item_added_win"> | ||
7 | + <a href="#" class="black_close"></a> | ||
8 | + <div class="block_content"> | ||
9 | + <h2>Товар добавлен в корзину</h2> | ||
10 | + <div class="items"> | ||
11 | + <div class="basket_items"> | ||
12 | + | ||
13 | + Загрузка... | ||
14 | + | ||
15 | + </div> | ||
16 | + <div style="display:table;margin-top:25px;"> | ||
17 | + <div class="cont_shop_but"><a href="#" class="cont_shop">Продолжить покупки</a></div> | ||
18 | + <div style="display:table-cell;padding-left:240px;"> | ||
19 | + | ||
20 | + <a href="<?=Url::to(['basket/index'])?>" class="submit4 bottom3" style="color:white;">Оформить заказ</a> | ||
21 | + </div> | ||
22 | + | ||
23 | + | ||
24 | + </div> | ||
25 | + </div> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | +</div> | ||
0 | \ No newline at end of file | 29 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\widgets\ActiveForm; | ||
3 | +use yii\helpers\Html; | ||
4 | +?> | ||
5 | +<?php $form = ActiveForm::begin(['enableClientScript' => false,'id'=>'basket_form2']); ?> | ||
6 | +<?foreach($basket_mods as $i=>$item):?> | ||
7 | +<div class="basket_item"> | ||
8 | + <?php echo $form->field($item,'['.$i.']id')->hiddenInput()->label(false); ?> | ||
9 | + <div style="display: table-cell;vertical-align: middle;"><a href="#" data-id="<?=$item->id?>" class="delete_button" style="margin-right:20px;"></a></div> | ||
10 | + <div style="width:100px;height:100px;display: table-cell;vertical-align: middle; border:1px solid #d2d2d2;text-align:center;margin-left:10px;margin-right:10px;"><img src="<?=Yii::$app->request->baseUrl.'/upload/products/ico/'.$item->image?>" style="margin:0;" width="100"></div> | ||
11 | + <div style="display: table-cell;vertical-align: middle; font-size:15px;width:210px; font-weight:normal;padding-left:15px;"> | ||
12 | + <div><?=$item->product_name?></div> | ||
13 | + <div style="text-transform:none; margin-top:20px; font-weight:bold;"> | ||
14 | + <?if($item->old_cost>0):?><div style="text-decoration:line-through;font-size:13px;"><?=$item->old_cost?> грн.</div><?endif;?> | ||
15 | + <div style="font-size:15px;color:#f75d50;"><?=$item->cost?> грн.</div> | ||
16 | + </div> | ||
17 | + </div> | ||
18 | + <div style="display: table-cell;vertical-align: middle;"> | ||
19 | + <a href="#" style="color:#95ba2f" class="minus"></a><?php echo $form->field($item,'['.$i.']count',['template'=>'{input}'])->textInput(['type'=>'number','class' => 'item_num','disabled1'=>true])->label(false); ?><a href="#" style="color:#95ba2f" class="plus"></a> | ||
20 | + </div> | ||
21 | + <div style="display: table-cell;vertical-align: middle; font-size:16px;color:#f75d50; font-weight:bold; padding-left:54px;"><?=$item->sum_cost?> грн.</div> | ||
22 | + <div style="clear:both;"></div> | ||
23 | +</div> | ||
24 | +<?endforeach;?> | ||
25 | + | ||
26 | + <div class="basket_sum"> | ||
27 | + <div class="sum_text" style="float:left;">Всего: <span><?=$modelMod->getSumCost()?> грн.</span></div> | ||
28 | + </div> | ||
29 | +<?php ActiveForm::end(); ?> | ||
0 | \ No newline at end of file | 30 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\web\View; | ||
5 | +use yii\helpers\ArrayHelper; | ||
6 | +use yii\widgets\Breadcrumbs; | ||
7 | +use yii\bootstrap\ActiveForm; | ||
8 | +use app\models\Delivery; | ||
9 | + | ||
10 | +$this->title = 'Корзина'; | ||
11 | +$this->registerMetaTag(['name' => 'description', 'content' => 'Корзина']); | ||
12 | +$this->registerMetaTag(['name' => 'keywords', 'content' => 'Корзина']); | ||
13 | + | ||
14 | +$this->registerJsFile(Yii::$app->request->baseUrl.'/js/jquery.mask.js',['position'=>View::POS_HEAD,'depends'=>['yii\web\YiiAsset']]); | ||
15 | + | ||
16 | +$this->registerJs(" | ||
17 | +$('#order-phone,#order-phone2').mask('(000) 000-0000'); | ||
18 | +", View::POS_READY, 'mask'); | ||
19 | + | ||
20 | + | ||
21 | +$this->registerJs(" | ||
22 | +$('#order-delivery input[type=\"radio\"]').click(function(){ | ||
23 | + $('.delivery-data').hide(); | ||
24 | + $('#delivery-data-'+$(this).val()).show(); | ||
25 | +}); | ||
26 | +", View::POS_READY, 'order-delivery'); | ||
27 | +?> | ||
28 | + <nav class="bread-crumbs"> | ||
29 | + <?= Breadcrumbs::widget([ | ||
30 | + 'links' => [ | ||
31 | + 'Корзина' | ||
32 | + ], | ||
33 | + ]) ?> | ||
34 | + <div class="both"></div> | ||
35 | + </nav> | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | +<div class="layout"> | ||
40 | + | ||
41 | + <h1>Корзина</h1> | ||
42 | +<div class="ten"></div> | ||
43 | +<?= Html::a('Вернуться в каталог', ['/site/index'], ['class'=>'btn-success']) ?> | ||
44 | +<?php $form = ActiveForm::begin(['enableClientScript' => false]); ?> | ||
45 | +<div class="rightbar"> | ||
46 | + <div class="form-order"> | ||
47 | +<?php echo $form->field($modelOrder,'surname'); ?> | ||
48 | +<?php echo $form->field($modelOrder,'name'); ?> | ||
49 | +<?php echo $form->field($modelOrder,'patronymic'); ?> | ||
50 | +<?php echo $form->field($modelOrder,'phone'); ?> | ||
51 | +<?php echo $form->field($modelOrder,'phone2'); ?> | ||
52 | +<?php echo $form->field($modelOrder,'city'); ?> | ||
53 | +<?php echo $form->field($modelOrder,'adress'); ?> | ||
54 | +<?php echo $form->field($modelOrder,'email'); ?> | ||
55 | + <?= $form->field($modelOrder, 'delivery') | ||
56 | + ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title')) | ||
57 | + ?> | ||
58 | +<div class="both"></div> | ||
59 | + | ||
60 | +<?foreach(Delivery::find()->where(['parent_id'=>0])->all() as $item):?> | ||
61 | +<div class='delivery-data' id='delivery-data-<?=$item->id?>'> | ||
62 | + <?=$item->text?> | ||
63 | + <?= $form->field($modelOrder, 'delivery') | ||
64 | + ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>$item->id])->asArray()->all(), 'id', 'title'),['id' => 'order-delivery-childs'])->label(false) | ||
65 | + ?> | ||
66 | +</div> | ||
67 | +<?endforeach;?> | ||
68 | + | ||
69 | +<?php echo $form->field($modelOrder, 'payment')->radioList(['Оплатить наличными'=>'Оплатить наличными','Оплатить на карту Приват Банка'=>'Оплатить на карту Приват Банка','Оплатить по безналичному расчету'=>'Оплатить по безналичному расчету','Оплатить Правекс-телеграф'=>'Оплатить Правекс-телеграф','Наложенным платежом'=>'Наложенным платежом']); ?> | ||
70 | +<div class="both"></div> | ||
71 | + | ||
72 | + | ||
73 | +<?php echo $form->field($modelOrder,'body')->textarea(['rows'=>7]); ?> | ||
74 | +<?php echo Html::submitButton(' Оформить заказ ',array('class'=>'submit4')); ?> | ||
75 | + </div> | ||
76 | +</div> | ||
77 | + <div class="content"> | ||
78 | + | ||
79 | + | ||
80 | +<?foreach($basket_mods as $i=>$item):?> | ||
81 | + <div class="basket_item"> | ||
82 | + <a href="<?=Url::to(['products/show','translit_rubric'=>$item->translit_rubric,'translit'=>$item->translit,'id'=>$item->product_id])?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/products/ico/'.$item->image?>" border="0" width="90" height="120" align="left" /></a> | ||
83 | + <div class="info"> | ||
84 | + <a href="<?=Url::to(['products/show','translit_rubric'=>$item->translit_rubric,'translit'=>$item->translit,'id'=>$item->product_id])?>" class="link2"><?=$item->product_name?></a> | ||
85 | + <p>Код: <?=$item->art?>, цвет: <?=$item->color?></p> | ||
86 | + <?php echo $form->field($item,'['.$i.']id')->hiddenInput()->label(false); ?> | ||
87 | + <?php echo $form->field($item,'['.$i.']product_name')->hiddenInput()->label(false); ?> | ||
88 | + <?php echo $form->field($item,'['.$i.']art')->hiddenInput()->label(false); ?> | ||
89 | + <?php echo $form->field($item,'['.$i.']name')->hiddenInput()->label(false); ?> | ||
90 | + <?php echo $form->field($item,'['.$i.']cost')->hiddenInput()->label(false); ?> | ||
91 | + <?php echo $form->field($item,'['.$i.']sum_cost')->hiddenInput()->label(false); ?> | ||
92 | + <div class="count"> | ||
93 | + <div class="fr txtf"><span style="color:silver">цена за один <?=$item->cost?> грн,</span> цена <?=$item->sum_cost?> грн</div> | ||
94 | + <label for="count" class="txtf">Количество</label> <?php echo $form->field($item,'['.$i.']count')->textInput(['type'=>'number'])->label(false); ?><div class="both"></div> | ||
95 | + </div> | ||
96 | + <a href="<?=Url::to(['basket/index','deleteID'=>$item->id]);?>" class="del">Удалить</a> | ||
97 | + </div><div class="both"></div> | ||
98 | + </div> | ||
99 | +<?endforeach;?> | ||
100 | + | ||
101 | +<?php echo Html::submitButton(' Пересчитать ',array('name'=>"update",'class'=>'submit4 fl')); ?> | ||
102 | + | ||
103 | + <div class="total"> | ||
104 | + <?= $form->field($modelOrder, 'total')->hiddenInput(['value'=>$modelMod->getSumCost()])->label(false); ?> | ||
105 | + Общая сумма: <?=$modelMod->getSumCost();?> грн. | ||
106 | + </div> | ||
107 | +<div class="both"></div> | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + </div><div class="both"></div> | ||
112 | + <?php ActiveForm::end(); ?> | ||
113 | + | ||
114 | + | ||
115 | +</div> | ||
0 | \ No newline at end of file | 116 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\Breadcrumbs; | ||
5 | +use yii\widgets\ActiveForm; | ||
6 | + | ||
7 | +$this->title = 'Корзина'; | ||
8 | +$this->registerMetaTag(['name' => 'description', 'content' => 'Корзина']); | ||
9 | +$this->registerMetaTag(['name' => 'keywords', 'content' => 'Корзина']); | ||
10 | + | ||
11 | +?> | ||
12 | + <nav class="bread-crumbs"> | ||
13 | + <?= Breadcrumbs::widget([ | ||
14 | + 'links' => [ | ||
15 | + 'Корзина' | ||
16 | + ], | ||
17 | + ]) ?> | ||
18 | + <div class="both"></div> | ||
19 | + </nav> | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | +<div class="layout"> | ||
24 | + | ||
25 | + <h1>Корзина</h1> | ||
26 | +Ваш заказ принят! Большое Спасибо! Менеджер с Вами свяжется в ближайшее время. | ||
27 | + | ||
28 | +</div> |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\Breadcrumbs; | ||
5 | + | ||
6 | +$this->title = 'Бренды'; | ||
7 | +$this->registerMetaTag(['name' => 'description', 'content' => 'Бренды']); | ||
8 | +$this->registerMetaTag(['name' => 'keywords', 'content' => 'Бренды']); | ||
9 | + | ||
10 | +$this->params['breadcrumbs'][] = ['label'=>'Бренды','url'=>['/brends/index']]; | ||
11 | +?> | ||
12 | + | ||
13 | + <nav class="bread-crumbs"> | ||
14 | + <?= Breadcrumbs::widget([ | ||
15 | + 'links' => $this->params['breadcrumbs'], | ||
16 | + ]) | ||
17 | + | ||
18 | + ?> | ||
19 | + <div class="both"></div> | ||
20 | + </nav> | ||
21 | + | ||
22 | + | ||
23 | +<div class="loyout"> | ||
24 | + | ||
25 | + <h1>Бренды</h1> | ||
26 | + | ||
27 | + <ul class="brends_list"> | ||
28 | + <?foreach($brends as $item):?> | ||
29 | + <li> | ||
30 | + | ||
31 | + <a href="<?=Url::to(['brends/show','translit'=>$item->translit])?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/brends/'.$item->image?>" width="150" height="150" border="0" /></a> | ||
32 | + <br /> | ||
33 | + <a href="<?=Url::to(['brends/show','translit'=>$item->translit])?>" class="name"><?=$item->name?></a> | ||
34 | + | ||
35 | + | ||
36 | + </li> | ||
37 | + <?endforeach;?><div class="both"></div> | ||
38 | + </ul> | ||
39 | + | ||
40 | +</div> |
1 | +<?php | ||
2 | + use yii\helpers\Url; | ||
3 | + use yii\helpers\Html; | ||
4 | + use yii\widgets\Breadcrumbs; | ||
5 | + use yii\widgets\LinkPager; | ||
6 | + use yii\web\View; | ||
7 | + | ||
8 | + $this->title = $brend->name; | ||
9 | + $this->registerMetaTag (['name' => 'description', 'content' => $brend->name]); | ||
10 | + $this->registerMetaTag (['name' => 'keywords', 'content' => $brend->name]); | ||
11 | + $this->params['breadcrumbs'][] = ['label' => 'Бренды', 'url' => ['/brends/index']]; | ||
12 | + $this->params['breadcrumbs'][] = ['label' => $brend->name]; | ||
13 | + | ||
14 | +?> | ||
15 | + | ||
16 | +<nav class="bread-crumbs"> | ||
17 | + <?= Breadcrumbs::widget ([ | ||
18 | + 'links' => $this->params['breadcrumbs'], | ||
19 | + ]) | ||
20 | + ?> | ||
21 | + <div class="both"></div> | ||
22 | +</nav> | ||
23 | + | ||
24 | + | ||
25 | +<div class="loyout"> | ||
26 | + <div class="content"> | ||
27 | + <h1><?= $brend->name ?></h1> | ||
28 | + | ||
29 | + <div class="products pn"> | ||
30 | + | ||
31 | + <ul> | ||
32 | + | ||
33 | + <?phpforeach ($products as $item): ?> | ||
34 | + <li class="item"> | ||
35 | + <?= $this->render ('/products/_product', ['item' => $item, 'num' => 3]) ?> | ||
36 | + </li> | ||
37 | + <?phpendforeach; ?> | ||
38 | + | ||
39 | + </ul> | ||
40 | + <div class="both"></div> | ||
41 | + </div> | ||
42 | + | ||
43 | + <?= LinkPager::widget ([ | ||
44 | + 'pagination' => $pages, | ||
45 | + 'registerLinkTags' => true, | ||
46 | + ]); ?> | ||
47 | + | ||
48 | + | ||
49 | + </div> | ||
50 | +</div> | ||
0 | \ No newline at end of file | 51 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use app\models\Catalog; | ||
4 | +?> | ||
5 | + <div class="filtes_box"><div class="w"> | ||
6 | + <ul> | ||
7 | + <?foreach(Catalog::getCatalogs() as $item):?> | ||
8 | + <li> | ||
9 | + <a href="<?=Url::to(['catalog/index','translit'=>$item->translit])?>" <?if($catalog->id = $item->id):?>class="active"<?endif;?>><?=$item->name?></a> | ||
10 | + <?if($catalog->id = $item->id && !empty($item->childs)):?> | ||
11 | + <ul> | ||
12 | + <?foreach($item->childs as $item_child):?> | ||
13 | + <li><a href="<?=Url::to(['products/index','translit'=>$item_child->translit])?>"><?=$item_child->name?></a></li> | ||
14 | + <?endforeach;?> | ||
15 | + </ul> | ||
16 | + <?endif;?> | ||
17 | + </li> | ||
18 | + <?endforeach;?> | ||
19 | + </ul> | ||
20 | + </div></div> | ||
0 | \ No newline at end of file | 21 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Html; | ||
3 | +use yii\web\View; | ||
4 | +use yii\helpers\Url; | ||
5 | +use yii\widgets\Breadcrumbs; | ||
6 | + | ||
7 | +$this->title = 'Каталог'; | ||
8 | +$this->registerMetaTag(['name' => 'description', 'content' => 'Каталог']); | ||
9 | +$this->registerMetaTag(['name' => 'keywords', 'content' => 'Каталог']); | ||
10 | + | ||
11 | +?> | ||
12 | + <nav class="bread-crumbs"> | ||
13 | + <?= Breadcrumbs::widget([ | ||
14 | + 'links' => ['Каталог'], | ||
15 | + ]) ?> | ||
16 | + <div class="both"></div> | ||
17 | + </nav> | ||
18 | +<div class="loyout"> | ||
19 | +<div class="content"> | ||
20 | + <h2>Каталог</h2> | ||
21 | + <?/**foreach($catalogs as $item):?> | ||
22 | + <div class="rubric_item"> | ||
23 | + <a href="<?=Url::to(['catalog/index','translit'=>$item->translit])?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/catalog/ico/'.$item->image?>" width="195" height="186" border="0" /></a> | ||
24 | + <a href="<?=Url::to(['catalog/index','translit'=>$item->translit])?>" class="name"><?=$item->name;?></a> | ||
25 | + </div> | ||
26 | + <?phpendforeach;**/?> | ||
27 | + | ||
28 | + | ||
29 | + <div class="rubrics"> | ||
30 | + <ul> | ||
31 | + <li class="item1"><a href="<?=Url::to(['products/index','translit'=>'ryukzaki'])?>">Рюкзаки</a></li> | ||
32 | + <li class="item2"><a href="<?=Url::to(['products/index','translit'=>'sumki'])?>">сумки</a></li> | ||
33 | + <li class="item3"><a href="<?=Url::to(['products/index','translit'=>'chehly'])?>">чехлы</a></li> | ||
34 | + <li class="item4"><a href="<?=Url::to(['products/index','translit'=>'nesessery'])?>">Несессеры</a></li> | ||
35 | + <li class="item5"><a href="<?=Url::to(['products/index','translit'=>'koshelki'])?>">кошельки</a></li> | ||
36 | + </ul><div class="both"></div> | ||
37 | + </div> | ||
38 | +</div> | ||
39 | +</div> |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use yii\widgets\Breadcrumbs; | ||
4 | +use app\models\Catalog; | ||
5 | +?> | ||
6 | +<?php | ||
7 | +$this->title = $catalog->meta_title; | ||
8 | +$this->registerMetaTag(['name' => 'description', 'content' => $catalog->meta_description]); | ||
9 | +$this->registerMetaTag(['name' => 'keywords', 'content' => $catalog->meta_keywords]); | ||
10 | +?> | ||
11 | + <nav class="bread-crumbs"> | ||
12 | + <?= Breadcrumbs::widget([ | ||
13 | + | ||
14 | + 'links' => [ ['label'=>'Каталог','url'=>['catalog/all']], | ||
15 | + $catalog->name], | ||
16 | + ]) ?> | ||
17 | + <div class="both"></div> | ||
18 | + </nav> | ||
19 | + | ||
20 | +<div class="layout"> | ||
21 | + | ||
22 | + | ||
23 | + <div class="leftbar"> | ||
24 | + <?= $this->render('_catalog_box',['catalog'=>$catalog]) ?> | ||
25 | + | ||
26 | + </div> | ||
27 | + <div class="content"> | ||
28 | + <h1><?=$catalog->name?></h1> | ||
29 | + <div class="ten2"></div> | ||
30 | + | ||
31 | + <?foreach($catalog->childs as $item):?> | ||
32 | + <div class="rubric_item2"> | ||
33 | + <a href="<?=Url::to(['products/index','translit'=>$item->translit])?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/catalog/ico/'.$item->image?>" width="195" height="186" border="0" /></a> | ||
34 | + <a href="<?=Url::to(['products/index','translit'=>$item->translit])?>" class="name"><?=$item->name?></a> | ||
35 | + </div> | ||
36 | + | ||
37 | + <?endforeach;?><div class="both"></div> | ||
38 | + | ||
39 | + <?=$catalog->body?> | ||
40 | + | ||
41 | + </div><div class="both"></div> | ||
42 | + | ||
43 | + | ||
44 | +</div> | ||
0 | \ No newline at end of file | 45 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | + | ||
4 | +?> | ||
5 | +<div class="boxitem"> | ||
6 | + <div class="pixbox"> | ||
7 | + <a href="<?= Url::to([ | ||
8 | + 'products/show', | ||
9 | + 'translit_rubric' => $item->catalog->translit, | ||
10 | + 'translit' => $item->translit, | ||
11 | + 'id' => $item->id]) | ||
12 | + ?>"> | ||
13 | + <img src="<?= Yii::$app->request->baseUrl . '/upload/products/ico/' . $item->imageAvator ?>" border="0"/> | ||
14 | + </a> | ||
15 | + </div> | ||
16 | + <a href="<?= Url::to([ | ||
17 | + 'products/show', | ||
18 | + 'translit_rubric' => $item->catalog->translit, | ||
19 | + 'translit' => $item->translit, | ||
20 | + 'id' => $item->id]) | ||
21 | + ?>" class="name"><?= $item->name ?> | ||
22 | + </a> | ||
23 | + | ||
24 | +<?php | ||
25 | + | ||
26 | + echo '<div class="cost-block">'; | ||
27 | + | ||
28 | + // есть скидка | ||
29 | + if ($item->costMax->old_cost != 0 && $item->costMax->old_cost != $item->costMax->cost) | ||
30 | + { | ||
31 | + // одинаковая скидка | ||
32 | + if ($item->costMax->count_diff == 1) | ||
33 | + { | ||
34 | + echo '<strike><span id=\'old_cost\'>'.$item->costMax->old_cost.'</span> грн.</strike>'; | ||
35 | + } | ||
36 | + } | ||
37 | + | ||
38 | + echo '<p class="cost">'.$item->costMax->cost.' грн.</p>'; | ||
39 | + | ||
40 | + echo '</div>'; | ||
41 | + | ||
42 | +?> | ||
43 | +</div> | ||
44 | + <a href="<?= Url::to([ | ||
45 | + 'products/show', | ||
46 | + 'translit_rubric' => $item->catalog->translit, | ||
47 | + 'translit' => $item->translit, | ||
48 | + 'id' => $item->id]) | ||
49 | + ?>" class="link_buy">Купить</a> | ||
50 | + | ||
51 | +<div class="mycarousel"> | ||
52 | + <ul class="jcarousel jcarousel-skin-tango"> | ||
53 | + <?php foreach ($item->mods as $mods) { ?> | ||
54 | + <li> | ||
55 | + <a href="<?= Url::to([ | ||
56 | + 'products/show', | ||
57 | + 'translit_rubric' => $item->catalog->translit, | ||
58 | + 'translit' => $item->translit, | ||
59 | + 'id' => $item->id, | ||
60 | + '#' => 'm' . $mods->id]) ?>"> | ||
61 | + <img src="<?= Yii::$app->request->baseUrl . '/upload/mod/ico/' . $mods->imageAvator ?>" width="40" | ||
62 | + height="40" alt="<?= $mods->name ?>"/> | ||
63 | + </a> | ||
64 | + </li> | ||
65 | + <?php } ?> | ||
66 | + </ul> | ||
67 | +</div> | ||
0 | \ No newline at end of file | 68 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\widgets\Breadcrumbs; | ||
3 | +use yii\web\View; | ||
4 | + | ||
5 | + | ||
6 | +$this->title = (!empty($product->meta_title))?$product->meta_title:$product->name; | ||
7 | +$this->registerMetaTag(['name' => 'description', 'content' => ((!empty($product->meta_description))?$product->meta_description:$product->name)]); | ||
8 | +$this->registerMetaTag(['name' => 'keywords', 'content' => $product->meta_keywords]); | ||
9 | +$this->registerJs(" | ||
10 | + var checkData = function(obj){ | ||
11 | + $('#cost').text($(obj).data('cost')); | ||
12 | + $('#product_id').val($(obj).data('id')); | ||
13 | + } | ||
14 | + $('.fasovka input[type=\"radio\"]').click(function() { | ||
15 | + checkData(this); | ||
16 | + }); | ||
17 | + checkData($( '.fasovka input:checked' )); | ||
18 | +", View::POS_READY, 'fasovka'); | ||
19 | + | ||
20 | +$this->registerJs(" | ||
21 | + | ||
22 | + $('#product_gallery a').click(function() { | ||
23 | + var image = $(this).attr('href'); | ||
24 | + $('#productPic').attr('src', image); | ||
25 | + return false; | ||
26 | + }); | ||
27 | + | ||
28 | +", View::POS_READY, 'gallery'); | ||
29 | + | ||
30 | +$this->registerJsFile(Yii::$app->request->baseUrl.'/js/jquery.sliderkit.1.9.2.pack.js',['position'=>View::POS_HEAD,'depends'=>['yii\web\YiiAsset']]); | ||
31 | +$this->registerJs(" | ||
32 | + | ||
33 | + $('.skit').sliderkit({ | ||
34 | + cssprefix: 'skit', | ||
35 | + shownavitems: 3, | ||
36 | + auto: false, | ||
37 | + scroll: 1, | ||
38 | + circular: false, | ||
39 | + // freeheight: true, | ||
40 | + scrollspeed: 500 | ||
41 | + }); | ||
42 | + | ||
43 | +", View::POS_READY, 'sliderkit'); | ||
44 | +?> | ||
45 | + <nav class="bread-crumbs"> | ||
46 | + <?= Breadcrumbs::widget([ | ||
47 | + 'links' => [ | ||
48 | + ['label'=>'Каталог','url'=>['catalog/all']], | ||
49 | + ['label'=>$catalog->parent->name,'url'=>['catalog/index','translit'=>$catalog->parent->translit]], | ||
50 | + ['label'=>$catalog->name,'url'=>['products/index','translit'=>$catalog->translit]], | ||
51 | + $product->name, | ||
52 | + ], | ||
53 | + ]) ?> | ||
54 | + <div class="both"></div> | ||
55 | + </nav> | ||
56 | + | ||
57 | +<div class="layout"> | ||
58 | + | ||
59 | + | ||
60 | + <div class="leftbar"> | ||
61 | + <?= $this->render('/catalog/_catalog_box',['catalog'=>$catalog]) ?> | ||
62 | + | ||
63 | + </div> | ||
64 | + <div class="content"> | ||
65 | + <h1><?=$product->name?></h1> | ||
66 | + <div class="ten2"></div> | ||
67 | + | ||
68 | + <div class="leftbar_product"> | ||
69 | + <div class="product_pic_big"> | ||
70 | + <img id="productPic" src="<?=Yii::$app->request->baseUrl.'/upload/products/big/'.$product->image?>" width="400" height="400" border="0" /> | ||
71 | + <div id="pic_notvisible"> | ||
72 | + <img src="<?=Yii::$app->request->baseUrl.'/upload/products/big/'.$product->image?>" width="400" height="400" border="0" /> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <div class='skit'> | ||
76 | + <div class="skit-nav"> | ||
77 | + <div id="product_gallery" class="skit-nav-clip"> | ||
78 | + <ul> | ||
79 | + <?foreach($product->fotos as $key=>$item):?> | ||
80 | + <li> | ||
81 | + <a href="<?=Yii::$app->request->baseUrl.'/upload/fotos/big/'.$item->image?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/fotos/ico/'.$item->image?>" width="100" height="100" border="0" alt="<?=$item->name?>" /></a> | ||
82 | + </li> | ||
83 | + <?endforeach;?> | ||
84 | + </div> | ||
85 | + | ||
86 | + <a href="#" class="skit-btn skit-nav-btn skit-nav-prev"></a> | ||
87 | + <a href="#" class="skit-btn skit-nav-btn skit-nav-next"></a> | ||
88 | + </div> | ||
89 | + </div> | ||
90 | + | ||
91 | + </div> | ||
92 | + <div class="content_product"> | ||
93 | + <p class="txtf">Фасовка</p> | ||
94 | + <div class="fasovka"> | ||
95 | + <?foreach($product->mods as $key=>$item):?> | ||
96 | + <input type="radio" name="fasovka" data-cost="<?=$item->cost?>" data-id="<?=$item->id?>" id="f<?=$key?>" <?=($key==0)?'checked':'';?>> <label for="f<?=$key?>"><?=$item->name?></label> | ||
97 | + <?endforeach;?> | ||
98 | + </div> | ||
99 | + <div class="count"> | ||
100 | + <label for="count" class="txtf">Количество</label> <input id="count" min="1" value="1" type="number" /> | ||
101 | + </div> | ||
102 | + <div class="boy_box"> | ||
103 | + <input type='hidden' id='product_id' /> | ||
104 | + <a href="#" rel='product' class="buy fr">Купить</a> | ||
105 | + <div class="fl txtfb">цена <span id="cost">0</span> грн</div><div class="both"></div> | ||
106 | + </div> | ||
107 | + <div class="info"> | ||
108 | + <p class="txtf">Характеристики</p> | ||
109 | + <?=$product->char?> | ||
110 | + | ||
111 | + <p class="txtf">Описание</p> | ||
112 | + <?=$product->body?> | ||
113 | + </div> | ||
114 | + | ||
115 | + </div> | ||
116 | + <div class="both"></div> | ||
117 | + | ||
118 | + | ||
119 | + </div><div class="both"></div> | ||
120 | + | ||
121 | + | ||
122 | +</div> | ||
0 | \ No newline at end of file | 123 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\Breadcrumbs; | ||
5 | + | ||
6 | +$this->title = 'СРАВНЕНИЕ'; | ||
7 | +$this->registerMetaTag(['name' => 'description', 'content' => 'СРАВНЕНИЕ']); | ||
8 | +$this->registerMetaTag(['name' => 'keywords', 'content' => 'СРАВНЕНИЕ']); | ||
9 | + | ||
10 | +$this->params['breadcrumbs'][] = ['label'=>'Каталог','url'=>['/catalog/all']]; | ||
11 | +$this->params['breadcrumbs'][] = ['label'=>'СРАВНЕНИЕ','url'=>['/products/compare']]; | ||
12 | +?> | ||
13 | + | ||
14 | + | ||
15 | + <nav class="bread-crumbs"> | ||
16 | + <?= Breadcrumbs::widget([ | ||
17 | + 'links' => $this->params['breadcrumbs'], | ||
18 | + ]) ?> | ||
19 | + <div class="both"></div> | ||
20 | + </nav> | ||
21 | + | ||
22 | + | ||
23 | + <h1>СРАВНЕНИЕ</h1> | ||
24 | + <div class="products pn"> | ||
25 | + | ||
26 | + <ul> | ||
27 | + | ||
28 | + <?foreach($products as $item):?> | ||
29 | + <li class="item"> | ||
30 | + <a href="<?=Url::to(['products/show','translit_rubric'=>$item->catalog->translit,'translit'=>$item->translit,'id'=>$item->id])?>"><img src="<?=Yii::$app->request->baseUrl.'/upload/products/ico/'.$item->image?>" width="134" height="200" border="0" /></a> | ||
31 | + <strong><a href="<?=Url::to(['products/show','translit_rubric'=>$item->catalog->translit,'translit'=>$item->translit,'id'=>$item->id])?>" class="name"><?=$item->name?></a></strong> | ||
32 | + <div class="info"> | ||
33 | + <p>Бренд: <?=$item->brend->name?></p> | ||
34 | + <?foreach($item->params as $key=>$param):?> | ||
35 | + <p><?=$param->name?> <?=$param->size?></p> | ||
36 | + <?endforeach;?> | ||
37 | + </div> | ||
38 | + <p class="cost"><?=$item->cost->cost?> грн.</p> | ||
39 | + <a href="<?=Url::to(['products/show','translit_rubric'=>$item->catalog->translit,'translit'=>$item->translit,'id'=>$item->id])?>" class="link_buy">Купить</a> | ||
40 | + | ||
41 | + </li> | ||
42 | + <?endforeach;?> | ||
43 | + | ||
44 | + </ul><div class="both"></div> | ||
45 | + </div> | ||
46 | + |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | + use yii\helpers\Html; | ||
4 | + use yii\widgets\Breadcrumbs; | ||
5 | + use app\models\Catalog; | ||
6 | + use yii\bootstrap\ActiveForm; | ||
7 | + use yii\helpers\ArrayHelper; | ||
8 | + use yii\web\View; | ||
9 | + use yii\widgets\LinkPager; | ||
10 | + use app\models\Filters; | ||
11 | + use app\models\Type; | ||
12 | + use app\models\Brends; | ||
13 | + use app\components\FiltersWidget; | ||
14 | + use app\components\BrendsWidget; | ||
15 | + | ||
16 | +?> | ||
17 | +<?php | ||
18 | +$this->params['catalog_id'] = $catalog->id; | ||
19 | + $this->title = $catalog->meta_title; | ||
20 | + $this->registerMetaTag (['name' => 'description', 'content' => $catalog->meta_description]); | ||
21 | + $this->registerMetaTag (['name' => 'keywords', 'content' => $catalog->meta_keywords]); | ||
22 | + $this->registerCssFile (Yii::$app->request->BaseUrl . '/css/begunok.css'); | ||
23 | + $this->registerJsFile (Yii::$app->request->baseUrl . '/js/jquery.ui-slider.js', ['position' => View::POS_HEAD, 'depends' => ['yii\web\JqueryAsset']]); | ||
24 | + $this->registerJsFile (Yii::$app->request->baseUrl . '/js/begunok.js', ['position' => View::POS_HEAD, 'depends' => ['yii\web\JqueryAsset']]); | ||
25 | + $this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => ['/catalog/all']]; | ||
26 | + if (! empty($catalog->parent)) $this->params['breadcrumbs'][] = ['label' => $catalog->parent->name, 'url' => ['products/index', 'translit' => $catalog->parent->translit]]; | ||
27 | + $this->params['breadcrumbs'][] = ['label' => $catalog->name]; | ||
28 | +?> | ||
29 | +<nav class="bread-crumbs"> | ||
30 | + <?= Breadcrumbs::widget ([ | ||
31 | + 'links' => $this->params['breadcrumbs'], | ||
32 | + ]) | ||
33 | + ?> | ||
34 | + | ||
35 | + | ||
36 | + <div class="both"></div> | ||
37 | +</nav> | ||
38 | + | ||
39 | + | ||
40 | +<div class="loyout"> | ||
41 | + <div class="leftbar"> | ||
42 | + <img src="<?= Yii::$app->request->baseUrl ?>/img/new_coll.png" width="112" height="22"/><br/> | ||
43 | + <img src="<?= Yii::$app->request->baseUrl ?>/img/pro.png" width="42" height="22"/> | ||
44 | + | ||
45 | + <?= BrendsWidget::widget (['translit' => $catalog->translit, 'catalog_id' => $catalog->id]) ?> | ||
46 | + | ||
47 | + <?= FiltersWidget::widget (['translit' => $catalog->translit, 'catalog_id' => $catalog->id]) ?> | ||
48 | + | ||
49 | + <div class="cost_box filters"> | ||
50 | + <div class="begin">Цена</div> | ||
51 | + <?php $form = ActiveForm::begin (['enableClientScript' => false]); ?> | ||
52 | + <input type="hidden" value="500" id="max"/> | ||
53 | + <div class="sliderCont"> | ||
54 | + <div id="begunok"></div> | ||
55 | + </div> | ||
56 | + <div class="formCost"> | ||
57 | + <?php echo $form->field ($modelProducts, 'minCost'); ?> | ||
58 | + <?php echo $form->field ($modelProducts, 'maxCost'); ?> | ||
59 | + </div> | ||
60 | + <?php echo Html::submitButton (' Искать ', ['class' => 'submit4', 'style' => 'margin-left:50px;']); ?> | ||
61 | + <?php ActiveForm::end (); ?> | ||
62 | + <div class="both"></div> | ||
63 | + </div> | ||
64 | + | ||
65 | + </div> | ||
66 | + <div class="content"> | ||
67 | + | ||
68 | + | ||
69 | + <h1><?= $catalog->name ?></h1> | ||
70 | + <div class="products pn"> | ||
71 | + | ||
72 | + <ul> | ||
73 | + | ||
74 | + <?php foreach ($products as $item): ?> | ||
75 | + <li class="item"> | ||
76 | + <?= $this->render ('_product', ['item' => $item, 'num' => 3]) ?> | ||
77 | + </li> | ||
78 | + <?php endforeach; ?> | ||
79 | + | ||
80 | + </ul> | ||
81 | + <div class="both"></div> | ||
82 | + </div> | ||
83 | + | ||
84 | + <?= LinkPager::widget ([ | ||
85 | + 'pagination' => $pages, | ||
86 | + 'registerLinkTags' => true, | ||
87 | + ]); ?> | ||
88 | + <div class="both"></div> | ||
89 | + | ||
90 | + </div> | ||
91 | + <div class="both"></div> | ||
92 | + | ||
93 | + | ||
94 | +</div> | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + |
1 | +<?php | ||
2 | +use yii\helpers\Url; | ||
3 | + use yii\widgets\Breadcrumbs; | ||
4 | + use app\models\Catalog; | ||
5 | + use yii\bootstrap\ActiveForm; | ||
6 | + use yii\helpers\ArrayHelper; | ||
7 | + use yii\web\View; | ||
8 | + use yii\widgets\LinkPager; | ||
9 | + use app\models\Fasovka; | ||
10 | + use app\models\Type; | ||
11 | + use app\models\Brends; | ||
12 | + | ||
13 | +?> | ||
14 | +<?php | ||
15 | +$this->title = 'Поиск'; | ||
16 | + $this->registerMetaTag (['name' => 'description', 'content' => 'Поиск']); | ||
17 | + $this->registerMetaTag (['name' => 'keywords', 'content' => 'Поиск']); | ||
18 | +?> | ||
19 | +<nav class="bread-crumbs"> | ||
20 | + <?= Breadcrumbs::widget ([ | ||
21 | + 'links' => [ | ||
22 | + ['label' => 'Каталог', 'url' => ['catalog/all']], | ||
23 | + 'Поиск', | ||
24 | + ], | ||
25 | + ]) ?> | ||
26 | + <div class="both"></div> | ||
27 | +</nav> | ||
28 | + | ||
29 | +<div class="layout"> | ||
30 | + | ||
31 | + <div class="content"> | ||
32 | + <h1>Поиск</h1> | ||
33 | + | ||
34 | + <div class="ten"></div> | ||
35 | + <?= empty($products) ? 'Не чего не найдено!' : '' ?> | ||
36 | + <div class="products pn"> | ||
37 | + | ||
38 | + <ul> | ||
39 | + | ||
40 | + <?php foreach ($products as $item): ?> | ||
41 | + <li class="item"> | ||
42 | + <?= $this->render ('_product', ['item' => $item, 'num' => 3]) ?> | ||
43 | + </li> | ||
44 | + <?php endforeach; ?> | ||
45 | + | ||
46 | + </ul> | ||
47 | + <div class="both"></div> | ||
48 | + </div> | ||
49 | + <?= LinkPager::widget ([ | ||
50 | + 'pagination' => $pages, | ||
51 | + 'registerLinkTags' => true, | ||
52 | + ]); ?> | ||
53 | + <div> </div> | ||
54 | + <div class="ten"></div> | ||
55 | + | ||
56 | + | ||
57 | + </div> | ||
58 | + | ||
59 | +</div> | ||
60 | + | ||
0 | \ No newline at end of file | 61 | \ No newline at end of file |
1 | +<?php | ||
2 | +use yii\widgets\Breadcrumbs; | ||
3 | + use yii\web\View; | ||
4 | + use yii\helpers\Url; | ||
5 | + | ||
6 | + $this->title = (! empty($product->meta_title)) ? $product->meta_title : $product->name; | ||
7 | + $this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $product->name)]); | ||
8 | + $this->registerMetaTag (['name' => 'keywords', 'content' => $product->meta_keywords]); | ||
9 | + $this->registerJs (' | ||
10 | + | ||
11 | + var checkData = function($index) | ||
12 | + { | ||
13 | + var $source = $(".productLeftBar .product_mod > li").eq($index).find("a"); | ||
14 | + var $target = $(".productLeftBar .cost_box"); | ||
15 | + | ||
16 | + $("#cost").text($source.data("cost")); | ||
17 | + $("#old_cost").text($source.data("old_cost")); | ||
18 | + | ||
19 | + if (parseInt ($source.data("old_cost")) == 0) | ||
20 | + { | ||
21 | + $target.find("strike").hide(); | ||
22 | + } | ||
23 | + else | ||
24 | + { | ||
25 | + $target.find("strike").show(); | ||
26 | + } | ||
27 | + | ||
28 | + $("#product_id").val($source.data("id")); | ||
29 | + $("#art").text($source.data("art")); | ||
30 | + $("#color").text($source.data("color")); | ||
31 | + $("#pic").attr("src",$source.data("image")); | ||
32 | + $("#picoriginal").attr("href",$source.data("imageoriginal")); | ||
33 | + } | ||
34 | + | ||
35 | + $(".product_mod > li").click(function() | ||
36 | + { | ||
37 | + checkData($(this).index()); | ||
38 | + | ||
39 | + Shadowbox.setup($("#picoriginal")); | ||
40 | + | ||
41 | + return false; | ||
42 | + }); | ||
43 | + | ||
44 | + checkData(0); | ||
45 | + | ||
46 | + ', View::POS_READY, 'fasovka'); | ||
47 | + | ||
48 | + $this->registerJs (" | ||
49 | + $('#nav_product li a').addClass('active'); | ||
50 | + $('#nav_product li').find('.info').toggle(); | ||
51 | + | ||
52 | + $('#nav_product li a').bind('click',function() | ||
53 | + { | ||
54 | + if($(this).parent().find('.info').css('display')=='none')$(this).addClass('active'); | ||
55 | + else $(this).removeClass('active'); | ||
56 | + $(this).parent().find('.info').toggle(); | ||
57 | + | ||
58 | + return false; | ||
59 | + }); | ||
60 | + ", View::POS_READY, 'nav_product'); | ||
61 | + | ||
62 | + $this->registerCssFile (Yii::$app->request->BaseUrl . '/js/shadowbox-3.0.3/shadowbox.css'); | ||
63 | + $this->registerJsFile (Yii::$app->request->baseUrl . '/js/shadowbox-3.0.3/shadowbox.js', ['position' => View::POS_HEAD, 'depends' => ['yii\web\JqueryAsset']]); | ||
64 | + $this->registerJs (" | ||
65 | + Shadowbox.init({ | ||
66 | + | ||
67 | + }); | ||
68 | + ", View::POS_READY, 'Shadowbox'); | ||
69 | +?> | ||
70 | + | ||
71 | + | ||
72 | +<nav class="bread-crumbs"> | ||
73 | + <?= Breadcrumbs::widget ([ | ||
74 | + 'links' => [ | ||
75 | + ['label' => 'Каталог', 'url' => ['catalog/all']], | ||
76 | + // ['label'=>$catalog->parent->name,'url'=>['catalog/index','translit'=>$catalog->parent->translit]], | ||
77 | + ['label' => $catalog->name, 'url' => ['products/index', 'translit' => $catalog->translit]], | ||
78 | + $product->name, | ||
79 | + ], | ||
80 | + ]) ?> | ||
81 | + <div class="both"></div> | ||
82 | +</nav> | ||
83 | +<?php if ($flash = Yii::$app->session->getFlash ('success')): ?> | ||
84 | + <div class="alert-success"><?= $flash ?></div> | ||
85 | +<?php endif; ?> | ||
86 | +<div class="loyout"> | ||
87 | + | ||
88 | + | ||
89 | + <div class="productLeftBar"> | ||
90 | + <h1><?= $product->name ?></h1> | ||
91 | + <div class="begin">Цветовые решения</div> | ||
92 | + <ul class="product_mod"> | ||
93 | + <?php foreach ($product->mods as $key => $item): ?> | ||
94 | + <li> | ||
95 | + <a id='m<?= $item->id ?>' href="#" | ||
96 | + data-cost="<?= $item->cost ?>" | ||
97 | + data-old_cost="<?= $item->old_cost ?>" data-id="<?= $item->id ?>" data-art="<?= $item->art ?>" | ||
98 | + data-color="<?= $item->color ?>" | ||
99 | + data-image="<?= Yii::$app->request->baseUrl . '/upload/mod/big/' . $item->imageAvator ?>" | ||
100 | + data-imageoriginal="<?= Yii::$app->request->baseUrl . '/upload/mod/' . $item->imageAvator ?>" | ||
101 | + title="<?= $item->color ?>"> | ||
102 | + <img | ||
103 | + src="<?= Yii::$app->request->baseUrl . '/upload/mod/ico/' . $item->imageAvator ?>" | ||
104 | + alt="<?= $item->name ?>" border="0" width="40" height="40"/> | ||
105 | + </a> | ||
106 | + </li> | ||
107 | + <?php endforeach; ?> | ||
108 | + </ul> | ||
109 | + <div class="both"></div> | ||
110 | + | ||
111 | + <div class="cost_box"> | ||
112 | + <div class='params'>код: <span id='art'></span><br/> цвет: <span id='color'></span></div> | ||
113 | + <div class="w"> | ||
114 | + <strike><span id='old_cost'>0</span> грн.</strike><br/> | ||
115 | + <span class="cost"><span id='cost'>0</span> <span class="valute">грн.</span></span> | ||
116 | + </div> | ||
117 | + <input type='hidden' id='product_id'/> | ||
118 | + <a href="#" rel='product' class="link_buy fl">В Корзину</a> | ||
119 | + <div class="both"></div> | ||
120 | + </div> | ||
121 | + | ||
122 | + <div class="product_service"> | ||
123 | + <ul> | ||
124 | + <li class="item1"><a href="<?= Url::to (['iam/share', 'id' => $product->id]) ?>">Добавить в закладки</a> | ||
125 | + </li> | ||
126 | + <li class="item2"><a href="<?= Url::to (['iam/price', 'id' => $product->id]) ?>">Узнать о снижение | ||
127 | + цены</a></li> | ||
128 | + <li class="item3"><a href="<?= Url::to (['products/compare', 'id' => $product->id]) ?>">Добавить в | ||
129 | + сравнение</a></li> | ||
130 | + </ul> | ||
131 | + </div> | ||
132 | + | ||
133 | + </div> | ||
134 | + | ||
135 | + <div class="productRightBar"> | ||
136 | + <ul id="nav_product"> | ||
137 | + <li><a href="#">Характеристики</a> | ||
138 | + <div class="info"> | ||
139 | + <p>Бренд: <?= $product->brend->name ?></p> | ||
140 | + <?php foreach ($product->params as $key => $item): ?> | ||
141 | + <p><?= $item->name ?> <?= $item->size ?></p> | ||
142 | + <?php endforeach; ?> | ||
143 | + </div> | ||
144 | + </li> | ||
145 | + <li><a href="#">Описание</a> | ||
146 | + <div class="info"> | ||
147 | + <?= $product->body_ru ?> | ||
148 | + </div> | ||
149 | + </li> | ||
150 | + | ||
151 | + </ul> | ||
152 | + </div> | ||
153 | + | ||
154 | + <div class="content"> | ||
155 | + | ||
156 | + | ||
157 | + <div class="pic"> | ||
158 | + <center> | ||
159 | + <a href="#" rel="shadowbox[gal]" id="picoriginal"><img id="pic" | ||
160 | + src="<?= Yii::$app->request->baseUrl . '/upload/products/big/' . $product->imageAvator ?>" | ||
161 | + border='0'/></a> | ||
162 | + </center> | ||
163 | + </div> | ||
164 | + <ul class="product_colors"> | ||
165 | + <?php foreach ($product->fotos as $key => $item): ?> | ||
166 | + <li><a href="<?= Yii::$app->request->baseUrl . '/upload/fotos/big/' . $item->imageAvator ?>" | ||
167 | + rel="shadowbox[gal]"><img | ||
168 | + src="<?= Yii::$app->request->baseUrl . '/upload/fotos/ico/' . $item->imageAvator ?>" | ||
169 | + border="0" width="100" height="100" alt="<?= $item->name ?>"/></a></li> | ||
170 | + <?php endforeach; ?> | ||
171 | + </ul> | ||
172 | + | ||
173 | + | ||
174 | + </div> | ||
175 | + <div class="both"></div> | ||
176 | +</div> | ||
0 | \ No newline at end of file | 177 | \ No newline at end of file |
1 | +html,form, | ||
2 | +body { padding:0px;margin:0px; | ||
3 | +font-family: 'Ubuntu',Arial, Tahoma, Helvetica, sans-serif;font-size:14px;color:#1d1d1b;height:100%; | ||
4 | +} | ||
5 | +h1,h2,h3{margin:0px;padding:0px 0px 10px 0px;} | ||
6 | +.fl{float:left;} | ||
7 | +.fotter .wrap .fr{float:right; width: 180px; height: 50px; position: relative;} | ||
8 | +.fotter .wrap .fr img{position: absolute; top: 50%; margin-top: -10px; right: 0;} | ||
9 | +.fotter .wrap .fl {line-height: 50px;} | ||
10 | +.both{clear:both;} | ||
11 | +h1{margin:10px 0px;font-size:24px;} | ||
12 | +h3{margin-bottom:30px;} | ||
13 | +p{margin:3px 0px;padding:0px;} | ||
14 | + | ||
15 | +a{color:#6a6a6a;font-size:14px;text-decoration:underline;} | ||
16 | +a:hover{color:#799920;} | ||
17 | + | ||
18 | +.wrap { | ||
19 | + width:960px;margin:0px auto; | ||
20 | +} | ||
21 | +.f{background: #ffffff;} | ||
22 | + | ||
23 | +.br{-webkit-box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
24 | +-moz-box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
25 | +box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
26 | +padding:20px;} | ||
27 | + | ||
28 | +nav.top{background:#f5f5f5;padding:10px 0px;border-bottom:1px solid #d2d2d2;font-size:12px;} | ||
29 | +nav.top ul{list-style:none;margin:0px;padding:0px;} | ||
30 | +nav.top ul li{float:left;padding-right:20px;} | ||
31 | +nav.top a{color:#6a6a6a;text-decoration:none;} | ||
32 | + | ||
33 | +#help{background:url('../img/help.png') right no-repeat;padding-right:20px;} | ||
34 | +#help span{border-bottom:1px dotted #6a6a6a;} | ||
35 | + | ||
36 | +#login{background:url('../img/login.png') right no-repeat;padding-right:20px;} | ||
37 | +#login span{border-bottom:1px dotted #6a6a6a;} | ||
38 | + | ||
39 | +.search{margin:-5px 0px -5px 100px;float:left;} | ||
40 | +nav input[type="text"]{width:325px;outline:0;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;} | ||
41 | +nav input[type="submit"]{width:35px;height:29px;border:none;background:url('../img/lupa_sub.png') center no-repeat;margin-left:-35px;cursor:pointer;} | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | +.header{margin:0px 0px 20px;} | ||
46 | + | ||
47 | +.phone{float:left;position:relative;text-align:center;margin-top:20px;} | ||
48 | +.phone .tel{font-size:23px;} | ||
49 | +.phone .tel span.more{margin-bottom: 3px} | ||
50 | +.more_block{background:#ffffff;border:1px solid #d2d2d2;padding:10px;position:absolute;font-size:20px;display:none;z-index:99;} | ||
51 | + | ||
52 | +.more{background:url('../img/more.png') no-repeat;width:12px;height:7px;display:inline-block;cursor:pointer;margin-bottom:5px;} | ||
53 | + | ||
54 | + | ||
55 | +.logo{margin:0px auto 0px;width:193px;} | ||
56 | +.logo a{display:block;width:193px;height:84px;background:url('../img/logo.png') no-repeat;} | ||
57 | +.logo a span{display:none;} | ||
58 | + | ||
59 | +#call{color:#6a6a6a;text-decoration:none;border-bottom:1px dotted #6a6a6a;} | ||
60 | + | ||
61 | +.basket{float:right;position:relative;border:1px solid #d2d2d2;border-radius:5px;padding:15px 20px;font-size:18px;text-transform: uppercase;margin-top:13px;} | ||
62 | +.basket .info{float:left;border-right:1px solid #d2d2d2;padding-right:10px;margin-right:17px;} | ||
63 | +.basket .info span{color:#f75d50;font-size:22px;} | ||
64 | +.basket a:link,.basket a:visited{text-decoration:none;color:#000000;font-size:18px;} | ||
65 | + | ||
66 | +.basket span.more {margin-bottom: -1px} | ||
67 | +.menu{background:#596065;border:1px solid #e8e8e8;} | ||
68 | +.menu ul{margin:0px;padding:0px;list-style:none;} | ||
69 | +.menu ul li{float:left;border-right:1px solid #e8e8e8;} | ||
70 | +.menu ul li a{float:left;padding:15px 20px 15px 20px;text-transform: uppercase;color:#ffffff;font-size:14px;font-weight:bold;text-decoration: none;} | ||
71 | +.menu ul li a:hover{color:#e5e4e4;} | ||
72 | +.menu ul li.active a{background:#f5f5f5;color:#596065;} | ||
73 | + | ||
74 | +.menu_childs{background:#f5f5f5;border:1px solid #e8e8e8;border-bottom:2px solid #596065;} | ||
75 | +.menu_childs ul{margin:0px;padding:0px;list-style:none;} | ||
76 | +.menu_childs ul li{float:left;} | ||
77 | +.menu_childs ul li a{float:left;padding:15px 23px 15px 23px;text-transform: uppercase;color:#596065;font-size:14px;font-weight:bold;text-decoration: none;} | ||
78 | +.menu_childs ul li a:hover{color:#878b8e;} | ||
79 | + | ||
80 | +.fr ul li{border:none;} | ||
81 | +.akciya a{background:#f75d50;color:#ffffff;} | ||
82 | +.brends a{background:#95ba2f;color:#ffffff;} | ||
83 | + | ||
84 | +a.myorders{color:#f75d50} | ||
85 | + | ||
86 | + | ||
87 | +.slider{margin-top:20px;} | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | +#slides{width:720px;height:340px;position:relative;} | ||
97 | +.banner{float:left;margin-right:20px;} | ||
98 | + | ||
99 | +.slides_container { | ||
100 | + width:720px; | ||
101 | + overflow:hidden; | ||
102 | + position:relative; | ||
103 | + display:none; | ||
104 | +} | ||
105 | + | ||
106 | +/* | ||
107 | + Each slide | ||
108 | + Important: | ||
109 | + Set the width of your slides | ||
110 | + If height not specified height will be set by the slide content | ||
111 | + Set to display block | ||
112 | +*/ | ||
113 | + | ||
114 | +.slides_container div.slide { | ||
115 | + width:720px; | ||
116 | + height:340px; | ||
117 | + display:block; | ||
118 | +} | ||
119 | + | ||
120 | + | ||
121 | +/* | ||
122 | + Next/prev buttons | ||
123 | +*/ | ||
124 | + | ||
125 | +#slides .prev { | ||
126 | + position:absolute; | ||
127 | + top:150px; | ||
128 | + left:20px; | ||
129 | + width:25px; | ||
130 | + height:39px; | ||
131 | + display:block; | ||
132 | + z-index:999; | ||
133 | +} | ||
134 | + | ||
135 | +#slides .next { | ||
136 | + position:absolute; | ||
137 | + top:150px; | ||
138 | + right:15px; | ||
139 | + width:25px; | ||
140 | + height:39px; | ||
141 | + display:block; | ||
142 | + z-index:999; | ||
143 | +} | ||
144 | + | ||
145 | + | ||
146 | +/* | ||
147 | + Pagination | ||
148 | +*/ | ||
149 | + | ||
150 | +#slides .pagination { | ||
151 | + padding:0px; | ||
152 | + position:relative;z-index:999;margin:-30px auto;display:table; | ||
153 | +} | ||
154 | + | ||
155 | +#slides .pagination ul{list-style:none;margin:0px;padding:0px;} | ||
156 | + | ||
157 | +#slides .pagination li { | ||
158 | + float:left; | ||
159 | + margin:0 3px; | ||
160 | + list-style:none; | ||
161 | +} | ||
162 | + | ||
163 | +#slides .pagination li a { | ||
164 | + display:block; | ||
165 | + width:10px; | ||
166 | + height:0; | ||
167 | + padding-top:12px; | ||
168 | + background-image:url(../img/pagination.png); | ||
169 | + background-position:0 -12px; | ||
170 | + float:left; | ||
171 | + overflow:hidden; | ||
172 | +} | ||
173 | + | ||
174 | +#slides .pagination li.current a { | ||
175 | + background-position:0 0px; | ||
176 | +} | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | +.sub{margin:2px 0px 0px 0px;} | ||
181 | +.sub img{float:left;margin-right:2px;} | ||
182 | + | ||
183 | +.rubrics{margin:35px 0px;padding-bottom:10px;} | ||
184 | +.rubrics ul{list-style:none;margin:0px;padding:0px;} | ||
185 | +.rubrics ul li{float:left;margin:0px 35px;} | ||
186 | +.rubrics ul li a{float:left;width:120px;padding-top:130px;text-align:center;text-transform: uppercase;color:#494949;text-decoration:none;font-weight:bold;} | ||
187 | +.rubrics ul li.item1 a{background:url('../img/ico1.png') no-repeat;} | ||
188 | +.rubrics ul li.item2 a{background:url('../img/ico2.png') no-repeat;} | ||
189 | +.rubrics ul li.item3 a{background:url('../img/ico3.png') no-repeat;} | ||
190 | +.rubrics ul li.item4 a{background:url('../img/ico4.png') no-repeat;} | ||
191 | +.rubrics ul li.item5 a{background:url('../img/ico5.png') no-repeat;} | ||
192 | + | ||
193 | + | ||
194 | +.products{border-top:1px solid #d2d2d2;padding-bottom:30px;padding-top:20px;} | ||
195 | +.products ul{list-style:none;margin:0px;padding:0px;} | ||
196 | +.products ul li.item{float:left;width:160px;margin:0px 35px 15px;text-align:center;position:relative;} | ||
197 | +.products ul li a.name{display:block;color:#494949;text-decoration:none;margin:15px 0px;height:30px;text-transform: uppercase;} | ||
198 | +.products ul li .info{text-align: left;} | ||
199 | +.pn{border:none;} | ||
200 | + | ||
201 | +.cost{color:#f75d50;font-size:20px;margin:0px;padding:0px;} | ||
202 | +.cost span.valute{font-size:16px;} | ||
203 | +strike{font-size:18px;} | ||
204 | + | ||
205 | +a.link_buy{display:block;margin:10px auto;width:122px;height:38px;line-height:38px;background:url('../img/buy.png') no-repeat;text-transform: uppercase;color:#ffffff;text-decoration:none;font-weight:bold;text-align:center;} | ||
206 | + | ||
207 | +.mycarousel{position:absolute;right:-34px;top:-20px;} | ||
208 | +ul.mycarousel{list-style:none;margin:0px;padding:0px;} | ||
209 | +ul.mycarousel li{margin:0px;padding:0px;} | ||
210 | +.mycarousel img{border:1px solid #d2d2d2;} | ||
211 | + | ||
212 | +h3{text-align:center;text-transform: uppercase;font-size:20px;} | ||
213 | +h2.why{width:213px;height:49px;background:url('../img/logo-why.png') no-repeat;margin:0px auto; padding: 0 0 20px 0;} | ||
214 | +h2.why span{display:none;} | ||
215 | + | ||
216 | +ul.why_list{list-style:none;margin:0px;padding:0px;} | ||
217 | +ul.why_list li{float:left;width:180px;margin-right:30px;} | ||
218 | +ul.why_list li span{font-weight:bold;color:#799920;} | ||
219 | +ul.why_list li.item1{background:url('../img/why_item1.png') left no-repeat;padding:36px 0px 20px 110px;} | ||
220 | +ul.why_list li.item2{background:url('../img/why_item2.png') left no-repeat;padding:20px 0px 20px 110px;} | ||
221 | +ul.why_list li.item3{background:url('../img/why_item3.png') left no-repeat;padding:40px 0px 40px 110px;} | ||
222 | +ul.why_list li.item4{background:url('../img/why_item4.png') left no-repeat;padding:20px 0px 20px 110px;} | ||
223 | +ul.why_list li.item5{background:url('../img/why_item5.png') left no-repeat;padding:30px 0px 30px 110px;} | ||
224 | +ul.why_list li.item6{background:url('../img/why_item6.png') left no-repeat;padding:40px 0px 40px 110px;} | ||
225 | + | ||
226 | +.banner_akciya{margin:50px 0px;} | ||
227 | + | ||
228 | +.bottom{background:#4d5458;padding:40px 0px;color:#ffffff;} | ||
229 | +.bottom .leftbar{float:left;width:210px;margin-right:70px;} | ||
230 | +.bottom ul{list-style:none;margin:0px;padding:0px;line-height: 23px;} | ||
231 | +.bottom ul a{color:#ffffff;font-size:16px;text-decoration:none;} | ||
232 | +.bottom ul a:hover{color:#799920;} | ||
233 | + | ||
234 | +.phones{padding-left:25px;background:url('../img/phone.png') left top no-repeat;margin-top:50px;line-height: 23px;} | ||
235 | +.map{padding:5px 0px 5px 25px;background:url('../img/map.png') left no-repeat; margin-bottom: 7px;} | ||
236 | +a.more_map{color:#99a5ad;border-bottom:1px dotted #99a5ad;text-decoration:none;font-size:11px;text-align:center;} | ||
237 | + | ||
238 | +.bread-crumbs{padding:10px 0px 10px 20px;border-bottom:1px solid #d2d2d2;} | ||
239 | +.bread-crumbs ul{list-style:none;margin:0px 0px 0px 0px;padding:0px;} | ||
240 | +.bread-crumbs ul li{float:left;padding-right:5px;} | ||
241 | +.bread-crumbs ul li a:visited,.bread-crumbs ul li a:link{font-size:14px;color:#7d7d7d;text-decoration:underline;} | ||
242 | +.bread-crumbs ul li a:hover{color:#464646;text-decoration: none;} | ||
243 | +.breadcrumb > li + li:before { | ||
244 | + color: #ccc; | ||
245 | + content: "/ "; | ||
246 | + padding: 0 5px; | ||
247 | +} | ||
248 | + | ||
249 | + | ||
250 | +.loyout{padding:20px 0px;} | ||
251 | +.leftbar{float:left;width:200px;margin-right:35px;} | ||
252 | +.rightbar{float:right;width:380px;margin-left:35px;} | ||
253 | +.rightbar2{float:right;width:240px;margin-left:35px;} | ||
254 | +.content {overflow:hidden;min-height:500px;} | ||
255 | +* html .content{height:1%;} | ||
256 | +.content2 {overflow:hidden;} | ||
257 | +* html .content2{height:1%;} | ||
258 | + | ||
259 | +.filters{border-top:1px solid #d2d2d2;padding:20px 0px 0px;margin-top:20px;} | ||
260 | +.filters .begin{text-transform: uppercase;font-weight:bold;} | ||
261 | +.filters ul{list-style:none;margin:0px;padding:0px;line-height:22px;} | ||
262 | +.filters ul li a{color:#8fa951;text-decoration:none;} | ||
263 | +.filters ul li a:hover{text-decoration:underline;} | ||
264 | + | ||
265 | +.productLeftBar{float:left;width:230px;padding-left:20px;margin-right:20px;} | ||
266 | +.productRightBar{float:right;width:280px;margin-left:20px;} | ||
267 | +.productLeftBar h1{font-size:27px;border-bottom:1px solid #d2d2d2;margin-bottom:10px;} | ||
268 | + | ||
269 | +ul.product_mod{list-style:none;margin:10px 0px 0px 0px;padding:0px;} | ||
270 | +ul.product_mod li{float:left;margin-right:7px;} | ||
271 | +ul.product_mod li img{border:1px solid #d2d2d2;} | ||
272 | + | ||
273 | +ul.product_colors{list-style:none;margin:10px 0px 0px 0px;padding:0px;} | ||
274 | +ul.product_colors li{float:left;margin-right:7px;} | ||
275 | +ul.product_colors li img{border:1px solid #d2d2d2;} | ||
276 | +.productLeftBar .begin{text-transform: uppercase;font-weight:bold;} | ||
277 | + | ||
278 | +.cost_box{border-top:1px solid #d2d2d2;border-bottom:1px solid #d2d2d2;margin:10px 0px;padding:10px 0px;} | ||
279 | +.cost_box .w{float:left;margin-right:20px;padding-top:5px;} | ||
280 | + | ||
281 | +.product_service ul{list-style:none;margin:0px;padding:0px;} | ||
282 | +.product_service ul li a{color:#799920;text-decoration:none;border-bottom:1px dotted #799920;font-size:12px;} | ||
283 | +.product_service ul li.item1{background:url('../img/li1.png') left no-repeat;padding:3px 23px;} | ||
284 | +.product_service ul li.item2{background:url('../img/li2.png') left no-repeat;padding:3px 23px;} | ||
285 | +.product_service ul li.item3{background:url('../img/li3.png') left no-repeat;padding:3px 23px;} | ||
286 | + | ||
287 | +#nav_product{list-style:none;margin:0px;padding:0px;line-height:23px;} | ||
288 | +#nav_product li a{background:url('../img/li_plus.png') left no-repeat;padding:3px 15px;color:#000000;text-transform: uppercase;text-decoration:none;font-weight:bold;} | ||
289 | +#nav_product li a.active{background:url('../img/li_minus.png') left no-repeat;} | ||
290 | +#nav_product li .info{display:none;border-bottom:1px solid #d2d2d2;padding:10px 0px;margin-bottom:10px;} | ||
291 | + | ||
292 | + | ||
293 | +.modal_box{ | ||
294 | + position: fixed; | ||
295 | + left: 0; | ||
296 | + top: 0; | ||
297 | + width: 100%; | ||
298 | + height: 100%; | ||
299 | + z-index: 999; | ||
300 | + | ||
301 | + background: #000; | ||
302 | +filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); /* IE 5.5+*/ | ||
303 | +-moz-opacity: 0.5; /* Mozilla 1.6 Рё РЅРёР¶Рµ */ | ||
304 | +-khtml-opacity: 0.5; /* Konqueror 3.1, Safari 1.1 */ | ||
305 | +opacity: 0.5; | ||
306 | + | ||
307 | +} | ||
308 | +#data_box{position:absolute;top:100px;z-index:1000;width:400px;background:#ffffff; | ||
309 | + -webkit-box-shadow: 0 0 15px #000; | ||
310 | + -moz-box-shadow: 0 0 15px #000; | ||
311 | + box-shadow: 0 0 15px #000; | ||
312 | + border:7px solid #1b9bb6; | ||
313 | + border-radius:5px; | ||
314 | +} | ||
315 | +#data_box .data_wrp{padding:25px 15px 15px 15px;} | ||
316 | +#data_box .data_wrp h1{text-transform: uppercase;} | ||
317 | +#data_box .data_wrp hr{height: 1px;border: none;color: #000000;background: #000000;margin: 45px 0px 20px 0px;} | ||
318 | +#data_box .data_wrp hr.hr{height: 1px;border: none;color: #000000;background: #000000;margin: 20px 0px 20px 0px;} | ||
319 | +#data_box .pic-tango{margin-right:7px;margin-bottom:7px;} | ||
320 | +#modal_close{cursor:pointer;margin-top:-80px;margin-right:-50px;} | ||
321 | + | ||
322 | + | ||
323 | +.rightbar .control-label{float:left;width:80px;padding-top:5px;} | ||
324 | +.form-control{outline:0;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;margin-bottom:3px;width:250px;} | ||
325 | +.form-control:focus { | ||
326 | +border:#1b9bb6 1px solid; | ||
327 | +box-shadow: 0 0 10px #1b9bb6; | ||
328 | +-webkit-box-shadow: 0 0 10px #1b9bb6; | ||
329 | +-moz-box-shadow: 0 0 10px #1b9bb6; | ||
330 | +} | ||
331 | +.help-block{color:red;font-size:12px;margin-bottom:5px;} | ||
332 | + | ||
333 | +.basket_item{padding:10px 0px;border-bottom:1px solid #b7b7b7;} | ||
334 | +.basket_item img{margin-right:20px;} | ||
335 | +.basket_item .count{margin:20px 0px;} | ||
336 | +.basket_item .fr{margin-top:5px;} | ||
337 | +.basket_item .info{overflow:hidden;} | ||
338 | +a.del:visited,a.del:link{background:url('../img/del.png') left center no-repeat;padding:2px 25px;font-size:12px;font-weight:normal;color:#787878;text-decoration: underline;} | ||
339 | +a.del:hover{color:#a52828;text-decoration: underline;} | ||
340 | + | ||
341 | +.total{text-align:right;color:#87476a;font-size:20px;margin:10px 0px;} | ||
342 | + | ||
343 | +.submit4{margin-top:5px;border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:14px;font-weight:bold;cursor:pointer;} | ||
344 | +.submit4:hover{background:#f75d50;} | ||
345 | + | ||
346 | +.submit4m{border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:12px;font-weight:bold;cursor:pointer;} | ||
347 | +.submit4m:hover{background:#f75d50;} | ||
348 | + | ||
349 | +.btn-primary{margin-top:5px;border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:14px;font-weight:bold;cursor:pointer;} | ||
350 | +.btn-primary:hover{background:#f75d50;} | ||
351 | + | ||
352 | +a.logout:visited,a.logout:link{border:none;padding:3px 5px;background:#f75d50;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:11px;font-weight:normal;cursor:pointer;} | ||
353 | +a.logout:hover{background:#95ba2f;} | ||
354 | + | ||
355 | +.boy_box{border-bottom:1px solid #b7b7b7;padding:0px 0px 15px 0px;} | ||
356 | +.boy_box div{padding-top:10px;} | ||
357 | + | ||
358 | +.content_product .info{padding:0px 0px 20px 0px;} | ||
359 | + | ||
360 | +a.btn-success{display:inline-block;border:2px solid #d8d6d6;color:#95ba2f;border-radius:5px;padding:5px;margin-bottom:10px;text-decoration:none;font-size:14px;} | ||
361 | +a.btn-success:hover{border:#95ba2f 2px solid;color:#f75d50;} | ||
362 | + | ||
363 | + | ||
364 | +.txtb1{font-size:14px;font-weight:bold;} | ||
365 | +.txtf{font-size:14px;font-weight:bold;color:#87476a;} | ||
366 | +.txtfb{font-size:20px;font-weight:bold;color:#87476a;} | ||
367 | + | ||
368 | +.count{margin:20px 0px;} | ||
369 | +.count input[type="number"]{outline:0;width:50px;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;margin-bottom:7px;} | ||
370 | + | ||
371 | +a.link2:visited,a.link2:link{font-size:14px;font-weight:bold;color:#95ba2f;text-decoration: none;} | ||
372 | +a.link2:hover{color:#f75d50;text-decoration: underline;} | ||
373 | + | ||
374 | + | ||
375 | + | ||
376 | +.well{margin:50px auto;width:400px;background:#f5f5f5;border:1px solid #e8e8e8;padding:20px;border-radius:5px;} | ||
377 | +.control-label{float:left;width:100px;padding-top:5px;} | ||
378 | +#user-verifycode-image{display:block;} | ||
379 | +.form-inline{display:inline;} | ||
380 | +.form-inline .form-group{float:left;margin-right:10px;} | ||
381 | +.form-inline .form-group select{width:100px;} | ||
382 | +.form-group{margin-bottom: 10px;} | ||
383 | +.table-bordered{width:100%;border:1px solid silver;} | ||
384 | +.table-bordered th{background: #B3D1FD;padding:5px;} | ||
385 | +.table-bordered tr td{border:1px solid silver;padding:5px;} | ||
386 | +.table-bordered .filters{display: none;} | ||
387 | + | ||
388 | +.formCost label{float:left;width:30px;} | ||
389 | + | ||
390 | +ul.brends_list{list-style: none;margin:0px;padding:0px;} | ||
391 | +ul.brends_list li{float:left;text-align:center;margin:0px 15px 20px 15px;} | ||
392 | + | ||
393 | +.compare{text-align: center;} | ||
394 | +.compare a:visited,.compare a:link{font-size:12px;text-decoration: underline;} | ||
395 | + | ||
396 | +.alert-success{margin:10px 0px;padding:10px;border:1px solid #3ed824;border-radius: 5px;background: #c0feb5;} | ||
397 | + | ||
398 | +.news_item{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid silver;} | ||
399 | +.news_item img{margin-right:20px;} | ||
400 | +.news_item a{font-size:16px;} | ||
401 | + | ||
402 | +.pic{margin-right:20px;} | ||
403 | + | ||
404 | +#subscribe-sale{width:100px;float:left;margin-right:20px;} | ||
405 | +.saletxt{width:150px;float:left;color:#ffffff;} | ||
406 | +#subscribe-email{width:390px;} | ||
407 | + | ||
408 | +.txts{color:#9da9b1;font-size:18px;margin-bottom:20px;} | ||
409 | + | ||
410 | +.content ul.pagination{list-style:none;text-align:center;} | ||
411 | +.content ul.pagination li{display:inline;} | ||
412 | +.content ul.pagination li a{padding:3px;color:#82a02f;font-size: 16px;margin:0px; text-decoration: none; } | ||
413 | +.content ul.pagination li a:hover {text-decoration: underline} | ||
414 | +.content ul.pagination li.active a{color: #333333;} | ||
415 | +.boxitem{height:300px;} | ||
416 | +ul.social {margin-top: 20px;} | ||
417 | +.social{list-style: none;margin: 10px;padding: 0px;height:48px;} | ||
418 | +.social li{display:inline-block;margin-right:7px;padding-bottom: 10px;} | ||
419 | +.social li a{ | ||
420 | + width:36px; | ||
421 | + height:36px; | ||
422 | + display:block; | ||
423 | + margin:0;padding:0; | ||
424 | + text-indent:-9999px; | ||
425 | + background:#bcbcbc url(../img/social-ico-two.png) no-repeat 0 0; | ||
426 | + border-radius:48px; | ||
427 | + -moz-border-radius:48px; | ||
428 | + -webkit-border-radius:48px; | ||
429 | + -webkit-transition: all 0.5s ease-out; | ||
430 | + -moz-transition: all 0.5s ease-out; | ||
431 | + transition: all 0.5s ease-out; | ||
432 | +} | ||
433 | +.social .fb{background-position:-44px 0; | ||
434 | +cursor: pointer; | ||
435 | +} | ||
436 | +.social .vk{ | ||
437 | +cursor: pointer; | ||
438 | +} | ||
439 | +.social .vk:hover{background-color:#5B7FA6;} | ||
440 | +.social .fb:hover{background-color:#354f89; | ||
441 | +} | ||
442 | +.social .gp{background-position:-132px 0; | ||
443 | +cursor: pointer;} | ||
444 | +.social .gp:hover{background-color:#c72f21;} | ||
445 | +.social .tw{background-position:-144px 0; | ||
446 | +cursor: pointer;} | ||
447 | +.social .tw:hover{background-color:#6398c9;} | ||
448 | +.social .ok{background-position:-89px 0; | ||
449 | +cursor: pointer;} | ||
450 | +.social .ok:hover{background-color:#f88f15;} | ||
451 | +.social ul li a:hover{ | ||
452 | + background-color:#065baa; | ||
453 | +} | ||
454 | + | ||
455 | +.socialbox{margin:10px 0px;} | ||
456 | +.hide{display:none;} | ||
457 | + | ||
458 | + | ||
459 | + | ||
460 | +.fotter{background: #484f55;height: 50px;color:#98a3ab;} | ||
461 | +.fotter a{color:#98a3ab; line-height: 50px; float: left;} | ||
462 | + | ||
463 | + | ||
464 | +.view_products2{list-style: none;overflow:auto;height:400px;} | ||
465 | +.view_products2 img{float:left;margin-right:20px;} | ||
466 | +.view_products2 li{margin:10px 0px;} | ||
467 | + | ||
468 | + | ||
469 | +.pixbox{width:134px;height:200px;overflow: hidden;text-align: center;} | ||
470 | + | ||
471 | + | ||
472 | +.form-order{background:#f5f5f5;padding:10px;border:1px solid #d2d2d2;} | ||
473 | +#order-payment{float:right;width:280px;} | ||
474 | +#order-delivery{float:right;width:280px;} | ||
475 | + | ||
476 | +.delivery-data{padding:5px;border:1px solid #1bb631;background: #b7f5bf;display:none;border-radius: 5px;} | ||
477 | + | ||
478 | +.jcarousel-next-disabled, .jcarousel-prev-disabled {display: none !important;} | ||
479 | +.content2 br {display: none;} | ||
480 | +.pixbox a { | ||
481 | + width: 134px; | ||
482 | + height: 200px; | ||
483 | + display: table-cell; | ||
484 | + vertical-align: middle; | ||
485 | +} | ||
486 | +.pixbox img { | ||
487 | + max-width: 134px; | ||
488 | + max-height: 200px; | ||
489 | + vertical-align: middle; | ||
490 | +} | ||
491 | +.pagination li.prev.disabled span { | ||
492 | + padding: 9px; | ||
493 | + border-radius: 10%; | ||
494 | + color: #4D5458; | ||
495 | + font-size: 14px; | ||
496 | + margin: 0px; | ||
497 | + border: 1px solid #4d5458; | ||
498 | +} | ||
499 | +.fr {float: right;} | ||
500 | + | ||
501 | +.nobottom{border-bottom:none !important;} | ||
502 | + | ||
503 | +.dotted a{border-bottom: 1px dotted #808080;} | ||
504 | + | ||
505 | +.mycabinet{padding-left:20px;margin-top:20px;} | ||
506 | +.mycabinet .begin{text-transform:uppercase;font-size: 13px;font-weight:bold; padding-bottom:15px;} | ||
507 | +.mycabinet ul{margin:0px;padding:0px;list-style:none;} | ||
508 | +.mycabinet ul li{padding-top:10px;padding-bottom:10px;} | ||
509 | +.mycabinet a{color:#799920;text-decoration:none;} | ||
510 | + | ||
511 | +.lay_title .uppercase{text-transform:uppercase;} | ||
512 | +.lay_title .center{text-align:center;} | ||
513 | +.lay_title{padding-top:15px;font-size:24px;} | ||
514 | + | ||
515 | +.user_data{width:390px;border-right:1px solid #d2d2d2;float:left;} | ||
516 | +.user_data .col{padding-bottom:35px;} | ||
517 | +.user_data .col.last{padding-bottom:0px;} | ||
518 | +.user_data .title{text-transform:uppercase;font-weight:bold;width:170px;float:left;font-size:13px;} | ||
519 | +.user_data .data{float:left;font-size:13px;} | ||
520 | + | ||
521 | +.edit_menu{float:left;padding-left:60px;font-size:13px;} | ||
522 | +.edit_menu div{padding-bottom:20px;} | ||
523 | +.edit_menu a{color:#799920;text-decoration:none;} | ||
524 | +.edit_menu .dotted{border-bottom:1px dotted #799920;} | ||
525 | + | ||
526 | +.user_edit_area{padding-top:30px;} | ||
527 | + | ||
528 | +/* part two */ | ||
529 | + | ||
530 | +.user_data_editing{float:left;} | ||
531 | +.inputs .col{padding-bottom:12px !important;} | ||
532 | +.user_data_editing .col{padding-bottom:35px; width:432px;} | ||
533 | +.user_data_editing .title{text-transform:uppercase;font-weight:bold;width:170px;float:left;font-size:13px;} | ||
534 | +.user_data_editing .data{float:left;font-size:13px; width:262px;} | ||
535 | + | ||
536 | +.user_data_editing input[type="text"] { | ||
537 | + padding:0; | ||
538 | + margin:0; | ||
539 | + border:1px solid #d2d2d2; | ||
540 | + padding-top:7px; | ||
541 | + padding-bottom:7px; | ||
542 | + padding-left:10px; | ||
543 | + padding-right:10px; | ||
544 | + border-radius:4px; | ||
545 | + font-size:12px; | ||
546 | + margin-top:-10px; | ||
547 | + width: 240px; | ||
548 | +} | ||
549 | + | ||
550 | +.user_data_editing .add {color:#799920; text-decoration:none;border-bottom:1px dotted #799920;} | ||
551 | +.add_more{padding-bottom:24px; padding-left:170px;} | ||
552 | + | ||
553 | +.delete{float:right;} | ||
554 | +.delete_button{background: url('../img/ico_close.png') right no-repeat; width:16px;height:16px;float:right;} | ||
555 | + | ||
556 | +.content_area{width:450px;} | ||
557 | + | ||
558 | +.bottom3{border-top:3px solid #95ba2f !important;border-bottom:3px solid #799920 !important; float:left;font-size:15px;} | ||
559 | +.bottom3:hover{border-top:3px solid #f75d50 !important;border-bottom:3px solid #c33327 !important;} | ||
560 | +#cancel{text-decoration:none;color:#799920;font-size:13px;border-bottom:1px dotted #799920;float:left;margin-left:40px;} | ||
561 | + | ||
562 | +.buttons{ | ||
563 | + display: inline-flex; | ||
564 | + align-items: center;} | ||
565 | + | ||
566 | +/* part three */ | ||
567 | + | ||
568 | +.favorites{background-color:#f5f5f5; padding:5px;font-size:14px;} | ||
569 | +.favorites .fav_point{background-color:#ffffff;border:1px solid #d2d2d2;border-radius:3px;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px; margin-top:5px;} | ||
570 | +.favorites .fav_point .left{float:left; padding-right:0; width:178px;} | ||
571 | +.favorites .fav_point .right{float:right; padding-right:0; padding-left:0;} | ||
572 | + | ||
573 | +.favorites .link{color:#799920; text-decoration:none;border-bottom:1px dotted #799920;} | ||
574 | + | ||
575 | +.redtext{color:#f75d50;} | ||
576 | +.greentext{color:#95ba2f;} | ||
577 | + | ||
578 | +/* part three one */ | ||
579 | +.hold .orders_view{display:none !important;} | ||
580 | +.orders_view{width:680px;margin-top:13px;padding-top:13px;padding-bottom:5px;border-top:1px solid #d2d2d2;display:block;} | ||
581 | +.orders_view .order{float:left;width:225px;text-align:center;} | ||
582 | +.orders_view .order .order_price{color:#f75d50;font-weight:bold;font-size:15px;} | ||
583 | +.orders_view .order .order_price span{font-size:24px;} | ||
584 | +.orders_view .order img{padding-bottom:22px;} | ||
585 | +.orders_view .order .note{font-size:13px;} | ||
586 | +.orders_view .order .note span{color:#f75d50;} | ||
587 | + | ||
588 | +.basket_hovered{ | ||
589 | + position:absolute; | ||
590 | + border:1px solid #d2d2d2;border-radius:5px;padding:15px 20px; | ||
591 | + background-color:white; | ||
592 | + right:-1px; | ||
593 | + margin-top:10px; | ||
594 | + width:640px; | ||
595 | + display:none; | ||
596 | + z-index:1111; | ||
597 | +} | ||
598 | + | ||
599 | + | ||
600 | +.open .basket_hovered{ | ||
601 | + display:block; | ||
602 | +} | ||
603 | + | ||
604 | +.open, .open .basket_hovered { | ||
605 | + -moz-box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
606 | + -webkit-box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
607 | + box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
608 | +} | ||
609 | +.basket_hovered1:before{ | ||
610 | + position:absolute; | ||
611 | + left:0; | ||
612 | + content:' '; | ||
613 | + width:100%; | ||
614 | + background-color:white; | ||
615 | + height:10px; | ||
616 | + top:45px; | ||
617 | + z-index:1112; | ||
618 | +} | ||
619 | + | ||
620 | +.basket_item input{ | ||
621 | + border: 1px solid #d2d2d2; | ||
622 | + border-radius: 4px; | ||
623 | + padding:9px; | ||
624 | + width:26px; | ||
625 | + font-size:18px; | ||
626 | + font-weight:bold; | ||
627 | + text-align:center; | ||
628 | + background-color:white; | ||
629 | + color: black; | ||
630 | + margin:7px; | ||
631 | +} | ||
632 | +input[type=number]::-webkit-inner-spin-button, | ||
633 | +input[type=number]::-webkit-outer-spin-button {-webkit-appearance: none; | ||
634 | + margin:0;} | ||
635 | + | ||
636 | + | ||
637 | +.minus{background:url('../img/minus.png') no-repeat;width:15px;height:15px;display:inline-block;cursor:pointer;} | ||
638 | +.plus{background:url('../img/plus.png') no-repeat;width:15px;height:15px;display:inline-block;cursor:pointer;} | ||
639 | + | ||
640 | +.basket_sum{padding-top:15px;} | ||
641 | + | ||
642 | +.basket_sum .sum_text{font-size:15px; text-transform:none;padding-top:12px;float: right !important;padding-top: 1px;margin-bottom: 11px;} | ||
643 | +.basket_sum .sum_text span{font-size:18px; color:#f75d50; font-weight:bold;} | ||
644 | +.basket_sum a{color:white !important; font-size:15px !important; float:right;} | ||
645 | + | ||
646 | + | ||
647 | +.black{z-index:9999; background-color:rgba(0,0,0,0.5);width:100%;height:100%;position:fixed;display:block;padding-top:9%;} | ||
648 | +.black.hidden{display:none;} | ||
649 | +.black .item_added_win{background-color:#ffffff;width:640px; margin:auto;position:relative;} | ||
650 | + | ||
651 | +.black_close{position:absolute; top:30px;right:30px;background:url('../img/ico_close2.png') no-repeat;width:22px;height:22px;display:inline-block;cursor:pointer;} | ||
652 | + | ||
653 | +.block_content{padding-left:20px;padding-right:20px;} | ||
654 | +.item_added_win h2{text-transform:uppercase;text-align:center;padding:30px;} | ||
655 | + | ||
656 | +.block_content .item{padding-top:20px;padding-bottom:20px;border-bottom:1px solid #d2d2d2;} | ||
657 | + | ||
658 | +.uppercase{text-transform:uppercase;} | ||
659 | + | ||
660 | +.w230{width:230px;} | ||
661 | +.w260{width:260px;} | ||
662 | +.w430{width:430px;} | ||
663 | +.borderbottom{border-bottom:1px solid #d2d2d2;} | ||
664 | +.left_block .begin{text-transform:uppercase;font-size: 13px;font-weight:bold; padding-bottom:15px;} | ||
665 | + | ||
666 | +.color_variants .variant{ | ||
667 | + text-align:center; | ||
668 | + border:1px solid #d2d2d2; | ||
669 | + float:left; | ||
670 | + margin-right:5px; | ||
671 | + margin-bottom:5px; | ||
672 | +} | ||
673 | +.variant:hover{cursor:pointer;} | ||
674 | +.color_variants{margin-top:14px;margin-bottom:-5px;} | ||
675 | +.color_variants .variant.active{width:44px;height:44px;border:2px solid #95ba2f;} | ||
676 | +.color_variants .variant.active a{width:44px;height:44px;} | ||
677 | + | ||
678 | +.tobasket{margin-top:20px;margin-bottom:20px;} | ||
679 | +.tobasket:hover{color:white;} | ||
680 | + | ||
681 | +.variant{width:46px;height:46px;} | ||
682 | +.variant.active{width:44px;height:44px;} | ||
683 | + | ||
684 | +.layout{margin-top:15px;} | ||
685 | +.left_block{float:left;} | ||
686 | +.right_block{float:right;} | ||
687 | +.center_block{float:left;margin-left:23px;} | ||
688 | + | ||
689 | +.left_block .links{margin-top:25px;} | ||
690 | + | ||
691 | +.left_block .links li{list-style: none; padding-left:25px;display:inline-block;cursor:pointer;height:20px;} | ||
692 | +.left_block .links ul{margin:0;padding:0;} | ||
693 | +.left_block .links a{font-size:13.5px;text-decoration:none; color:#8ba73e;} | ||
694 | + | ||
695 | + | ||
696 | +.links .add_bookmarks{background:url('../img/ico_add_bookmark.png') no-repeat center left; } | ||
697 | +.links .what_price{background:url('../img/ico_price.png') no-repeat center left; } | ||
698 | +.links .add_compare{background:url('../img/ico_scales.png') no-repeat center left; } | ||
699 | + | ||
700 | +.spoiler_one{padding-top:15px;padding-bottom:15px;border-bottom:1px solid #d2d2d2;} | ||
701 | +.spoiler_one .spoiler_content{margin-top:15px;font-size:13px;} | ||
702 | +.spoiler_one .spoiler_content.hidden{display:none;} | ||
703 | + | ||
704 | +.title_spoiler:hover {cursor: pointer} | ||
705 | + | ||
706 | +.title_spoiler{ | ||
707 | + background:url('../img/ico_open.png') no-repeat center left; | ||
708 | + padding-left: 17px; | ||
709 | + font-size:13px; | ||
710 | + text-transform:uppercase; | ||
711 | + color:#333333; | ||
712 | + font-weight:bold; | ||
713 | + text-decoration:none; | ||
714 | +} | ||
715 | +.title_spoiler.closed{ | ||
716 | + background:url('../img/ico_close3.png') no-repeat center left; | ||
717 | +} | ||
718 | + | ||
719 | +.features{ | ||
720 | + list-style:none; | ||
721 | + padding:0; | ||
722 | + margin:0; | ||
723 | + font-size:13px; | ||
724 | +} | ||
725 | +.features a{ | ||
726 | + font-size:13px; | ||
727 | + text-decoration:none; | ||
728 | + border-bottom:1px dotted #8ba73e; | ||
729 | + color:#8ba73e; | ||
730 | +} | ||
731 | +.features li{ | ||
732 | + padding-top:5px; | ||
733 | + padding-bottom:4px; | ||
734 | +} | ||
735 | + | ||
736 | +.note_prod{ | ||
737 | + width:225px; | ||
738 | + height:23px; | ||
739 | + overflow:hidden; | ||
740 | + border-radius:5px; | ||
741 | + display:table; | ||
742 | + text-transform:uppercase; | ||
743 | + font-size:11px; | ||
744 | + font-weight:bold; | ||
745 | +} | ||
746 | + | ||
747 | +.note_prod .one{ | ||
748 | + z-index:999; | ||
749 | +} | ||
750 | +.note_prod .two{ | ||
751 | + z-index:998; | ||
752 | +} | ||
753 | + | ||
754 | +.note_prod .blue{ | ||
755 | + float:left; | ||
756 | + padding-top:5px; | ||
757 | + padding-bottom:5px; | ||
758 | + background-color:#42b9f6; | ||
759 | + padding-left:10px; | ||
760 | + padding-right:5px; | ||
761 | + position:relative; | ||
762 | +} | ||
763 | + | ||
764 | +.note_prod .blue:after{ | ||
765 | + content:''; | ||
766 | + width: 0; | ||
767 | + height: 0; | ||
768 | + border-top: 13px solid transparent; | ||
769 | + border-left: 5px solid #42b9f6; | ||
770 | + border-bottom: 13px solid transparent; | ||
771 | + position:absolute; | ||
772 | + top:-1px; | ||
773 | + margin-left:5px; | ||
774 | +} | ||
775 | +.note_prod .red{ | ||
776 | + float:left; | ||
777 | + padding-top:5px; | ||
778 | + padding-bottom:5px; | ||
779 | + background-color:#f75d50; | ||
780 | + padding-left:10px; | ||
781 | + padding-right:5px; | ||
782 | + position:relative; | ||
783 | + color:#ffffff; | ||
784 | +} | ||
785 | +.note_prod .red:after{ | ||
786 | + content:''; | ||
787 | + width: 0; | ||
788 | + height: 0; | ||
789 | + border-top: 13px solid transparent; | ||
790 | + border-left: 5px solid #f75d50; | ||
791 | + border-bottom: 13px solid transparent; | ||
792 | + position:absolute; | ||
793 | + top:-1px; | ||
794 | + margin-left:5px; | ||
795 | +} | ||
796 | +.note_prod .yellow{ | ||
797 | + float:left; | ||
798 | + padding-top:5px; | ||
799 | + padding-bottom:5px; | ||
800 | + background-color:#fbc665; | ||
801 | + padding-left:10px; | ||
802 | + padding-right:5px; | ||
803 | + position:relative; | ||
804 | +} | ||
805 | +.note_prod .yellow:after{ | ||
806 | + content:''; | ||
807 | + width: 0; | ||
808 | + height: 0; | ||
809 | + border-top: 13px solid transparent; | ||
810 | + border-left: 5px solid #fbc665; | ||
811 | + border-bottom: 13px solid transparent; | ||
812 | + position:absolute; | ||
813 | + top:-1px; | ||
814 | + margin-left:5px; | ||
815 | +} | ||
816 | + | ||
817 | + | ||
818 | +.products_block .product{float:left; width:190px; vertical-align:bottom;} | ||
819 | +.product .image{height:225px;position:relative;} | ||
820 | +.product .image img{position:absolute;bottom:0;left:15px;} | ||
821 | + | ||
822 | +.price{ | ||
823 | + font-size: 18px; | ||
824 | + color: #f75d50; | ||
825 | + font-weight: bold; | ||
826 | + text-align:center;} | ||
827 | + | ||
828 | +.product{padding-bottom:30px;position:relative;} | ||
829 | +.product p{font-size:15px; text-align:center; margin-top:15px;} | ||
830 | +.left52{margin-left:52px;} | ||
831 | +.product a{color:#ffffff;} | ||
832 | +.mrg1{margin-top: 25px; margin-bottom: 15px;} | ||
833 | + | ||
834 | +.products_martopbot{margin-top:60px;margin-bottom:100px;} | ||
835 | + | ||
836 | +.cont_shop_but{display:table-cell;vertical-align:middle;padding:35px;} | ||
837 | +.cont_shop{text-decoration:none;font-size:12px;border-bottom:1px dotted #799920;color:#799920;} | ||
838 | + | ||
839 | +.icons{ | ||
840 | + width:45px; | ||
841 | + height:50%; | ||
842 | + position:absolute; | ||
843 | + z-index:9; | ||
844 | + right:0; | ||
845 | + padding-top:25px; | ||
846 | + padding-right:15px; | ||
847 | +} | ||
848 | +.icons a{ | ||
849 | + width:44px; | ||
850 | + height:44px; | ||
851 | + float: left; | ||
852 | + border: 1px solid #d2d2d2; | ||
853 | + margin-bottom: 5px; | ||
854 | + background-color: white; | ||
855 | +} | ||
856 | +a:hover{cursor:pointer;} | ||
857 | + | ||
858 | + | ||
859 | +.basket_item .form-group{display:inline;} | ||
860 | + | ||
861 | +.basket.open:after{ | ||
862 | + content: ''; | ||
863 | + position: absolute; | ||
864 | + top: 43px; | ||
865 | + width: 100%; | ||
866 | + height: 10px; | ||
867 | + background-color: white; | ||
868 | + left: 0; | ||
869 | + z-index: 9990; | ||
870 | +} | ||
871 | + | ||
872 | +.basket_hovered .basket_sum{float:left;} | ||
873 | + | ||
874 | +a.active{font-weight:bold;text-decoration: underline;} | ||
0 | \ No newline at end of file | 875 | \ No newline at end of file |
1 | +html,form, | ||
2 | +body { padding:0px;margin:0px; | ||
3 | +font-family: 'Ubuntu',Arial, Tahoma, Helvetica, sans-serif;font-size:14px;color:#1d1d1b;height:100%; | ||
4 | +} | ||
5 | +h1,h2,h3{margin:0px;padding:0px 0px 10px 0px;} | ||
6 | +.fl{float:left;} | ||
7 | +.fotter .wrap .fr{float:right; width: 180px; height: 50px; position: relative;} | ||
8 | +.fotter .wrap .fr img{position: absolute; top: 50%; margin-top: -10px; right: 0;} | ||
9 | +.fotter .wrap .fl {line-height: 50px;} | ||
10 | +.both{clear:both;} | ||
11 | +h1{margin:10px 0px;font-size:24px;} | ||
12 | +h3{margin-bottom:30px;} | ||
13 | +p{margin:3px 0px;padding:0px;} | ||
14 | + | ||
15 | +a{color:#6a6a6a;font-size:14px;text-decoration:underline;} | ||
16 | +a:hover{color:#799920;} | ||
17 | + | ||
18 | +.wrap { | ||
19 | + width:960px;margin:0px auto; | ||
20 | +} | ||
21 | +.f{background: #ffffff;} | ||
22 | + | ||
23 | +.br{-webkit-box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
24 | +-moz-box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
25 | +box-shadow: -1px 5px 14px 0px rgba(50, 46, 50, 0.46); | ||
26 | +padding:20px;} | ||
27 | + | ||
28 | +nav.top{background:#f5f5f5;padding:10px 0px;border-bottom:1px solid #d2d2d2;font-size:12px;} | ||
29 | +nav.top ul{list-style:none;margin:0px;padding:0px;} | ||
30 | +nav.top ul li{float:left;padding-right:20px;} | ||
31 | +nav.top a{color:#6a6a6a;text-decoration:none;} | ||
32 | + | ||
33 | +#help{background:url('../img/help.png') right no-repeat;padding-right:20px;} | ||
34 | +#help span{border-bottom:1px dotted #6a6a6a;} | ||
35 | + | ||
36 | +#login{background:url('../img/login.png') right no-repeat;padding-right:20px;} | ||
37 | +#login span{border-bottom:1px dotted #6a6a6a;} | ||
38 | + | ||
39 | +.search{margin:-5px 0px -5px 100px;float:left;} | ||
40 | +nav input[type="text"]{width:325px;outline:0;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;} | ||
41 | +nav input[type="submit"]{width:35px;height:29px;border:none;background:url('../img/lupa_sub.png') center no-repeat;margin-left:-35px;cursor:pointer;} | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | +.header{margin:0px 0px 20px;} | ||
46 | + | ||
47 | +.phone{float:left;position:relative;text-align:center;margin-top:20px;} | ||
48 | +.phone .tel{font-size:23px;} | ||
49 | +.phone .tel span.more{margin-bottom: 3px} | ||
50 | +.more_block{background:#ffffff;border:1px solid #d2d2d2;padding:10px;position:absolute;font-size:20px;display:none;z-index:99;} | ||
51 | + | ||
52 | +.more{background:url('../img/more.png') no-repeat;width:12px;height:7px;display:inline-block;cursor:pointer;margin-bottom:5px;} | ||
53 | + | ||
54 | + | ||
55 | +.logo{margin:0px auto 0px;width:193px;} | ||
56 | +.logo a{display:block;width:193px;height:84px;background:url('../img/logo.png') no-repeat;} | ||
57 | +.logo a span{display:none;} | ||
58 | + | ||
59 | +#call{color:#6a6a6a;text-decoration:none;border-bottom:1px dotted #6a6a6a;} | ||
60 | + | ||
61 | +.basket{float:right;position:relative;border:1px solid #d2d2d2;border-radius:5px;padding:15px 20px;font-size:18px;text-transform: uppercase;margin-top:13px;} | ||
62 | +.basket .info{float:left;border-right:1px solid #d2d2d2;padding-right:10px;margin-right:17px;} | ||
63 | +.basket .info span{color:#f75d50;font-size:22px;} | ||
64 | +.basket a:link,.basket a:visited{text-decoration:none;color:#000000;font-size:18px;} | ||
65 | + | ||
66 | +.basket span.more {margin-bottom: -1px} | ||
67 | +.menu{background:#596065;border:1px solid #e8e8e8;} | ||
68 | +.menu ul{margin:0px;padding:0px;list-style:none;} | ||
69 | +.menu ul li{float:left;border-right:1px solid #e8e8e8;} | ||
70 | +.menu ul li a{float:left;padding:15px 20px 15px 20px;text-transform: uppercase;color:#ffffff;font-size:14px;font-weight:bold;text-decoration: none;} | ||
71 | +.menu ul li a:hover{color:#e5e4e4;} | ||
72 | +.menu ul li.active a{background:#f5f5f5;color:#596065;} | ||
73 | + | ||
74 | +.menu_childs{background:#f5f5f5;border:1px solid #e8e8e8;border-bottom:2px solid #596065;} | ||
75 | +.menu_childs ul{margin:0px;padding:0px;list-style:none;} | ||
76 | +.menu_childs ul li{float:left;} | ||
77 | +.menu_childs ul li a{float:left;padding:15px 23px 15px 23px;text-transform: uppercase;color:#596065;font-size:14px;font-weight:bold;text-decoration: none;} | ||
78 | +.menu_childs ul li a:hover{color:#878b8e;} | ||
79 | + | ||
80 | +.fr ul li{border:none;} | ||
81 | +.akciya a{background:#f75d50;color:#ffffff;} | ||
82 | +.brends a{background:#95ba2f;color:#ffffff;} | ||
83 | + | ||
84 | +a.myorders{color:#f75d50} | ||
85 | + | ||
86 | + | ||
87 | +.slider{margin-top:20px;} | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | +#slides{width:720px;height:340px;position:relative;} | ||
97 | +.banner{float:left;margin-right:20px;} | ||
98 | + | ||
99 | +.slides_container { | ||
100 | + width:720px; | ||
101 | + overflow:hidden; | ||
102 | + position:relative; | ||
103 | + display:none; | ||
104 | +} | ||
105 | + | ||
106 | +/* | ||
107 | + Each slide | ||
108 | + Important: | ||
109 | + Set the width of your slides | ||
110 | + If height not specified height will be set by the slide content | ||
111 | + Set to display block | ||
112 | +*/ | ||
113 | + | ||
114 | +.slides_container div.slide { | ||
115 | + width:720px; | ||
116 | + height:340px; | ||
117 | + display:block; | ||
118 | +} | ||
119 | + | ||
120 | + | ||
121 | +/* | ||
122 | + Next/prev buttons | ||
123 | +*/ | ||
124 | + | ||
125 | +#slides .prev { | ||
126 | + position:absolute; | ||
127 | + top:150px; | ||
128 | + left:20px; | ||
129 | + width:25px; | ||
130 | + height:39px; | ||
131 | + display:block; | ||
132 | + z-index:999; | ||
133 | +} | ||
134 | + | ||
135 | +#slides .next { | ||
136 | + position:absolute; | ||
137 | + top:150px; | ||
138 | + right:15px; | ||
139 | + width:25px; | ||
140 | + height:39px; | ||
141 | + display:block; | ||
142 | + z-index:999; | ||
143 | +} | ||
144 | + | ||
145 | + | ||
146 | +/* | ||
147 | + Pagination | ||
148 | +*/ | ||
149 | + | ||
150 | +#slides .pagination { | ||
151 | + padding:0px; | ||
152 | + position:relative;z-index:999;margin:-30px auto;display:table; | ||
153 | +} | ||
154 | + | ||
155 | +#slides .pagination ul{list-style:none;margin:0px;padding:0px;} | ||
156 | + | ||
157 | +#slides .pagination li { | ||
158 | + float:left; | ||
159 | + margin:0 3px; | ||
160 | + list-style:none; | ||
161 | +} | ||
162 | + | ||
163 | +#slides .pagination li a { | ||
164 | + display:block; | ||
165 | + width:10px; | ||
166 | + height:0; | ||
167 | + padding-top:12px; | ||
168 | + background-image:url(../img/pagination.png); | ||
169 | + background-position:0 -12px; | ||
170 | + float:left; | ||
171 | + overflow:hidden; | ||
172 | +} | ||
173 | + | ||
174 | +#slides .pagination li.current a { | ||
175 | + background-position:0 0px; | ||
176 | +} | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | +.sub{margin:2px 0px 0px 0px;} | ||
181 | +.sub img{float:left;margin-right:2px;} | ||
182 | + | ||
183 | +.rubrics{margin:35px 0px;padding-bottom:10px;} | ||
184 | +.rubrics ul{list-style:none;margin:0px;padding:0px;} | ||
185 | +.rubrics ul li{float:left;margin:0px 35px;} | ||
186 | +.rubrics ul li a{float:left;width:120px;padding-top:130px;text-align:center;text-transform: uppercase;color:#494949;text-decoration:none;font-weight:bold;} | ||
187 | +.rubrics ul li.item1 a{background:url('../img/ico1.png') no-repeat;} | ||
188 | +.rubrics ul li.item2 a{background:url('../img/ico2.png') no-repeat;} | ||
189 | +.rubrics ul li.item3 a{background:url('../img/ico3.png') no-repeat;} | ||
190 | +.rubrics ul li.item4 a{background:url('../img/ico4.png') no-repeat;} | ||
191 | +.rubrics ul li.item5 a{background:url('../img/ico5.png') no-repeat;} | ||
192 | + | ||
193 | + | ||
194 | +.products{border-top:1px solid #d2d2d2;padding-bottom:30px;padding-top:20px;} | ||
195 | +.products ul{list-style:none;margin:0px;padding:0px;} | ||
196 | +.products ul li.item{float:left;width:160px;margin:0px 35px 15px;text-align:center;position:relative;} | ||
197 | +.products ul li a.name{display:block;color:#494949;text-decoration:none;margin:15px 0px;height:30px;} | ||
198 | +.products ul li .info{text-align: left;} | ||
199 | +.pn{border:none;} | ||
200 | + | ||
201 | +.cost{color:#f75d50;font-size:20px;margin:0px;padding:0px;} | ||
202 | +.cost span.valute{font-size:16px;} | ||
203 | +strike{font-size:18px;} | ||
204 | + | ||
205 | +a.link_buy{display:block;margin:10px auto;width:122px;height:38px;line-height:38px;background:url('../img/buy.png') no-repeat;text-transform: uppercase;color:#ffffff;text-decoration:none;font-weight:bold;text-align:center;} | ||
206 | + | ||
207 | +.mycarousel{position:absolute;right:-34px;top:-20px;} | ||
208 | +ul.mycarousel{list-style:none;margin:0px;padding:0px;} | ||
209 | +ul.mycarousel li{margin:0px;padding:0px;} | ||
210 | +.mycarousel img{border:1px solid #d2d2d2;} | ||
211 | + | ||
212 | +h3{text-align:center;text-transform: uppercase;font-size:20px;} | ||
213 | +h2.why{width:213px;height:49px;background:url('../img/logo-why.png') no-repeat;margin:0px auto; padding: 0 0 20px 0;} | ||
214 | +h2.why span{display:none;} | ||
215 | + | ||
216 | +ul.why_list{list-style:none;margin:0px;padding:0px;} | ||
217 | +ul.why_list li{float:left;width:180px;margin-right:30px;} | ||
218 | +ul.why_list li span{font-weight:bold;color:#799920;} | ||
219 | +ul.why_list li.item1{background:url('../img/why_item1.png') left no-repeat;padding:36px 0px 20px 110px;} | ||
220 | +ul.why_list li.item2{background:url('../img/why_item2.png') left no-repeat;padding:20px 0px 20px 110px;} | ||
221 | +ul.why_list li.item3{background:url('../img/why_item3.png') left no-repeat;padding:40px 0px 40px 110px;} | ||
222 | +ul.why_list li.item4{background:url('../img/why_item4.png') left no-repeat;padding:20px 0px 20px 110px;} | ||
223 | +ul.why_list li.item5{background:url('../img/why_item5.png') left no-repeat;padding:30px 0px 30px 110px;} | ||
224 | +ul.why_list li.item6{background:url('../img/why_item6.png') left no-repeat;padding:40px 0px 40px 110px;} | ||
225 | + | ||
226 | +.banner_akciya{margin:50px 0px;} | ||
227 | + | ||
228 | +.bottom{background:#4d5458;padding:40px 0px;color:#ffffff;} | ||
229 | +.bottom .leftbar{float:left;width:210px;margin-right:70px;} | ||
230 | +.bottom ul{list-style:none;margin:0px;padding:0px;line-height: 23px;} | ||
231 | +.bottom ul a{color:#ffffff;font-size:16px;text-decoration:none;} | ||
232 | +.bottom ul a:hover{color:#799920;} | ||
233 | + | ||
234 | +.phones{padding-left:25px;background:url('../img/phone.png') left top no-repeat;margin-top:50px;line-height: 23px;} | ||
235 | +.map{padding:5px 0px 5px 25px;background:url('../img/map.png') left no-repeat; margin-bottom: 7px;} | ||
236 | +a.more_map{color:#99a5ad;border-bottom:1px dotted #99a5ad;text-decoration:none;font-size:11px;text-align:center;} | ||
237 | + | ||
238 | +.bread-crumbs{padding:10px 0px 10px 20px;border-bottom:1px solid #d2d2d2;} | ||
239 | +.bread-crumbs ul{list-style:none;margin:0px 0px 0px 0px;padding:0px;} | ||
240 | +.bread-crumbs ul li{float:left;padding-right:5px;} | ||
241 | +.bread-crumbs ul li a:visited,.bread-crumbs ul li a:link{font-size:14px;color:#7d7d7d;text-decoration:underline;} | ||
242 | +.bread-crumbs ul li a:hover{color:#464646;text-decoration: none;} | ||
243 | +.breadcrumb > li + li:before { | ||
244 | + color: #ccc; | ||
245 | + content: "/ "; | ||
246 | + padding: 0 5px; | ||
247 | +} | ||
248 | + | ||
249 | + | ||
250 | +.loyout{padding:20px 0px;} | ||
251 | +.leftbar{float:left;width:200px;margin-right:35px;} | ||
252 | +.rightbar{float:right;width:380px;margin-left:35px;} | ||
253 | +.rightbar2{float:right;width:240px;margin-left:35px;} | ||
254 | +.content {overflow:hidden;min-height:500px;} | ||
255 | +* html .content{height:1%;} | ||
256 | +.content2 {overflow:hidden;} | ||
257 | +* html .content2{height:1%;} | ||
258 | + | ||
259 | +.filters{border-top:1px solid #d2d2d2;padding:20px 0px 0px;margin-top:20px;} | ||
260 | +.filters .begin{text-transform: uppercase;font-weight:bold;} | ||
261 | +.filters ul{list-style:none;margin:0px;padding:0px;line-height:22px;} | ||
262 | +.filters ul li a{color:#8fa951;text-decoration:none;} | ||
263 | +.filters ul li a:hover{text-decoration:underline;} | ||
264 | + | ||
265 | +.productLeftBar{float:left;width:230px;padding-left:20px;margin-right:20px;} | ||
266 | +.productRightBar{float:right;width:280px;margin-left:20px;} | ||
267 | +.productLeftBar h1{font-size:27px;border-bottom:1px solid #d2d2d2;margin-bottom:10px;} | ||
268 | + | ||
269 | +ul.product_mod{list-style:none;margin:10px 0px 0px 0px;padding:0px;} | ||
270 | +ul.product_mod li{float:left;margin-right:7px;} | ||
271 | +ul.product_mod li img{border:1px solid #d2d2d2;} | ||
272 | + | ||
273 | +ul.product_colors{list-style:none;margin:10px 0px 0px 0px;padding:0px;} | ||
274 | +ul.product_colors li{float:left;margin-right:7px;} | ||
275 | +ul.product_colors li img{border:1px solid #d2d2d2;} | ||
276 | +.productLeftBar .begin{text-transform: uppercase;font-weight:bold;} | ||
277 | + | ||
278 | +.cost_box{border-top:1px solid #d2d2d2;border-bottom:1px solid #d2d2d2;margin:10px 0px;padding:10px 0px;} | ||
279 | +.cost_box .w{float:left;margin-right:20px;padding-top:5px;} | ||
280 | + | ||
281 | +.product_service ul{list-style:none;margin:0px;padding:0px;} | ||
282 | +.product_service ul li a{color:#799920;text-decoration:none;border-bottom:1px dotted #799920;font-size:12px;} | ||
283 | +.product_service ul li.item1{background:url('../img/li1.png') left no-repeat;padding:3px 23px;} | ||
284 | +.product_service ul li.item2{background:url('../img/li2.png') left no-repeat;padding:3px 23px;} | ||
285 | +.product_service ul li.item3{background:url('../img/li3.png') left no-repeat;padding:3px 23px;} | ||
286 | + | ||
287 | +#nav_product{list-style:none;margin:0px;padding:0px;line-height:23px;} | ||
288 | +#nav_product li a{background:url('../img/li_plus.png') left no-repeat;padding:3px 15px;color:#000000;text-transform: uppercase;text-decoration:none;font-weight:bold;} | ||
289 | +#nav_product li a.active{background:url('../img/li_minus.png') left no-repeat;} | ||
290 | +#nav_product li .info{display:none;border-bottom:1px solid #d2d2d2;padding:10px 0px;margin-bottom:10px;} | ||
291 | + | ||
292 | + | ||
293 | +.modal_box{ | ||
294 | + position: fixed; | ||
295 | + left: 0; | ||
296 | + top: 0; | ||
297 | + width: 100%; | ||
298 | + height: 100%; | ||
299 | + z-index: 999; | ||
300 | + | ||
301 | + background: #000; | ||
302 | +filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); /* IE 5.5+*/ | ||
303 | +-moz-opacity: 0.5; /* Mozilla 1.6 Рё РЅРёР¶Рµ */ | ||
304 | +-khtml-opacity: 0.5; /* Konqueror 3.1, Safari 1.1 */ | ||
305 | +opacity: 0.5; | ||
306 | + | ||
307 | +} | ||
308 | +#data_box{position:absolute;top:100px;z-index:1000;width:400px;background:#ffffff; | ||
309 | + -webkit-box-shadow: 0 0 15px #000; | ||
310 | + -moz-box-shadow: 0 0 15px #000; | ||
311 | + box-shadow: 0 0 15px #000; | ||
312 | + border:7px solid #1b9bb6; | ||
313 | + border-radius:5px; | ||
314 | +} | ||
315 | +#data_box .data_wrp{padding:25px 15px 15px 15px;} | ||
316 | +#data_box .data_wrp h1{text-transform: uppercase;} | ||
317 | +#data_box .data_wrp hr{height: 1px;border: none;color: #000000;background: #000000;margin: 45px 0px 20px 0px;} | ||
318 | +#data_box .data_wrp hr.hr{height: 1px;border: none;color: #000000;background: #000000;margin: 20px 0px 20px 0px;} | ||
319 | +#data_box .pic-tango{margin-right:7px;margin-bottom:7px;} | ||
320 | +#modal_close{cursor:pointer;margin-top:-80px;margin-right:-50px;} | ||
321 | + | ||
322 | + | ||
323 | +.rightbar .control-label{float:left;width:80px;padding-top:5px;} | ||
324 | +.form-control{outline:0;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;margin-bottom:3px;width:250px;} | ||
325 | +.form-control:focus { | ||
326 | +border:#1b9bb6 1px solid; | ||
327 | +box-shadow: 0 0 10px #1b9bb6; | ||
328 | +-webkit-box-shadow: 0 0 10px #1b9bb6; | ||
329 | +-moz-box-shadow: 0 0 10px #1b9bb6; | ||
330 | +} | ||
331 | +.help-block{color:red;font-size:12px;margin-bottom:5px;} | ||
332 | + | ||
333 | +.basket_item{padding:10px 0px;border-bottom:1px solid #b7b7b7;} | ||
334 | +.basket_item img{margin-right:20px;} | ||
335 | +.basket_item .count{margin:20px 0px;} | ||
336 | +.basket_item .fr{margin-top:5px;} | ||
337 | +.basket_item .info{overflow:hidden;} | ||
338 | +a.del:visited,a.del:link{background:url('../img/del.png') left center no-repeat;padding:2px 25px;font-size:12px;font-weight:normal;color:#787878;text-decoration: underline;} | ||
339 | +a.del:hover{color:#a52828;text-decoration: underline;} | ||
340 | + | ||
341 | +.total{text-align:right;color:#87476a;font-size:20px;margin:10px 0px;} | ||
342 | + | ||
343 | +.submit4{margin-top:5px;border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:14px;font-weight:bold;cursor:pointer;} | ||
344 | +.submit4:hover{background:#f75d50;} | ||
345 | + | ||
346 | +.submit4m{border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:12px;font-weight:bold;cursor:pointer;} | ||
347 | +.submit4m:hover{background:#f75d50;} | ||
348 | + | ||
349 | +.btn-primary{margin-top:5px;border:none;padding:8px 13px;background:#95ba2f;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:14px;font-weight:bold;cursor:pointer;} | ||
350 | +.btn-primary:hover{background:#f75d50;} | ||
351 | + | ||
352 | +a.logout:visited,a.logout:link{border:none;padding:3px 5px;background:#f75d50;border-radius:5px;color:#ffffff;text-transform: uppercase;text-decoration:none;font-size:11px;font-weight:normal;cursor:pointer;} | ||
353 | +a.logout:hover{background:#95ba2f;} | ||
354 | + | ||
355 | +.boy_box{border-bottom:1px solid #b7b7b7;padding:0px 0px 15px 0px;} | ||
356 | +.boy_box div{padding-top:10px;} | ||
357 | + | ||
358 | +.content_product .info{padding:0px 0px 20px 0px;} | ||
359 | + | ||
360 | +a.btn-success{display:inline-block;border:2px solid #d8d6d6;color:#95ba2f;border-radius:5px;padding:5px;margin-bottom:10px;text-decoration:none;font-size:14px;} | ||
361 | +a.btn-success:hover{border:#95ba2f 2px solid;color:#f75d50;} | ||
362 | + | ||
363 | + | ||
364 | +.txtb1{font-size:14px;font-weight:bold;} | ||
365 | +.txtf{font-size:14px;font-weight:bold;color:#87476a;} | ||
366 | +.txtfb{font-size:20px;font-weight:bold;color:#87476a;} | ||
367 | + | ||
368 | +.count{margin:20px 0px;} | ||
369 | +.count input[type="number"]{outline:0;width:50px;border:1px solid #d8d6d6;border-radius:5px;padding:5px 0px 5px 0px;font-size:14px;text-indent:10px;margin-bottom:7px;} | ||
370 | + | ||
371 | +a.link2:visited,a.link2:link{font-size:14px;font-weight:bold;color:#95ba2f;text-decoration: none;} | ||
372 | +a.link2:hover{color:#f75d50;text-decoration: underline;} | ||
373 | + | ||
374 | + | ||
375 | + | ||
376 | +.well{margin:50px auto;width:400px;background:#f5f5f5;border:1px solid #e8e8e8;padding:20px;border-radius:5px;} | ||
377 | +.control-label{float:left;width:100px;padding-top:5px;} | ||
378 | +#user-verifycode-image{display:block;} | ||
379 | +.form-inline{display:inline;} | ||
380 | +.form-inline .form-group{float:left;} | ||
381 | +.form-inline .form-group select{width:100px;} | ||
382 | +.form-group{margin-bottom: 10px;} | ||
383 | +.table-bordered{width:100%;border:1px solid silver;} | ||
384 | +.table-bordered th{background: #B3D1FD;padding:5px;} | ||
385 | +.table-bordered tr td{border:1px solid silver;padding:5px;} | ||
386 | +.table-bordered .filters{display: none;} | ||
387 | + | ||
388 | +.formCost label{float:left;width:30px;} | ||
389 | + | ||
390 | +ul.brends_list{list-style: none;margin:0px;padding:0px;} | ||
391 | +ul.brends_list li{float:left;text-align:center;margin:0px 15px 20px 15px;} | ||
392 | + | ||
393 | +.compare{text-align: center;} | ||
394 | +.compare a:visited,.compare a:link{font-size:12px;text-decoration: underline;} | ||
395 | + | ||
396 | +.alert-success{margin:10px 0px;padding:10px;border:1px solid #3ed824;border-radius: 5px;background: #c0feb5;} | ||
397 | + | ||
398 | +.news_item{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid silver;} | ||
399 | +.news_item img{margin-right:20px;} | ||
400 | +.news_item a{font-size:16px;} | ||
401 | + | ||
402 | +.pic{margin-right:20px;} | ||
403 | + | ||
404 | +#subscribe-sale{width:100px;float:left;margin-right:20px;} | ||
405 | +.saletxt{width:150px;float:left;color:#ffffff;} | ||
406 | +#subscribe-email{width:390px;} | ||
407 | + | ||
408 | +.txts{color:#9da9b1;font-size:18px;margin-bottom:20px;} | ||
409 | + | ||
410 | +.content ul.pagination{list-style:none;text-align:center;} | ||
411 | +.content ul.pagination li{display:inline;} | ||
412 | +.content ul.pagination li a{padding:3px;color:#82a02f;font-size: 16px;margin:0px; text-decoration: none; } | ||
413 | +.content ul.pagination li a:hover {text-decoration: underline} | ||
414 | +.content ul.pagination li.active a{color: #333333;} | ||
415 | +.boxitem{height:300px;} | ||
416 | +ul.social {margin-top: 20px;} | ||
417 | +.social{list-style: none;margin: 10px;padding: 0px;height:48px;} | ||
418 | +.social li{display:inline-block;margin-right:7px;padding-bottom: 10px;} | ||
419 | +.social li a{ | ||
420 | + width:36px; | ||
421 | + height:36px; | ||
422 | + display:block; | ||
423 | + margin:0;padding:0; | ||
424 | + text-indent:-9999px; | ||
425 | + background:#bcbcbc url(../img/social-ico-two.png) no-repeat 0 0; | ||
426 | + border-radius:48px; | ||
427 | + -moz-border-radius:48px; | ||
428 | + -webkit-border-radius:48px; | ||
429 | + -webkit-transition: all 0.5s ease-out; | ||
430 | + -moz-transition: all 0.5s ease-out; | ||
431 | + transition: all 0.5s ease-out; | ||
432 | +} | ||
433 | +.social .fb{background-position:-44px 0; | ||
434 | +cursor: pointer; | ||
435 | +} | ||
436 | +.social .vk{ | ||
437 | +cursor: pointer; | ||
438 | +} | ||
439 | +.social .vk:hover{background-color:#5B7FA6;} | ||
440 | +.social .fb:hover{background-color:#354f89; | ||
441 | +} | ||
442 | +.social .gp{background-position:-132px 0; | ||
443 | +cursor: pointer;} | ||
444 | +.social .gp:hover{background-color:#c72f21;} | ||
445 | +.social .tw{background-position:-144px 0; | ||
446 | +cursor: pointer;} | ||
447 | +.social .tw:hover{background-color:#6398c9;} | ||
448 | +.social .ok{background-position:-89px 0; | ||
449 | +cursor: pointer;} | ||
450 | +.social .ok:hover{background-color:#f88f15;} | ||
451 | +.social ul li a:hover{ | ||
452 | + background-color:#065baa; | ||
453 | +} | ||
454 | + | ||
455 | +.socialbox{margin:10px 0px;} | ||
456 | +.hide{display:none;} | ||
457 | + | ||
458 | + | ||
459 | + | ||
460 | +.fotter{background: #484f55;height: 50px;color:#98a3ab;} | ||
461 | +.fotter a{color:#98a3ab; line-height: 50px; float: left;} | ||
462 | + | ||
463 | + | ||
464 | +.view_products2{list-style: none;overflow:auto;height:400px;} | ||
465 | +.view_products2 img{float:left;margin-right:20px;} | ||
466 | +.view_products2 li{margin:10px 0px;} | ||
467 | + | ||
468 | + | ||
469 | +.pixbox{width:134px;height:200px;overflow: hidden;} | ||
470 | + | ||
471 | + | ||
472 | +.form-order{background:#f5f5f5;padding:10px;border:1px solid #d2d2d2;} | ||
473 | +#order-payment{float:right;width:280px;} | ||
474 | +#order-delivery{float:right;width:280px;} | ||
475 | + | ||
476 | +.delivery-data{padding:5px;border:1px solid #1bb631;background: #b7f5bf;display:none;border-radius: 5px;} | ||
477 | + | ||
478 | +.jcarousel-next-disabled, .jcarousel-prev-disabled {display: none !important;} | ||
479 | +.content2 br {display: none;} | ||
480 | +.pixbox a { | ||
481 | + width: 134px; | ||
482 | + height: 200px; | ||
483 | + display: table-cell; | ||
484 | + vertical-align: middle; | ||
485 | +} | ||
486 | +.pixbox img { | ||
487 | + max-width: 134px; | ||
488 | + max-height: 200px; | ||
489 | + vertical-align: middle; | ||
490 | +} | ||
491 | +.pagination li.prev.disabled span { | ||
492 | + padding: 9px; | ||
493 | + border-radius: 10%; | ||
494 | + color: #4D5458; | ||
495 | + font-size: 14px; | ||
496 | + margin: 0px; | ||
497 | + border: 1px solid #4d5458; | ||
498 | +} | ||
499 | +.fr {float: right;} | ||
500 | + | ||
501 | +.nobottom{border-bottom:none !important;} | ||
502 | + | ||
503 | +.dotted a{border-bottom: 1px dotted #808080;} | ||
504 | + | ||
505 | +.mycabinet{padding-left:20px;margin-top:20px;} | ||
506 | +.mycabinet .begin{text-transform:uppercase;font-size: 13px;font-weight:bold; padding-bottom:15px;} | ||
507 | +.mycabinet ul{margin:0px;padding:0px;list-style:none;} | ||
508 | +.mycabinet ul li{padding-top:10px;padding-bottom:10px;} | ||
509 | +.mycabinet a{color:#799920;text-decoration:none;} | ||
510 | + | ||
511 | +.lay_title .uppercase{text-transform:uppercase;} | ||
512 | +.lay_title .center{text-align:center;} | ||
513 | +.lay_title{padding-top:15px;font-size:24px;} | ||
514 | + | ||
515 | +.user_data{width:390px;border-right:1px solid #d2d2d2;float:left;} | ||
516 | +.user_data .col{padding-bottom:35px;} | ||
517 | +.user_data .col.last{padding-bottom:0px;} | ||
518 | +.user_data .title{text-transform:uppercase;font-weight:bold;width:170px;float:left;font-size:13px;} | ||
519 | +.user_data .data{float:left;font-size:13px;} | ||
520 | + | ||
521 | +.edit_menu{float:left;padding-left:60px;font-size:13px;} | ||
522 | +.edit_menu div{padding-bottom:20px;} | ||
523 | +.edit_menu a{color:#799920;text-decoration:none;} | ||
524 | +.edit_menu .dotted{border-bottom:1px dotted #799920;} | ||
525 | + | ||
526 | +.user_edit_area{padding-top:30px;} | ||
527 | + | ||
528 | +/* part two */ | ||
529 | + | ||
530 | +.user_data_editing{float:left;} | ||
531 | +.inputs .col{padding-bottom:12px !important;} | ||
532 | +.user_data_editing .col{padding-bottom:35px; width:432px;} | ||
533 | +.user_data_editing .title{text-transform:uppercase;font-weight:bold;width:170px;float:left;font-size:13px;} | ||
534 | +.user_data_editing .data{float:left;font-size:13px; width:262px;} | ||
535 | + | ||
536 | +.user_data_editing input[type="text"] { | ||
537 | + padding:0; | ||
538 | + margin:0; | ||
539 | + border:1px solid #d2d2d2; | ||
540 | + padding-top:7px; | ||
541 | + padding-bottom:7px; | ||
542 | + padding-left:10px; | ||
543 | + padding-right:10px; | ||
544 | + border-radius:4px; | ||
545 | + font-size:12px; | ||
546 | + margin-top:-10px; | ||
547 | + width: 240px; | ||
548 | +} | ||
549 | + | ||
550 | +.user_data_editing .add {color:#799920; text-decoration:none;border-bottom:1px dotted #799920;} | ||
551 | +.add_more{padding-bottom:24px; padding-left:170px;} | ||
552 | + | ||
553 | +.delete{float:right;} | ||
554 | +.delete_button{background: url('../img/ico_close.png') right no-repeat; width:16px;height:16px;float:right;} | ||
555 | + | ||
556 | +.content_area{width:450px;} | ||
557 | + | ||
558 | +.bottom3{border-top:3px solid #95ba2f !important;border-bottom:3px solid #799920 !important; float:left;font-size:15px;} | ||
559 | +.bottom3:hover{border-top:3px solid #f75d50 !important;border-bottom:3px solid #c33327 !important;} | ||
560 | +#cancel{text-decoration:none;color:#799920;font-size:13px;border-bottom:1px dotted #799920;float:left;margin-left:40px;} | ||
561 | + | ||
562 | +.buttons{ | ||
563 | + display: inline-flex; | ||
564 | + align-items: center;} | ||
565 | + | ||
566 | +/* part three */ | ||
567 | + | ||
568 | +.favorites{background-color:#f5f5f5; padding:5px;font-size:14px;} | ||
569 | +.favorites .fav_point{background-color:#ffffff;border:1px solid #d2d2d2;border-radius:3px;padding-top:10px;padding-bottom:10px;padding-left:20px;padding-right:20px; margin-top:5px;} | ||
570 | +.favorites .fav_point .left{float:left; padding-right:0; width:178px;} | ||
571 | +.favorites .fav_point .right{float:right; padding-right:0; padding-left:0;} | ||
572 | + | ||
573 | +.favorites .link{color:#799920; text-decoration:none;border-bottom:1px dotted #799920;} | ||
574 | + | ||
575 | +.redtext{color:#f75d50;} | ||
576 | +.greentext{color:#95ba2f;} | ||
577 | + | ||
578 | +/* part three one */ | ||
579 | +.hold .orders_view{display:none !important;} | ||
580 | +.orders_view{width:680px;margin-top:13px;padding-top:13px;padding-bottom:5px;border-top:1px solid #d2d2d2;display:block;} | ||
581 | +.orders_view .order{float:left;width:225px;text-align:center;} | ||
582 | +.orders_view .order .order_price{color:#f75d50;font-weight:bold;font-size:15px;} | ||
583 | +.orders_view .order .order_price span{font-size:24px;} | ||
584 | +.orders_view .order img{padding-bottom:22px;} | ||
585 | +.orders_view .order .note{font-size:13px;} | ||
586 | +.orders_view .order .note span{color:#f75d50;} | ||
587 | + | ||
588 | +.basket_hovered{ | ||
589 | + position:absolute; | ||
590 | + border:1px solid #d2d2d2;border-radius:5px;padding:15px 20px; | ||
591 | + background-color:white; | ||
592 | + right:-1px; | ||
593 | + margin-top:10px; | ||
594 | + width:640px; | ||
595 | + display:none; | ||
596 | + z-index:1111; | ||
597 | +} | ||
598 | + | ||
599 | + | ||
600 | +.open .basket_hovered{ | ||
601 | + display:block; | ||
602 | +} | ||
603 | + | ||
604 | +.open, .open .basket_hovered { | ||
605 | + -moz-box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
606 | + -webkit-box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
607 | + box-shadow: 0px 0px 5px rgba(149,149,149,0.75); | ||
608 | +} | ||
609 | +.basket_hovered1:before{ | ||
610 | + position:absolute; | ||
611 | + left:0; | ||
612 | + content:' '; | ||
613 | + width:100%; | ||
614 | + background-color:white; | ||
615 | + height:10px; | ||
616 | + top:45px; | ||
617 | + z-index:1112; | ||
618 | +} | ||
619 | + | ||
620 | +.basket_item input{ | ||
621 | + border: 1px solid #d2d2d2; | ||
622 | + border-radius: 4px; | ||
623 | + padding:9px; | ||
624 | + width:26px; | ||
625 | + font-size:18px; | ||
626 | + font-weight:bold; | ||
627 | + text-align:center; | ||
628 | + background-color:white; | ||
629 | + color: black; | ||
630 | + margin:7px; | ||
631 | +} | ||
632 | +input[type=number]::-webkit-inner-spin-button, | ||
633 | +input[type=number]::-webkit-outer-spin-button {-webkit-appearance: none; | ||
634 | + margin:0;} | ||
635 | + | ||
636 | + | ||
637 | +.minus{background:url('../img/minus.png') no-repeat;width:15px;height:15px;display:inline-block;cursor:pointer;} | ||
638 | +.plus{background:url('../img/plus.png') no-repeat;width:15px;height:15px;display:inline-block;cursor:pointer;} | ||
639 | + | ||
640 | +.basket_sum{padding-top:15px;} | ||
641 | + | ||
642 | +.basket_sum .sum_text{font-size:15px; text-transform:none;padding-top:12px;} | ||
643 | +.basket_sum .sum_text span{font-size:18px; color:#f75d50; font-weight:bold;} | ||
644 | +.basket_sum a{color:white !important; font-size:15px !important; float:right;} | ||
645 | + | ||
646 | + | ||
647 | +.black{z-index:9999; background-color:rgba(0,0,0,0.5);width:100%;height:100%;position:fixed;display:block;padding-top:9%;} | ||
648 | +.black.hidden{display:none;} | ||
649 | +.black .item_added_win{background-color:#ffffff;width:640px; margin:auto;position:relative;} | ||
650 | + | ||
651 | +.black_close{position:absolute; top:30px;right:30px;background:url('../img/ico_close2.png') no-repeat;width:22px;height:22px;display:inline-block;cursor:pointer;} | ||
652 | + | ||
653 | +.block_content{padding-left:20px;padding-right:20px;} | ||
654 | +.item_added_win h2{text-transform:uppercase;text-align:center;padding:30px;} | ||
655 | + | ||
656 | +.block_content .item{padding-top:20px;padding-bottom:20px;border-bottom:1px solid #d2d2d2;} | ||
657 | + | ||
658 | +.uppercase{text-transform:uppercase;} | ||
659 | + | ||
660 | +.w230{width:230px;} | ||
661 | +.w260{width:260px;} | ||
662 | +.w430{width:430px;} | ||
663 | +.borderbottom{border-bottom:1px solid #d2d2d2;} | ||
664 | +.left_block .begin{text-transform:uppercase;font-size: 13px;font-weight:bold; padding-bottom:15px;} | ||
665 | + | ||
666 | +.color_variants .variant{ | ||
667 | + text-align:center; | ||
668 | + border:1px solid #d2d2d2; | ||
669 | + float:left; | ||
670 | + margin-right:5px; | ||
671 | + margin-bottom:5px; | ||
672 | +} | ||
673 | +.variant:hover{cursor:pointer;} | ||
674 | +.color_variants{margin-top:14px;margin-bottom:-5px;} | ||
675 | +.color_variants .variant.active{width:44px;height:44px;border:2px solid #95ba2f;} | ||
676 | +.color_variants .variant.active a{width:44px;height:44px;} | ||
677 | + | ||
678 | +.tobasket{margin-top:20px;margin-bottom:20px;} | ||
679 | +.tobasket:hover{color:white;} | ||
680 | + | ||
681 | +.variant{width:46px;height:46px;} | ||
682 | +.variant.active{width:44px;height:44px;} | ||
683 | + | ||
684 | +.layout{margin-top:15px;} | ||
685 | +.left_block{float:left;} | ||
686 | +.right_block{float:right;} | ||
687 | +.center_block{float:left;margin-left:23px;} | ||
688 | + | ||
689 | +.left_block .links{margin-top:25px;} | ||
690 | + | ||
691 | +.left_block .links li{list-style: none; padding-left:25px;display:inline-block;cursor:pointer;height:20px;} | ||
692 | +.left_block .links ul{margin:0;padding:0;} | ||
693 | +.left_block .links a{font-size:13.5px;text-decoration:none; color:#8ba73e;} | ||
694 | + | ||
695 | + | ||
696 | +.links .add_bookmarks{background:url('../img/ico_add_bookmark.png') no-repeat center left; } | ||
697 | +.links .what_price{background:url('../img/ico_price.png') no-repeat center left; } | ||
698 | +.links .add_compare{background:url('../img/ico_scales.png') no-repeat center left; } | ||
699 | + | ||
700 | +.spoiler_one{padding-top:15px;padding-bottom:15px;border-bottom:1px solid #d2d2d2;} | ||
701 | +.spoiler_one .spoiler_content{margin-top:15px;font-size:13px;} | ||
702 | +.spoiler_one .spoiler_content.hidden{display:none;} | ||
703 | + | ||
704 | +.title_spoiler:hover {cursor: pointer} | ||
705 | + | ||
706 | +.title_spoiler{ | ||
707 | + background:url('../img/ico_open.png') no-repeat center left; | ||
708 | + padding-left: 17px; | ||
709 | + font-size:13px; | ||
710 | + text-transform:uppercase; | ||
711 | + color:#333333; | ||
712 | + font-weight:bold; | ||
713 | + text-decoration:none; | ||
714 | +} | ||
715 | +.title_spoiler.closed{ | ||
716 | + background:url('../img/ico_close3.png') no-repeat center left; | ||
717 | +} | ||
718 | + | ||
719 | +.features{ | ||
720 | + list-style:none; | ||
721 | + padding:0; | ||
722 | + margin:0; | ||
723 | + font-size:13px; | ||
724 | +} | ||
725 | +.features a{ | ||
726 | + font-size:13px; | ||
727 | + text-decoration:none; | ||
728 | + border-bottom:1px dotted #8ba73e; | ||
729 | + color:#8ba73e; | ||
730 | +} | ||
731 | +.features li{ | ||
732 | + padding-top:5px; | ||
733 | + padding-bottom:4px; | ||
734 | +} | ||
735 | + | ||
736 | +.note_prod{ | ||
737 | + width:225px; | ||
738 | + height:23px; | ||
739 | + overflow:hidden; | ||
740 | + border-radius:5px; | ||
741 | + display:table; | ||
742 | + text-transform:uppercase; | ||
743 | + font-size:11px; | ||
744 | + font-weight:bold; | ||
745 | +} | ||
746 | + | ||
747 | +.note_prod .one{ | ||
748 | + z-index:999; | ||
749 | +} | ||
750 | +.note_prod .two{ | ||
751 | + z-index:998; | ||
752 | +} | ||
753 | + | ||
754 | +.note_prod .blue{ | ||
755 | + float:left; | ||
756 | + padding-top:5px; | ||
757 | + padding-bottom:5px; | ||
758 | + background-color:#42b9f6; | ||
759 | + padding-left:10px; | ||
760 | + padding-right:5px; | ||
761 | + position:relative; | ||
762 | +} | ||
763 | + | ||
764 | +.note_prod .blue:after{ | ||
765 | + content:''; | ||
766 | + width: 0; | ||
767 | + height: 0; | ||
768 | + border-top: 13px solid transparent; | ||
769 | + border-left: 5px solid #42b9f6; | ||
770 | + border-bottom: 13px solid transparent; | ||
771 | + position:absolute; | ||
772 | + top:-1px; | ||
773 | + margin-left:5px; | ||
774 | +} | ||
775 | +.note_prod .red{ | ||
776 | + float:left; | ||
777 | + padding-top:5px; | ||
778 | + padding-bottom:5px; | ||
779 | + background-color:#f75d50; | ||
780 | + padding-left:10px; | ||
781 | + padding-right:5px; | ||
782 | + position:relative; | ||
783 | + color:#ffffff; | ||
784 | +} | ||
785 | +.note_prod .red:after{ | ||
786 | + content:''; | ||
787 | + width: 0; | ||
788 | + height: 0; | ||
789 | + border-top: 13px solid transparent; | ||
790 | + border-left: 5px solid #f75d50; | ||
791 | + border-bottom: 13px solid transparent; | ||
792 | + position:absolute; | ||
793 | + top:-1px; | ||
794 | + margin-left:5px; | ||
795 | +} | ||
796 | +.note_prod .yellow{ | ||
797 | + float:left; | ||
798 | + padding-top:5px; | ||
799 | + padding-bottom:5px; | ||
800 | + background-color:#fbc665; | ||
801 | + padding-left:10px; | ||
802 | + padding-right:5px; | ||
803 | + position:relative; | ||
804 | +} | ||
805 | +.note_prod .yellow:after{ | ||
806 | + content:''; | ||
807 | + width: 0; | ||
808 | + height: 0; | ||
809 | + border-top: 13px solid transparent; | ||
810 | + border-left: 5px solid #fbc665; | ||
811 | + border-bottom: 13px solid transparent; | ||
812 | + position:absolute; | ||
813 | + top:-1px; | ||
814 | + margin-left:5px; | ||
815 | +} | ||
816 | + | ||
817 | + | ||
818 | +.products_block .product{float:left; width:190px; vertical-align:bottom;} | ||
819 | +.product .image{height:225px;position:relative;} | ||
820 | +.product .image img{position:absolute;bottom:0;left:15px;} | ||
821 | + | ||
822 | +.price{ | ||
823 | + font-size: 18px; | ||
824 | + color: #f75d50; | ||
825 | + font-weight: bold; | ||
826 | + text-align:center;} | ||
827 | + | ||
828 | +.product{padding-bottom:30px;position:relative;} | ||
829 | +.product p{font-size:15px; text-align:center; margin-top:15px;} | ||
830 | +.left52{margin-left:52px;} | ||
831 | +.product a{color:#ffffff;} | ||
832 | +.mrg1{margin-top: 25px; margin-bottom: 15px;} | ||
833 | + | ||
834 | +.products_martopbot{margin-top:60px;margin-bottom:100px;} | ||
835 | + | ||
836 | +.cont_shop_but{display:table-cell;vertical-align:middle;padding:35px;} | ||
837 | +.cont_shop{text-decoration:none;font-size:12px;border-bottom:1px dotted #799920;color:#799920;} | ||
838 | + | ||
839 | +.icons{ | ||
840 | + width:45px; | ||
841 | + height:50%; | ||
842 | + position:absolute; | ||
843 | + z-index:9; | ||
844 | + right:0; | ||
845 | + padding-top:25px; | ||
846 | + padding-right:15px; | ||
847 | +} | ||
848 | +.icons a{ | ||
849 | + width:44px; | ||
850 | + height:44px; | ||
851 | + float: left; | ||
852 | + border: 1px solid #d2d2d2; | ||
853 | + margin-bottom: 5px; | ||
854 | + background-color: white; | ||
855 | +} | ||
856 | +a:hover{cursor:pointer;} | ||
857 | + | ||
858 | + | ||
859 | +.basket_item .form-group{display:inline;} | ||
0 | \ No newline at end of file | 860 | \ No newline at end of file |
1 | +/* это правила оформления. К скрипту отношения не имеют */ | ||
2 | +.cost_box form { | ||
3 | + width: 250px; | ||
4 | + position: relative; | ||
5 | + margin: 0px; | ||
6 | + | ||
7 | +} | ||
8 | + | ||
9 | +.formCost { | ||
10 | + float: left; | ||
11 | + margin-bottom: 10px; | ||
12 | +} | ||
13 | +.formCost div{float:left;} | ||
14 | +.formCost label { | ||
15 | + float: left; | ||
16 | + font-size: 14px; | ||
17 | + color:#929292; | ||
18 | + font-weight: bold; | ||
19 | + margin-right: 5px; | ||
20 | + margin-top:5px; | ||
21 | + position: relative; | ||
22 | + top: 2px; | ||
23 | +} | ||
24 | +.formCost input { | ||
25 | + float: left; | ||
26 | + text-align: right; | ||
27 | + font-size: 14px; | ||
28 | + font-weight: bold; | ||
29 | + width: 55px; | ||
30 | + height: 20px;padding:5px; | ||
31 | + background: none; | ||
32 | + border: 1px solid #d2d2d2; | ||
33 | + margin-right: 10px; | ||
34 | + border-radius:5px; | ||
35 | +} | ||
36 | + | ||
37 | +.sliderCont { margin-top:20px; | ||
38 | + width: 178px; | ||
39 | + height: 27px; | ||
40 | + float: left; | ||
41 | +} | ||
42 | + | ||
43 | +/* А это правила для скрипта: */ | ||
44 | +#slider { | ||
45 | + width: 200px; | ||
46 | +} | ||
47 | + | ||
48 | +.ui-slider { | ||
49 | + position: relative; | ||
50 | +} | ||
51 | +.ui-slider .ui-slider-handle { | ||
52 | + position: absolute; | ||
53 | + z-index: 2; | ||
54 | + width: 15px; | ||
55 | + height: 15px; | ||
56 | + background: url(../img/begunok_slider.png) no-repeat; | ||
57 | + cursor: pointer | ||
58 | +} | ||
59 | +.ui-slider .ui-slider-range { | ||
60 | + position: absolute; | ||
61 | + z-index: 1; | ||
62 | + font-size: .7em; | ||
63 | + display: block; | ||
64 | + border: 0; | ||
65 | + overflow: hidden; | ||
66 | +} | ||
67 | +.ui-slider-horizontal { | ||
68 | + height: 4px; | ||
69 | +} | ||
70 | +.ui-slider-horizontal .ui-slider-handle { | ||
71 | + top: -5px; | ||
72 | + margin-left: -6px; | ||
73 | +} | ||
74 | +.ui-slider-horizontal .ui-slider-range { | ||
75 | + top: 0; | ||
76 | + height: 100%; | ||
77 | +} | ||
78 | +.ui-slider-horizontal .ui-slider-range-min { | ||
79 | + left: 0; | ||
80 | +} | ||
81 | +.ui-slider-horizontal .ui-slider-range-max { | ||
82 | + right: 0; | ||
83 | +} | ||
84 | +.ui-widget-content { | ||
85 | + border: 3px solid #d2d2d2; | ||
86 | + background: #fff; | ||
87 | +} | ||
88 | +.ui-widget-header { | ||
89 | + border: 1px solid #D4D4D4; | ||
90 | + background: #F00; | ||
91 | +} | ||
92 | +.ui-corner-all { | ||
93 | + -moz-border-radius: 4px; | ||
94 | + -webkit-border-radius: 4px; | ||
95 | + border-radius: 4px; | ||
96 | +} | ||
97 | + |
frontend/web/files/.tmb/l1_c2l0ZV9leHRyZW1fbmV3X25ld3NfYnV0dG9uXzIuanBn1437031556.png
0 → 100644
2.51 KB
934 KB
3.56 KB
1.77 KB
1.75 KB
1.46 KB
138 KB
50.4 KB
1.34 KB
1.09 KB
35.9 KB
527 Bytes
1.02 KB
No preview for this file type
1.18 KB
7.71 KB
6.67 KB
4.38 KB
6.9 KB
4.23 KB
26 KB
21.4 KB
23.4 KB
1.13 KB
1.12 KB
1.1 KB
1.06 KB
1.08 KB
1.06 KB
4.42 KB
4.26 KB
1.18 KB
35.6 KB
21 KB
1.19 KB
25.8 KB
1018 Bytes
2.08 KB
14.2 KB
1.05 KB
1.17 KB
56.2 KB
25.8 KB
1.4 KB
62.3 KB
123 KB
3.67 KB
2.67 KB
1.03 KB
1.01 KB
1.01 KB
1.01 KB
4.32 KB
3.93 KB
3.31 KB
4.18 KB
3.71 KB
4.33 KB