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


PHP invoice::get方法代码示例

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


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

示例1: invoice

along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
require "include/invoice_top.php";
$section = 'payed_not';
require "include/invoice_menu.php";
if (isset($_GET['debug']) && isset($_GET['invoice_id'])) {
    $invoice = new invoice($_GET['invoice_id']);
    $invoice->get();
    $invoice->createPDF();
    echo 'Jau...';
}
echo '<h1>' . _('Not payed') . '</h1>' . chr(10) . chr(10);
$Q_invoice = mysql_query("select invoice_id from `invoice` where invoice_payed = 0 order by invoice_id");
invoicelist_payed_not($Q_invoice);
if (isset($_GET['debug'])) {
    $Q_invoice = mysql_query("select invoice_id from `invoice` where invoice_payed = 0 order by invoice_id");
    echo '<br><br>';
    if (!mysql_num_rows($Q_invoice)) {
        echo '<i>' . _('There are no invoices that are registered as not payed.') . '</i>';
    } else {
        echo '<table>';
        while ($R_invoice = mysql_fetch_assoc($Q_invoice)) {
            $invoice = new invoice($R_invoice['invoice_id']);
            $invoice->get();
            //templateAssignInvoice('smarty', $invoice);
            echo '<tr><td>' . '<a href="' . $_SERVER['PHP_SELF'] . '?invoice_id=' . $invoice->invoice_id . '&debug=1">' . $invoice->invoice_id . '</a></td>' . '<td>' . '<a href="invoice_view.php?invoice_id=' . $invoice->invoice_id . '">' . $invoice->invoice_id . '</a></td>' . '<td>' . str_replace("  ", "&nbsp; ", nl2br(print_r($invoice, true))) . '</td></tr>';
        }
        echo '</table>';
    }
}
开发者ID:HNygard,项目名称:JM-booking,代码行数:31,代码来源:invoice_payed_not.php

示例2: or

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
require "include/invoice_top.php";
if (!isset($_GET['invoice_id']) || !is_numeric($_GET['invoice_id'])) {
    echo _('Can\'t find invoice.');
    exit;
}
$invoice = new invoice($_GET['invoice_id']);
if (!$invoice->get()) {
    echo _('Can\'t find invoice.');
    exit;
}
$section = 'payed_not';
require "include/invoice_menu.php";
$smarty = new Smarty();
templateAssignInvoice('smarty', $invoice);
templateAssignSystemvars('smarty');
//$smarty->debugging = true;
$smarty->display('file:invoice_view.tpl');
开发者ID:HNygard,项目名称:JM-booking,代码行数:31,代码来源:invoice_view.php

示例3: invoicelist_payed

function invoicelist_payed($Q)
{
    //$Q = mysql_query($SQL);
    if (!mysql_num_rows($Q)) {
        echo '<i>Ingen fakturaer er registert som betalt.</i>';
    } else {
        echo '<font color="red">' . mysql_num_rows($Q) . '</font> fakturaer funnet';
        echo '<br>' . chr(10) . chr(10);
        echo '<table style="border-collapse: collapse;">' . chr(10);
        echo ' <tr>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b class="hiddenprint">Vis mer</b><b class="print">Fakturaid</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Fakturadato</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Betalt</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Beløp</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;"><b>Kunde</b></td>' . chr(10);
        echo '  <td style="border: 1px solid black;">&nbsp;</td>' . chr(10);
        echo ' </tr>' . chr(10);
        while ($R = mysql_fetch_assoc($Q)) {
            $invoice = new invoice($R['invoice_id']);
            $invoice->get();
            echo ' <tr>' . chr(10);
            // invoice_id
            echo '  <td style="border: 1px solid black;">';
            echo '<a href="invoice_view.php?invoice_id=' . $invoice->invoice_id . '" class="hiddenprint">' . iconHTML('coins') . ' Faktura ' . $invoice->invoice_id . '</a>';
            echo '<b class="print">' . $invoice->invoice_id . '</b>';
            echo '</td>' . chr(10);
            // time
            echo '  <td style="border: 1px solid black;">';
            echo $invoice->invoice_time2['year'] . '-' . $invoice->invoice_time2['month'] . '-' . $invoice->invoice_time2['day'];
            echo '</td>' . chr(10);
            // time_payed
            echo '  <td style="border: 1px solid black;">';
            echo nl2br($invoice->invoice_payment_time);
            echo '</td>' . chr(10);
            // sum
            echo '  <td style="border: 1px solid black;">kr&nbsp;' . smarty_modifier_commify($invoice->invoice_payed_amount, 2, ",", " ") . '</td>' . chr(10);
            // Customer
            echo '  <td style="border: 1px solid black;">';
            if ($invoice->invoice_to_customer_name != '') {
                echo '<a href="customer.php?customer_id=' . $invoice->invoice_to_customer_id . '">' . $invoice->invoice_to_customer_name . '</a>';
            } else {
                echo $invoice->invoice_to_line1;
            }
            echo '</td>' . chr(10);
            // Options
            echo '  <td style="border: 1px solid black;">';
            echo nl2br($invoice->invoice_payment_comment);
            echo '</td>' . chr(10);
            echo ' </tr>' . chr(10);
        }
        echo '</table>';
    }
}
开发者ID:HNygard,项目名称:JM-booking,代码行数:53,代码来源:invoice_top.php


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