Esempio n. 1
0
        ?>
" onclick="return app.fav(<?php 
        echo $i['id'];
        ?>
, $(this));" class="fav<?php 
        echo !empty($favs['id']) && in_array($i['id'], $favs['id']) ? ' active' : '';
        ?>
"></a><?php 
    }
    ?>
</td>
    <td class="pic"><a href="/item/<?php 
    echo $i['id'];
    ?>
"><img src="<?php 
    echo tpl::imgurl(array('folder' => 'items', 'file' => !empty($i['imgfav']) ? $i['id'] . 't' . $i['imgfav'] : '', 'static' => 1));
    ?>
" /></a></td>
    <?php 
    if ($addDynprops) {
        $sHTML = '';
        foreach ($dp as $d) {
            $key = 'f' . $d['data_field'];
            $sHTML .= '<td>';
            if (!empty($i[$key])) {
                switch ($d['type']) {
                    case dbDynprops::typeNumber:
                    case dbDynprops::typeRange:
                    case dbDynprops::typeInputText:
                    case dbDynprops::typeTextarea:
                        $sHTML .= $i[$key];
Esempio n. 2
0
<?php

extract($aData);
$get = array('item' => $id);
header('Location: ' . bff::buildUrl('', 'newpage') . '?' . http_build_query($get));
?>

<div class="padBlock noBorder">
  <div class="allRight">Ваше объявление успешно опубликовано</div>
  <div class="textPad">
    <div class="advBlock">
      <div class="pic"><img src="<?php 
echo tpl::imgurl(array('folder' => 'items', 'file' => !empty($imgfav) ? $id . 't' . $imgfav : '', 'static' => 1));
?>
" /></div>
      <div class="desc">
        <?php 
if ($cat_type > 0) {
    ?>
<b class="upper"><?php 
    echo $cat_type_title;
    ?>
:</b> <?php 
}
?>
        <?php 
if ($cat_subtype > 0) {
    ?>
<b class="upper"><?php 
    echo $cat_subtype_title;
    ?>
Esempio n. 3
0
function smarty_function_imgurl($p, &$smarty)
{
    return tpl::imgurl($p);
}