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


PHP list_updated函数代码示例

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


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

示例1: new_doc_date

        new_doc_date($_SESSION['Items']->document_date);
    }
    $invoice_no = $_SESSION['Items']->write();
    if ($invoice_no == -1) {
        display_error(_("The entered reference is already in use."));
        set_focus('ref');
    } else {
        processing_end();
        if ($newinvoice) {
            meta_forward($_SERVER['PHP_SELF'], "AddedID={$invoice_no}");
        } else {
            meta_forward($_SERVER['PHP_SELF'], "UpdatedID={$invoice_no}");
        }
    }
}
if (list_updated('payment')) {
    $order =& $_SESSION['Items'];
    $order->payment = get_post('payment');
    $order->payment_terms = get_payment_terms($order->payment);
    $order->due_date = get_invoice_duedate($order->payment, $order->document_date);
    if ($order->payment_terms['cash_sale']) {
        $_POST['Location'] = $order->Location = $order->pos['pos_location'];
        $order->location_name = $order->pos['location_name'];
    }
}
// find delivery spans for batch invoice display
$dspans = array();
$lastdn = '';
$spanlen = 1;
for ($line_no = 0; $line_no < count($_SESSION['Items']->line_items); $line_no++) {
    $line = $_SESSION['Items']->line_items[$line_no];
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:customer_invoice.php

示例2: get_js_date_picker

include_once $path_to_root . "/modules/HumanResourceManagement/includes/employee_db.inc";
$js = get_js_date_picker();
page(_($help_context = "PaySlip"), false, false, "", $js);
if (isset($_GET['selected_id'])) {
    $_POST['selected_id'] = $_GET['selected_id'];
}
if (isset($_GET['month'])) {
    $_POST['month'] = $_GET['month'];
}
if (isset($_GET['year'])) {
    $_POST['year'] = $_GET['year'];
}
$month = get_post('month', '');
$year = get_post('year', '');
$selected_id = get_post('selected_id');
if (list_updated('selected_id')) {
    $_POST['empl_id'] = $selected_id = get_post('selected_id');
    clear_data();
    $Ajax->activate('details');
}
function clear_data()
{
    unset($_POST['empl_id']);
    unset($_POST['empl_name']);
    unset($_POST['gross_salary']);
}
if (isset($_POST['submit'])) {
    if (strlen(trim($_POST['empl_name'])) == 0) {
        display_error(_("The employee name cannot be empty."));
        set_focus('empl_name');
        return false;
开发者ID:kvvaradha,项目名称:Simple-HRM-for-FrontAccounting,代码行数:31,代码来源:payslip.php

示例3: voucher_details

function voucher_details($id)
{
    div_start('voucher_table');
    br();
    if (!isset($_POST['imc']) || list_updated($_POST['imc'])) {
        $imc = get_post('imc');
        $row = get_salesman_trans($imc);
        $_POST['sales'] = $row['salesman_name'];
        $_POST['invoice_no'] = $row['customized_no'];
        $_POST['client'] = $row['br_name'];
        $_POST['provision'] = $row['provision'];
        $_POST['total'] = $row['InvoiceTotal'];
    }
    div_start('detail_table');
    start_outer_table(TABLESTYLE2);
    table_section(1);
    date_row(_("Date:"), 'date');
    text_row(_("IMC: "), 'sales');
    text_row(_("Invoice No."), 'invoice_no');
    text_row(_("Client: "), 'client');
    hidden('gross', $_POST['gross']);
    table_section(2);
    amount_row(_("Commission %: "), 'provision');
    label_row(_("Gross Commission: "), price_format($_POST['netsales']));
    label_row(_("W/Tax: "), price_format($_POST['tax']));
    label_row(_("Net Commission: "), price_format($_POST['total']));
    hidden('netsales', $_POST['netsales']);
    hidden('tax', $_POST['tax']);
    hidden('total', $_POST['total']);
    submit_row('Compute', _("Compute"), '', 'default');
    hidden('br_id', $_POST['br_id']);
    hidden('discount', $_POST['discount']);
    hidden('returns', $_POST['returns']);
    end_outer_table(1);
    div_start('controls');
    if (isset($_POST['Compute'])) {
        submit_center_first('Submit', _("Create Commission Voucher"), '', 'default');
    }
    div_end();
    br();
    start_table(TABLESTYLE, "width=90%");
    $th = array(_('IMC'), _('Invoice #'), _('Date'), _('Client'), '');
    table_header($th);
    $k = 0;
    $res = get_salesman_trans($_POST['imc'], $_POST['customNum']);
    while ($myrow = db_fetch($res)) {
        alt_table_row_color($k);
        if (checkvouchexists($myrow['customized_no']) == 0) {
            if ($myrow['Voided'] == '') {
                label_cell($myrow['salesman_name']);
                label_cell($myrow['customized_no']);
                label_cell($myrow['tran_date']);
                label_cell($myrow['br_name']);
                edit_button_cell("Edit" . $myrow['customized_no'], _("Select"));
            }
        }
        end_row();
    }
    end_table(1);
    div_end();
    div_end();
    br();
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:63,代码来源:commission_voucher.php

示例4: customer_branches_list_row

    $_POST['memo_'] = $_POST['amount'] = $_POST['discount'] = '';
    $Ajax->activate('alloc_tbl');
}
if (db_customer_has_branches($_POST['customer_id'])) {
    customer_branches_list_row(_("Branch:"), $_POST['customer_id'], 'BranchID', null, false, true, true);
} else {
    hidden('BranchID', ANY_NUMERIC);
}
read_customer_data();
set_global_customer($_POST['customer_id']);
if (isset($_POST['HoldAccount']) && $_POST['HoldAccount'] != 0) {
    display_warning(_("This customer account is on hold."));
}
$display_discount_percent = percent_format($_POST['pymt_discount'] * 100) . "%";
table_section(2);
if (!list_updated('bank_account')) {
    $_POST['bank_account'] = get_default_customer_bank_account($_POST['customer_id']);
}
//Chaitanya : 13-OCT-2011 - Is AJAX call really needed ???
//bank_accounts_list_row(_("Into Bank Account:"), 'bank_account', null, true);
bank_accounts_list_row(_("Into Bank Account:"), 'bank_account', null, false);
text_row(_("Reference:"), 'ref', null, 20, 40);
table_section(3);
date_row(_("Date of Deposit:"), 'DateBanked', '', true, 0, 0, 0, null, true);
$comp_currency = get_company_currency();
$cust_currency = get_customer_currency($_POST['customer_id']);
$bank_currency = get_bank_account_currency($_POST['bank_account']);
if ($cust_currency != $bank_currency) {
    exchange_rate_display($bank_currency, $cust_currency, $_POST['DateBanked'], $bank_currency == $comp_currency);
}
amount_row(_("Bank Charge:"), 'charge');
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:customer_payments.php

示例5: display_error

    // PREVENT DELETES IF DEPENDENT RECORDS IN 'stock_master'
    if (key_in_foreign_table($selected_id, 'stock_master', 'category_id')) {
        display_error(_("Cannot delete this item category because items have been created using this item category."));
    } else {
        delete_item_category($selected_id);
        display_notification(_('Selected item category has been deleted'));
    }
    $Mode = 'RESET';
}
if ($Mode == 'RESET') {
    $selected_id = -1;
    $sav = get_post('show_inactive');
    unset($_POST);
    $_POST['show_inactive'] = $sav;
}
if (list_updated('mb_flag')) {
    $Ajax->activate('details');
}
//----------------------------------------------------------------------------------
$result = get_item_categories(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=80%");
$th = array(_("Name"), _("Tax type"), _("Units"), _("Type"), _("Sales Act"), _("Inventory Account"), _("COGS Account"), _("Adjustment Account"), _("Assembly Account"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
//row colour counter
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["description"]);
    label_cell($myrow["tax_name"]);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:item_categories.php

示例6: set_focus

        set_focus('admin');
    } elseif (get_post('pass') == '') {
        display_error(_('Company admin password cannot be empty.'));
        set_focus('pass');
    } elseif (get_post('pass') != get_post('repass')) {
        display_error(_('Company admin passwords differ.'));
        unset($_POST['pass'], $_POST['repass']);
        set_focus('pass');
    } else {
        $_SESSION['inst_set'] = array_merge($_SESSION['inst_set'], array('coa' => $_POST['coa'], 'pass' => $_POST['pass'], 'name' => $_POST['name'], 'admin' => $_POST['admin']));
        if (do_install()) {
            $_POST['Page'] = 6;
        }
    }
}
if (list_updated('inst_lang')) {
    $_SESSION['inst_set']['inst_lang'] = get_post('inst_lang');
    $Ajax->setEncoding($inst_langs[get_post('inst_lang')]['encoding']);
    $Ajax->activate('welcome');
}
start_form();
switch (@$_POST['Page']) {
    default:
        //			include ('../install.html');
        //			submit_center('continue', _('Continue >>'));
        //			break;
    //			include ('../install.html');
    //			submit_center('continue', _('Continue >>'));
    //			break;
    case '1':
        div_start('welcome');
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php

示例7: hidden

hidden('old_ref', $old_ref);
start_outer_table(TABLESTYLE2, "width='60%'", 5);
table_section(1);
bank_accounts_list_row(_("Into Bank Account:"), 'bank_account', null, true);
if ($new) {
    customer_list_row(_("From Customer:"), 'customer_id', null, false, true);
} else {
    label_cells(_("From Customer:"), $_SESSION['alloc']->person_name, "class='label'");
    hidden('customer_id', $_POST['customer_id']);
}
if (db_customer_has_branches($_POST['customer_id'])) {
    customer_branches_list_row(_("Branch:"), $_POST['customer_id'], 'BranchID', null, false, true, true);
} else {
    hidden('BranchID', ANY_NUMERIC);
}
if (list_updated('customer_id') || $new && list_updated('bank_account')) {
    $_SESSION['alloc']->set_person($_POST['customer_id'], PT_CUSTOMER);
    $_SESSION['alloc']->read();
    $_POST['memo_'] = $_POST['amount'] = $_POST['discount'] = '';
    $Ajax->activate('alloc_tbl');
}
read_customer_data();
set_global_customer($_POST['customer_id']);
if (isset($_POST['HoldAccount']) && $_POST['HoldAccount'] != 0) {
    display_warning(_("This customer account is on hold."));
}
$display_discount_percent = percent_format($_POST['pymt_discount'] * 100) . "%";
table_section(2);
date_row(_("Date of Deposit:"), 'DateBanked', '', true, 0, 0, 0, null, true);
ref_row(_("Reference:"), 'ref', '', null, '', ST_CUSTPAYMENT);
table_section(3);
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:customer_payments.php

示例8: alt_table_row_color

    alt_table_row_color($k);
    $widget = $app->get_widget($myrow["widget"]);
    include_once $path_to_root . $widget->path;
    label_cell($app->apps[$myrow["app"]]);
    label_cell($widget->title);
    label_cell($myrow["description"]);
    label_cell($myrow["column_id"], "align='center'");
    label_cell($myrow["sort_no"], "align='center'");
    echo "<td align='center'><input" . ($myrow["collapsed"] == 1 ? ' checked' : '') . " type='checkbox' value='1'" . "disabled='disabled' /></td>";
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    end_row();
}
end_table(1);
//-------------------------------------------------------------------------------------------------
if (list_updated('widget')) {
    $Ajax->activate('edits');
}
div_start('edits');
start_table(TABLESTYLE2);
$_POST['param'] = '';
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing payment widget
        $myrow = get_dashboard_widget($selected_id);
        $_POST['widget_app'] = $myrow["app"];
        $_POST['column_id'] = $myrow["column_id"];
        $_POST['sort_no'] = $myrow["sort_no"];
        $_POST['description'] = $myrow["description"];
        $_POST['widget'] = $myrow["widget"];
        $_POST['sort_no'] = $myrow["sort_no"];
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:31,代码来源:dashboard_setup.php

示例9: while

while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    $type = term_type($myrow);
    $days = term_days($myrow);
    label_cell($myrow["terms"]);
    label_cell($pterm_types[$type]);
    label_cell($type == PTT_DAYS ? "{$days} " . _("days") : ($type == PTT_FOLLOWING ? $days : _("N/A")));
    inactive_control_cell($myrow["terms_indicator"], $myrow["inactive"], 'payment_terms', "terms_indicator");
    edit_button_cell("Edit" . $myrow["terms_indicator"], _("Edit"));
    delete_button_cell("Delete" . $myrow["terms_indicator"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-------------------------------------------------------------------------------------------------
if (list_updated('type')) {
    $Ajax->activate('edits');
}
div_start('edits');
start_table(TABLESTYLE2);
$day_in_following_month = $days_before_due = 0;
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing payment terms
        $myrow = get_payment_terms($selected_id);
        $_POST['terms'] = $myrow["terms"];
        $_POST['DayNumber'] = term_days($myrow);
        $_POST['type'] = term_type($myrow);
    }
    hidden('selected_id', $selected_id);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:payment_terms.php

示例10: delete_item_price

}
//------------------------------------------------------------------------------------------------------
if ($Mode == 'Delete') {
    //the link to delete a selected record was clicked
    delete_item_price($selected_id);
    display_notification(_("The selected price has been deleted."));
    $Mode = 'RESET';
}
if ($Mode == 'RESET') {
    $selected_id = -1;
}
if (list_updated('stock_id')) {
    $Ajax->activate('price_table');
    $Ajax->activate('price_details');
}
if (list_updated('stock_id') || isset($_POST['_curr_abrev_update']) || isset($_POST['_sales_type_id_update'])) {
    // after change of stock, currency or salestype selector
    // display default calculated price for new settings.
    // If we have this price already in db it is overwritten later.
    unset($_POST['price']);
    $Ajax->activate('price_details');
}
//---------------------------------------------------------------------------------------------------
$prices_list = get_prices($_POST['stock_id']);
div_start('price_table');
start_table(TABLESTYLE, "width=30%");
$th = array(_("Currency"), _("Sales Type"), _("Price"), "", "");
table_header($th);
$k = 0;
//row colour counter
$calculated = false;
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:prices.php

示例11: viewing_controls

function viewing_controls()
{
    global $selected_id;
    start_table(TABLESTYLE_NOBORDER);
    start_row();
    systypes_list_cells(_("Type:"), 'filterType', null, true);
    if (list_updated('filterType')) {
        $selected_id = -1;
    }
    end_row();
    end_table(1);
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:12,代码来源:attachments.php

示例12: display_error

//--------------------------------------------------------------------------------------------------
if (get_post('delete')) {
    if (check_role_used(get_post('role'))) {
        display_error(_("This role is currently assigned to some users and cannot be deleted"));
    } else {
        delete_security_role(get_post('role'));
        display_notification(_("Security role has been sucessfully deleted."));
        unset($_POST['role']);
    }
    $Ajax->activate('_page_body');
}
if (get_post('cancel')) {
    unset($_POST['role']);
    $Ajax->activate('_page_body');
}
if (!isset($_POST['role']) || get_post('clone') || list_updated('role')) {
    $id = get_post('role');
    $clone = get_post('clone');
    unset($_POST);
    if ($id) {
        $row = get_security_role($id);
        $_POST['description'] = $row['description'];
        $_POST['name'] = $row['role'];
        //	if ($row['inactive']
        //		$_POST['inactive'] = 1;
        $_POST['inactive'] = $row['inactive'];
        $access = $row['areas'];
        $sections = $row['sections'];
    } else {
        $_POST['description'] = $_POST['name'] = '';
        unset($_POST['inactive']);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:security_roles.php

示例13: display_error

        $errors++;
        display_error(_("The SMTP username must be entered."));
    }
    if (empty($_POST['smtp_password']) && $_POST['mail_type'] == 'SMTP') {
        $errors++;
        display_error(_("The SMTP password must be entered."));
    }
    return $errors == 0;
}
//-------------------------------------------------------------------------------------------------
if (isset($_POST['submit']) && can_process()) {
    update_company_prefs(get_post(array('mail_type', 'smtp_host', 'smtp_port', 'smtp_auth', 'smtp_secure', 'smtp_username', 'smtp_password')));
    display_notification(_("The mail sending settings has been updated."));
}
/* end of if submit */
if (list_updated('mail_type')) {
    $Ajax->activate('details');
}
$prefs = get_company_prefs();
if (!isset($_POST['mail_type'])) {
    $_POST['mail_type'] = $prefs['mail_type'];
}
$_POST['smtp_host'] = $prefs['smtp_host'];
$_POST['smtp_port'] = $prefs['smtp_port'];
$_POST['smtp_secure'] = $prefs['smtp_secure'];
$_POST['smtp_username'] = $prefs['smtp_username'];
$_POST['smtp_password'] = $prefs['smtp_password'];
//-------------------------------------------------------------------------------------------------
start_form();
start_table(TABLESTYLE_NOBORDER);
start_row();
开发者ID:serbanconstantinescu,项目名称:fa_mail_phpmailer,代码行数:31,代码来源:mail_setup.php

示例14: table_header

table_header($th);
$k = 0;
//row colour counter
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["role"]);
    label_cell(sql2date($myrow["next_date"]));
    label_cell("<pre>" . $myrow["description"] . "</pre>");
    label_cell($frequencies[$myrow["frequency"]]);
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    end_row();
}
end_table(1);
//-------------------------------------------------------------------------------------------------
if (list_updated('frequency')) {
    $Ajax->activate('edits');
}
div_start('edits');
start_table(TABLESTYLE2);
$_POST['param'] = '';
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing payment reminder
        $myrow = get_dashboard_reminder($selected_id);
        $_POST['role_id'] = $myrow["role_id"];
        $_POST['next_date'] = sql2date($myrow["next_date"]);
        $_POST['description'] = $myrow["description"];
        $_POST['frequency'] = $myrow["frequency"];
        $_POST['param'] = $myrow["param"];
        $data = json_decode(html_entity_decode($_POST['param']));
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:31,代码来源:reminder_setup.php

示例15: end_page

        end_page();
        exit;
    }
}
//----------------------------------------------------------------------------------------
start_form();
start_outer_table(TABLESTYLE2, "width='60%'", 5);
table_section(1);
supplier_list_row(_("Payment To:"), 'supplier_id', null, false, true);
if (list_updated('supplier_id') || list_updated('bank_account')) {
    $_SESSION['alloc']->read();
    $_POST['memo_'] = $_POST['amount'] = '';
    $Ajax->activate('alloc_tbl');
}
set_global_supplier($_POST['supplier_id']);
if (!list_updated('bank_account') && !get_post('__ex_rate_changed')) {
    $_POST['bank_account'] = get_default_supplier_bank_account($_POST['supplier_id']);
} else {
    $_POST['amount'] = price_format(0);
}
bank_accounts_list_row(_("From Bank Account:"), 'bank_account', null, true);
bank_balance_row($_POST['bank_account']);
table_section(2);
date_row(_("Date Paid") . ":", 'DatePaid', '', true, 0, 0, 0, null, true);
ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_SUPPAYMENT));
table_section(3);
$comp_currency = get_company_currency();
$supplier_currency = $_SESSION['alloc']->set_person($_POST['supplier_id'], PT_SUPPLIER);
if (!$supplier_currency) {
    $supplier_currency = $comp_currency;
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:supplier_payment.php


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