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


PHP end_page函数代码示例

本文整理汇总了PHP中end_page函数的典型用法代码示例。如果您正苦于以下问题:PHP end_page函数的具体用法?PHP end_page怎么用?PHP end_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: check_paths

function check_paths()
{
    if (!file_exists(BACKUP_PATH)) {
        display_error(_("Backup paths have not been set correctly.") . _("Please contact System Administrator.") . "<br>" . _("cannot find backup directory") . " - " . BACKUP_PATH . "<br>");
        end_page();
        exit;
    }
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:8,代码来源:backups.php

示例2: safe_exit

function safe_exit()
{
    global $path_to_root;
    hyperlink_no_params("", tr("Enter a new dimension"));
    echo "<br>";
    hyperlink_no_params($path_to_root . "/dimensions/inquiry/search_dimensions.php", tr("Select an existing dimension"));
    echo "<br><br>";
    end_page();
    exit;
}
开发者ID:ravenii,项目名称:guardocs,代码行数:10,代码来源:dimension_entry.php

示例3: safe_exit

function safe_exit()
{
    global $path_to_root;
    hyperlink_no_params("", tr("Enter a new work order"));
    hyperlink_no_params("search_work_orders.php", tr("Select an existing work order"));
    echo "<br>";
    end_form();
    end_page();
    exit;
}
开发者ID:ravenii,项目名称:guardocs,代码行数:10,代码来源:work_order_entry.php

示例4: display_grn_items_for_selection

function display_grn_items_for_selection()
{
    global $table_style;
    $result = get_grn_items(0, $_SESSION['supp_trans']->supplier_id, true);
    if (db_num_rows($result) == 0) {
        display_note(tr("There are no outstanding items received from this supplier that have not been invoiced by them."), 0, 1);
        end_page();
        exit;
    }
    /*Set up a table to show the outstanding GRN items for selection */
    start_form(false, true);
    display_heading2(tr("Items Received Yet to be Invoiced"));
    start_table("{$table_style} colspan=7 width=95%");
    $th = array(tr("Delivery"), tr("Sequence #"), tr("P.O."), tr("Item"), tr("Description"), tr("Received On"), tr("Quantity Received"), tr("Quantity Invoiced"), tr("Uninvoiced Quantity"), tr("Order Price"), tr("Total"));
    table_header($th);
    $i = $k = 0;
    while ($myrow = db_fetch($result)) {
        $grn_already_on_invoice = False;
        foreach ($_SESSION['supp_trans']->grn_items as $entered_grn) {
            if ($entered_grn->id == $myrow["id"]) {
                $grn_already_on_invoice = True;
            }
        }
        if ($grn_already_on_invoice == False) {
            alt_table_row_color($k);
            label_cell(get_trans_view_str(25, $myrow["grn_batch_id"]));
            //text_cells(null, 'grn_item_id', $myrow["id"]);
            submit_cells('grn_item_id', $myrow["id"]);
            label_cell(get_trans_view_str(systypes::po(), $myrow["purch_order_no"]));
            label_cell($myrow["item_code"]);
            label_cell($myrow["description"]);
            label_cell(sql2date($myrow["delivery_date"]));
            qty_cell($myrow["qty_recd"]);
            qty_cell($myrow["quantity_inv"]);
            qty_cell($myrow["qty_recd"] - $myrow["quantity_inv"]);
            amount_cell($myrow["unit_price"]);
            amount_cell(round($myrow["unit_price"] * ($myrow["qty_recd"] - $myrow["quantity_inv"]), user_price_dec()));
            end_row();
            $i++;
            if ($i > 15) {
                $i = 0;
                table_header($th);
            }
        }
    }
    end_table();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:47,代码来源:supplier_invoice_grns.php

示例5: array

        }
        if (!isset($installed_extensions)) {
            $installed_extensions = array();
            update_extensions($installed_extensions);
        }
        subpage_title(_('Company Settings'));
        start_table(TABLESTYLE);
        text_row_ex(_("Company Name:"), 'name', 30);
        text_row_ex(_("Admin Login:"), 'admin', 30);
        password_row(_("Admin Password:"), 'pass', @$_POST['pass']);
        password_row(_("Reenter Password:"), 'repass', @$_POST['repass']);
        coa_list_row(_("Select Chart of Accounts:"), 'coa');
        languages_list_row(_("Select Default Language:"), 'lang');
        end_table(1);
        submit_center_first('back', _('<< Back'));
        submit_center_last('set_admin', _('Continue >>'));
        break;
    case '6':
        // final screen
        subpage_title(_('SerbizHub Suite ERP has been installed successsfully.'));
        display_note(_('Please do not forget to remove install wizard folder.'));
        session_unset();
        session_destroy();
        hyperlink_no_params($path_to_root . '/index.php', _('Click here to start.'));
        break;
}
hidden('Tests');
hidden('Page');
end_form(1);
end_page(false, false, true);
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:30,代码来源:index.php

示例6: label_cell

        label_cell(get_trans_view_str(ST_SUPPRECEIVE, $myrow["id"]));
        label_cell($myrow["reference"]);
        label_cell(sql2date($myrow["delivery_date"]));
        end_row();
    }
    end_table();
}
$invoice_result = get_po_invoices_credits($_GET['trans_no']);
$k = 0;
if (db_num_rows($invoice_result) > 0) {
    echo "</td><td valign=top>";
    // outer table
    display_heading2(_("Invoices/Credits"));
    start_table(TABLESTYLE);
    $th = array(_("#"), _("Date"), _("Total"));
    table_header($th);
    while ($myrow = db_fetch($invoice_result)) {
        alt_table_row_color($k);
        label_cell(get_trans_view_str($myrow["type"], $myrow["trans_no"]));
        label_cell(sql2date($myrow["tran_date"]));
        amount_cell($myrow["Total"]);
        end_row();
    }
    end_table();
}
echo "</td></tr>";
end_table(1);
// outer table
//----------------------------------------------------------------------------------------------------
end_page(true, false, false, ST_PURCHORDER, $_GET['trans_no']);
开发者ID:M-Shahbaz,项目名称:FA,代码行数:30,代码来源:view_po.php

示例7: display_heading

display_heading("<font color=red>" . _("SUPPLIER CREDIT NOTE") . " # " . $trans_no . "</font>");
echo "<br>";
start_table(TABLESTYLE, "width=95%");
start_row();
label_cells(_("Supplier"), $supp_trans->supplier_name, "class='tableheader2'");
label_cells(_("Reference"), $supp_trans->reference, "class='tableheader2'");
label_cells(_("Supplier's Reference"), $supp_trans->supp_reference, "class='tableheader2'");
end_row();
start_row();
label_cells(_("Invoice Date"), $supp_trans->tran_date, "class='tableheader2'");
label_cells(_("Due Date"), $supp_trans->due_date, "class='tableheader2'");
label_cells(_("Currency"), get_supplier_currency($supp_trans->supplier_id), "class='tableheader2'");
end_row();
comments_display_row(ST_SUPPCREDIT, $trans_no);
end_table(1);
$total_gl = display_gl_items($supp_trans, 3);
$total_grn = display_grn_items($supp_trans, 2);
$display_sub_tot = number_format2($total_gl + $total_grn, user_price_dec());
start_table(TABLESTYLE, "width=95%");
label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=17%");
$tax_items = get_trans_tax_details(ST_SUPPCREDIT, $trans_no);
display_supp_trans_tax_details($tax_items, 1);
$display_total = number_format2(-($supp_trans->ov_amount + $supp_trans->ov_gst), user_price_dec());
label_row("<font color=red>" . _("TOTAL CREDIT NOTE") . "</font", "<font color=red>{$display_total}</font>", "colspan=1 align=right", "nowrap align=right");
end_table(1);
$voided = is_voided_display(ST_SUPPCREDIT, $trans_no, _("This credit note has been voided."));
if (!$voided) {
    display_allocations_from(PT_SUPPLIER, $supp_trans->supplier_id, ST_SUPPCREDIT, $trans_no, -($supp_trans->ov_amount + $supp_trans->ov_gst));
}
end_page(true, false, false, ST_SUPPCREDIT, $trans_no);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:30,代码来源:view_supp_credit.php

示例8: label_cells

}
label_cells(_("Amount"), number_format2(-$receipt['bank_amount'], user_price_dec()), "class='tableheader2'");
if ($receipt['ov_discount'] != 0) {
    label_cells(_("Discount"), number_format2(-$receipt['ov_discount'] * $receipt['rate'], user_price_dec()), "class='tableheader2'");
} else {
    label_cells(_("Payment Type"), $bank_transfer_types[$receipt['BankTransType']], "class='tableheader2'");
}
end_row();
start_row();
if ($show_currencies) {
    label_cells(_("Supplier's Currency"), $receipt['curr_code'], "class='tableheader2'");
}
if ($show_both_amounts) {
    label_cells(_("Amount"), number_format2(-$receipt['Total'], user_price_dec()), "class='tableheader2'");
}
label_cells(_("Reference"), $receipt['ref'], "class='tableheader2'");
end_row();
if ($receipt['ov_discount'] != 0) {
    start_row();
    label_cells(_("Payment Type"), $bank_transfer_types[$receipt['BankTransType']], "class='tableheader2'");
    end_row();
}
comments_display_row(ST_SUPPAYMENT, $trans_no);
end_table(1);
$voided = is_voided_display(ST_SUPPAYMENT, $trans_no, _("This payment has been voided."));
// now display the allocations for this payment
if (!$voided) {
    display_allocations_from(PT_SUPPLIER, $receipt['supplier_id'], ST_SUPPAYMENT, $trans_no, -$receipt['Total']);
}
end_page(true, false, false, ST_SUPPAYMENT, $trans_no);
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:30,代码来源:view_supp_payment.php

示例9: array

$view_data['rights'] = $rights->get_list();
$cond = array();
if ($rights_id !== false) {
    $cond['rights_id'] = $rights_id;
}
//order added by longbill
if ($_GET['order'] && $_GET['asc']) {
    $cond['order'] = $_GET['order'] . ' asc';
} else {
    if ($_GET['order']) {
        $cond['order'] = $_GET['order'] . ' desc';
    } else {
        $cond['order'] = $admin->id . ' DESC';
    }
}
if (is_array($_GET['search'])) {
    foreach ($_GET['search'] as $key => $val) {
        $val = str_replace('*', '%', $val);
        $cond['where'] = " `{$key}` LIKE '%" . mysql_escape_string($val) . "%' ";
    }
}
$admins = end_page($admin, $cond, intval($config['admin_admin_page_size']) ? intval($config['admin_admin_page_size']) : 20);
$_rights = array();
foreach ($view_data['rights'] as $val) {
    $_rights[$val['rights_id']] = $val['name'];
}
for ($i = 0; $i < count($admins); $i++) {
    $admins[$i]['rights_group_name'] = $_rights[$admins[$i]['rights_id']] ? $_rights[$admins[$i]['rights_id']] : lang('DEFAULT_RIGHTS_GROUP');
}
$view_data['admins'] = $admins;
$view_data['rights_id'] = $rights_id === false ? -1 : $rights_id;
开发者ID:WSKINGS,项目名称:chat_tickets,代码行数:31,代码来源:admin.php

示例10: percent_format

            $display_discount = percent_format($myrow2["discount_percent"] * 100) . "%";
        }
        label_cell($myrow2["stock_id"]);
        label_cell($myrow2["StockDescription"]);
        qty_cell($myrow2["quantity"], false, get_qty_dec($myrow2["stock_id"]));
        label_cell($myrow2["units"], "align=right");
        amount_cell($myrow2["unit_price"]);
        label_cell($display_discount, "nowrap align=right");
        amount_cell($value);
        end_row();
    }
    //end while there are line items to print out
    $display_sub_tot = price_format($sub_total);
    label_row(_("Sub-total"), $display_sub_tot, "colspan=6 align=right", "nowrap align=right width=15%");
} else {
    display_note(_("There are no line items on this invoice."), 1, 2);
}
$display_freight = price_format($myrow["ov_freight"]);
/*Print out the invoice text entered */
label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right");
$tax_items = get_trans_tax_details(ST_SALESINVOICE, $trans_id);
display_customer_trans_tax_details($tax_items, 6);
$display_total = price_format($myrow["ov_freight"] + $myrow["ov_gst"] + $myrow["ov_amount"] + $myrow["ov_freight_tax"]);
label_row(_("TOTAL INVOICE"), $display_total, "colspan=6 align=right", "nowrap align=right");
end_table(1);
$voided = is_voided_display(ST_SALESINVOICE, $trans_id, _("This invoice has been voided."));
if (!$voided) {
    display_allocations_to(PT_CUSTOMER, $myrow['debtor_no'], ST_SALESINVOICE, $trans_id, $myrow['Total']);
}
end_page(true, false, false, ST_SALESINVOICE, $trans_id);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:30,代码来源:view_invoice.php

示例11: page

page(_($help_context = "View Customer Payment"), true, false, "", $js);
if (isset($_GET["trans_no"])) {
    $trans_id = $_GET["trans_no"];
}
$receipt = get_customer_trans($trans_id, ST_CUSTPAYMENT);
display_heading(sprintf(_("Customer Payment #%d"), $trans_id));
echo "<br>";
start_table(TABLESTYLE, "width=80%");
start_row();
label_cells(_("From Customer"), $receipt['DebtorName'], "class='tableheader2'");
label_cells(_("Reference"), $receipt['reference'], "class='tableheader2'");
label_cells(_("Date of Deposit"), sql2date($receipt['tran_date']), "class='tableheader2'");
end_row();
start_row();
label_cells(_("Customer Currency"), $receipt['curr_code'], "class='tableheader2'");
label_cells(_("Amount"), price_format($receipt['Total'] - $receipt['ov_discount']), "class='tableheader2'");
label_cells(_("Discount"), price_format($receipt['ov_discount']), "class='tableheader2'");
end_row();
start_row();
label_cells(_("Into Bank Account"), $receipt['bank_account_name'] . ' [' . $receipt['bank_curr_code'] . ']', "class='tableheader2'");
label_cells(_("Bank Amount"), price_format($receipt['bank_amount']), "class='tableheader2'");
label_cells(_("Payment Type"), $bank_transfer_types[$receipt['BankTransType']], "class='tableheader2'");
end_row();
comments_display_row(ST_CUSTPAYMENT, $trans_id);
end_table(1);
$voided = is_voided_display(ST_CUSTPAYMENT, $trans_id, _("This customer payment has been voided."));
if (!$voided) {
    display_allocations_from(PT_CUSTOMER, $receipt['debtor_no'], ST_CUSTPAYMENT, $trans_id, $receipt['Total']);
}
end_page(true, false, false, ST_CUSTPAYMENT, $trans_id);
开发者ID:nativebandung,项目名称:frontaccounting,代码行数:30,代码来源:view_receipt.php

示例12: require_privs

/**
 * Require privileges from a user to the given resource.
 *
 * Terminates the script if user doesn't have required privileges.
 *
 * @param   string|null $res  The resource, or NULL
 * @param   string      $user The user. If no user name is supplied, assume the current logged in user
 * @package User
 * @example
 * require_privs('article.edit');
 */
function require_privs($res = null, $user = '')
{
    if ($res === null || !has_privs($res, $user)) {
        pagetop(gTxt('restricted_area'));
        echo graf(gTxt('restricted_area'), array('class' => 'restricted-area'));
        end_page();
        exit;
    }
}
开发者ID:hcgtv,项目名称:textpattern,代码行数:20,代码来源:txplib_misc.php

示例13: foreach

$total = 0;
$k = 0;
//row colour counter
foreach ($purchase_order->line_items as $stock_item) {
    $line_total = $stock_item->qty_received * $stock_item->price;
    alt_table_row_color($k);
    label_cell($stock_item->stock_id);
    label_cell($stock_item->item_description);
    label_cell($stock_item->req_del_date, "nowrap align=right");
    $dec = get_qty_dec($stock_item->stock_id);
    qty_cell($stock_item->qty_received, false, $dec);
    label_cell($stock_item->units);
    amount_decimal_cell($stock_item->price);
    amount_cell($line_total);
    qty_cell($stock_item->qty_inv, false, $dec);
    end_row();
    $total += $line_total;
}
$display_sub_tot = number_format2($total, user_price_dec());
label_row(_("Sub Total"), $display_sub_tot, "align=right colspan=6", "nowrap align=right", 1);
$taxes = $purchase_order->get_taxes();
$tax_total = display_edit_tax_items($taxes, 6, $purchase_order->tax_included, 1);
$display_total = price_format($total + $tax_total);
start_row();
label_cells(_("Amount Total"), $display_total, "colspan=6 align='right'", "align='right'");
label_cell('');
end_row();
end_table(1);
is_voided_display(ST_SUPPRECEIVE, $_GET['trans_no'], _("This delivery has been voided."));
end_page(true, false, false, ST_SUPPRECEIVE, $_GET['trans_no']);
开发者ID:M-Shahbaz,项目名称:FA,代码行数:30,代码来源:view_grn.php

示例14: die

<?php

END_MODULE != 'admin' && die('Access Denied');
$logitems = end_page(model('log'), array('order' => '`time` desc'), 30);
$admins = model('admin')->get_list();
$admin = array();
foreach ($admins as $_a) {
    $admin[$_a['admin_id']] = $_a['name'];
}
?>
<style>
.log_table { border-collapse:collapse;}
.log_table td { border:1px solid #999;padding:2px;}
</style>
<table border="0" class="log_table">
<?php 
foreach ($logitems as $log) {
    ?>
	<tr>
		<td>
		<?php 
    echo $admin[$log['admin_id']];
    ?>
		</td>
		<td>
		<?php 
    echo $log['url'];
    ?>
		</td>
		<td>
		<?php 
开发者ID:WSKINGS,项目名称:chat_tickets,代码行数:31,代码来源:end_show_log.php

示例15: amount_cell

        amount_cell($myrow2["unit_price"]);
        label_cell($display_discount, "align=right");
        amount_cell($value);
        end_row();
    }
    //end while there are line items to print out
} else {
    display_note(_("There are no line items on this credit note."), 1, 2);
}
$display_sub_tot = price_format($sub_total);
$credit_total = $myrow["ov_freight"] + $myrow["ov_gst"] + $myrow["ov_amount"] + $myrow["ov_freight_tax"];
$display_total = price_format($credit_total);
/*Print out the invoice text entered */
if ($sub_total != 0) {
    label_row(_("Sub Total"), $display_sub_tot, "colspan=6 align=right", "nowrap align=right width='15%'");
}
if ($myrow["ov_freight"] != 0.0) {
    $display_freight = price_format($myrow["ov_freight"]);
    label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right");
}
$tax_items = get_trans_tax_details(ST_CUSTCREDIT, $trans_id);
display_customer_trans_tax_details($tax_items, 6);
label_row("<font color=red>" . _("TOTAL CREDIT") . "</font", "<font color=red>{$display_total}</font>", "colspan=6 align=right", "nowrap align=right");
end_table(1);
$voided = is_voided_display(ST_CUSTCREDIT, $trans_id, _("This credit note has been voided."));
if (!$voided) {
    display_allocations_from(PT_CUSTOMER, $myrow['debtor_no'], ST_CUSTCREDIT, $trans_id, $credit_total);
}
/* end of check to see that there was an invoice record to print */
end_page(true, false, false, ST_CUSTCREDIT, $trans_id);
开发者ID:M-Shahbaz,项目名称:FA,代码行数:30,代码来源:view_credit.php


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