本文整理汇总了PHP中tpl::escape方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::escape方法的具体用法?PHP tpl::escape怎么用?PHP tpl::escape使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tpl
的用法示例。
在下文中一共展示了tpl::escape方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
" />
<div class="greyBlock">
<div class="top"><span class="left"> </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"> </span>
<input type="submit" value="НАЙТИ" />
</div>
<div class="clear"></div>
</div>
</div>
<div class="bottom"><span class="left"> </span><div class="clear"></div></div>
</div>
示例2:
?>
" 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: txtDynprops
'+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: array
<div class="clear"></div>
</div>
<div class="">
<div class="greyBlock" style="background: #ECEEEE; border: none;">
<!-- <div class="top"><span class="left"> </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"> </span>
<input type="submit" value="НАЙТИ" />
</div>
<div class="clear"></div>
</div>
</div>
<!-- <div class="bottom"><span class="left"> </span><div class="clear"></div></div>-->
</div>
示例5: current
?>
[f]" value="<?php
echo $from > 0 ? $from : '';
?>
" class="from" type="text" /></label>
<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:
// 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"> </span>
<input type="button" class="submit" value="отфильтровать" onclick="bbsSearch.filter(<?php
echo dbDynprops::typeSelect . ', 0, \'.d' . $id . '_child\', 0, \'\', this';
?>