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


PHP div_start函数代码示例

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


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

示例1: edit_allocations_for_transaction

function edit_allocations_for_transaction($type, $trans_no)
{
    global $systypes_array;
    $cart = $_SESSION['alloc'];
    display_heading(sprintf(_("Allocation of %s # %d"), $systypes_array[$cart->type], $cart->trans_no));
    display_heading($cart->person_name);
    display_heading2(_("Date:") . " <b>" . $cart->date_ . "</b>");
    display_heading2(_("Total:") . " <b>" . price_format($cart->bank_amount) . ' ' . $cart->currency . "</b>");
    if ($cart->currency != $cart->person_curr) {
        $total = _("Total in clearing currency:") . " <b>" . price_format($cart->amount) . "</b>" . sprintf(" %s (%s %s/%s)", $cart->person_curr, exrate_format($cart->bank_amount / $cart->amount), $cart->currency, $cart->person_curr);
        display_heading2($total);
    }
    echo "<br>";
    start_form();
    div_start('alloc_tbl');
    if (count($cart->allocs) > 0) {
        show_allocatable(true);
        submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
        submit('Process', _("Process"), true, _('Process allocations'), 'default');
        submit_center_last('Cancel', _("Back to Allocations"), _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
    } else {
        display_note(_("There are no unsettled transactions to allocate."), 0, 1);
        submit_center('Cancel', _("Back to Allocations"), true, _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
    }
    div_end();
    end_form();
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:27,代码来源:customer_allocate.php

示例2: show_results

function show_results()
{
    global $path_to_root;
    /*Now get the transactions  */
    div_start('trans_tbl');
    start_table(TABLESTYLE);
    $netAmounts = check_value('NetAmounts');
    if ($netAmounts) {
        $net = _("Net");
    } else {
        $net = _("Gross");
    }
    $th = array(_("Type"), _("Description"), _("Tax") . "<br>" . _("Amount"), $net . "<br>" . _("Outputs") . "/" . _("Inputs"));
    table_header($th);
    $k = 0;
    $total = 0;
    $bdate = date2sql($_POST['TransFromDate']);
    $edate = date2sql($_POST['TransToDate']);
    $taxes = get_tax_cash_summary($_POST['TransFromDate'], $_POST['TransToDate']);
    while ($tx = db_fetch($taxes)) {
        $payable = $tx['payable'];
        $collectible = $tx['collectible'];
        $net = $collectible + $payable;
        $total += $net;
        alt_table_row_color($k);
        label_cell($tx['name'] . " " . $tx['rate'] . "%");
        label_cell(_("Charged on sales") . " (" . _("Output Tax") . "):");
        amount_cell($payable);
        if ($netAmounts) {
            amount_cell($tx['net_output']);
        } else {
            amount_cell($tx['gross_output']);
        }
        end_row();
        alt_table_row_color($k);
        label_cell($tx['name'] . " " . $tx['rate'] . "%");
        label_cell(_("Paid on purchases") . " (" . _("Input Tax") . "):");
        amount_cell($collectible);
        if ($netAmounts) {
            amount_cell($tx['net_input']);
        } else {
            amount_cell($tx['gross_input']);
        }
        end_row();
        alt_table_row_color($k);
        label_cell("<b>" . $tx['name'] . " " . $tx['rate'] . "%</b>");
        label_cell("<b>" . _("Net payable or collectible") . ":</b>");
        amount_cell($net, true);
        label_cell("");
        end_row();
    }
    alt_table_row_color($k);
    label_cell("");
    label_cell("<b>" . _("Total payable or refund") . ":</b>");
    amount_cell($total, true);
    label_cell("");
    end_row();
    end_table(2);
    div_end();
}
开发者ID:blestab,项目名称:frontaccounting,代码行数:60,代码来源:tax_inquiry_cash.php

示例3: show

 public function show()
 {
     $list_div = array('id' => $this->name . '_div', 'class' => 'list');
     $list = array('id' => $this->name . '_list', 'class' => 'list');
     echo div_start($list_div);
     echo table($this->items, $list);
     echo div_end();
 }
开发者ID:jacovc86,项目名称:MaaseHoshev,代码行数:8,代码来源:ItemList.php

示例4: display_po_receive_items

function display_po_receive_items()
{
    div_start('grn_items');
    start_table(TABLESTYLE, "colspan=7 width='90%'");
    $th = array(_("Item Code"), _("Description"), _("Ordered"), _("Units"), _("Received"), _("Outstanding"), _("This Delivery"), _("Price"), _("Total"));
    table_header($th);
    /*show the line items on the order with the quantity being received for modification */
    $total = 0;
    $k = 0;
    //row colour counter
    if (count($_SESSION['PO']->line_items) > 0) {
        foreach ($_SESSION['PO']->line_items as $ln_itm) {
            alt_table_row_color($k);
            $qty_outstanding = $ln_itm->quantity - $ln_itm->qty_received;
            if (!isset($_POST['Update']) && !isset($_POST['ProcessGoodsReceived']) && $ln_itm->receive_qty == 0) {
                //If no quantites yet input default the balance to be received
                $ln_itm->receive_qty = $qty_outstanding;
            }
            $line_total = $ln_itm->receive_qty * $ln_itm->price;
            $total += $line_total;
            label_cell($ln_itm->stock_id);
            if ($qty_outstanding > 0) {
                text_cells(null, $ln_itm->stock_id . "Desc", $ln_itm->item_description, 30, 50);
            } else {
                label_cell($ln_itm->item_description);
            }
            $dec = get_qty_dec($ln_itm->stock_id);
            qty_cell($ln_itm->quantity, false, $dec);
            label_cell($ln_itm->units);
            qty_cell($ln_itm->qty_received, false, $dec);
            qty_cell($qty_outstanding, false, $dec);
            if ($qty_outstanding > 0) {
                qty_cells(null, $ln_itm->line_no, number_format2($ln_itm->receive_qty, $dec), "align=right", null, $dec);
            } else {
                label_cell(number_format2($ln_itm->receive_qty, $dec), "align=right");
            }
            amount_decimal_cell($ln_itm->price);
            amount_cell($line_total);
            end_row();
        }
    }
    $colspan = count($th) - 1;
    $display_sub_total = price_format($total);
    label_row(_("Sub-total"), $display_sub_total, "colspan={$colspan} align=right", "align=right");
    $taxes = $_SESSION['PO']->get_taxes(input_num('freight_cost'), true);
    $tax_total = display_edit_tax_items($taxes, $colspan, $_SESSION['PO']->tax_included);
    $display_total = price_format($total + input_num('freight_cost') + $tax_total);
    start_row();
    label_cells(_("Amount Total"), $display_total, "colspan={$colspan} align='right'", "align='right'");
    end_row();
    end_table();
    div_end();
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:53,代码来源:po_receive_items.php

示例5: display_extensions

function display_extensions()
{
    global $installed_extensions;
    div_start('ext_tbl');
    start_table(TABLESTYLE);
    $th = array(_("Extension"), _("Modules provided"), _("Options provided"), _("Installed"), _("Available"), "", "");
    table_header($th);
    $k = 0;
    $mods = get_extensions_list('extension');
    foreach ($mods as $pkg_name => $ext) {
        $available = @$ext['available'];
        $installed = @$ext['version'];
        $id = @$ext['local_id'];
        $entries = fmt_titles(@$ext['entries']);
        $tabs = fmt_titles(@$ext['tabs']);
        alt_table_row_color($k);
        label_cell($available ? get_package_view_str($pkg_name, $ext['name']) : $ext['name']);
        label_cell($tabs);
        label_cell($entries);
        label_cell($id === null ? _("None") : ($available && $installed ? $installed : _("Unknown")));
        label_cell($available ? $available : _("Unknown"));
        if (!$available && $ext['type'] == 'extension') {
            // third-party plugin
            if (!$installed) {
                button_cell('Local' . $ext['package'], _("Install"), _('Install third-party extension.'), ICON_DOWN);
            } else {
                label_cell('');
            }
        } elseif (check_pkg_upgrade($installed, $available)) {
            // outdated or not installed extension in repo
            button_cell('Update' . $pkg_name, $installed ? _("Update") : _("Install"), _('Upload and install latest extension package'), ICON_DOWN);
        } else {
            label_cell('');
        }
        if ($id !== null) {
            delete_button_cell('Delete' . $id, _('Delete'));
            submit_js_confirm('Delete' . $id, sprintf(_("You are about to remove package \\'%s\\'.\nDo you want to continue ?"), $ext['name']));
        } else {
            label_cell('');
        }
        end_row();
    }
    end_table(1);
    submit_center_first('Refresh', _("Update"), '', null);
    div_end();
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:46,代码来源:inst_module.php

示例6: display_kit_items

function display_kit_items($selected_kit)
{
    $result = get_item_kit($selected_kit);
    div_start('bom');
    start_table(TABLESTYLE, "width='60%'");
    $th = array(_("Stock Item"), _("Description"), _("Quantity"), _("Units"), '', '');
    table_header($th);
    $k = 0;
    while ($myrow = db_fetch($result)) {
        alt_table_row_color($k);
        label_cell($myrow["stock_id"]);
        label_cell($myrow["comp_name"]);
        qty_cell($myrow["quantity"], false, $myrow["units"] == '' ? 0 : get_qty_dec($myrow["comp_name"]));
        label_cell($myrow["units"] == '' ? _('kit') : $myrow["units"]);
        edit_button_cell("Edit" . $myrow['id'], _("Edit"));
        delete_button_cell("Delete" . $myrow['id'], _("Delete"));
        end_row();
    }
    //END WHILE LIST LOOP
    end_table();
    div_end();
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:22,代码来源:sales_kits.php

示例7: edit_allocations_for_transaction

function edit_allocations_for_transaction($type, $trans_no)
{
    global $systypes_array;
    start_form();
    display_heading(_("Allocation of") . " " . $systypes_array[$_SESSION['alloc']->type] . " # " . $_SESSION['alloc']->trans_no);
    display_heading($_SESSION['alloc']->person_name);
    display_heading2(_("Date:") . " <b>" . $_SESSION['alloc']->date_ . "</b>");
    display_heading2(_("Total:") . " <b>" . price_format(-$_SESSION['alloc']->amount) . "</b>");
    echo "<br>";
    div_start('alloc_tbl');
    if (count($_SESSION['alloc']->allocs) > 0) {
        show_allocatable(true);
        submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
        submit('Process', _("Process"), true, _('Process allocations'), 'default');
        submit_center_last('Cancel', _("Back to Allocations"), _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
    } else {
        display_note(_("There are no unsettled transactions to allocate."), 0, 1);
        submit_center('Cancel', _("Back to Allocations"), true, _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
    }
    div_end();
    end_form();
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:22,代码来源:supplier_allocate.php

示例8: display_bom_items

function display_bom_items($selected_parent)
{
    $result = get_bom($selected_parent);
    div_start('bom');
    start_table(TABLESTYLE, "width=60%");
    $th = array(_("Code"), _("Description"), _("Location"), _("Work Centre"), _("Quantity"), _("Units"), '', '');
    table_header($th);
    $k = 0;
    while ($myrow = db_fetch($result)) {
        alt_table_row_color($k);
        label_cell($myrow["component"]);
        label_cell($myrow["description"]);
        label_cell($myrow["location_name"]);
        label_cell($myrow["WorkCentreDescription"]);
        qty_cell($myrow["quantity"], false, get_qty_dec($myrow["component"]));
        label_cell($myrow["units"]);
        edit_button_cell("Edit" . $myrow['id'], _("Edit"));
        delete_button_cell("Delete" . $myrow['id'], _("Delete"));
        end_row();
    }
    //END WHILE LIST LOOP
    end_table();
    div_end();
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:24,代码来源:bom_edit.php

示例9: start_table

start_table(TABLESTYLE_NOBORDER);
start_row();
locations_list_cells(_("From Location:"), 'StockLocation', null);
date_cells(_("From:"), 'AfterDate', '', null, -30);
date_cells(_("To:"), 'BeforeDate');
submit_cells('ShowMoves', _("Show Movements"), '', _('Refresh Inquiry'), 'default');
end_row();
end_table();
if (!@$_GET['popup']) {
    end_form();
}
set_global_stock_item($_POST['stock_id']);
$before_date = date2sql($_POST['BeforeDate']);
$after_date = date2sql($_POST['AfterDate']);
$result = get_stock_movements($_POST['stock_id'], $_POST['StockLocation'], $_POST['BeforeDate'], $_POST['AfterDate']);
div_start('doc_tbl');
start_table(TABLESTYLE);
$th = array(_("Type"), _("#"), _("Reference"), _("Date"), _("Detail"), _("Quantity In"), _("Quantity Out"), _("Quantity On Hand"));
table_header($th);
$before_qty = get_stock_movements_before($_POST['stock_id'], $_POST['StockLocation'], $_POST['AfterDate']);
$after_qty = $before_qty;
/*
if (!isset($before_qty_row[0]))
{
	$after_qty = $before_qty = 0;
}
*/
start_row("class='inquirybg'");
label_cell("<b>" . _("Quantity on hand before") . " " . $_POST['AfterDate'] . "</b>", "align=center colspan=5");
label_cell("&nbsp;", "colspan=2");
$dec = get_qty_dec($_POST['stock_id']);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:stock_movements.php

示例10: get_post

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');
        subpage_title(_('System Diagnostics'));
        start_table();
        instlang_list_row(_("Select install wizard language:"), 'inst_lang', $_SESSION['inst_set']['inst_lang']);
        end_table(1);
        $_POST['Tests'] = display_system_tests(true);
        br();
        if (@$_POST['Tests']) {
            display_notification(_('All application preliminary requirements seems to be correct. Please press Continue button below.'));
            submit_center('continue', _('Continue >>'));
        } else {
            display_error(_('Application cannot be installed. Please fix problems listed below in red, and press Refresh button.'));
            submit_center('refresh', _('Refresh'));
        }
        div_end();
        break;
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php

示例11: customer_settings

function customer_settings($selected_id)
{
    global $SysPrefs, $path_to_root, $auto_create_branch;
    if (!$selected_id) {
        if (list_updated('customer_id') || !isset($_POST['CustName'])) {
            $_POST['CustName'] = $_POST['cust_ref'] = $_POST['address'] = $_POST['tax_id'] = '';
            $_POST['dimension_id'] = 0;
            $_POST['dimension2_id'] = 0;
            $_POST['sales_type'] = -1;
            $_POST['curr_code'] = get_company_currency();
            $_POST['credit_status'] = -1;
            $_POST['payment_terms'] = $_POST['notes'] = '';
            $_POST['discount'] = $_POST['pymt_discount'] = percent_format(0);
            $_POST['credit_limit'] = price_format($SysPrefs->default_credit_limit());
        }
    } else {
        $myrow = get_customer($selected_id);
        $_POST['CustName'] = $myrow["name"];
        $_POST['cust_ref'] = $myrow["debtor_ref"];
        $_POST['address'] = $myrow["address"];
        $_POST['tax_id'] = $myrow["tax_id"];
        $_POST['dimension_id'] = $myrow["dimension_id"];
        $_POST['dimension2_id'] = $myrow["dimension2_id"];
        $_POST['sales_type'] = $myrow["sales_type"];
        $_POST['curr_code'] = $myrow["curr_code"];
        $_POST['credit_status'] = $myrow["credit_status"];
        $_POST['payment_terms'] = $myrow["payment_terms"];
        $_POST['discount'] = percent_format($myrow["discount"] * 100);
        $_POST['pymt_discount'] = percent_format($myrow["pymt_discount"] * 100);
        $_POST['credit_limit'] = price_format($myrow["credit_limit"]);
        $_POST['notes'] = $myrow["notes"];
        $_POST['inactive'] = $myrow["inactive"];
    }
    start_outer_table(TABLESTYLE2);
    table_section(1);
    table_section_title(_("Name and Address"));
    text_row(_("Customer Name:"), 'CustName', $_POST['CustName'], 40, 80);
    text_row(_("Customer Short Name:"), 'cust_ref', null, 30, 30);
    textarea_row(_("Address:"), 'address', $_POST['address'], 35, 5);
    text_row(_("GSTNo:"), 'tax_id', null, 40, 40);
    if (!$selected_id || is_new_customer($selected_id)) {
        currencies_list_row(_("Customer's Currency:"), 'curr_code', $_POST['curr_code']);
    } else {
        label_row(_("Customer's Currency:"), $_POST['curr_code']);
        hidden('curr_code', $_POST['curr_code']);
    }
    sales_types_list_row(_("Sales Type/Price List:"), 'sales_type', $_POST['sales_type']);
    if ($selected_id) {
        record_status_list_row(_("Customer status:"), 'inactive');
    } elseif (isset($auto_create_branch) && $auto_create_branch == 1) {
        table_section_title(_("Branch"));
        text_row(_("Phone:"), 'phone', null, 32, 30);
        text_row(_("Secondary Phone Number:"), 'phone2', null, 32, 30);
        text_row(_("Fax Number:"), 'fax', null, 32, 30);
        email_row(_("E-mail:"), 'email', null, 35, 55);
        sales_persons_list_row(_("Sales Person:"), 'salesman', null);
    }
    table_section(2);
    table_section_title(_("Sales"));
    percent_row(_("Discount Percent:"), 'discount', $_POST['discount']);
    percent_row(_("Prompt Payment Discount Percent:"), 'pymt_discount', $_POST['pymt_discount']);
    amount_row(_("Credit Limit:"), 'credit_limit', $_POST['credit_limit']);
    payment_terms_list_row(_("Payment Terms:"), 'payment_terms', $_POST['payment_terms']);
    credit_status_list_row(_("Credit Status:"), 'credit_status', $_POST['credit_status']);
    $dim = get_company_pref('use_dimension');
    if ($dim >= 1) {
        dimensions_list_row(_("Dimension") . " 1:", 'dimension_id', $_POST['dimension_id'], true, " ", false, 1);
    }
    if ($dim > 1) {
        dimensions_list_row(_("Dimension") . " 2:", 'dimension2_id', $_POST['dimension2_id'], true, " ", false, 2);
    }
    if ($dim < 1) {
        hidden('dimension_id', 0);
    }
    if ($dim < 2) {
        hidden('dimension2_id', 0);
    }
    if ($selected_id) {
        start_row();
        echo '<td class="label">' . _('Customer branches') . ':</td>';
        hyperlink_params_td($path_to_root . "/sales/manage/customer_branches.php", '<b>' . (@$_REQUEST['popup'] ? _("Select or &Add") : _("&Add or Edit ")) . '</b>', "debtor_no=" . $selected_id . (@$_REQUEST['popup'] ? '&popup=1' : ''));
        end_row();
    }
    textarea_row(_("General Notes:"), 'notes', null, 35, 5);
    if (!$selected_id && isset($auto_create_branch) && $auto_create_branch == 1) {
        table_section_title(_("Branch"));
        locations_list_row(_("Default Inventory Location:"), 'location');
        shippers_list_row(_("Default Shipping Company:"), 'ship_via');
        sales_areas_list_row(_("Sales Area:"), 'area', null);
        tax_groups_list_row(_("Tax Group:"), 'tax_group_id', null);
    }
    end_outer_table(1);
    div_start('controls');
    if (!$selected_id) {
        submit_center('submit', _("Add New Customer"), true, '', 'default');
    } else {
        submit_center_first('submit', _("Update Customer"), _('Update customer data'), @$_REQUEST['popup'] ? true : 'default');
        submit_return('select', $selected_id, _("Select this customer and return to document entry."));
        submit_center_last('delete', _("Delete Customer"), _('Delete customer data if have been never used'), true);
    }
//.........这里部分代码省略.........
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:101,代码来源:customers.php

示例12: display_quick_entries

}
if (isset($_POST['go'])) {
    $Ajax->activate('gl_items');
    display_quick_entries($_SESSION['supp_trans'], $_POST['qid'], input_num('totamount'), QE_SUPPINV);
    $_POST['totamount'] = price_format(0);
    $Ajax->activate('totamount');
    reset_tax_input();
}
start_form();
invoice_header($_SESSION['supp_trans']);
if ($_POST['supplier_id'] == '') {
    display_error(_("There is no supplier selected."));
} else {
    display_grn_items($_SESSION['supp_trans'], 1);
    display_gl_items($_SESSION['supp_trans'], 1);
    div_start('inv_tot');
    invoice_totals($_SESSION['supp_trans']);
    div_end();
}
//-----------------------------------------------------------------------------------------
if ($id != -1 || $id2 != -1) {
    $Ajax->activate('grn_items');
    $Ajax->activate('inv_tot');
}
if (get_post('AddGLCodeToTrans')) {
    $Ajax->activate('inv_tot');
}
br();
submit_center('PostInvoice', _("Enter Invoice"), true, '', 'default');
br();
end_form();
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:supplier_invoice.php

示例13: sql2date

    if (!isset($_POST["beg_balance"])) {
        // new selected account/statement
        $_POST["last_date"] = sql2date($row["last_date"]);
        $_POST["beg_balance"] = price_format($row["beg_balance"]);
        $_POST["end_balance"] = price_format($row["end_balance"]);
        if (get_post('bank_date')) {
            // if it is the last updated bank statement retrieve ending balance
            $row = get_ending_reconciled($_POST['bank_account'], $_POST['bank_date']);
            if ($row) {
                $_POST["end_balance"] = price_format($row["ending_reconcile_balance"]);
            }
        }
    }
}
echo "<hr>";
div_start('summary');
start_table(TABLESTYLE);
$th = array(_("Reconcile Date"), _("Beginning<br>Balance"), _("Ending<br>Balance"), _("Account<br>Total"), _("Reconciled<br>Amount"), _("Difference"));
table_header($th);
start_row();
date_cells("", "reconcile_date", _('Date of bank statement to reconcile'), get_post('bank_date') == '', 0, 0, 0, null, true);
amount_cells_ex("", "beg_balance", 15);
amount_cells_ex("", "end_balance", 15);
$reconciled = input_num('reconciled');
$difference = input_num("end_balance") - input_num("beg_balance") - $reconciled;
amount_cell($total);
amount_cell($reconciled, false, '', "reconciled");
amount_cell($difference, false, '', "difference");
end_row();
end_table();
div_end();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:bank_account_reconcile.php

示例14: label_cell

    label_cell($stock_types[$myrow["dflt_mb_flag"]]);
    label_cell($myrow["dflt_sales_act"], "align=center");
    label_cell($myrow["dflt_inventory_act"], "align=center");
    label_cell($myrow["dflt_cogs_act"], "align=center");
    label_cell($myrow["dflt_adjustment_act"], "align=center");
    label_cell($myrow["dflt_assembly_act"], "align=center");
    inactive_control_cell($myrow["category_id"], $myrow["inactive"], 'stock_category', 'category_id');
    edit_button_cell("Edit" . $myrow["category_id"], _("Edit"));
    delete_button_cell("Delete" . $myrow["category_id"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table();
echo '<br>';
//----------------------------------------------------------------------------------
div_start('details');
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing item category
        $myrow = get_item_category($selected_id);
        $_POST['category_id'] = $myrow["category_id"];
        $_POST['description'] = $myrow["description"];
        $_POST['tax_type_id'] = $myrow["dflt_tax_type"];
        $_POST['sales_account'] = $myrow["dflt_sales_act"];
        $_POST['cogs_account'] = $myrow["dflt_cogs_act"];
        $_POST['inventory_account'] = $myrow["dflt_inventory_act"];
        $_POST['adjustment_account'] = $myrow["dflt_adjustment_act"];
        $_POST['assembly_account'] = $myrow["dflt_assembly_act"];
        $_POST['units'] = $myrow["dflt_units"];
        $_POST['mb_flag'] = $myrow["dflt_mb_flag"];
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:item_categories.php

示例15: label_row

    label_row(_("Employee Name:"), $_POST['empl_id'] . '-' . $_POST['empl_name']);
    date_row(_("Date of Pay") . ":", 'date_of_pay');
    label_row(_("Gross Pay:"), $_POST['gross_salary']);
    hidden('gross_pay', $_POST['gross_salary']);
    text_row(_("Number of Leave days :"), 'leave_days', null, 2, 40);
    text_row(_("Monthly loan Amount:"), 'monthly_loan', null, 2, 40);
    //submit_cells('RefreshInquiry', _("Show"),'',_('Show Results'), 'default');
    end_table();
    br();
    submit_center('RefreshInquiry', _("Calculate Pay"), true, '', 'default');
    br();
    br();
}
div_end();
if (isset($selected_id) && $selected_id != '') {
    div_start('totals_tbl');
    $gross = $_POST['gross_salary'];
    //display_notification( $_POST['leave_days'].$_POST['monthly_loan']);
    $employee_leave_record = isset($_POST['leave_days']) ? $_POST['leave_days'] : 0;
    $staff_loan = isset($_POST['monthly_loan']) ? $_POST['monthly_loan'] : 0;
    if (db_has_employee_payslip($_POST['year'], $_POST['month'], $_POST['empl_id'])) {
        $existing_payslip = get_current_payslip($_POST['year'], $_POST['month'], $_POST['empl_id']);
        $basic_pay = $existing_payslip['basic'];
        $da_pay = $existing_payslip['da'];
        $hra_pay = $existing_payslip['hra'];
        $convey_allow = $existing_payslip['convey_allow'];
        $edu_other_allow = $existing_payslip['edu_other_allow'];
        $pf = $existing_payslip['pf'];
        $lop_amount = $existing_payslip['lop_amount'];
        $adv_sal = $tds = 0;
        $total_ded = $existing_payslip['total_ded'];
开发者ID:kvvaradha,项目名称:Simple-HRM-for-FrontAccounting,代码行数:31,代码来源:payslip.php


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