本文整理汇总了PHP中filt_word函数的典型用法代码示例。如果您正苦于以下问题:PHP filt_word函数的具体用法?PHP filt_word怎么用?PHP filt_word使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了filt_word函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_lentxt
function get_lentxt($txtstr, $maxlen)
{
if (strlen($txtstr) > $maxlen) {
return substr(filt_word($txtstr), 0, $maxlen) . '...';
} else {
return filt_word($txtstr);
}
}
示例2: array
require "foundation/auser_validate.php";
require "foundation/module_mypals.php";
require "api/base_support.php";
//数据显示控制
$show_data = "";
$show_error = "content_none";
$show_content = "content_none";
//数据表定义区
$t_photo = $tablePreStr . "photo";
$t_photo_comment = $tablePreStr . "photo_comment";
$t_users = $tablePreStr . "users";
$t_album = $tablePreStr . "album";
$album_info = array();
$photo_row = array();
$album_info = api_proxy("album_self_by_aid", "album_name", $album_id);
$a_who = $is_self == 'Y' ? $a_langpackage->a_mine : str_replace('{holder}', filt_word(get_hodler_name($url_uid)), $a_langpackage->a_holder);
if ($album_info) {
//查找相册信息
$album_name = $album_info['album_name'];
if ($prev_next) {
$photo_rs = api_proxy('album_photo_by_aid', 'photo_id', $album_id);
$num = count($photo_rs);
foreach ($photo_rs as $key => $val) {
if ($val['photo_id'] == $photo_id) {
$photo_id = $photo_rs[$prev_next === 'next' ? $key == $num - 1 ? 0 : $key + 1 : ($prev_next === 'prev' ? $key == 0 ? $num - 1 : $key - 1 : 0)]['photo_id'];
break;
}
}
}
$photo_row = api_proxy("album_photo_by_photoid", "*", $photo_id);
//查找照片信息
示例3: check_pri
<?php
$is_pri = check_pri($val['user_id'], $val['privacy']);
?>
<dl class="list_album" onmouseover="this.className += ' list_album_active';" onmouseout="this.className='list_album';" >
<dt><a href='<?php
echo $is_pri ? "modules.php?app=photo_list&album_id=" . $val['album_id'] . "&user_id=" . $val['user_id'] : "javascript:void(0)";
?>
'><img src=<?php
echo $is_pri ? $val['album_skin'] : "skin/{$skinUrl}/images/errorpage.gif";
?>
onerror="parent.pic_error(this)" class='user_ico'></a></dt>
<dd><strong><a href="<?php
echo $is_pri ? "modules.php?app=photo_list&album_id=" . $val['album_id'] . "&user_id=" . $val['user_id'] : "javascript:void(0)";
?>
"><?php
echo filt_word($val['album_name']);
?>
</a></strong></dd>
<dd><?php
echo $val['user_name'];
echo $a_langpackage->a_of_album;
?>
<label>(<?php
echo str_replace('{holder}', $val['photo_num'], $a_langpackage->a_num);
?>
)</label></dd>
<dd><?php
echo $a_langpackage->a_label;
?>
:<?php
echo $val['tag'];
示例4: filt_word
,<?php
echo $mod_id;
?>
,<?php
echo $rs["visitor_id"];
?>
)><?php
echo $pu_langpackage->pu_re;
?>
</a>
<?php
}
?>
</label>
<p class="left"><?php
echo filt_word(get_face($rs["content"]));
?>
</p>
</div>
<?php
}
?>
<div class="stat"><a href="javascript:void(0)" id="page_<?php
echo $type_id;
?>
_<?php
echo $mod_id;
?>
" onclick="<?php
echo $function;
?>
示例5: albumlp
<?php
//引入语言包
$a_langpackage = new albumlp();
//变量取得
$photo_id = intval(get_args('photo_id'));
$information = long_check(get_argp('information_value'));
$user_id = get_sess_userid();
//数据表定义区
$t_photo = $tablePreStr . "photo";
$dbo = new dbex();
//读写分离定义函数
dbtarget('w', $dbServs);
//更改图片信息
$sql = "update {$t_photo} set photo_information='{$information}' where photo_id={$photo_id} and user_id={$user_id}";
$dbo->exeUpdate($sql);
echo filt_word($information);
示例6: filt_word
</a></dt>
<dd><?php
echo $g_langpackage->g_type;
?>
:<?php
echo $rs['group_type'];
?>
</dd>
<dd><?php
echo $g_langpackage->g_founder;
?>
:<a href='home.php?h=<?php
echo $userid;
?>
' target="_blank"><?php
echo filt_word($rs['group_creat_name']);
?>
</a></dd>
<dd><?php
echo join_type($rs['group_join_type']);
?>
<label><?php
echo str_replace('{num}', $rs['member_count'], $g_join_num);
?>
</label></dd>
</dl>
</div>
</div>
<?php
}
?>
示例7: str_replace
echo $pol_langpackage->pol_anon;
?>
</div>
</form>
<div class="clear"></div>
<!--总结报告!-->
<div class='poll_summary <?php
echo $show_sumary;
?>
'>
<?php
echo str_replace("{name}", filt_word($poll_row['username']), $pol_langpackage->pol_sumary);
?>
<div class='poll_summary_content'>
<div class="left_g left"></div><div class="center_g left"><?php
echo filt_word($poll_row['summary']);
?>
</div><div class="right_g left"></div>
</div>
</div>
</div>
<!--最新投票区!-->
<div class="container <?php
echo $show_poll_info;
?>
">
<div class="rs_head"><?php
echo $pol_langpackage->pol_info;
?>
</div>
示例8: sub_str
echo $f_langpackage->f_fri;
?>
"><img src="<?php
echo $val['pals_ico'];
?>
" /></a>
</div>
<dl>
<dt><a href="home.php?h=<?php
echo $val["pals_id"];
?>
" target="_blank" title="<?php
echo $f_langpackage->f_fri;
?>
"> <?php
echo sub_str(filt_word($val['pals_name']), 6, true);
?>
</a></dt>
<dd><?php
echo $val['pals_sort_name'];
?>
</dd>
</dl>
</li>
<?php
}
?>
</ul>
</div>
</div>
示例9: filt_word
'><img src="<?php
echo $rs['group_logo'] ? $rs['group_logo'] : 'uploadfiles/group_logo/default_group_logo.jpg';
?>
" width='100px' height='100px' alt="<?php
echo $rs['group_name'];
?>
" onerror="parent.pic_error(this)" /></a></div>
<dl class="group_list">
<dt><a href='modules.php?app=group_space&group_id=<?php
echo $rs["group_id"];
?>
&user_id=<?php
echo $url_uid;
?>
'><?php
echo filt_word($rs['group_name']);
?>
</a></dt>
<dd><?php
echo $g_langpackage->g_type;
?>
:<?php
echo $rs['group_type'];
?>
</dd>
<dd><?php
echo str_replace('{num}', '<span>' . $rs['member_count'] . '</span>', $g_join_num);
?>
</dd>
<dd class="<?php
echo $show_his;
示例10: filt_word
<div class='container' style='padding-top:15px;margin-top:0px'>
<div class='rs_head' style='margin-top:0px'><?php
echo $user_info['user_name'];
echo $u_langpackage->u_inf;
?>
</div>
</div>
<table class='main main_left'>
<tr>
<th><?php
echo $u_langpackage->u_name;
?>
</th>
<td><?php
echo filt_word($user_info['user_name']);
?>
</td>
</tr>
<tr>
<th><?php
echo $u_langpackage->u_sex;
?>
</th>
<td><?php
echo info_item_format($info_item_init, $user_sex_txt);
?>
</td>
</tr>
示例11: sub_str
echo $gu_langpackage->gu_see;
?>
">
<img src="<?php
echo $val['guest_user_ico'];
?>
" />
</a>
<span class="name"><a href="home.php?h=<?php
echo $val["guest_user_id"];
?>
" target="_blank" title="<?php
echo $gu_langpackage->gu_see;
?>
"><?php
echo sub_str(filt_word($val['guest_user_name']), 6, true);
?>
</a></span>
<span class="time"><?php
echo format_datetime_short($val['add_time']);
?>
</span>
<span>
<img style="cursor:pointer;" onclick="<?php
echo $send_hi;
?>
(<?php
echo $val["guest_user_id"];
?>
)" src="skin/<?php
echo $skinUrl;
示例12: empty
&user_id=<?php
echo $blog_row['user_id'];
?>
" title="<?php
echo $b_langpackage->b_same_sort;
?>
"><?php
echo empty($blog_row['log_sort_name']) ? $b_langpackage->b_default_sort : filt_word($blog_row['log_sort_name']);
?>
</a></span><span class="log_list_options"><?php
echo $blog_row["add_time"];
?>
</span>
</dt>
<dd class="log_list_content"><?php
echo filt_word($blog_row['log_content']);
?>
</dd>
<dd><span><?php
echo $b_langpackage->b_label;
?>
:<?php
echo $blog_row['tag'];
?>
</span>
<span><?php
echo str_replace("{b_com_num}", $blog_row['comments'], $b_langpackage->b_com_num);
?>
</span>
<span><?php
echo str_replace("{b_read_num}", $blog_row['hits'], $b_langpackage->b_read_num);
示例13: urlencode
?>
<br /><span><?php
echo $b_langpackage->b_sort;
?>
:<a href="modules.php?app=blog_list&sort_id=<?php
echo $rs['log_sort'];
?>
&sort_name=<?php
echo urlencode($rs['log_sort_name']);
echo $url_userid;
?>
" title="<?php
echo $b_langpackage->b_same_sort;
?>
"><?php
echo empty($rs['log_sort_name']) ? $b_langpackage->b_default_sort : filt_word($rs['log_sort_name']);
?>
</a></span><span><?php
echo $rs["add_time"];
?>
</span>
</dt>
<dd class="log_list_content"><?php
echo $is_pri ? sub_str(strip_tags($rs["log_content"]), 180) : $b_langpackage->b_limit_blog;
?>
</dd>
<dd>
<?php
if ($rs['tag']) {
?>
<span><?php
示例14: filt_word
<dl class="share_list">
<dt><strong><a href="home.php?h=<?php
echo $rs["user_id"];
?>
" target="_blank"><?php
echo filt_word($rs['user_name']);
?>
</a></strong><?php
echo filt_word($rs['s_title']);
?>
<br /><span><?php
echo $rs['add_time'];
?>
</span></dt>
<dd class="share_list_content"><?php
echo filt_word($rs['content']);
?>
</dd>
<dd>
<span><?php
echo $s_langpackage->s_label;
?>
:<?php
echo $rs['tag'];
?>
</span><span>|</span>
<span><a href='javascript:share_com(<?php
echo $rs["s_id"];
?>
,<?php
echo $rs["s_id"];
示例15: choo_type
echo $rs['dateline'];
?>
</span> </dt>
<dd class="poll_list_content">
<p><input type=<?php
echo choo_type($rs['multiple']);
?>
disabled /><?php
echo choo_option(filt_word($rs['option']), 0);
?>
</p>
<p><input type=<?php
echo choo_type($rs['multiple']);
?>
disabled /><?php
echo choo_option(filt_word($rs['option']), 1);
?>
</p>
</dd>
<dd>
<span><?php
echo $pol_langpackage->pol_whether_reward;
?>
:<?php
echo $rs['percredit'] ? $pol_langpackage->pol_yes : $pol_langpackage->pol_no;
?>
</span>
<span>|</span>
<span><?php
echo $pol_langpackage->pol_status;
?>