2023-01-25

This commit is contained in:
root 2023-01-25 12:20:32 +03:00
parent 1e990e4d43
commit 650049be31
19 changed files with 135 additions and 229 deletions

2
.gitignore vendored
View File

@ -11,3 +11,5 @@
*.bak *.bak
*.txt *.txt
*.log *.log
/core/api/soft/jcount/data
*.exe

View File

@ -72,6 +72,8 @@
<tr><td>css</td><td>{$stat_css}</td></tr> <tr><td>css</td><td>{$stat_css}</td></tr>
<tr><td>lk</td><td>{$stat_lk}</td></tr> <tr><td>lk</td><td>{$stat_lk}</td></tr>
<tr><td>act</td><td>{$stat_act}</td></tr> <tr><td>act</td><td>{$stat_act}</td></tr>
<tr><td>cat</td><td>{$cat}</td></tr>
<tr><td>page</td><td>{$page}</td></tr>
</table> </table>
</div> </div>
</div> </div>

View File

@ -57,6 +57,8 @@ $smarty -> assign( 'stat_sitemap', round(\DB::getValue("SELECT AVG(speed) FROM `
$smarty -> assign( 'stat_css', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='css' ORDER BY `t` DESC LIMIT 10000"), 4) ); $smarty -> assign( 'stat_css', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='css' ORDER BY `t` DESC LIMIT 10000"), 4) );
$smarty -> assign( 'stat_lk', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='lk' ORDER BY `t` DESC LIMIT 10000"), 4) ); $smarty -> assign( 'stat_lk', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='lk' ORDER BY `t` DESC LIMIT 10000"), 4) );
$smarty -> assign( 'stat_act', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='act' ORDER BY `t` DESC LIMIT 10000"), 4) ); $smarty -> assign( 'stat_act', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='act' ORDER BY `t` DESC LIMIT 10000"), 4) );
$smarty -> assign( 'cat', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='cat' ORDER BY `t` DESC LIMIT 10000"), 4) );
$smarty -> assign( 'page', round(\DB::getValue("SELECT AVG(speed) FROM `site_speed` WHERE `mod`='page' ORDER BY `t` DESC LIMIT 10000"), 4) );
?> ?>

View File

@ -1,24 +1,7 @@
<?php <?php
@mkdir('img/' . $_SESSION['SERVER_NAME'] . '/pages_category', 0700);
$smarty -> assign( 'page_info', \DB::getAll( "SELECT * FROM `pages_category` WHERE `id`=?", $_GET['id'] ) );//получаем инфо о категории
@mkdir(MYDIR . '/img/pages_cat', 0700); $list= \DB::getAll ( "SELECT * FROM `pages` WHERE `category`=?", $_GET['id'] );
@mkdir(MYDIR . '/img/pages_cat/slider', 0700); $smarty -> assign( 'list', $list );
@mkdir(MYDIR . '/img/pages_cat/slider/' . ID, 0700);
//подключаем инсталлятор
if (file_exists(MYDIR . '/api/modules/' . MOD . '/install.php'))
include MYDIR . '/api/modules/' . MOD . '/install.php';
/*
модуль отображает список страниц определенной категории
*/
$mod = new main(BD_NAME, BD_TYPE, BD_HOST, BD_USER, BD_PWD);
$mod->db=$db;
$smarty->assign('page_info', @$mod->get_info(ID));//получаем инфо о категории
$smarty->assign('list', @$mod->get_pages(ID));
//print_r( @$mod->get_pages(ID));
@include_once(MYDIR . '/api/php/list_file.php');
$sliders=list_file(MYDIR . '/img/pages_cat/slider/' . ID);
$smarty -> assign( 'sliders', $sliders ); $smarty -> assign( 'sliders', $sliders );
?> ?>

View File

@ -0,0 +1,6 @@
<?php
$blog_list=\DB::getAll("SELECT * FROM `pages_category`");
$smarty->assign('blog_list', $blog_list );
?>

View File

@ -1,41 +1,20 @@
<?php <?php
ini_set( 'display_errors', 1 );
ini_set('display_errors', 0);
//print_r($_POST);
switch(@$_POST['act']) { switch(@$_POST['act']) {
/* 05.05.2021 Загрузка фотографий */
case 'foto_upload': case 'foto_upload':
unset($_POST['act']); @mkdir( 'img/' . $_SERVER['SERVER_NAME'] . '/pages', 0700 );
// if ($_SESSION != 'a' || $_SESSION != 'e') header( 'Location: /403/' ); @mkdir( 'img/' . $_SERVER['SERVER_NAME'] . '/pages/' . $_SESSION['page_id'], 0700 );
if ( $_FILES['file']['tmp_name'] ){ if ( $_FILES['file']['tmp_name'] ){
// print_r($_FILES);
if ( preg_match( '/[.](jpg)|(jpeg)|(JPG)|(JPEG)$/', $_FILES['file']['name'] ) ){ if ( preg_match( '/[.](jpg)|(jpeg)|(JPG)|(JPEG)$/', $_FILES['file']['name'] ) ){
/* 06.05.2021 вычисляем контрольную сумму чтобы дважды не загружать одно и то же */ $img_name = \core::genpassword( 30 );
unset($id);
$md5['md5'] = md5_file( $_FILES['file']['tmp_name'] );
/* ищем в базе - есть ли оно */
$id = $db -> get_val( 'upload', $md5, 'id' );
if ( $id )die( 'Уже есть такое' );
@mkdir( MYDIR . '/img/users', 0700 );
@mkdir( MYDIR . '/img/users/' . $_SESSION['user_id'], 0700 );
require_once MYDIR . '/api/php/genpass.php';
$img_name = generate_password( 20 );
$source = $_FILES['file']['tmp_name']; $source = $_FILES['file']['tmp_name'];
$target_original = MYDIR . '/img/users/' . $_SESSION['user_id'] . '/' . $img_name . '.jpg'; $target_original = 'img/' . $_SERVER['SERVER_NAME'] . '/pages/' . $_SESSION['page_id'] . '/' . $img_name . '.jpg';
copy( $source, $target_original ); copy( $source, $target_original );
unset( $a ); \DB::add( "INSERT INTO `pages_img` (`file_name`, `status`, `page_id`, `user_id`) VALUES (?, ?, ?, ?)", array( $img_name, 1, $_SESSION['page_id'], $_SESSION['user_id'] ) );
$a['rnd_name'] = $img_name;
$a['pages_id'] = $_SESSION['page_id'];
$a['original_name'] = $_FILES['file']['name'];
$a['type'] = 'img';
$a['user_id'] = $_SESSION['user_id'];
$a['md5'] = $md5['md5'];
$db -> add( 'upload', $a );
} }
} }
break; break;
/*
case 'update_settings': case 'update_settings':
unset($_POST['act']); unset($_POST['act']);
$db->update_settings($_POST); $db->update_settings($_POST);
@ -58,7 +37,7 @@ switch(@$_POST['act']) {
$db->free_sql( "UPDATE `pages` SET `json` = '" . $json . "' WHERE `id` = " . $_POST['id'] ); $db->free_sql( "UPDATE `pages` SET `json` = '" . $json . "' WHERE `id` = " . $_POST['id'] );
echo $tmp_name; echo $tmp_name;
break; break;
*/
default: default:

View File

@ -55,13 +55,18 @@
<progress id="progress-bar" max=100 value=0></progress> <progress id="progress-bar" max=100 value=0></progress>
<div id="gallery"></div> <div id="gallery"></div>
</div> </div>
<div class="row"> <table class="table">
{section name=customer loop=$img} {if $img[customer].id} {section name=customer loop=$img} {if $img[customer].id}
<div class="col-md-4"> <tr>
<img src="/api/img/gray/gif/gray.gif" class="lazy" data-original="/img/users/{$smarty.session.user_id}/{$img[customer].rnd_name}.jpg" style="width: 100%;"> <td style="width: 200px;">
</div> <img src="/api/img/gray/gif/gray.gif" class="lazy" data-original="/img/{$smarty.server.SERVER_NAME}/pages/{$smarty.get.id}/{$img[customer].file_name}.jpg" style="width: 100%;">
</td>
<td>
</td>
</tr>
{/if} {/section} {/if} {/section}
</div> </table>
</div> </div>
<div class="tab-pane fade" id="tab-8-3"> <div class="tab-pane fade" id="tab-8-3">

View File

@ -8,6 +8,9 @@ if ($_GET['id']){
$_SESSION['page_id']=$_GET['id']; $_SESSION['page_id']=$_GET['id'];
$page=\DB::getAll("SELECT * FROM `pages` WHERE `id`=? LIMIT 1", $_GET['id']); $page=\DB::getAll("SELECT * FROM `pages` WHERE `id`=? LIMIT 1", $_GET['id']);
$smarty -> assign( 'page', $page ); $smarty -> assign( 'page', $page );
$img=\DB::getAll("SELECT * FROM `pages_img` WHERE `page_id`=?", $_GET['id']);
$smarty -> assign( 'img', $img );
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
@ -31,64 +34,18 @@ if ($_POST){
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
if ($_GET['id']){ if ($_GET['id']){
\DB::set("UPDATE `pages` SET \DB::set("UPDATE `pages` SET
`title`=?, `title`=?, `txt`=?, `t`=?, `keywords`=?, `alias`=?, `description`=?, `category`=?, `user_id`=?, `d`=? WHERE `id`=?", array(
`txt`=?, $_POST['title'], $_POST['txt'], time(), $_POST['keywords'], $_POST['alias'], $_POST['description'], $_POST['category'], $_SESSION['user_id'], $_POST['d'], $_GET['id']
`t`=?,
`keywords`=?,
`alias`=?,
`description`=?,
`category`=?,
`user_id`=?,
`d`=? WHERE `id`=?", array(
$_POST['title'],
$_POST['txt'],
time(),
$_POST['keywords'],
$_POST['alias'],
$_POST['description'],
$_POST['category'],
$_SESSION['user_id'],
$_POST['d'],
$_GET['id']
) ); ) );
$id=$_GET['id']; $id=$_GET['id'];
}else{ }else{
$id=\DB::add("INSERT INTO `pages` (`title`, `txt`, `t`, `keywords`, `alias`, `description`, `category`, `user_id`, `d`, `status`) VALUES (?,?,?,?,?,?,?,?,?,1)", array( $id=\DB::add("INSERT INTO `pages` (`title`, `txt`, `t`, `keywords`, `alias`, `description`, `category`, `user_id`, `d`, `status`) VALUES (?,?,?,?,?,?,?,?,?,1)", array(
$_POST['title'], $_POST['title'], $_POST['txt'],
$_POST['txt'], time(), $_POST['keywords'],
time(), $_POST['alias'], $_POST['description'], $_POST['category'], $_SESSION['user_id'], $_POST['d']
$_POST['keywords'],
$_POST['alias'],
$_POST['description'],
$_POST['category'],
$_SESSION['user_id'],
$_POST['d']
) ); ) );
} }
header( 'Location: /page_edit/' . $id ); header( 'Location: /page_edit/' . $id );
} }

View File

@ -0,0 +1 @@
37.9.68.179;1674631654; ;Неизвестна;https://tk-ligat.ru/;
1 37.9.68.179 1674631654 Неизвестна https://tk-ligat.ru/

View File

@ -1 +1 @@
1673980477 1674631655
1 1673980477 1674631655

View File

@ -4,6 +4,8 @@
1673643600;50;3;3; 1673643600;50;3;3;
1664571600;2;2;2; 1664571600;2;2;2;
1660338000;1;1;1; 1660338000;1;1;1;
1674421200;2;1;1;
1674334800;42;1;1;
1662584400;2;2;2; 1662584400;2;2;2;
1671570000;43;4;3; 1671570000;43;4;3;
1666386000;13;2;2; 1666386000;13;2;2;
@ -26,6 +28,7 @@
1661029200;18;3;3; 1661029200;18;3;3;
1660251600;1;1;1; 1660251600;1;1;1;
1656277200;10;5;4; 1656277200;10;5;4;
1674162000;6;5;3;
1663621200;10;6;5; 1663621200;10;6;5;
1658091600;2;2;2; 1658091600;2;2;2;
1671483600;67;3;2; 1671483600;67;3;2;
@ -38,10 +41,11 @@
1660078800;1;1;1; 1660078800;1;1;1;
1660165200;2;2;2; 1660165200;2;2;2;
1657141200;15;4;4; 1657141200;15;4;4;
1673902800;3;3;3; 1673902800;11;4;4;
1657746000;2;2;2; 1657746000;2;2;2;
1671829200;45;4;3; 1671829200;45;4;3;
1665954000;2;1;1; 1665954000;2;1;1;
1674248400;15;6;3;
1660510800;15;6;4; 1660510800;15;6;4;
1661806800;4;4;4; 1661806800;4;4;4;
1658005200;2;2;2; 1658005200;2;2;2;
@ -65,6 +69,7 @@
1659646800;2;2;2; 1659646800;2;2;2;
1663707600;2;1;1; 1663707600;2;1;1;
1657227600;3;3;3; 1657227600;3;3;3;
1673989200;6;2;2;
1661547600;2;2;2; 1661547600;2;2;2;
1656795600;56;1;1; 1656795600;56;1;1;
1659560400;1;1;1; 1659560400;1;1;1;
@ -72,6 +77,7 @@
1665176400;6;1;1; 1665176400;6;1;1;
1662152400;2;2;2; 1662152400;2;2;2;
1671829200;9;4;3; 1671829200;9;4;3;
1674075600;46;5;3;
1661893200;1;1;1; 1661893200;1;1;1;
1663189200;2;2;2; 1663189200;2;2;2;
1656882000;2;2;2; 1656882000;2;2;2;

1 1673298000 10 1 3
4 1673643600 50 3 3
5 1664571600 2 2 2
6 1660338000 1 1 1
7 1674421200 2 1 1
8 1674334800 42 1 1
9 1662584400 2 2 2
10 1671570000 43 4 3
11 1666386000 13 2 2
28 1661029200 18 3 3
29 1660251600 1 1 1
30 1656277200 10 5 4
31 1674162000 6 5 3
32 1663621200 10 6 5
33 1658091600 2 2 2
34 1671483600 67 3 2
41 1660078800 1 1 1
42 1660165200 2 2 2
43 1657141200 15 4 4
44 1673902800 3 11 3 4 3 4
45 1657746000 2 2 2
46 1671829200 45 4 3
47 1665954000 2 1 1
48 1674248400 15 6 3
49 1660510800 15 6 4
50 1661806800 4 4 4
51 1658005200 2 2 2
69 1659646800 2 2 2
70 1663707600 2 1 1
71 1657227600 3 3 3
72 1673989200 6 2 2
73 1661547600 2 2 2
74 1656795600 56 1 1
75 1659560400 1 1 1
77 1665176400 6 1 1
78 1662152400 2 2 2
79 1671829200 9 4 3
80 1674075600 46 5 3
81 1661893200 1 1 1
82 1663189200 2 2 2
83 1656882000 2 2 2

View File

@ -24,6 +24,6 @@
* *
* @return string truncated string * @return string truncated string
*/ */
function smarty_modifier_substr($string, $len){ function smarty_modifier_t($string){
return mb_substr($string, 0, $len); return date("d.m.Y", $string);
} }

View File

@ -6,11 +6,11 @@ header("Cache-Control: public");
header( "Expires: " . date( "r", time() + 86400 ) ); header( "Expires: " . date( "r", time() + 86400 ) );
ini_set( 'display_errors', 0 ); ini_set( 'display_errors', 0 );
require_once 'redirect.php'; require_once 'redirect.php';
require_once('api/php/db.php'); require_once 'api/php/db.php';
require_once('api/php/json.php'); require_once 'api/php/json.php';
require_once('api/php/core.php'); require_once 'api/php/core.php';
require_once('api/php/clean.php'); require_once 'api/php/clean.php';
require 'set/' . $_SERVER['SERVER_NAME'] . '.php'; require_once 'set/' . $_SERVER['SERVER_NAME'] . '.php';
//if (file_exists('set/install/install_' . $db['type'] . '.php'))require_once 'set/install/install_' . $db['type'] . '.php'; //if (file_exists('set/install/install_' . $db['type'] . '.php'))require_once 'set/install/install_' . $db['type'] . '.php';
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
09.12.2022 09.12.2022
@ -19,11 +19,6 @@ require 'set/' . $_SERVER['SERVER_NAME'] . '.php';
$authModule = \core::getSettings( 'default_mod_auth' ); $authModule = \core::getSettings( 'default_mod_auth' );
$mod = ( $authModule ? $authModule : \core::getSettings( 'default_mod' ) ); $mod = ( $authModule ? $authModule : \core::getSettings( 'default_mod' ) );
define( 'MOD', ( @$_GET['mod'] ? $_GET['mod'] : $mod ) ); define( 'MOD', ( @$_GET['mod'] ? $_GET['mod'] : $mod ) );
/* ----------------------------------------------------------------------
12.12.2022
Подключаем инсталлятор
---------------------------------------------------------------------- */
//if ( file_exists ( 'api/modules/' . MOD .'/install_' . \DB::$type . '.php' ) ) require_once 'api/modules/' . MOD .'/install_' . \DB::$type . '.php';
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
09.12.2022 09.12.2022
Определяем город Определяем город
@ -35,15 +30,12 @@ require_once 'set/int.php';
Авторизация по куки Авторизация по куки
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
if ( !@$_SESSION['user_id'] ) \core::loginCookies(); if ( !@$_SESSION['user_id'] ) \core::loginCookies();
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
17.12.2022 17.12.2022
Берем данные корзины Берем данные корзины
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
$cart = \core::getCart(); $cart = \core::getCart();
$smarty -> assign( 'cart', $cart ); $smarty -> assign( 'cart', $cart );
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
09.12.2022 09.12.2022
Выбираем шаблон модуля Выбираем шаблон модуля
@ -56,28 +48,4 @@ else
$user_id = ( $_SESSION['user_id'] ? $_SESSION['user_id'] : session_id() ); $user_id = ( $_SESSION['user_id'] ? $_SESSION['user_id'] : session_id() );
$time_site = round( microtime(true) - $start_site, 5 ); $time_site = round( microtime(true) - $start_site, 5 );
\DB::add( "INSERT INTO `site_speed` ( `t`, `mod`, `mod_id`, `speed`, `user_id` ) VALUES ( ?, ?, ?, ?, ? )", array( time(), MOD, $_GET['id'], $time_site, $user_id ) ); \DB::add( "INSERT INTO `site_speed` ( `t`, `mod`, `mod_id`, `speed`, `user_id` ) VALUES ( ?, ?, ?, ?, ? )", array( time(), MOD, $_GET['id'], $time_site, $user_id ) );
/*if ($_SERVER['SERVER_NAME']=='tk-ligat.ru'){
\DB::$type='mysql';
\DB::$dsn='mysql:dbname=tk-ligat;host=127.0.0.1';
\DB::$user='admin';
\DB::$pass='32143214';
\DB::set("CREATE TABLE `tovar` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`title` varchar(400) NULL,
`txt` longtext NULL,
`keywords` longtext NULL,
`artikul` varchar(10) NULL,
`description` longtext NULL,
`tovar_id_1c` varchar(50) NULL,
`tovar_cat_1c` varchar(50) NULL,
`status` int(1) NULL,
`category` int(10) NULL,
`countImg` int(10) NULL,
`partner` varchar(400) NULL,
`json` longtext NULL,
`brand_id` int(10) NULL,
`check_img` int(1) NULL,
`code` varchar(10) NULL
) ENGINE='InnoDB' COLLATE 'utf8_general_ci';");
}*/
?> ?>

View File

@ -3,10 +3,10 @@
require_once('/home/cloud/core/api/php/db.php'); require_once('/home/cloud/core/api/php/db.php');
require_once('/home/cloud/core/api/php/json.php'); require_once('/home/cloud/core/api/php/json.php');
DB::$type='sqlite3'; DB::$type='sqlite3';
DB::$path='/home/cloud/core/bd/tk-ligat.ru.db'; DB::$path='/tmp/bd/new.yurecnt.ru.db';
function leopak ($text) { function leopak ($text) {
$old1 = array("https://tk-ligat.ru"); $old1 = array("https://new.yurecnt.ru");
$new1 = array(""); $new1 = array("");
$text = str_replace($old1, $new1, $text); $text = str_replace($old1, $new1, $text);
return $text; return $text;
@ -57,7 +57,7 @@ $LinkList = DB::getAll( 'SELECT * FROM `sitemap` WHERE `status`=1 AND `check`=0
for ($i=0; $i<count( $LinkList ); $i++){ for ($i=0; $i<count( $LinkList ); $i++){
// sleep(1); // sleep(1);
$link='https://tk-ligat.ru' . $LinkList[$i]['link']; $link='https://new.yurecnt.ru' . $LinkList[$i]['link'];
//$current=file_get_contents('../goods_sur102215_dcc93d1672486819.xml'); //$current=file_get_contents('../goods_sur102215_dcc93d1672486819.xml');
$html=get_page ( $link ); $html=get_page ( $link );

View File

@ -1,15 +1,9 @@
<?php <?php
session_start(); session_start();
//Создаем папки //Создаем папки
@mkdir('files/' . $_SERVER['SERVER_NAME'], 0700); @mkdir('files/' . $_SERVER['SERVER_NAME'], 0700);
@mkdir('img/' . $_SERVER['SERVER_NAME'], 0700); @mkdir('img/' . $_SERVER['SERVER_NAME'], 0700);
@mkdir('img/' . $_SERVER['SERVER_NAME'] . '/tovar', 0700); @mkdir('img/' . $_SERVER['SERVER_NAME'] . '/tovar', 0700);
define ( 'SMARTY_DIR', 'api/soft/smarty/4.2.1/' ); define ( 'SMARTY_DIR', 'api/soft/smarty/4.2.1/' );
define ( 'JQUERYVER', '3.6.2' ); define ( 'JQUERYVER', '3.6.2' );
define ( 'TMPDIR', '/tmp/cache/' . $_SERVER['SERVER_NAME'] );//смотрим куда кешировать define ( 'TMPDIR', '/tmp/cache/' . $_SERVER['SERVER_NAME'] );//смотрим куда кешировать

View File

@ -30,14 +30,15 @@
<div class="row"> <div class="row">
<div class="col-lg-3 col-md-3"> <div class="col-lg-3 col-md-3">
<div class="site-logo"> <div class="site-logo">
<a href="/"><img src="img/logo.png" alt=""></a> <a href="/" style="text-decoration: none;"><span style="color: #fff;font-weight: 600; font-size: 23pt;">Yurec</span><span style="color:#D82A4E;font-weight: 600; font-size: 23pt;">NT</span></a>
<!-- a href="/"><img src="img/logo.png" alt=""></a -->
</div> </div>
<div class="nav-switch"> <div class="nav-switch">
<i class="fa fa-bars"></i> <i class="fa fa-bars"></i>
</div> </div>
</div> </div>
<div class="col-lg-9 col-md-9"> <div class="col-lg-9 col-md-9">
{if !$smarty.session.user_id}<a href="/login/" class="site-btn header-btn">Вход</a>{/if} {if $smarty.session.dostup=='a'}<a href="/admin/" class="site-btn header-btn">Админка</a>{/if} {include file=$menu} {if !$smarty.session.user_id}<a href="/login/" class="site-btn header-btn" style="text-decoration: none;">Вход</a>{/if} {if $smarty.session.dostup=='a'}<a href="/admin/" class="site-btn header-btn" style="text-decoration: none;">Админка</a>{/if} {include file=$menu}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,10 +1,10 @@
<nav class="main-menu" style="z-index: 500;"> <nav class="main-menu" style="z-index: 500;">
<ul> <ul>
<!--li><a href="index.html">Home</a></li--> <!--li><a href="index.html">Home</a></li-->
<li><a href="#">About us</a></li> <li><a href="#" style="text-decoration: none;">About us</a></li>
<li><a href="courses.html">Услуги</a></li> <li><a href="courses.html" style="text-decoration: none;">Услуги</a></li>
<li><a href="courses.html">Портфолио</a></li> <li><a href="/cat/4" style="text-decoration: none;">Портфолио</a></li>
<li><a href="blog.html">Блоги</a></li> <li><a href="/cat/" style="text-decoration: none;">Блоги</a></li>
<li><a href="contact.html">Контакты</a></li> <li><a href="contact.html" style="text-decoration: none;">Контакты</a></li>
</ul> </ul>
</nav> </nav>

View File

@ -0,0 +1,48 @@
{include file=$header title=$page_info[0].title description=$page_info[0].description keywords=$page_info[0].keywords}
<!-- Page info -->
<div class="page-info-section set-bg" data-setbg="img/page-bg/3.jpg">
<div class="container" style="position: absolute; margin-top:215px; margin-left: auto; margin-right: auto; left: 0; right: 0;">
<div class="row" style="z-index: 400;">
<div class="col-sm-4">
<div class="site-breadcrumb">
<a href="/" style="text-decoration: none;">Старт</a>
<span>{$page_info[0].title}</span>
</div>
</div>
<div class="col"><h1 style="font-size: 20pt; color: #fff;"class="text-right">{$page_info[0].title}</h1></div>
</div>
</div>
</div>
<!-- Page info end -->
<!-- categories section -->
<section class="categories-section spad">
<div class="container">
<div class="section-title">
<h2>{$page_info[0].title}</h2>
<p>{$page_info[0].description}</p>
</div>
<div class="row">
{section name=customer loop=$list}{if $list[customer].id}
<!-- categorie -->
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/webdev.jpg"></div>
<div class="ci-text">
<h5><a href="/page/{$list[customer].id}" style="color: #000; text-decoration: none;">{$list[customer].title}</a></h5>
<p>{$list[customer].description}</p>
<span>{$list[customer].t|t}</span>
</div>
</div>
</div>
{/if}{/section}
</div>
</div>
</section>
{include file=$footer}

View File

@ -164,72 +164,24 @@
<!-- p>Предлагаю свои услуги по созданию сайтов и сопровождению сайтов</p--> <!-- p>Предлагаю свои услуги по созданию сайтов и сопровождению сайтов</p-->
</div> </div>
<div class="row"> <div class="row">
{section name=customer loop=$blog_list} {if $blog_list[customer].id}
<!-- categorie --> <!-- categorie -->
<div class="col-lg-4 col-md-6"> <div class="col-lg-4 col-md-6">
<div class="categorie-item"> <div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/webdev.jpg"></div> <div class="ci-thumb set-bg" data-setbg="img/webdev.jpg"></div>
<div class="ci-text"> <div class="ci-text">
<h5>WEB-Разработка</h5> <h5><a href="/cat/{$blog_list[customer].id}" style="color: #000; text-decoration: none;">{$blog_list[customer].title}</a></h5>
<p>Создание и сопровождение сайтов! СЕО-анализ и оптимизация!</p> <p>{$blog_list[customer].description}</p>
<!--span>120 Courses</span --> <!--span>120 Courses</span -->
</div> </div>
</div> </div>
</div> </div>
<!-- categorie --> {/if} {/section}
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/srvconf.jpg"></div>
<div class="ci-text">
<h5>Конфигурирование серверов</h5>
<p>Настроим серверы под ваши задачи! WWW, телефония, почта и многое другое</p>
<!-- span>70 Courses</span -->
</div>
</div>
</div>
<!-- categorie -->
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/freepo.jpg"></div>
<div class="ci-text">
<h5>Внедрение свободного ПО</h5>
<p>Развернем и настроим парк компьютеров под Linux!</p>
<!-- span>55 Courses</span -->
</div>
</div>
</div>
<!-- categorie -->
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/categories/4.jpg"></div>
<div class="ci-text">
<h5>Корпаративные сети</h5>
<p>Настроим безопасный доступ к корпаративной сети!</p>
<!-- span>40 Courses</span -->
</div>
</div>
</div>
<!-- categorie -->
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/categories/5.jpg"></div>
<div class="ci-text">
<h5>Суб-хостинг!</h5>
<p>Мы не имеем своих серверов но предлагаем хостинг по низкой цене!</p>
<!-- span>220 Courses</span -->
</div>
</div>
</div>
<!-- categorie -->
<div class="col-lg-4 col-md-6">
<div class="categorie-item">
<div class="ci-thumb set-bg" data-setbg="img/categories/6.jpg"></div>
<div class="ci-text">
<h5>Cryptocurrencies</h5>
<p>Lorem ipsum dolor sit amet, consectetur</p>
<span>25 Courses</span>
</div>
</div>
</div>
</div> </div>
</div> </div>
</section> </section>