(function () {
var $body = document.body, $menu_trigger = $body.getElementsByClassName('menu-trigger')[0];
if (typeof $menu_trigger !== 'undefined') {
$menu_trigger.addEventListener('click', function () {
$body.className = $body.className == 'menu-active' ? '' : 'menu-active';
});
}
}.call(this));
background-image: -webkit-linear-gradient(left,#c4e17f,#c4e17f 12.5%,#f7fdca 12.5%,#f7fdca 25%,#fecf71 25%,#fecf71 37.5%,#f0776c 37.5%,#f0776c 50%,#db9dbe 50%,#db9dbe 62.5%,#c49cde 62.5%,#c49cde 75%,#669ae1 75%,#669ae1 87.5%,#62c2e4 87.5%,#62c2e4);
background-image: -moz-linear-gradient(left,#c4e17f,#c4e17f 12.5%,#f7fdca 12.5%,#f7fdca 25%,#fecf71 25%,#fecf71 37.5%,#f0776c 37.5%,#f0776c 50%,#db9dbe 50%,#db9dbe 62.5%,#c49cde 62.5%,#c49cde 75%,#669ae1 75%,#669ae1 87.5%,#62c2e4 87.5%,#62c2e4);
background-image: -o-linear-gradient(left,#c4e17f,#c4e17f 12.5%,#f7fdca 12.5%,#f7fdca 25%,#fecf71 25%,#fecf71 37.5%,#f0776c 37.5%,#f0776c 50%,#db9dbe 50%,#db9dbe 62.5%,#c49cde 62.5%,#c49cde 75%,#669ae1 75%,#669ae1 87.5%,#62c2e4 87.5%,#62c2e4);
background-image: linear-gradient(to right,#c4e17f,#c4e17f 12.5%,#f7fdca 12.5%,#f7fdca 25%,#fecf71 25%,#fecf71 37.5%,#f0776c 37.5%,#f0776c 50%,#db9dbe 50%,#db9dbe 62.5%,#c49cde 62.5%,#c49cde 75%,#669ae1 75%,#669ae1 87.5%,#62c2e4 87.5%,#62c2e4);
<div><div class="texa"><div class="block-inf"><span class='name_param' style="color: #aaa;"><i class="icon-eye2" style="margin-right:5px;"></i></span><span class="inf" style="font-weight:bold;">{$row["kolvo_view"]}</span><span style="font-weight: bold;"> просмотров <span class="inf" style="font-weight:bold;">· </span></span><i class="icon-clock3" style="color:#aaa;"></i><span class="inf" style="font-weight:bold;"> {date("d.m.Y",$row["start_putdate"])}</span></div>
<br>
<br>
<div class="new-p">
<div class="title_text_advert">Описание:</div>
{ if $masConfig["USE_POLE_TYPE_ADWERT"] == 1 }
<span class="marg-top"><span class='pod-p'>Тип объявления:</span><span class="after-pod-p">{ $row["type"] ? $mas_type_adv[$row["type"]] : "не указано"}</span></span>
{/if}
{* динамические данные *}
{* $data_dynamic *}
{foreach from = $mas_properties value = $one_properties }
{if sizeof($one_properties["value"]) > 0 }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>
{$one_properties["name"]}
</td><td>
{foreach from = $one_properties["value"] value = $one_value}
<div>{$one_value|codehtml}</div>
{/foreach}
</td></tr>
{/if}
{/foreach}
{ if $obj_doska->get_use_cost_from_infercategory($row["n_category"]) }
<span class="marg-top"><span class='pod-p'>Цена:</span><span class="after-pod-p">{ $row["cost"] ? $row["cost"]." ".$init_currency[$row["currency"]][1]:"не указана"}</span></span>
{/if}
<span class="marg-top"><span class='pod-p'>Категория:</span>
<span>
{? $mas_links = $obj_doska->forming_mas_links_series_category_from_num($row["n_category"])}
{if sizeof($mas_links) }
{? $sep = ""}
{foreach from = $mas_links value = $one_link }
{$sep}
{'<a href="'.$one_link["link"].'" style="color:#999999;">'.$one_link["name"].'</a>'}
{? $sep = "/"}
{/foreach}
{else}
нет данных...
{/if}
{*
<a href='{$obj_doska->forming_all_name_url_category($obj_doska->open_num_category,"high")}'>{$obj_doska->mas_category[$obj_doska->select_category]["name"]}</a>
/
<a href='{$obj_doska->forming_all_name_url_category($obj_doska->open_num_podcategory,"inferior")}'>{$obj_doska->mas_podcategory[$obj_doska->select_podcategory]["name"]}</a>
*}
</span>
</span>
</div>
<div class="new-p">
<div class="title_text_advert">Контактные данные:</div>
{ if $active_advert && !empty($row["phone"])}
<span>
<span class='pod-p'>
Телефон:
</span>
<span>
{if $masConfig["USE_MASK_DATA_PHONE_ADVERT"] == 0}
{$row["phone"]|codehtml}
{else}
<span id="elm_mask_phone_advert"><span class="elm_container_mask_phone_advert" onclick="view_mask_phone_advert.action_view({$row['id_advert']})">показать телефон</span></span>
{/if}
</span>
</span>
{/if}
{ if !empty($row["site"]) }
{? $http_link="http://"; }
{? $site=trim(mb_strtolower($row["site"])) }
{ if mb_strpos($site,$http_link) === 0 }
{? $site=mb_substr($row["site"],7,strlen($row["site"])-7) }
{/if}
<span class="marg-top">
<span class='pod-p'> Сайт: </span>
<span>
<noindex><a href='http://{$site|codehtml}' style="color:#999999;" rel='nofollow' target='_blank' class='key-words-adv'>{$row["site"]|codehtml}</a></noindex>
</span>
</span>
{/if}
<span class="marg-top"><span class='pod-p'>Имя пользователя:</span><span class="after-pod-p">{$row["name_user"]|codehtml}</span></span>
{if $active_advert && $row["type_user"] == "user" }
<span class="marg-top"><span class='pod-p'>Объявление добавил пользователь:</span><span>
{if (isset($mas_name_user[$row["num_user"]])) }
<span style='font-weight: bold;'><a href='{$dir_http}/registr/user{$row["num_user"]}.html' class="key-words-adv">{$mas_name_user[$row["num_user"]]}<span class="box-adv" title='Количество объявлений пользователя'>{$kol_adv_user}</span></a></span>
{ else }
неизвестно
{/if}
</td></tr>
{/if}
</div>
{ if ( $active_advert && !empty($row["email"]) && $row["is_get_email"] == "yes" ) }
<div class="marginAll15"><div class="block_link_send_message_advert"><div class="contr_2"><span onClick='send_message_from_modul("doska",{$select_advert});'><i class="icon-pencil"></i>Написать письмо автору</span></div></div></div>
{/if}
<div class="new-p">
<div class="title_text_advert">Местоположение:</div>
{ if $masConfig["ON_USE_GEO_DATA"] == 1 }
{ if $masConfig["NUM_COUNTRY"] == 0 }
<span class="marg-top"><span class='pod-p'>Страна:</span><span class="after-pod-p">{$row["name_country_adv"]}</span></span>
{/if}
{ if $masConfig["NUM_REGION"] == 0 }
<span class="marg-top"><span class='pod-p'>Регион:</span><span class="after-pod-p">{$row["name_region_adv"]}</span></span>
{/if}
<span class="marg-top"><span class='pod-p'>Город/населенный пункт:</span><span class="after-pod-p">{$row["name_city_adv"]}</span></span>
{/if}
{if $boxMaps}
<span class="marg-top"><span class='pod-p'>
{$boxMaps}
</span></span>
{/if}
</div>
<div class="new-p">
<div class="title_text_advert">Детали объявления:</div>
<span class="marg-top"><span class='pod-p'>Дата окончания действия:</span><span class="after-pod-p">{date("d.m.Y",$row["end_putdate"])}</span></span>
{ if $masConfig["USE_POLE_KEY_WORDS_ADWERT"] == 1 && trim($row["key_words"]) }
<span class="marg-top"><span class='pod-p'>Ключевые слова:</span><span class="after-pod-p">
{? $metks=explode(",",$row["key_words"]) }
{foreach from=$metks value="value"}
<a href='{$dir_http}/advmetka/{str_replace("%","_",($value|rawurlencode))}/' class='key-words-adv'>{mb_strtolower(trim($value))|codehtml}</a>
{/foreach}
</span></span>
{/if}
<span class="marg-top"><span class='pod-p'>ID объявления:</span><span class="after-pod-p">{$row["id_advert"]}</span></span></span>
<!--report-add-->
{if $active_advert }
<div class="block_uprav_element_advert">
<div id="link_abuse_to_adv"> <span class="link_span_abuse_to_advert" onclick="abuse_to_adv(43)"><i class="icon-warning2"></i>Пожаловаться на объявление</span></div>
<div> <span class="elem_text_add_mark_page_advert" id="link_add_mart_advert_num_43"><span class="link_span_abuse_to_advert" onclick="add_mark_advert_user(43)"><i class="icon-heart4"></i>Добавить объявление в закладки</span></span></div>
</div>
{/if}
<span class="marg-top">
<span onclick="facechange('#block'); return false" class="block_link_send_message_advert" style='height: auto;padding: 10px;color: #fff;'><i class="icon-rocket"></i>Продвинуть</span>
<div id="block" style="display:none;">
{if $active_advert && $use_systpayment }
{ $t_block_toadv_sp }
{/if}
</div>
</span>
</div></div></div>
<div>
{ if $active_advert && $row["image"] }
<div>
{*<div class="title_block_image_advert">Изображения</div>*}
<div class="elm_image_advert">
{? $mas_images=explode("|",$row["image"]) }
{ foreach from = $mas_images value="name_image" }
<div class="contr_image_advert"><div class="contr_2" style=" width: {$masConfig["MAX_WIDTH_ICON"]}px; height: {$masConfig["MAX_HEIGHT_ICON"]}px;">
<a href='{$dir_http."/".NAME_DIR_LOADFILES_MODULS}/doska/bigfoto/{$name_image}' vfoto='advert'><img src='{$dir_http."/".NAME_DIR_LOADFILES_MODULS}/doska/smallfoto/{$name_image}' width="{$masConfig['MAX_WIDTH_ICON']}" height="{$masConfig['MAX_HEIGHT_ICON']}" alt='{$row["name_adv"]|codehtml}' title='{$row["name_adv"]|codehtml}'></a>
</div></div>
{/foreach}
</div>
</div>
{/if}
<div class='block_text_advert'>
{*
if ( $img_vip_icon || $img_makegood_icon || $img_picked_icon )
<div class='block_status_advert' >".$img_vip_icon." ".$img_picked_icon." ".$img_makegood_icon."</div>
*}
{if $row["premium_adv"] == "premium" || $row["status_adv"] == "vip" || $row["is_makegood"] == "yes" || $row["pick_out_adv"] == "picked" }
<div class='block_status_advert' >
{if $row["premium_adv"] == "premium" }
<img src="{$dir_http_template_modul}/images/icon_on_premium.png" alt="Премиум-объявление" title="Премиум-объявление" class="tip-on-a">
{/if}
{if $row["status_adv"] == "vip" }
<img src="{$dir_http_template_modul}/images/icon_on_vip.png" alt="vip-объявление" title="vip-объявление" class="tip-on-a">
{/if}
{if $masConfig["ON_USE_PAYMENT_MAKEGOOD_ADVERT"] == 1 && $row["is_makegood"] == "yes" }
<img src="{$dir_http_template_modul}/images/icon_on_makegood.png" alt="Объявление подтверждено" title="Объявление подтверждено" class="tip-on-a">
{/if}
{if $row["pick_out_adv"] == "picked" }
<img src="{$dir_http_template_modul}/images/icon_on_pickout.png" alt="Выделенное объявление" title="Выделенное объявление" class="tip-on-a">
{/if}
</div>
{/if}
<div class="title_text_advert">Текст объявления:</div>
{ nl2br($row["text"]|codehtml) }
</div>
<!--
<div class="marginLeft15 marginRight15">
<table class='tab_data_advert' cellspacing='0' cellpadding = '0' >
{ if $masConfig["USE_POLE_TYPE_ADWERT"] == 1 }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Тип объявления</td><td>{ $row["type"] ? $mas_type_adv[$row["type"]] : "не указано"}</td></tr>
{/if}
{* динамические данные *}
{* $data_dynamic *}
{foreach from = $mas_properties value = $one_properties }
{if sizeof($one_properties["value"]) > 0 }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>
{$one_properties["name"]}
</td><td>
{foreach from = $one_properties["value"] value = $one_value}
<div>{$one_value|codehtml}</div>
{/foreach}
</td></tr>
{/if}
{/foreach}
{ if $obj_doska->get_use_cost_from_infercategory($row["n_category"]) }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Цена</td><td>{ $row["cost"] ? $row["cost"]." ".$init_currency[$row["currency"]][1]:"не указана"}</td></tr>
{/if}
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Категория</td>
<td>
{? $mas_links = $obj_doska->forming_mas_links_series_category_from_num($row["n_category"])}
{if sizeof($mas_links) }
{? $sep = ""}
{foreach from = $mas_links value = $one_link }
{$sep}
{'<a href="'.$one_link["link"].'">'.$one_link["name"].'</a>'}
{? $sep = "/"}
{/foreach}
{else}
нет данных...
{/if}
{*
<a href='{$obj_doska->forming_all_name_url_category($obj_doska->open_num_category,"high")}'>{$obj_doska->mas_category[$obj_doska->select_category]["name"]}</a>
/
<a href='{$obj_doska->forming_all_name_url_category($obj_doska->open_num_podcategory,"inferior")}'>{$obj_doska->mas_podcategory[$obj_doska->select_podcategory]["name"]}</a>
*}
</td>
</tr>
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Имя пользователя</td><td>{$row["name_user"]|codehtml}</td></tr>
{ if $masConfig["ON_USE_GEO_DATA"] == 1 }
{ if $masConfig["NUM_COUNTRY"] == 0 }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Страна</td><td>{$row["name_country_adv"]}</td></tr>
{/if}
{ if $masConfig["NUM_REGION"] == 0 }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Регион</td><td>{$row["name_region_adv"]}</td></tr>
{/if}
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Город/населенный пункт</td><td>{$row["name_city_adv"]}</td></tr>
{/if}
{ if !empty($row["site"]) }
{? $http_link="http://"; }
{? $site=trim(mb_strtolower($row["site"])) }
{ if mb_strpos($site,$http_link) === 0 }
{? $site=mb_substr($row["site"],7,strlen($row["site"])-7) }
{/if}
<tr {set_view_tr_table_advert()}>
<td class='td_name_param'> Сайт </td>
<td>
<noindex><a href='http://{$site|codehtml}' rel='nofollow' target='_blank'>{$row["site"]|codehtml}</a></noindex>
</td>
</tr>
{/if}
{ if $active_advert && !empty($row["phone"])}
<tr {set_view_tr_table_advert()}>
<td class='td_name_param'>
Телефон
</td>
<td>
{if $masConfig["USE_MASK_DATA_PHONE_ADVERT"] == 0}
{$row["phone"]|codehtml}
{else}
<span id="elm_mask_phone_advert"><span class="elm_container_mask_phone_advert" onclick="view_mask_phone_advert.action_view({$row['id_advert']})">показать телефон</span></span>
{/if}
</td>
</tr>
{/if}
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Дата размещения</td><td>{date("d.m.Y",$row["start_putdate"])}</td></tr>
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Дата окончания действия</td><td>{date("d.m.Y",$row["end_putdate"])}</td></tr>
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Количество просмотров</td><td>{$row["kolvo_view"]}</td></tr>
{ if $masConfig["USE_POLE_KEY_WORDS_ADWERT"] == 1 && trim($row["key_words"]) }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Ключевые слова</td><td>
{? $metks=explode(",",$row["key_words"]) }
{foreach from=$metks value="value"}
<a href='{$dir_http}/advmetka/{str_replace("%","_",($value|rawurlencode))}/'>{mb_strtolower(trim($value))|codehtml}</a>
{/foreach}
</td></tr>
{/if}
{if $boxMaps}
<tr><td class='td_name_param' colspan='2' >
{$boxMaps}
</td></tr>
{/if}
{if $active_advert && $row["type_user"] == "user" }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Объявление добавил пользователь</td><td>
{if (isset($mas_name_user[$row["num_user"]])) }
<span style='font-weight: bold;'><a href='{$dir_http}/registr/user{$row["num_user"]}.html' >{$mas_name_user[$row["num_user"]]}</a></span>
<div><a href='{$dir_http}/advuser{$row["num_user"]}/' >Все объявления пользователя ({$kol_adv_user}) »»</a></div>
{ else }
неизвестно
{/if}
</td></tr>
{/if}
{if $active_advert && ( $row["type_user"] == "user" ) && $mas_data_object }
<tr {set_view_tr_table_advert()}><td class='td_name_param'>Объявление объекта</td><td>
<div>
<a href="{$dir_http}/objectcat{$mas_data_object["data_object"]["id_object"]}.html">{$mas_data_object["data_object"]["name_object"]}</a>
</div>
<div>
<a href="{$dir_http}/advobject{$row["n_object"]}/">Все объявления связанные с объектом({$mas_data_object["kolvo_advert"]}) »»</a>
</div>
</td></tr>
{/if}
</table>
</div>
{ if ( $active_advert && !empty($row["email"]) && $row["is_get_email"] == "yes" ) }
<div class="marginAll15"><div class="block_link_send_message_advert"><div class="contr_2"><span onClick='send_message_from_modul("doska",{$select_advert});'>Написать письмо автору</span></div></div></div>
{/if}
{if $active_advert }
<div class="block_action_elements_advert">
<div class="block_title_action_elements_advert">
Выберите действие для объявления:
</div>
{if $active_advert && $use_systpayment }
{ $t_block_toadv_sp }
{/if}
{if $active_advert }
<div class='block_uprav_element_advert'>
<div id='link_abuse_to_adv'><img src='{$dir_http_template_modul}/images/icon_info_alert.png' style="vertical-align: middle;"> <span class='link_span_abuse_to_advert' onClick='abuse_to_adv({$row["id_advert"]})'>Пожаловаться на объявление</span></div>
<div><img src='{$dir_http_template_modul}/images/icon_add_mark.png' style="vertical-align: middle;"> <span class="elem_text_add_mark_page_advert" id="link_add_mart_advert_num_{$row["id_advert"]}"><span class='link_span_abuse_to_advert' onclick='add_mark_advert_user({$row["id_advert"]})'>Добавить объявление в закладки</span></span></div>
</div>
{/if}
</div>
{/if}-->
<div class="box_more_adverts">
<div class="box_more_adverts_contr_1">
<div class='title_box_more_adverts'>Еще объявления из данной категории</div>
<table class='tab_additionally_advert' cellspacing='0' cellpadding = '3'>
<tr><td>
Предыдущие объявления <ul>
{if $kol_previous_advert>0 }
{ foreach from = $data_previous_advert value="one_advert" }
<li><a href='{$dir_http}/{$obj_doska->forming_name_url_advert($one_advert["name_adv"])}-adv{$one_advert["id_advert"]}.html'>{$one_advert["name_adv"]|codehtml}</a></li>
{/foreach}
{else}
<li>нет</li>
{/if}
</ul>
</td><td>
Следующие объявления <ul>
{if $kol_next_advert>0 }
{ foreach from=$data_next_advert value="one_advert" }
<li><a href='{$dir_http}/{$obj_doska->forming_name_url_advert($one_advert["name_adv"])}-adv{$one_advert["id_advert"]}.html'>{$one_advert["name_adv"]|codehtml}</a></li>
{/foreach}
{else}
<li>нет</li>
{/if}
</ul>
</td></tr>
</table>
</div>
</div>
</div>
<script type='text/javascript' src='{$dir_http_template_modul}/jquery-1.3.2.min.js'></script>
<script type='text/javascript' src='{$dir_http_template_modul}/jquery.tipTip.js'></script>
<script type='text/javascript' src='{$dir_http_template_modul}/tip-m.js'></script>
<link rel="stylesheet" href="{$dir_http_template_modul}/tipTip.css" type="text/css">
<script type="text/javascript">
mas_init_list_abuse_advert = [{ encode_gen_mas_to_jointext($masConfig["INIT_LIST_ABUSE_ADVERT"],false, true, false, false) }];
decode_mas (mas_init_list_abuse_advert);
use_mask_data_phone_advert={$masConfig["USE_MASK_DATA_PHONE_ADVERT"]};
</script>