本文整理汇总了PHP中FrontReport::TextWrapLines方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontReport::TextWrapLines方法的具体用法?PHP FrontReport::TextWrapLines怎么用?PHP FrontReport::TextWrapLines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontReport
的用法示例。
在下文中一共展示了FrontReport::TextWrapLines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$cheque->lineHeight = 22;
$cheque->NewLine();
$amt_total = -$from_trans['Total'];
$dec = user_price_dec();
$amount = "**" . price_in_words($amt_total, ST_CHEQUE);
$themoney = ($show_currencies ? $from_trans['curr_code'] : '') . '**' . number_format2($amt_total, $dec);
$cheque->TextWrap($col0, $cheque->row, $width_col0, $amount);
$cheque->TextWrap($col0, $cheque->row, $width_col0, $themoney, "right");
$cheque->lineHeight = 13;
$cheque->NewLine();
if ($show_currencies) {
$cheque->TextWrap($col0, $cheque->row, $width_col0, _("Amount in ") . $from_trans['curr_code']);
}
$cheque->row = $row_address;
$cheque->lineHeight = 12;
$cheque->TextWrapLines($col0, $width_col0, $from_trans['supp_name'] . "\n" . $from_trans['address']);
$dotadd = 40;
$cheque->lineHeight = 16;
for ($i = 0; $i < 2; $i++) {
// First Stub
$cheque->row = $i == 0 ? $row_first_stub : $row_second_stub;
$cheque->TextWrap($col0, $cheque->row, $width_col0, $from_trans['supp_name']);
$cheque->TextWrap($col1, $cheque->row, $width_col1, sql2date($from_trans['tran_date']));
if ($checkinput != "") {
$cheque->TextWrap($col3, $cheque->row, 93, $checkinput);
}
$cheque->NewLine();
// Get allocations (shows supplier references on invoices and its amount) (Two columns).
$result = get_allocations_for_remittance($from_trans['supplier_id'], $from_trans['type'], $from_trans['trans_no']);
$totalallocated = 0;
$totallines = 0;