本文整理汇总了PHP中uploader::cutNameFile方法的典型用法代码示例。如果您正苦于以下问题:PHP uploader::cutNameFile方法的具体用法?PHP uploader::cutNameFile怎么用?PHP uploader::cutNameFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uploader
的用法示例。
在下文中一共展示了uploader::cutNameFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view_image_file
if ($width && $height && $cfile->image_size['type'] != 13 && $cfile->image_size['type'] != 4) {
print view_image_file($work['pict'], $_SESSION['login'], "upload", array('max_dim' => 200, 'class' => 'b-prev__pic', 'id' => 'work_image'));
} else {
?>
<div id="work_image" class="b-layout b-layout_padtop_20 b-layout_padlr_10">
<table cellspacing="0" cellpadding="0" border="0" class="b-layout__table b-layout__table_width_full">
<tr class="b-layout__tr">
<td class="b-icon-layout__icon"><i class="b-icon b-icon_attach_<?php
echo getICOFile($cfile->getext());
?>
"></i></td>
<td class="b-icon-layout__files"><div class="b-layout__txt b-layout__txt_padtop_5"><a href="<?php
echo WDCPREFIX . '/' . $cfile->path . $cfile->name;
?>
" class="b-icon-layout__link b-icon-layout__link_fontsize_13"><?php
echo uploader::cutNameFile($cfile->original_name, portfolio::FILE_NAME_LENGTH_EDIT);
?>
</a></div></td>
<td class="b-icon-layout__size" style="padding-right:0;"><div class="b-layout__txt b-layout__txt_padtop_5">,<?php
echo ConvertBtoMB($cfile->size);
?>
</div></td>
</tr>
</table>
<div id="swf_params" class="b-select b-select_padtop_10 b-select_center" <?php
echo strtolower(preg_replace("#.*(\\.[a-zA-Z0-9]*)\$#", '$1', $cfile->name)) != ".swf" ? 'style="display:none"' : '';
?>
>
<label for="wmode" class="b-select__label b-select__label_inline-block b-select__label_fontsize_11">wmode: </label>
<select id="wmode" class="b-select__select b-select__select_width_70" name="wmode">
<option>window</option>