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


PHP line_start_focus函數代碼示例

本文整理匯總了PHP中line_start_focus函數的典型用法代碼示例。如果您正苦於以下問題:PHP line_start_focus函數的具體用法?PHP line_start_focus怎麽用?PHP line_start_focus使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了line_start_focus函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    $amount = ($_SESSION['pay_items']->trans_type == ST_BANKPAYMENT ? 1 : -1) * input_num('amount');
    $_SESSION['pay_items']->add_gl_item($_POST['code_id'], $_POST['dimension_id'], $_POST['dimension2_id'], $amount, $_POST['LineMemo']);
    line_start_focus();
}
開發者ID:nativebandung,項目名稱:frontaccounting,代碼行數:9,代碼來源:gl_bank.php

示例2: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    add_to_order($_SESSION['Items'], get_post('stock_id'), input_num('qty'), input_num('price'), input_num('Disc') / 100, get_post('stock_id_text'));
    unset($_POST['_stock_id_edit'], $_POST['stock_id']);
    page_modified();
    line_start_focus();
}
開發者ID:blestab,項目名稱:frontaccounting,代碼行數:10,代碼來源:sales_order_entry.php

示例3: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    if (!isset($_POST['std_cost'])) {
        $_POST['std_cost'] = 0;
    }
    add_to_order($_SESSION['transfer_items'], $_POST['stock_id'], input_num('qty'), $_POST['std_cost']);
    line_start_focus();
}
開發者ID:blestab,項目名稱:frontaccounting,代碼行數:11,代碼來源:transfers.php

示例4: handle_add_new_item

function handle_add_new_item()
{
    $allow_update = check_data();
    if ($allow_update == true) {
        if (count($_SESSION['PO']->line_items) > 0) {
            foreach ($_SESSION['PO']->line_items as $order_item) {
                /* do a loop round the items on the order to see that the item
                			is not already on this order */
                if ($order_item->stock_id == $_POST['stock_id']) {
                    display_warning(_("The selected item is already on this order."));
                }
            }
            /* end of the foreach loop to look for pre-existing items of the same code */
        }
        if ($allow_update == true) {
            $result = get_short_info($_POST['stock_id']);
            if (db_num_rows($result) == 0) {
                $allow_update = false;
            }
            if ($allow_update) {
                $myrow = db_fetch($result);
                $_SESSION['PO']->add_to_order(count($_SESSION['PO']->line_items), $_POST['stock_id'], input_num('qty'), get_post('stock_id_text'), input_num('price'), '', $_SESSION['PO']->trans_type == ST_PURCHORDER ? $_POST['req_del_date'] : '', 0, 0);
                unset_form_variables();
                $_POST['stock_id'] = "";
            } else {
                display_error(_("The selected item does not exist or it is a kit part and therefore cannot be purchased."));
            }
        }
        /* end of if not already on the order and allow input was true*/
    }
    line_start_focus();
}
開發者ID:knjy24,項目名稱:FrontAccounting,代碼行數:32,代碼來源:po_entry_items.php

示例5: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    add_to_order($_SESSION['adj_items'], $_POST['stock_id'], input_num('qty'), input_num('std_cost'));
    line_start_focus();
}
開發者ID:blestab,項目名稱:frontaccounting,代碼行數:8,代碼來源:adjustments.php

示例6: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    add_to_order($_SESSION['Items'], $_POST['stock_id'], input_num('qty'), input_num('price'), input_num('Disc') / 100);
    line_start_focus();
}
開發者ID:ravenii,項目名稱:guardocs,代碼行數:8,代碼來源:credit_note_entry.php

示例7: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    if (input_num('AmountDebit') > 0) {
        $amount = input_num('AmountDebit');
    } else {
        $amount = -input_num('AmountCredit');
    }
    $_SESSION['journal_items']->add_gl_item($_POST['code_id'], $_POST['dimension_id'], $_POST['dimension2_id'], $amount, $_POST['LineMemo']);
    line_start_focus();
}
開發者ID:M-Shahbaz,項目名稱:FA,代碼行數:13,代碼來源:gl_journal.php

示例8: handle_new_item

function handle_new_item()
{
    if (!check_item_data()) {
        return;
    }
    add_to_order($_SESSION['Items'], $_POST['stock_id'], input_num('qty'), input_num('price'), input_num('Disc') / 100, $_POST['date_from'], $_POST['notes']);
    $_POST['StockID2'] = $_POST['stock_id'] = "";
    $_POST['notes'] = "";
    line_start_focus();
}
開發者ID:ravenii,項目名稱:guardocs,代碼行數:10,代碼來源:sales_order_entry.php


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