当前位置: 首页>>代码示例>>PHP>>正文


PHP FrontReport::UnderlineCell方法代码示例

本文整理汇总了PHP中FrontReport::UnderlineCell方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontReport::UnderlineCell方法的具体用法?PHP FrontReport::UnderlineCell怎么用?PHP FrontReport::UnderlineCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FrontReport的用法示例。


在下文中一共展示了FrontReport::UnderlineCell方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_provisional_receipt

function print_provisional_receipt()
{
    $array = array();
    $catch = "";
    $catch = $_POST['PARAM_0'];
    $array = explode("/", $catch);
    global $path_to_root, $systypes_array;
    if ($destination) {
        include_once $path_to_root . "/reporting/includes/excel_report.inc";
    } else {
        include_once $path_to_root . "/reporting/includes/pdf_report.inc";
    }
    $orientation = $orientation ? 'L' : 'P';
    $dec = user_price_dec();
    $cols = array();
    for ($i = 0; $i <= 400; $i++) {
        array_push($cols, $i);
    }
    $headers = array(_('Date'), _('Time'), _('User'), _('Trans Date'), _('Type'), _('#'), _('Action'), _('Amount'));
    $aligns = array('left', 'left', 'left', 'left', 'left', 'left', 'left', 'right');
    $usr = get_user($user);
    $user_id = $usr['user_id'];
    $rep = new FrontReport(_('Provisional Receipt'), "ProvisionalReceipt", user_pagesize(), 9, $orientation);
    if ($orientation == 'L') {
        recalculate_cols($cols);
    }
    $rep->SetHeaderType('Header0');
    $rep->Font();
    $rep->Info($params, $cols, $headers, $aligns);
    $rep->NewPage();
    $res = get_fields($array[0], $array[1], $array[2]);
    while ($myrow = db_fetch($res)) {
        $rep->NewLine();
        $rep->NewLine();
        $rep->NewLine();
        $rep->NewLine();
        $rep->NewLine();
        $rep->TextCol(399, 0, "No: " . $myrow[6]);
        $rep->NewLine();
        $rep->TextCol(399, 1, $myrow[2]);
        $rep->NewLine();
        $rep->NewLine();
        $rep->NewLine();
        $rep->TextCol(50, 200, "Received from " . $myrow[1]);
        for ($loop = 110; $loop <= 399; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->NewLine();
        $rep->TextCol(50, 160, "with TIN ");
        for ($loop = 85; $loop <= 160; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->TextCol(161, 300, "And address at " . $myrow[3]);
        for ($loop = 222; $loop <= 399; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->NewLine();
        $rep->TextCol(50, 300, "Engaged in the business style of ");
        for ($loop = 180; $loop <= 399; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->NewLine(1);
        $word = price_in_words($myrow[4], ST_CUSTPAYMENT);
        $rep->TextCol(50, 350, "the sum of " . $word);
        for ($loop = 95; $loop <= 369; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->TextCol(375, 400, "Pesos ");
        $rep->NewLine();
        $rep->TextCol(50, 120, "(P " . $myrow[4] . "                  )");
        for ($loop = 57; $loop <= 115; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $word2 = price_in_words($myrow[5], ST_CUSTPAYMENT);
        $rep->TextCol(121, 350, "in partial/full payment of " . $word2);
        for ($loop = 217; $loop <= 399; $loop++) {
            $rep->UnderlineCell($loop, 0);
        }
        $rep->NewLine();
        $rep->NewLine();
        $rep->NewLine();
        if (array_pop($array) == 'collection') {
            $rep->TextCol(265, 399, "By:");
            $rep->NewLine();
            for ($loop = 275; $loop <= 399; $loop++) {
                $rep->UnderlineCell($loop, 0);
            }
            $rep->NewLine();
            $rep->TextCol(275, 399, "Cashier/Authorized Representative");
        } else {
            for ($loop = 300; $loop <= 399; $loop++) {
                $rep->UnderlineCell($loop, 0);
            }
            $rep->NewLine();
            $rep->TextCol(320, 399, "IMC/Collector");
            $rep->NewLine();
            $rep->TextCol(300, 399, "Cashier's Name and Code");
        }
        $rep->NewLine();
        $rep->NewLine();
//.........这里部分代码省略.........
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:101,代码来源:rep900.php


注:本文中的FrontReport::UnderlineCell方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。