本文整理汇总了PHP中Formatter::text方法的典型用法代码示例。如果您正苦于以下问题:PHP Formatter::text方法的具体用法?PHP Formatter::text怎么用?PHP Formatter::text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Formatter
的用法示例。
在下文中一共展示了Formatter::text方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
</th>
<th style="width:8em">Saldo <?php
echo SB_CURRENCY;
?>
</th>
<th colspan="2"> </th>
</tr>
</thead>
<tbody>
<?php
foreach ($purchases as $purchase) {
echo "<tr>";
echo "<td>{$purchase->code}</td>";
echo "<td class='date'>{$purchase->date}</td>";
echo "<td>{$purchase->provider}</td>";
echo "<td>{$PURCHASE_STATUS[$purchase->status]}</td>";
echo "<td>" . Formatter::text($purchase->gloss) . "</td>";
echo "<td class='number'>" . Formatter::number($purchase->amount) . "</td>";
echo "<td class='number'>" . Formatter::number($purchase->outstanding) . "</td>";
echo "<td class='ui-state-default'><a href='index.php?pages=purchase_detail&purchase={$purchase->id}' title='Ver'>" . ICON_ZOOMIN . "</a></td>";
echo "<td class='ui-state-default'><a href='index.php?pages=purchase_edit&purchase={$purchase->id}' title='Editar'>" . ICON_PENCIL . "</a></td>";
}
?>
</tbody>
</table>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.default tbody tr:odd').addClass('alternate');
});
</script>
示例2:
?>
</td>
<td class="date"><?php
echo $customer->phone;
?>
</td>
<td><?php
echo $customer->email;
?>
</td>
<td style="padding-left:1em"><?php
echo $customer->active == 1 ? ICON_ACTIVE : ICON_INACTIVE;
?>
</td>
<td><?php
echo Formatter::text($customer->address);
?>
</td>
<td class="ui-state-default"><a href="<?php
echo Forms::getLink(FORM_CUSTOMER_DETAIL, $params);
?>
"><?php
echo ICON_ZOOMIN;
?>
</a></td>
<td class="ui-state-default"><a href="<?php
echo Forms::getLink(FORM_CUSTOMER_EDIT, $params);
?>
"><?php
echo ICON_PENCIL;
?>