1 |
<?php |
= |
1 |
<?php |
2 |
/******************************************************************************/ |
|
2 |
/******************************************************************************/ |
3 |
// // |
<> |
|
|
4 |
// InstantCMS v1.10.3 // |
|
3 |
// InstantCMS v1.10 // |
5 |
// http://www.instantcms.ru/ // |
|
|
|
6 |
// // |
|
|
|
7 |
// written by InstantCMS Team, 2007-2013 // |
|
|
|
8 |
// produced by InstantSoft, (www.instantsoft.ru) // |
|
|
|
9 |
// // |
|
|
|
10 |
// LICENSED BY GNU/GPL v2 // |
|
|
|
11 |
// // |
|
|
|
12 |
/******************************************************************************/ |
= |
4 |
/******************************************************************************/ |
13 |
|
|
5 |
|
14 |
if(!defined('VALID_CMS')) { die('ACCESS DENIED'); } |
|
6 |
if(!defined('VALID_CMS')) { die('ACCESS DENIED'); } |
15 |
|
<> |
7 |
$inUser = cmsUser::getInstance(); |
16 |
/* |
|
8 |
$inPage = cmsPage::getInstance(); |
17 |
* Доступны объекты $inCore $inUser $inPage($this) $inConf $inDB |
|
|
|
18 |
*/ |
|
|
|
19 |
|
= |
9 |
|
20 |
// Получаем количество модулей на нужные позиции |
<> |
|
|
21 |
$mod_count['top'] = $this->countModules('top'); |
|
10 |
$mod_count['top'] = $inPage->countModules('top'); |
22 |
$mod_count['topmenu'] = $this->countModules('topmenu'); |
|
|
|
23 |
$mod_count['sidebar'] = $this->countModules('sidebar'); |
|
11 |
$mod_count['sidebar'] = $inPage->countModules('sidebar'); |
24 |
|
= |
12 |
|
25 |
// Подключаем стили шаблона |
+- |
|
|
26 |
$this->addHeadCSS('templates/'.TEMPLATE.'/css/reset.css'); |
|
|
|
27 |
$this->addHeadCSS('templates/'.TEMPLATE.'/css/text.css'); |
|
|
|
28 |
$this->addHeadCSS('templates/'.TEMPLATE.'/css/960.css'); |
|
|
|
29 |
$this->addHeadCSS('templates/'.TEMPLATE.'/css/styles.css'); |
|
|
|
30 |
// Подключаем colorbox (просмотр фото) |
|
|
|
31 |
$this->addHeadJS('includes/jquery/colorbox/jquery.colorbox.js'); |
|
|
|
32 |
$this->addHeadCSS('includes/jquery/colorbox/colorbox.css'); |
|
|
|
33 |
$this->addHeadJS('includes/jquery/colorbox/init_colorbox.js'); |
|
|
|
34 |
// LANG фразы для colorbox |
|
|
|
35 |
$this->addHeadJsLang(array('CBOX_IMAGE','CBOX_FROM','CBOX_PREVIOUS','CBOX_NEXT','CBOX_CLOSE','CBOX_XHR_ERROR','CBOX_IMG_ERROR', 'CBOX_SLIDESHOWSTOP', 'CBOX_SLIDESHOWSTART')); |
|
|
|
36 |
|
|
|
|
37 |
?> |
= |
13 |
?> |
38 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
14 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
39 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
15 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
40 |
|
+- |
|
|
41 |
<head> |
= |
16 |
<head> |
|
|
-+ |
17 |
<!-- HEAD !--> |
|
|
|
18 |
<?php $inPage->printHead(); ?> |
42 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
= |
19 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
43 |
<?php $this->printHead(); ?> |
+- |
|
|
44 |
<?php if($inUser->is_admin){ ?> |
= |
20 |
<?php if($inUser->is_admin){ ?> |
45 |
<script src="/admin/js/modconfig.js" type="text/javascript"></script> |
|
21 |
<script src="/admin/js/modconfig.js" type="text/javascript"></script> |
46 |
<script src="/templates/<?php echo TEMPLATE; ?>/js/nyromodal.js" type="text/javascript"></script> |
<> |
22 |
<script src="/templates/solar/js/nyromodal.js" type="text/javascript"></script> |
47 |
<link href="/templates/<?php echo TEMPLATE; ?>/css/modconfig.css" rel="stylesheet" type="text/css" /> |
|
23 |
<link href="/templates/solar/css/modconfig.css" rel="stylesheet" type="text/css" /> |
48 |
<link href="/templates/<?php echo TEMPLATE; ?>/css/nyromodal.css" rel="stylesheet" type="text/css" /> |
|
24 |
<link href="/templates/solar/css/nyromodal.css" rel="stylesheet" type="text/css" /> |
49 |
<?php } ?> |
= |
25 |
<?php } ?> |
|
|
-+ |
26 |
<link href="/templates/solar/css/reset.css" rel="stylesheet" type="text/css" /> |
|
|
|
27 |
<link href="/templates/solar/css/text.css" rel="stylesheet" type="text/css" /> |
|
|
|
28 |
<link href="/templates/solar/css/styles.css" rel="stylesheet" type="text/css" /> |
|
|
|
29 |
<link href="/templates/solar/css/inshop.css" rel="stylesheet" type="text/css" /> |
50 |
</head> |
= |
30 |
</head> |
51 |
|
|
31 |
|
52 |
<body> |
|
32 |
<body> |
53 |
<?php if ($inConf->siteoff && $inUser->is_admin) { ?> |
<> |
33 |
<?php if (cmsConfig::getConfig('siteoff') && $inUser->is_admin) { ?> |
54 |
<div style="margin:4px; padding:5px; border:solid 1px red; background:#FFF; position: fixed;opacity: 0.8; z-index:999"><?php echo $_LANG['SITE_IS_DISABLE']; ?></div> |
|
34 |
<div style="margin:4px; padding:5px; border:solid 1px red; background:#FFF; position: fixed;opacity: 0.8; z-index:999"><strong style="color:red">Сайт отключен.</strong> Только администраторы видят его содержимое.</div> |
55 |
<?php } ?> |
= |
35 |
<?php } ?> |
56 |
<div id="wrapper"> |
|
36 |
<div id="wrapper"> |
57 |
|
|
37 |
|
58 |
<div id="header"> |
|
38 |
<div id="header"> |
59 |
<div class="container_12"> |
<> |
39 |
<div class="head1 con"> |
60 |
<div class="grid_2"> |
|
40 |
<div class="logo"> |
61 |
<div id="sitename"><a href="/"></a></div> |
|
41 |
<a href="/"><img src="/templates/solar/images/logo.png" alt="logo"/></a> |
62 |
</div> |
= |
42 |
</div> |
63 |
<div class="grid_10"> |
<> |
43 |
<div class="info"> |
64 |
<?php if ($inConf->is_change_lang){ |
|
44 |
<span>(495)</span>517-52-04 <br> |
65 |
|
|
45 |
<span>(8482)</span>78-80-18 <br> |
66 |
$langs = cmsCore::getDirsList('/languages'); ?> |
|
|
|
67 |
<div onclick="$('#langs-select').toggle().toggleClass('active_lang');$(this).toggleClass('active_lang'); return false;" title="<?php echo $_LANG['TEMPLATE_INTERFACE_LANG']; ?>" id="langs" style="background-image: url(/templates/<?php echo TEMPLATE; ?>/images/icons/langs/<?php echo $inConf->lang; ?>.png);"> |
|
|
|
68 |
<span>▼</span> |
|
46 |
<span>(8482)</span>25-60-69 <br> |
|
|
|
47 |
<a href="#">superzagar</a> |
|
|
|
48 |
</div> |
|
|
|
49 |
|
69 |
<ul id="langs-select"> |
|
50 |
<div class="h-right"> |
70 |
<?php foreach ($langs as $lng) { ?> |
|
51 |
<?php if (!$inUser->id){ ?> |
71 |
<li onclick="setLang('<?php echo $lng; ?>'); return false;" style="background-image: url(/templates/<?php echo TEMPLATE; ?>/images/icons/langs/<?php echo $lng; ?>.png);"><?php echo $lng; ?></li> |
|
52 |
<div class="mod_user_menu"> |
72 |
<?php } ?> |
|
53 |
<span class="register"><a href="/registration">Регистрация</a></span>| |
73 |
</ul> |
|
54 |
<span class="login"><a href="/login">Вход</a></span> |
74 |
</div> |
= |
55 |
</div> |
75 |
|
<> |
56 |
<?php } else { ?> |
|
|
|
57 |
<?php $inPage->printModules('header'); ?> |
76 |
<?php } ?> |
= |
58 |
<?php } ?> |
|
|
<> |
59 |
|
|
|
|
60 |
<div class="cart"> |
77 |
<?php $this->printModules('header'); ?> |
|
61 |
<?php $inPage->printModules('cart')?> |
78 |
</div> |
|
62 |
</div> |
|
|
|
63 |
<div class="find-block"> |
|
|
|
64 |
<form name="searchform" action="/index.php" method="get"> |
|
|
|
65 |
<input type="hidden" name="view" value="search"/> |
|
|
|
66 |
<input id="find_txt" name="query" type="text" tabindex="1"/> |
|
|
|
67 |
<input id="find_but" name="gosearch" type="submit" alt="Поиск" value="" onclick="document.searchform.submit()"/> |
|
|
|
68 |
</form> |
79 |
</div> |
|
69 |
</div> |
80 |
</div> |
|
70 |
</div> |
81 |
|
|
|
|
82 |
<div id="page"> |
|
71 |
<div class="clear"></div> |
|
|
|
72 |
</div> |
83 |
|
= |
73 |
|
84 |
<?php if($mod_count['topmenu']) { ?> |
<> |
|
|
85 |
<div class="container_12" id="topmenu"> |
|
74 |
<div class="menu-block"> |
86 |
<div class="grid_12"> |
|
75 |
<div class="con"> |
|
|
|
76 |
<div id="topmenu"> |
87 |
<?php $this->printModules('topmenu'); ?> |
|
77 |
<?php $inPage->printModules('topmenu'); ?> |
|
|
|
78 |
</div> |
88 |
</div> |
= |
79 |
</div> |
89 |
</div> |
|
80 |
</div> |
90 |
<?php } ?> |
<> |
81 |
</div> |
91 |
|
= |
82 |
|
92 |
<?php if ($mod_count['top']){ ?> |
<> |
|
|
93 |
<div class="clear"></div> |
|
83 |
<div id="page" class="con"> |
|
|
|
84 |
<div id="pathway"> |
|
|
|
85 |
<?php $inPage->printPathway('›'); ?> |
|
|
|
86 |
</div> |
94 |
|
= |
87 |
|
|
|
<> |
88 |
<?php if ($inPage->countModules('sidebar')||$inPage->countModules('shop_cats')) { ?> |
95 |
<div id="topwide" class="container_12"> |
|
89 |
<div class="side"> |
96 |
<div class="grid_12" id="topmod"><?php $this->printModules('top'); ?></div> |
|
90 |
<?php $inPage->printModules('shop_cats'); ?> |
|
|
|
91 |
<?php $inPage->printModules('sidebar'); ?> |
97 |
</div> |
|
92 |
</div> |
98 |
<?php } ?> |
= |
93 |
<?php } ?> |
99 |
|
|
94 |
|
|
|
<> |
95 |
<div class="main"> |
100 |
<div id="pathway" class="container_12"> |
|
96 |
<div class="top"> |
101 |
<div class="grid_12"><?php $this->printPathway('→'); ?></div> |
|
97 |
<?php $inPage->printModules('top')?> |
102 |
</div> |
|
98 |
</div> |
103 |
|
= |
99 |
|
|
|
<> |
100 |
<div class="fifty"><?php $inPage->printModules('user1')?></div> |
|
|
|
101 |
<div class="fifty"><?php $inPage->printModules('user2')?></div> |
104 |
<div class="clear"></div> |
|
102 |
<div class="clear"></div> |
105 |
|
= |
103 |
|
|
|
<> |
104 |
<?php if($inPage->countModules('tab1')){?> |
106 |
<div id="mainbody" class="container_12"> |
|
105 |
<div class="tab"> |
107 |
<div id="main" class="<?php if ($mod_count['sidebar']) { ?>grid_8<?php } else { ?>grid_12<?php } ?>"> |
|
106 |
<dl class="tabs"> |
|
|
|
107 |
<?php cmsModule('tab1')?> |
|
|
|
108 |
</dl> |
|
|
|
109 |
</div> |
|
|
|
110 |
<?php }?> |
|
|
|
111 |
|
108 |
<?php $this->printModules('maintop'); ?> |
|
112 |
<?php $inPage->printModules('maintop'); ?> |
109 |
|
= |
113 |
|
110 |
<?php $messages = cmsCore::getSessionMessages(); ?> |
<> |
114 |
<?php $messages = cmsCore::getSessionMessages(); ?> |
111 |
<?php if ($messages) { ?> |
|
115 |
<?php if ($messages) { ?> |
112 |
<div class="sess_messages"> |
= |
116 |
<div class="sess_messages"> |
113 |
<?php foreach($messages as $message){ ?> |
|
117 |
<?php foreach($messages as $message){ ?> |
114 |
<?php echo $message; ?> |
|
118 |
<?php echo $message; ?> |
115 |
<?php } ?> |
|
119 |
<?php } ?> |
116 |
</div> |
|
120 |
</div> |
117 |
<?php } ?> |
<> |
121 |
<?php } ?> |
118 |
|
= |
122 |
|
119 |
<?php if($this->page_body){ ?> |
<> |
123 |
<?php if($inPage->page_body){ ?> |
120 |
<div class="component"> |
|
124 |
<div class="component"> |
121 |
<?php $this->printBody(); ?> |
|
125 |
<?php $inPage->printBody(); ?> |
122 |
</div> |
|
126 |
</div> |
123 |
<?php } ?> |
|
127 |
<?php } ?> |
124 |
<?php $this->printModules('mainbottom'); ?> |
|
128 |
<?php $inPage->printModules('mainbottom'); ?> |
|
|
|
129 |
|
|
|
|
130 |
<div class="fifty"><?php $inPage->printModules('user3')?></div> |
|
|
|
131 |
<div class="fifty"><?php $inPage->printModules('user4')?></div> |
|
|
|
132 |
<div class="clear"></div> |
|
|
|
133 |
|
|
|
|
134 |
<div class="top"> |
|
|
|
135 |
<?php $inPage->printModules('bottom')?> |
125 |
</div> |
= |
136 |
</div> |
126 |
<?php if ($mod_count['sidebar']) { ?> |
+- |
|
|
127 |
<div class="grid_4" id="sidebar"><?php $this->printModules('sidebar'); ?></div> |
|
|
|
128 |
<?php } ?> |
|
|
|
129 |
</div> |
= |
137 |
</div> |
130 |
|
<> |
138 |
<div class="clear" style="height: 240px"></div> |
131 |
</div> |
= |
139 |
</div> |
132 |
|
|
140 |
|
133 |
</div> |
|
141 |
</div> |
134 |
|
|
142 |
|
135 |
<div id="footer"> |
|
143 |
<div id="footer"> |
|
|
<> |
144 |
<div class="f-menu"> |
|
|
|
145 |
<?php $inPage->printModules('topmenu')?> |
|
|
|
146 |
</div> |
136 |
<div class="container_12"> |
|
147 |
<div class="con footer-block"> |
137 |
<div class="grid_8"> |
|
148 |
<div class="f1"> |
138 |
<div id="copyright"><?php $this->printSitename(); ?> © <?php echo date('Y'); ?></div> |
|
149 |
<ul> |
|
|
|
150 |
<li><a href="#">Как сделать заказ ?</a></li> |
|
|
|
151 |
<li><a href="#">Доставка по всей России</a></li> |
|
|
|
152 |
<li><a href="#">Способы оплаты</a></li> |
|
|
|
153 |
<li><a href="#">Скачать каталог с ценами</a></li> |
|
|
|
154 |
<li><a href="#">Обратный звонок</a></li> |
|
|
|
155 |
<li><a href="#">Полезная информация</a></li> |
|
|
|
156 |
<li><a href="#">Старая версия сайта</a></li> |
|
|
|
157 |
</ul> |
139 |
</div> |
= |
158 |
</div> |
140 |
<div class="grid_4 foot_right"> |
<> |
159 |
<div class="f2"> |
141 |
<a href="http://www.instantcms.ru/" title="<?php echo $_LANG['POWERED_BY_INSTANTCMS']; ?>" target="_blank"> |
|
160 |
- Продажа соляриев, продажа соляриев б/у <br> |
142 |
<img src="/templates/<?php echo TEMPLATE; ?>/images/b88x31.gif" border="0"/> |
|
161 |
- Сервисное обслуживание соляриев - профилактика, чистка, замер ресурса ламп<br> |
|
|
|
162 |
- Прием соляриев на комиссию<br> |
|
|
|
163 |
- Продажа сменных ламп и средств для дезинфекции<br> |
|
|
|
164 |
- Продажа профессиональной косметики для солярия<br> |
|
|
|
165 |
- Продажа аксессуаров для солярия - очки и др.<br> |
|
|
|
166 |
- Поставка запасных частей для солярия<br> |
|
|
|
167 |
- Замена стекол на любые модели соляриев<br> |
|
|
|
168 |
- Аппаратная косметология в: Москве и регионах России.<br> |
|
|
|
169 |
- Солярий купить |
143 |
</a> |
|
170 |
</div> |
|
|
|
171 |
<div class="f3"> |
|
|
|
172 |
<span>(495)</span>517-52-04 <br> |
|
|
|
173 |
<span>(8482)</span>78-80-18 <br> |
|
|
|
174 |
<span>(8482)</span>25-60-69 <span>(факс)</span> <br> |
144 |
</div> |
= |
175 |
</div> |
|
|
-+ |
176 |
<div class="clear"></div> |
145 |
</div> |
= |
177 |
</div> |
|
|
-+ |
178 |
|
|
|
|
179 |
<div id="copyright"><?php $inPage->printSitename(); ?> © <?php echo date('Y'); ?></div> |
|
|
|
180 |
|
146 |
</div> |
= |
181 |
</div> |
147 |
|
|
182 |
|
148 |
<script type="text/javascript"> |
|
183 |
<script type="text/javascript"> |
149 |
$(document).ready(function(){ |
|
184 |
$(document).ready(function(){ |
150 |
$('#topmenu .menu li').hover( |
|
185 |
$('#topmenu .menu li').hover( |
151 |
function() { |
|
186 |
function() { |
152 |
$(this).find('ul:first').show(); |
|
187 |
$(this).find('ul:first').show(); |
153 |
$(this).find('a:first').addClass("hover"); |
|
188 |
$(this).find('a:first').addClass("hover"); |
154 |
}, |
|
189 |
}, |
155 |
function() { |
|
190 |
function() { |
156 |
$(this).find('ul:first').hide(); |
|
191 |
$(this).find('ul:first').hide(); |
157 |
$(this).find('a:first').removeClass("hover"); |
|
192 |
$(this).find('a:first').removeClass("hover"); |
158 |
} |
|
193 |
} |
159 |
); |
|
194 |
); |
|
|
-+ |
195 |
$("dl.tabs").each(function(){ |
|
|
|
196 |
$(this).find('dt:first').addClass('selected'); |
|
|
|
197 |
$(this).find('dd:first').addClass('selected'); |
|
|
|
198 |
}); |
|
|
|
199 |
|
|
|
|
200 |
$('dl.tabs dt').click(function(){ |
|
|
|
201 |
$(this) |
|
|
|
202 |
.siblings().removeClass('selected').end() |
|
|
|
203 |
.next('dd').andSelf().addClass('selected'); |
|
|
|
204 |
}); |
160 |
}); |
= |
205 |
}); |
161 |
</script> |
|
206 |
</script> |
162 |
<?php if($inConf->debug && $inUser->is_admin){ |
<> |
|
|
163 |
$time = $inCore->getGenTime(); ?> |
|
|
|
164 |
<div class="debug_info"> |
|
|
|
165 |
<div class="debug_time"> |
|
|
|
166 |
<?php echo $_LANG['DEBUG_TIME_GEN_PAGE'].' '.number_format($time, 4).' '.$_LANG['DEBUG_SEC']; ?> |
|
|
|
167 |
</div> |
|
207 |
|
168 |
<div class="debug_memory"> |
|
|
|
169 |
<?php echo $_LANG['DEBUG_MEMORY'].' '.round(@memory_get_usage()/1024/1024, 2).' '.$_LANG['SIZE_MB']; ?> |
|
|
|
170 |
</div> |
|
|
|
171 |
<div class="debug_query_count"> |
|
|
|
172 |
<a href="#debug_query_dump" class="ajaxlink" onclick="$('#debug_query_dump').toggle();"><?php echo $_LANG['DEBUG_QUERY_DB'].' '.$inDB->q_count; ?></a> |
|
|
|
173 |
</div> |
|
|
|
174 |
<div id="debug_query_dump"> |
|
|
|
175 |
<?php echo $inDB->q_dump; ?> |
|
|
|
176 |
</div> |
|
|
|
177 |
</div> |
|
|
|
178 |
<?php } ?> |
|
|
|
179 |
</body> |
= |
208 |
</body> |
|
|
-+ |
209 |
|
180 |
</html> |
= |
210 |
</html> |