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


PHP display_notification_centered函数代码示例

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


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

示例1: handle_void_transaction

function handle_void_transaction()
{
    if (check_valid_entries() == true) {
        $void_entry = get_voided_entry($_POST['filterType'], $_POST['trans_no']);
        if ($void_entry != null) {
            display_error(tr("The selected transaction has already been voided."), true);
            unset($_POST['trans_no']);
            unset($_POST['memo_']);
            unset($_POST['date_']);
            set_focus('trans_no');
            return;
        }
        $ret = void_transaction($_POST['filterType'], $_POST['trans_no'], $_POST['date_'], $_POST['memo_']);
        if ($ret) {
            display_notification_centered(tr("Selected transaction has been voided."));
            unset($_POST['trans_no']);
            unset($_POST['memo_']);
            unset($_POST['date_']);
        } else {
            display_error(tr("The entered transaction does not exist or cannot be voided."));
            set_focus('trans_no');
        }
    }
}
开发者ID:ravenii,项目名称:guardocs,代码行数:24,代码来源:void_transaction.php

示例2: get_js_open_window

if ($use_popup_windows) {
    $js .= get_js_open_window(800, 500);
}
if ($use_date_picker) {
    $js .= get_js_date_picker();
}
set_focus('CodeID2');
page(tr("Bank Account Deposit Entry"), false, false, '', $js);
//-----------------------------------------------------------------------------------------------
check_db_has_bank_accounts(tr("There are no bank accounts defined in the system."));
check_db_has_bank_trans_types(tr("There are no bank payment types defined in the system."));
//-----------------------------------------------------------------------------------------------
if (isset($_GET['AddedID'])) {
    $trans_no = $_GET['AddedID'];
    $trans_type = systypes::bank_deposit();
    display_notification_centered(tr("Deposit has been entered"));
    display_note(get_gl_view_str($trans_type, $trans_no, tr("View the GL Postings for this Deposit")));
    hyperlink_no_params($_SERVER['PHP_SELF'], tr("Enter Another Deposit"));
    display_footer_exit();
}
//--------------------------------------------------------------------------------------------------
function copy_to_py()
{
    $_SESSION['deposit_items']->from_loc = $_POST['bank_account'];
    $_SESSION['deposit_items']->tran_date = $_POST['date_'];
    $_SESSION['deposit_items']->transfer_type = $_POST['type'];
    $_SESSION['deposit_items']->increase = $_POST['PayType'];
    if (!isset($_POST['person_id'])) {
        $_POST['person_id'] = "";
    }
    $_SESSION['deposit_items']->person_id = $_POST['person_id'];
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_deposit.php

示例3: get_js_open_window

$js = "";
if ($use_popup_windows) {
    $js .= get_js_open_window(900, 500);
}
if ($use_date_picker) {
    $js .= get_js_date_picker();
}
page(tr("Enter Supplier Invoice"), false, false, "", $js);
//----------------------------------------------------------------------------------------
check_db_has_suppliers(tr("There are no suppliers defined in the system."));
//---------------------------------------------------------------------------------------------------------------
if (isset($_GET['AddedID'])) {
    $invoice_no = $_GET['AddedID'];
    $trans_type = 20;
    echo "<center>";
    display_notification_centered(tr("Supplier invoice has been processed."));
    display_note(get_trans_view_str($trans_type, $invoice_no, tr("View this Invoice")));
    display_note(get_gl_view_str($trans_type, $invoice_no, tr("View the GL Journal Entries for this Invoice")), 1);
    hyperlink_params($_SERVER['PHP_SELF'], tr("Enter Another Invoice"), "New=1");
    display_footer_exit();
}
//--------------------------------------------------------------------------------------------------
if (isset($_GET['New'])) {
    if (isset($_SESSION['supp_trans'])) {
        unset($_SESSION['supp_trans']->grn_items);
        unset($_SESSION['supp_trans']->gl_codes);
        unset($_SESSION['supp_trans']);
    }
    //session_register("SuppInv");
    session_register("supp_trans");
    $_SESSION['supp_trans'] = new supp_trans();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:supplier_invoice.php

示例4: begin_transaction

//-------------------------------------------------------------------------------------
if (isset($_POST['add']) || isset($_POST['delete'])) {
    begin_transaction();
    for ($i = 0, $da = $_POST['begin']; date1_greater_date2($_POST['end'], $da); $i++) {
        if (isset($_POST['add'])) {
            add_update_gl_budget_trans($da, $_POST['account'], $_POST['dim1'], $_POST['dim2'], input_num('amount' . $i));
        } else {
            delete_gl_budget_trans($da, $_POST['account'], $_POST['dim1'], $_POST['dim2']);
        }
        $da = add_months($da, 1);
    }
    commit_transaction();
    if (isset($_POST['add'])) {
        display_notification_centered(tr("The Budget has been saved."));
    } else {
        display_notification_centered(tr("The Budget has been deleted."));
    }
    //meta_forward($_SERVER['PHP_SELF']);
}
//-------------------------------------------------------------------------------------
start_form();
if (db_has_gl_accounts()) {
    $dim = get_company_pref('use_dimension');
    start_table($table_style2);
    fiscalyears_list_row(tr("Fiscal Year:"), 'fyear', null);
    gl_all_accounts_list_row(tr("Account Code:"), 'account', null);
    if (!isset($_POST['dim1'])) {
        $_POST['dim1'] = 0;
    }
    if (!isset($_POST['dim2'])) {
        $_POST['dim2'] = 0;
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_budget.php

示例5: end_fiscalyear

    if (!is_date_in_fiscalyear($_POST['DateBanked'])) {
        $_POST['DateBanked'] = end_fiscalyear();
    }
}
if (isset($_GET['AddedID'])) {
    $payment_no = $_GET['AddedID'];
    display_notification_centered(_("The customer payment has been successfully entered."));
    submenu_print(_("&Print This Receipt"), ST_CUSTPAYMENT, $payment_no . "-" . ST_CUSTPAYMENT, 'prtopt');
    display_note(get_gl_view_str(ST_CUSTPAYMENT, $payment_no, _("&View the GL Journal Entries for this Customer Payment")));
    //	hyperlink_params($path_to_root . "/sales/allocations/customer_allocate.php", _("&Allocate this Customer Payment"), "trans_no=$payment_no&trans_type=12");
    hyperlink_no_params($path_to_root . "/sales/inquiry/customer_allocation_inquiry.php?customer_id=", _("Select Another &Customer Transaction for Payment"));
    hyperlink_no_params($path_to_root . "/sales/customer_payments.php", _("Enter Another &Customer Payment"));
    display_footer_exit();
} elseif (isset($_GET['UpdatedID'])) {
    $payment_no = $_GET['UpdatedID'];
    display_notification_centered(_("The customer payment has been successfully updated."));
    submenu_print(_("&Print This Receipt"), ST_CUSTPAYMENT, $payment_no . "-" . ST_CUSTPAYMENT, 'prtopt');
    display_note(get_gl_view_str(ST_CUSTPAYMENT, $payment_no, _("&View the GL Journal Entries for this Customer Payment")));
    //	hyperlink_params($path_to_root . "/sales/allocations/customer_allocate.php", _("&Allocate this Customer Payment"), "trans_no=$payment_no&trans_type=12");
    hyperlink_no_params($path_to_root . "/sales/inquiry/customer_inquiry.php?", _("Select Another Customer Payment for &Edition"));
    hyperlink_no_params($path_to_root . "/sales/customer_payments.php", _("Enter Another &Customer Payment"));
    display_footer_exit();
}
//----------------------------------------------------------------------------------------------
function can_process()
{
    global $Refs;
    if (!get_post('customer_id')) {
        display_error(_("There is no customer selected."));
        set_focus('customer_id');
        return false;
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:customer_payments.php

示例6: submenu_print

    submenu_print(_("&Print Delivery Note"), ST_CUSTDELIVERY, $delivery, 'prtopt');
    submenu_print(_("&Email Delivery Note"), ST_CUSTDELIVERY, $delivery, null, 1);
    submenu_print(_("P&rint as Packing Slip"), ST_CUSTDELIVERY, $delivery, 'prtopt', null, 1);
    submenu_print(_("E&mail as Packing Slip"), ST_CUSTDELIVERY, $delivery, null, 1, 1);
    set_focus('prtopt');
    display_note(get_gl_view_str(ST_CUSTDELIVERY, $delivery, _("View the GL Journal Entries for this Dispatch")), 0, 1);
    submenu_option(_("Make &Invoice Against This Delivery"), "/sales/customer_invoice.php?DeliveryNumber={$delivery}");
    if (isset($_GET['Type']) && $_GET['Type'] == 1) {
        submenu_option(_("Enter a New Template &Delivery"), "/sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes");
    } else {
        submenu_option(_("Enter a &New Delivery"), "/sales/sales_order_entry.php?NewDelivery=0");
    }
    display_footer_exit();
} elseif (isset($_GET['AddedDI'])) {
    $invoice = $_GET['AddedDI'];
    display_notification_centered(sprintf(_("Invoice # %d has been entered."), $invoice));
    submenu_view(_("&View This Invoice"), ST_SALESINVOICE, $invoice);
    submenu_print(_("&Print Sales Invoice"), ST_SALESINVOICE, $invoice . "-" . ST_SALESINVOICE, 'prtopt');
    submenu_print(_("&Email Sales Invoice"), ST_SALESINVOICE, $invoice . "-" . ST_SALESINVOICE, null, 1);
    set_focus('prtopt');
    $sql = "SELECT trans_type_from, trans_no_from FROM " . TB_PREF . "cust_allocations\n\t\t\tWHERE trans_type_to=" . ST_SALESINVOICE . " AND trans_no_to=" . db_escape($invoice);
    $result = db_query($sql, "could not retrieve customer allocation");
    $row = db_fetch($result);
    if ($row !== false) {
        submenu_print(_("Print &Receipt"), $row['trans_type_from'], $row['trans_no_from'] . "-" . $row['trans_type_from'], 'prtopt');
    }
    display_note(get_gl_view_str(ST_SALESINVOICE, $invoice, _("View the GL &Journal Entries for this Invoice")), 0, 1);
    if (isset($_GET['Type']) && $_GET['Type'] == 1) {
        submenu_option(_("Enter a &New Template Invoice"), "/sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes");
    } else {
        submenu_option(_("Enter a &New Direct Invoice"), "/sales/sales_order_entry.php?NewInvoice=0");
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:sales_order_entry.php

示例7: abs

                if ($trans->type == ST_SUPPINVOICE && $trans->type_no == $_GET['PInvoice']) {
                    $un_allocated = abs($trans->amount) - $trans->amount_allocated;
                    $_SESSION['alloc']->amount = $_SESSION['alloc']->allocs[$line]->current_allocated = $un_allocated;
                    $_POST['amount'] = $_POST['amount' . $line] = price_format($un_allocated);
                    break;
                }
            }
            unset($inv);
        } else {
            display_error(_("Invalid purchase invoice number."));
        }
    }
}
if (isset($_GET['AddedID'])) {
    $payment_id = $_GET['AddedID'];
    display_notification_centered(_("Payment has been sucessfully entered"));
    submenu_print(_("&Print This Remittance"), ST_SUPPAYMENT, $payment_id . "-" . ST_SUPPAYMENT, 'prtopt');
    submenu_print(_("&Email This Remittance"), ST_SUPPAYMENT, $payment_id . "-" . ST_SUPPAYMENT, null, 1);
    submenu_view(_("View this Payment"), ST_SUPPAYMENT, $payment_id);
    display_note(get_gl_view_str(ST_SUPPAYMENT, $payment_id, _("View the GL &Journal Entries for this Payment")), 0, 1);
    submenu_option(_("Enter another supplier &payment"), "/purchasing/supplier_payment.php?supplier_id=" . $_POST['supplier_id']);
    submenu_option(_("Enter Other &Payment"), "/gl/gl_bank.php?NewPayment=Yes");
    submenu_option(_("Enter &Customer Payment"), "/sales/customer_payments.php");
    submenu_option(_("Enter Other &Deposit"), "/gl/gl_bank.php?NewDeposit=Yes");
    submenu_option(_("Bank Account &Transfer"), "/gl/bank_transfer.php");
    display_footer_exit();
}
//----------------------------------------------------------------------------------------
function check_inputs()
{
    global $Refs;
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:supplier_payment.php

示例8: display_notification_centered

    display_notification_centered(_("Direct GRN has been entered"));
    display_note(get_trans_view_str($trans_type, $trans_no, _("&View this GRN")), 0);
    $clearing_act = get_company_pref('grn_clearing_act');
    if ($clearing_act) {
        display_note(get_gl_view_str($trans_type, $trans_no, _("View the GL Journal Entries for this Delivery")), 1);
    }
    // not yet
    //	display_note(print_document_link($trans_no, _("&Print This GRN"), true, $trans_type), 0, 1);
    hyperlink_params("{$path_to_root}/purchasing/supplier_invoice.php", _("Entry purchase &invoice for this receival"), "New=1");
    hyperlink_params("{$path_to_root}/admin/attachments.php", _("Add an Attachment"), "filterType={$trans_type}&trans_no={$trans_no}");
    hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another GRN"), "NewGRN=Yes");
    display_footer_exit();
} elseif (isset($_GET['AddedPI'])) {
    $trans_no = $_GET['AddedPI'];
    $trans_type = ST_SUPPINVOICE;
    display_notification_centered(_("Direct Purchase Invoice has been entered"));
    display_note(get_trans_view_str($trans_type, $trans_no, _("&View this Invoice")), 0);
    // not yet
    //	display_note(print_document_link($trans_no, _("&Print This Invoice"), true, $trans_type), 0, 1);
    display_note(get_gl_view_str($trans_type, $trans_no, _("View the GL Journal Entries for this Invoice")), 1);
    hyperlink_params("{$path_to_root}/purchasing/supplier_payment.php", _("Entry supplier &payment for this invoice"), "PInvoice=" . $trans_no);
    hyperlink_params("{$path_to_root}/admin/attachments.php", _("Add an Attachment"), "filterType={$trans_type}&trans_no={$trans_no}");
    hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another Direct Invoice"), "NewInvoice=Yes");
    display_footer_exit();
}
//--------------------------------------------------------------------------------------------------
function line_start_focus()
{
    global $Ajax;
    $Ajax->activate('items_table');
    set_focus('_stock_id_edit');
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:po_entry_items.php

示例9: page

<?php

$page_security = 10;
$path_to_root = "..";
include $path_to_root . "/includes/session.inc";
page(tr("Forms Setup"));
include $path_to_root . "/includes/ui.inc";
//-------------------------------------------------------------------------------------------------
if (isset($_POST['setprefs'])) {
    $systypes = get_systypes();
    begin_transaction();
    while ($type = db_fetch($systypes)) {
        save_next_reference($type["type_id"], $_POST['id' . $type["type_id"]]);
    }
    commit_transaction();
    display_notification_centered(tr("Forms settings have been updated."));
}
start_form();
start_table("class='tablestyle'");
$systypes = get_systypes();
$th = array(tr("Form"), tr("Next Reference"));
table_header($th);
while ($type = db_fetch($systypes)) {
    ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], $type["next_reference"]);
}
end_table(1);
submit_center('setprefs', tr("Update"));
end_form(2);
//-------------------------------------------------------------------------------------------------
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:30,代码来源:forms_setup.php

示例10: display_error

if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM') {
    $error = 0;
    if (empty($_POST['name'])) {
        $error = 1;
        display_error(_("Printer name cannot be empty."));
        set_focus('name');
    } elseif (empty($_POST['host'])) {
        display_notification_centered(_("You have selected printing to server at user IP."));
    } elseif (!check_num('tout', 0, 60)) {
        $error = 1;
        display_error(_("Timeout cannot be less than zero nor longer than 60 (sec)."));
        set_focus('tout');
    }
    if ($error != 1) {
        write_printer_def($selected_id, get_post('name'), get_post('descr'), get_post('queue'), get_post('host'), input_num('port', 0), input_num('tout', 0));
        display_notification_centered($selected_id == -1 ? _('New printer definition has been created') : _('Selected printer definition has been updated'));
        $Mode = 'RESET';
    }
}
if ($Mode == 'Delete') {
    // PREVENT DELETES IF DEPENDENT RECORDS IN print_profiles
    if (key_in_foreign_table($selected_id, 'print_profiles', 'printer')) {
        display_error(_("Cannot delete this printer definition, because print profile have been created using it."));
    } else {
        delete_printer($selected_id);
        display_notification(_('Selected printer definition has been deleted'));
    }
    $Mode = 'RESET';
}
if ($Mode == 'RESET') {
    $selected_id = -1;
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:printers.php

示例11: array

    if (!$error) {
        $prof = array('' => get_post('Prn'));
        // store default value/profile name
        foreach (get_reports() as $rep => $descr) {
            $val = get_post('Prn' . $rep);
            $prof[$rep] = $val;
        }
        if ($_POST['profile_id'] == '') {
            $_POST['profile_id'] = get_post('name');
        }
        update_printer_profile($_POST['profile_id'], $prof);
        if ($selected_id == '') {
            display_notification_centered(_('New printing profile has been created'));
            clear_form();
        } else {
            display_notification_centered(_('Printing profile has been updated'));
        }
    }
}
if (get_post('delete')) {
    if (!check_delete(get_post('name'))) {
        delete_printer_profile($selected_id);
        display_notification(_('Selected printing profile has been deleted'));
        clear_form();
    }
}
if (get_post('_profile_id_update')) {
    $Ajax->activate('_page_body');
}
start_form();
start_table();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:print_profiles.php

示例12: display_error

                display_error(_('The existing image could not be removed'));
                $input_error = 1;
            }
        }
        $_POST['coy_logo'] = "";
    }
    if ($_POST['add_pct'] == "") {
        $_POST['add_pct'] = -1;
    }
    if ($_POST['round_to'] <= 0) {
        $_POST['round_to'] = 1;
    }
    if ($input_error != 1) {
        update_company_prefs(get_post(array('coy_name', 'coy_no', 'gst_no', 'tax_prd', 'tax_last', 'postal_address', 'phone', 'fax', 'email', 'coy_logo', 'domicile', 'use_dimension', 'curr_default', 'f_year', 'no_item_list' => 0, 'no_customer_list' => 0, 'no_supplier_list' => 0, 'base_sales', 'time_zone' => 0, 'add_pct', 'round_to', 'login_tout', 'auto_curr_reval', 'bcc_email')));
        $_SESSION['wa_current_user']->timeout = $_POST['login_tout'];
        display_notification_centered(_("Company setup has been updated."));
    }
    set_focus('coy_name');
    $Ajax->activate('_page_body');
}
/* end of if submit */
//---------------------------------------------------------------------------------------------
if (get_company_pref('bcc_email') === null) {
    // available from 2.3.14, can be not defined on pre-2.4 installations
    set_company_pref('bcc_email', 'setup.company', 'varchar', 100, '');
    refresh_sys_prefs();
}
start_form(true);
$myrow = get_company_prefs();
$_POST['coy_name'] = $myrow["coy_name"];
$_POST['gst_no'] = $myrow["gst_no"];
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:company_preferences.php

示例13: label_cell

                        label_cell(get_dimension_string($_POST['dimension_id'], true));
                    }
                    if ($dim > 1) {
                        label_cell(get_dimension_string($_POST['dimension2_id'], true));
                    }
                    display_debit_or_credit_cells($am0);
                    label_cell($memo);
                }
            }
            if (isset($_POST['go'])) {
                commit_transaction();
                display_notification_centered(_("Revenue / Cost Accruals have been processed."));
                $_POST['date_'] = $_POST['amount'] = $_POST['periods'] = "";
            } else {
                end_table(1);
                display_notification_centered(_("Showing GL Transactions."));
            }
        }
    }
}
function frequency_list_row($label, $name, $selected = null)
{
    echo "<tr>\n";
    label_cell($label, "class='label'");
    echo "<td>\n";
    $freq = array('1' => _("Weekly"), '2' => _("Bi-weekly"), '3' => _("Monthly"), '4' => _("Quarterly"));
    echo array_selector($name, $selected, $freq);
    echo "</td>\n";
    echo "</tr\n";
}
$dim = get_company_pref('use_dimension');
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:accruals.php

示例14: get_js_date_picker

if ($use_date_picker) {
    $js .= get_js_date_picker();
}
page(_($help_context = "Revaluation of Currency Accounts"), false, false, "", $js);
if (isset($_GET['AddedID'])) {
    $trans_no = $_GET['AddedID'];
    $JE = $_GET['JE'];
    $trans_type = ST_JOURNAL;
    if ($trans_no == 0) {
        display_notification_centered(_("No Revaluation was needed"));
    } else {
        display_notification_centered(_("Transfer has been entered"));
        display_note(get_gl_view_str($trans_type, $trans_no, _("&View the GL Journal Entries for this Transfer")));
    }
    if ($JE > 0) {
        display_notification_centered(sprintf(_("%d Journal Entries for AR/AP accounts have been added"), $JE));
    }
    //display_footer_exit();
}
//---------------------------------------------------------------------------------------------
function check_data()
{
    global $Refs;
    if (!is_date($_POST['date'])) {
        display_error(_("The entered date is invalid."));
        set_focus('date');
        return false;
    }
    if (!is_date_in_fiscalyear($_POST['date'])) {
        display_error(_("The entered date is not in fiscal year."));
        set_focus('date');
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:revaluate_currencies.php

示例15: commit_transaction

            }
            @fclose($fp);
            // Commit import to database
            if (!$errCnt) {
                commit_transaction();
            }
            if ($type == ST_JOURNAL) {
                $typeString = "journal entries";
            } elseif ($type == ST_BANKDEPOSIT) {
                $typeString = "deposits";
            } elseif ($type == ST_BANKPAYMENT) {
                $typeString = "payments";
            }
            if (!$errCnt) {
                if ($entryCount > 0) {
                    display_notification_centered("{$entryCount} {$typeString} have been imported.");
                } else {
                    display_error("Import file contained no {$typeString}.");
                }
            }
        }
    } else {
        display_error("No import file selected");
    }
}
start_form(true);
start_table(TABLESTYLE2);
if (!isset($_POST['type'])) {
    $_POST['type'] = ST_JOURNAL;
}
if (!isset($_POST['sep'])) {
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:import_multijournalentries.php


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