本文整理汇总了PHP中Receipt::getDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP Receipt::getDescription方法的具体用法?PHP Receipt::getDescription怎么用?PHP Receipt::getDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Receipt
的用法示例。
在下文中一共展示了Receipt::getDescription方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
<td colspan="3">
<table class="total">
<tbody>
<tr class="inctotal">
<td class="one"></td>
<td class="two"><?php echo gettext("Total :") ?></td>
<td class="three"><div class="inctotal"><div class="inctotal inner"><?php echo number_format(ceil(amount_convert($price)*100)/100,2)." $display_curr"; ?></div></div></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan="3" class="additional-information">
<div class="receipt-description">
<?php echo $receipt->getDescription() ?>
</div></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3" class="footer">
<?php echo $company_name." | ".$address.", ".$zipcode." ".$city." ".$country." | VAT nr.".$vat_invoice; ?>
</td>
</tr>
</tfoot>
</table></div>
<?php
$smarty->display('footer.tpl');
示例2: gettext
<font style="font-weight:bold;"><?php
echo gettext("DATE : ");
?>
</font> <?php
echo $receipt->getDate();
?>
</td>
</tr>
<tr>
<td colspan="2">
<br/>
<font style="font-weight:bold; " ><?php
echo gettext("DESCRIPTION : ");
?>
</font> <br/> <?php
echo $receipt->getDescription();
?>
</td>
</tr>
<tr >
<td colspan="2">
<table width="100%" cellspacing="10">
<tr>
<th width="20%">
</th>
<th width="50%">
</th>
<th align="right" width="20%">
示例3: gettext
<td>
</td>
</tr>
<tr>
<td >
<font style="font-weight:bold;" ><?php echo gettext("FOR : "); ?></font> <?php echo $receipt->getUsernames(); ?>
</td>
<td align="right">
<font style="font-weight:bold;"><?php echo gettext("DATE : "); ?></font> <?php echo $receipt->getDate(); ?>
</td>
</tr>
<tr>
<td colspan="2">
<br/>
<font style="font-weight:bold; " ><?php echo gettext("DESCRIPTION : "); ?></font> <br/> <?php echo $receipt->getDescription(); ?></td>
</tr>
<tr >
<td colspan="2">
<table width="100%" cellspacing="10">
<tr>
<th width="20%">
</th>
<th width="50%">
</th>
<th align="right" width="20%">
<font style="font-weight:bold; " >
<?php echo gettext("PRICE"); ?>