當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FrontReport::TextWrapLines方法代碼示例

本文整理匯總了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;
開發者ID:blestab,項目名稱:frontaccounting,代碼行數:31,代碼來源:rep_cheque_print.php


注:本文中的FrontReport::TextWrapLines方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。