示例#1
0
?>
" />
<div class="greyBlock">
    <div class="top"><span class="left">&nbsp;</span><div class="clear"></div></div>
    <div class="center">
        <div class="left">поиск среди <b class="f18 orange"><?php 
echo $total;
?>
</b> <?php 
echo func::declension($total, array('объявления', 'объявлений', 'объявлений'), false);
?>
</div> <div class="left progress" style="margin: 10px 0 0 10px; display: none;"></div>
        <div class="clear"></div>
        <div class="padTop">
            <span class="left"><input type="text" name="q" value="<?php 
echo tpl::escape($f['q']);
?>
" class="inputText"/></span>
            <span class="left"><select class="inputText" name="p" style="width:160px; :margin-top:3px;"><?php 
echo $period_select;
?>
</select></span>
            <div class="button left">
                <span class="left">&nbsp;</span>
                <input type="submit" value="НАЙТИ" />
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="bottom"><span class="left">&nbsp;</span><div class="clear"></div></div>
</div>
示例#2
0
    ?>
" class="send">Отправить другу</a></li>
                <li><a href="/item/<?php 
    echo $id;
    ?>
?print=1" class="print">Распечатать</a></li>
                <li><a href="#" class="report" onclick="return bbsItemView.claim(<?php 
    echo $id;
    ?>
);">Пожаловаться</a></li>
                <?php 
    $emailWrite = !empty($contacts_email) ? $contacts_email : (!empty($contacts_email2) ? $contacts_email2 : false);
    if (!empty($emailWrite)) {
        ?>
<li><a href="mailto:<?php 
        echo tpl::escape($emailWrite);
        ?>
?subject=<?php 
        echo BFF_EMAIL_FROM_NAME;
        ?>
" class="write">Написать автору</a></li><?php 
    }
} else {
    ?>
                                                   
                <li><a href="mailto:?subject=<?php 
    echo BFF_EMAIL_FROM_NAME;
    ?>
&body=http://<?php 
    echo SITEHOST;
    ?>
示例#3
0
'+id+'_child');
            $inputChild.html( ( data.form ? data.form : '') )
                  .attr('name', namePrefix+'['+data.id+']');
            if(intval(data.id)) {
                $inputChild.removeAttr('disabled');
            } else {
                $inputChild.attr('disabled', 'disabled');
            }
        }
    });
}

function txtDynprops(txt){
    with(bffDynpropsTextify) {
        <?php 
foreach ($aData['dynprops'] as $d) {
    if ($d['txt']) {
        echo 'txt = add(txt, ' . $d['type'] . ', 0, \'' . $d['id'] . '\', \', \', \'' . tpl::escape($d['txt_text'], 'javascript') . '\');';
        if ($d['parent'] && $d['type'] == dbDynprops::typeSelect) {
            echo 'txt = add(txt, ' . $d['type'] . ', 0, \'' . $d['id'] . '_child\', \' \', \'' . tpl::escape($d['txt_text'], 'javascript') . '\');';
        }
    }
}
?>
    }
    return txt;    
}

</script>
                    
示例#4
0
文件: search.php 项目: Sywooch/dobox
    <div class="clear"></div>
</div>

<div class="">
    <div class="greyBlock" style="background: #ECEEEE; border: none;">
<!--        <div class="top"><span class="left">&nbsp;</span><div class="clear"></div></div>-->
        <div class="center" style="border: none; padding-top: 8px;">
            поиск среди <b class="f18 orange"><?php 
echo $total;
?>
</b> <?php 
echo func::declension($total, array('объявления', 'объявлений', 'объявлений'), false);
?>
            <div class="padTop">
                <span class="left"><input type="text" class="searchInput" name="q" value="<?php 
echo tpl::escape($q);
?>
" /></span>
                <span class="left"><select class="inputText" name="p" style="width:160px; :margin-top:3px;"><?php 
echo $period_select;
?>
</select></span>
                <div class="button left">
                    <span class="left">&nbsp;</span>
                    <input type="submit" value="НАЙТИ" />
                </div>
                <div class="clear"></div>
            </div>
        </div>
<!--        <div class="bottom"><span class="left">&nbsp;</span><div class="clear"></div></div>-->
    </div>
示例#5
0
                ?>
[f]" value="<?php 
                echo $from > 0 ? $from : '';
                ?>
" class="from" type="text" /></label>&nbsp;
                            <label>до <input name="<?php 
                echo $name;
                ?>
[t]" value="<?php 
                echo $to > 0 ? $to : '';
                ?>
" class="to" type="text" /></label>
                            <?php 
                if (!empty($aData['children'][$d['id']][0]['multi'])) {
                    $u = current($aData['children'][$d['id']][0]['multi']);
                    $unit = tpl::escape($u['name']);
                    echo '<span class="unit">' . $unit . '</span>';
                }
                ?>
                        </div>
                        <div class="clear"></div>
                        <?php 
            }
            if (!empty($d['search_ranges'])) {
                $sHTML = '<ul><li ' . (empty($values) ? 'class="select"' : '') . '><input ' . (empty($values) ? ' checked="checked" disabled="disabled"' : '') . 'class="checkAll" type="checkbox" id="d' . $id . '_0" /><label for="d' . $id . '_0"> <span>не важно</span></label></li></ul><div class="clear"></div>';
                buildCheckboxesBlocks($sHTML, $d['search_ranges'], sizeof($d['search_ranges']), $values, create_function('$k,$i,$values', '
                                return \'<li><input type="checkbox" name="' . $name . '[\'.$k.\']" id="d' . $id . '_\'.$k.\'" 
                                    \'.(isset($values[$k])?\' checked\':\'\').\' value="1" /><label for="d' . $id . '_\'.$k.\'"> <span>\'.$i[\'title\'].\'</span></label></li>\';
                            '));
                echo $sHTML;
                /*
示例#6
0
                            //                                foreach($dd['multi'] as $k=>$i) {
                            //                                    $k = $i['value'];
                            //                                    if($k == 0) continue;
                            //                                    echo '<li><input type="checkbox" name="fc['.$fid2.']['.$dd['id'].']['.$k.']" id="d'.$id2.'_c'.$k.'"'.(isset($i['active'])?' checked':'').' value="'.$k.'" /><label for="f'.$id2.'_c'.$k.'"> <span>'.$i['name'].'</span></label></li>';
                            //                                }
                            ?>
                                </div>
                                <div class="clear"></div>
                            </div><script type="text/javascript">$(function(){ bbsSearch.saveChildCache(<?php 
                            echo $d['id'];
                            ?>
, '<?php 
                            echo $m['value'];
                            ?>
', '<?php 
                            echo tpl::escape($m['name']);
                            ?>
'); });</script> 
                        <?php 
                        }
                    }
                }
                ?>
</div>                     
                        <div class="clear"></div>                     
                        <div class="buttonsCont">
                            <div class="button">                           
                                <span class="left">&nbsp;</span>
                                <input type="button" class="submit" value="отфильтровать" onclick="bbsSearch.filter(<?php 
                echo dbDynprops::typeSelect . ', 0, \'.d' . $id . '_child\', 0, \'\', this';
                ?>