本文整理汇总了PHP中CFunctions::cut_string方法的典型用法代码示例。如果您正苦于以下问题:PHP CFunctions::cut_string方法的具体用法?PHP CFunctions::cut_string怎么用?PHP CFunctions::cut_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFunctions
的用法示例。
在下文中一共展示了CFunctions::cut_string方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
?>
</td>
<td class="zinfo"><?php
$__text = CFunctions::cut_string($user['prenom'], $max_input_text+3);
echo $__text;
if($user['prenom'] != $__text) {
?>
<div class="bulle">
<?php echo $user['prenom']; ?>
</div>
<?php
}
?>
</td>
<td class="zinfo"><?php
$__text = CFunctions::cut_string($user['societe'], $max_input_text+3);
echo $__text;
if($user['societe'] != $__text) {
?>
<div class="bulle">
<?php echo $user['societe']; ?>
</div>
<?php
}
?>
</td>
<td align="center"><?php echo $user['pays'] ?></td>
<td align="center"><?php echo date("d-m-20y", strtotime($user['date']));?></td>
<td align="center"><?php echo CHtmlUser::get_etat_contact($user['id'], $user['etat_contact'], 0) ?></td>
<td align="center">R<?php echo $user['relance']; ?></td>
<td style="text-align: center;"><?php echo $opp_num[$user['idopportunite']]; ?></td>
示例2: utf8_encode
echo utf8_encode($__text);
if($user['resp_ent'] != $__text) {
?>
<div class="bulle">
<?php echo utf8_encode($user['resp_ent']); ?>
</div>
<?php
}
?>
</td>
<td class="zinfo">
<?php
//--------------- Owen 01/2011 Limitation de caractère
$__text = CFunctions::cut_string($user['nom_ent'], $max_input_text+3);
echo utf8_encode($__text);
if($user['nom_ent'] != $__text) {
?>
<div class="bulle">
<?php echo utf8_encode($user['nom_ent']); ?>
</div>
<?php
}
?>
</td>
<td class="zinfo">
<?php
echo $user['id_sec'];
$sql_nomSec='select nom_sec FROM secteur WHERE id_sec='.$user['id_sec'];
$nomSec=CBdd::select_one($sql_nomSec, 'nom_sec');
示例3:
$zSqlPj .= " WHERE " . $zTableUtilite . ".id = " . $iOppId ;
$toPieces = CBdd::select_row($zSqlPj) ;
$zHtml = '' ;
if ($toTextes)
{
$zTxtCut = CFunctions::cut_string($toTextes['nom'], 15) ;
$zHtml .= '<p>' ;
$zHtml .= ' <label class="info">' . $zTxtCut ;
$zHtml .= ($zTxtCut != $toTextes['nom']) ? ' <span class="bulle">' . $toTextes['nom'] . '</span>' : '' ;
$zHtml .= ' </label>' ;
$zHtml .= ' <input type="radio" value="1" class="radioText" name="radioText" /> Oui' ;
$zHtml .= ' <input type="radio" value="0" class="radioText" name="radioText" checked="checked" /> Non' ;
$zHtml .= '</p>' ;
}
if ($toPieces)
{
$zPieceCut = CFunctions::cut_string(str_replace('../../userfiles/pieces_jointes/', '', $toPieces['piece']), 15) ;
$zHtml .= '<p>' ;
$zHtml .= ' <label class="info">' . $zPieceCut ;
$zHtml .= ($zPieceCut != $toPieces['piece']) ? ' <span class="bulle">' . $toPieces['piece'] . '</span>' : '' ;
$zHtml .= ' </label>' ;
$zHtml .= ' <input type="radio" value="1" class="radioPiece" name="radioPiece" /> Oui' ;
$zHtml .= ' <input type="radio" value="0" class="radioPiece" name="radioPiece" checked="checked" /> Non' ;
$zHtml .= '</p>' ;
}
echo $zHtml ;