14 lines
594 B
Plaintext
Executable File
14 lines
594 B
Plaintext
Executable File
<?php
|
|
/*
|
|
модуль поиска, ищет инфу в текстах, тегах, заголовках страниц
|
|
*/
|
|
$find = $_POST['find'];
|
|
$find2 = $_GET['id'];
|
|
unset ($a);
|
|
if ($find)
|
|
$f = $find;
|
|
else
|
|
$f = $find2;
|
|
$smarty -> assign('list', $db -> free_sql('SELECT * FROM `pages` WHERE `txt` LIKE "%' . $f . '%" OR `title` LIKE "%' . $f . '%" OR `keywords` LIKE "%' . $f . '%"'));
|
|
$smarty->assign('ftovar', $db -> free_sql('SELECT * FROM `m_tovar` WHERE `public`="1" AND (`artikul` LIKE "' . $f . '" OR `naim` LIKE "%' . $f . '%" OR `keywords` LIKE "%' . $f . '%")'));
|
|
?> |