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


PHP inactive_control_cell函数代码示例

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


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

示例1: _

    $th[2] = _("Balance Sheet");
}
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["cid"]);
    label_cell($myrow['class_name']);
    if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1) {
        $myrow['ctype'] = $myrow["ctype"] >= CL_ASSETS && $myrow["ctype"] < CL_INCOME ? 1 : 0;
        label_cell($myrow['ctype'] == 1 ? _("Yes") : _("No"));
    } else {
        label_cell($class_types[$myrow["ctype"]]);
    }
    inactive_control_cell($myrow["cid"], $myrow["inactive"], 'chart_class', 'cid');
    edit_button_cell("Edit" . $myrow["cid"], _("Edit"));
    delete_button_cell("Delete" . $myrow["cid"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != "") {
    if ($Mode == 'Edit') {
        //editing an existing status code
        $myrow = get_account_class($selected_id);
        $_POST['id'] = $myrow["cid"];
        $_POST['name'] = $myrow["class_name"];
        if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1) {
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_account_classes.php

示例2: display_currencies

function display_currencies()
{
    $company_currency = get_company_currency();
    $result = get_currencies(check_value('show_inactive'));
    start_table(TABLESTYLE);
    $th = array(_("Abbreviation"), _("Symbol"), _("Currency Name"), _("Hundredths name"), _("Country"), _("Auto update"), "", "");
    inactive_control_column($th);
    table_header($th);
    $k = 0;
    //row colour counter
    while ($myrow = db_fetch($result)) {
        if ($myrow[1] == $company_currency) {
            start_row("class='currencybg'");
        } else {
            alt_table_row_color($k);
        }
        label_cell($myrow["curr_abrev"]);
        label_cell($myrow["curr_symbol"]);
        label_cell($myrow["currency"]);
        label_cell($myrow["hundreds_name"]);
        label_cell($myrow["country"]);
        label_cell($myrow[1] == $company_currency ? '-' : ($myrow["auto_update"] ? _('Yes') : _('No')), "align='center'");
        inactive_control_cell($myrow["curr_abrev"], $myrow["inactive"], 'currencies', 'curr_abrev');
        edit_button_cell("Edit" . $myrow["curr_abrev"], _("Edit"));
        if ($myrow["curr_abrev"] != $company_currency) {
            delete_button_cell("Delete" . $myrow["curr_abrev"], _("Delete"));
        } else {
            label_cell('');
        }
        end_row();
    }
    //END WHILE LIST LOOP
    inactive_control_row($th);
    end_table();
    display_note(_("The marked currency is the home currency which cannot be deleted."), 0, 0, "class='currentfg'");
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:36,代码来源:currencies.php

示例3: inactive_control_column

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"]);
    label_cell($myrow["dflt_units"], "align=center");
    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"];
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:item_categories.php

示例4: unset

    unset($_POST);
    $_POST['show_inactive'] = $sav;
}
//-----------------------------------------------------------------------------------
$result = get_all_asset_types(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=30%");
$th = array(_("Asset Type Name"), _("Depreciation Rate"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["asset_type_name"]);
    label_cell($myrow["depreciation_rate"]);
    inactive_control_cell($myrow["asset_type_id"], $myrow["inactive"], 'asset_types', 'asset_type_id');
    edit_button_cell("Edit" . $myrow['asset_type_id'], _("Edit"));
    delete_button_cell("Delete" . $myrow['asset_type_id'], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing status code
        $myrow = get_asset_type($selected_id);
        $_POST['name'] = $myrow["asset_type_name"];
        $_POST['rate'] = $myrow["depreciation_rate"];
        $_POST['asset_account'] = $myrow["asset_account"];
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:asset_types.php

示例5: start_form

start_form();
start_table(TABLESTYLE, "width=40%");
$th = array(_("Description"), _("Dissallow Invoices"), '', '');
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    if ($myrow["dissallow_invoices"] == 0) {
        $disallow_text = _("Invoice OK");
    } else {
        $disallow_text = "<b>" . _("NO INVOICING") . "</b>";
    }
    label_cell($myrow["reason_description"]);
    label_cell($disallow_text);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'credit_status', 'id');
    edit_button_cell("Edit" . $myrow['id'], _("Edit"));
    delete_button_cell("Delete" . $myrow['id'], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table();
echo '<br>';
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing status code
        $myrow = get_credit_status($selected_id);
        $_POST['reason_description'] = $myrow["reason_description"];
        $_POST['DisallowInvoices'] = $myrow["dissallow_invoices"];
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:credit_status.php

示例6: get_crm_categories

}
//-------------------------------------------------------------------------------------------------
$result = get_crm_categories(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=70%");
$th = array(_("Category Type"), _("Category Subtype"), _("Short Name"), _("Description"), "", "&nbsp;");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["type"]);
    label_cell($myrow["action"]);
    label_cell($myrow["name"]);
    label_cell($myrow["description"]);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'crm_categories', 'id');
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    if ($myrow["system"]) {
        label_cell('');
    } else {
        delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    }
    end_row();
}
inactive_control_row($th);
end_table(1);
//-------------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing area
开发者ID:nativebandung,项目名称:frontaccounting,代码行数:31,代码来源:crm_categories.php

示例7: get_post

    $sav = get_post('show_inactive');
    unset($_POST);
    $_POST['show_inactive'] = $sav;
}
//-------------------------------------------------------------------------------------------------
$result = get_sales_areas(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=30%");
$th = array(_("Area Name"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["description"]);
    inactive_control_cell($myrow["area_code"], $myrow["inactive"], 'areas', 'area_code');
    edit_button_cell("Edit" . $myrow["area_code"], _("Edit"));
    delete_button_cell("Delete" . $myrow["area_code"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table();
echo '<br>';
//-------------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing area
        $myrow = get_sales_area($selected_id);
        $_POST['description'] = $myrow["description"];
    }
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:sales_areas.php

示例8: table_header

table_header($th);
$k = 0;
//row colour counter
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    $last_visit_date = sql2date($myrow["last_visit_date"]);
    /*The security_headings array is defined in config.php */
    $not_me = strcasecmp($myrow["user_id"], $_SESSION["wa_current_user"]->username);
    label_cell($myrow["user_id"]);
    label_cell($myrow["real_name"]);
    label_cell($myrow["phone"]);
    email_cell($myrow["email"]);
    label_cell($last_visit_date, "nowrap");
    label_cell($myrow["role"]);
    if ($not_me) {
        inactive_control_cell($myrow["id"], $myrow["inactive"], 'users', 'id');
    } elseif (check_value('show_inactive')) {
        label_cell('');
    }
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    if ($not_me) {
        delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    } else {
        label_cell('');
    }
    end_row();
}
//END WHILE LIST LOOP
inactive_control_row($th);
end_table(1);
//-------------------------------------------------------------------------------------------------
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:users.php

示例9: get_payment_terms_all

$result = get_payment_terms_all(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE);
$th = array(_("Description"), _("Type"), _("Due After/Days"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
//row colour counter
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') {
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:payment_terms.php

示例10: start_table

start_table(TABLESTYLE, "width=60%");
$th = array(_('ID'), _('Booklet Type'), _('Begin'), _('End'), _('Year'), _('Status'), '', '');
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    $formatted = substr($myrow['year'], 2) . "-";
    alt_table_row_color($k);
    label_cell($myrow['id']);
    //label_cell($myrow['no']);
    label_cell($myrow['type']);
    label_cell($formatted . str_pad($myrow['begin'], 4, 0, STR_PAD_LEFT));
    label_cell($formatted . str_pad($myrow['end'], 4, 0, STR_PAD_LEFT));
    label_cell($myrow['year']);
    label_cell($myrow['status1'] . "/" . $myrow['status']);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'booklet', 'id');
    edit_button_cell("Edit" . $myrow['id'], _("Edit"));
    delete_button_cell("Delete" . $myrow['id'], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table();
br();
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        $myrow = get_selected_booklet($selected_id);
        //$_POST['no']  = $myrow['no'];
        $_POST['type'] = $myrow['type'];
        $_POST['begin'] = $myrow['begin'];
        $_POST['end'] = $myrow['end'];
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:booklet.php

示例11: get_item_subject

    if ($sav) {
        $_POST['show_inactive'] = 1;
    }
}
$result = get_item_subject(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=30%");
$th = array(_("No"), _("Description"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["id"]);
    label_cell($myrow["description"]);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'subject', 'id');
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table();
echo '<br>';
//-------------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing area
        $myrow = get_selected_item_subject($selected_id);
        $_POST['description'] = $myrow["description"];
    }
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:subjects.php

示例12: start_form

start_form();
start_table(TABLESTYLE, "width='60%'");
$th = array(_("Name"), _("Phone"), _("Fax"), _("Email"), _("Provision"), _("Break Pt."), _("Provision") . " 2", "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["salesman_name"]);
    label_cell($myrow["salesman_phone"]);
    label_cell($myrow["salesman_fax"]);
    email_cell($myrow["salesman_email"]);
    label_cell(percent_format($myrow["provision"]) . " %", "nowrap align=right");
    amount_cell($myrow["break_pt"]);
    label_cell(percent_format($myrow["provision2"]) . " %", "nowrap align=right");
    inactive_control_cell($myrow["salesman_code"], $myrow["inactive"], 'salesman', 'salesman_code');
    edit_button_cell("Edit" . $myrow["salesman_code"], _("Edit"));
    delete_button_cell("Delete" . $myrow["salesman_code"], _("Delete"));
    end_row();
}
//END WHILE LIST LOOP
inactive_control_row($th);
end_table();
echo '<br>';
//------------------------------------------------------------------------------------------------
$_POST['salesman_email'] = "";
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing Sales-person
        $myrow = get_salesman($selected_id);
        $_POST['salesman_name'] = $myrow["salesman_name"];
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:sales_people.php

示例13: get_post

    $sav = get_post('show_inactive');
    unset($_POST);
    $_POST['show_inactive'] = $sav;
}
//-----------------------------------------------------------------------------------
$result = get_all_movement_type(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width='30%'");
$th = array(_("Description"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["name"]);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'movement_types', 'id');
    edit_button_cell("Edit" . $myrow['id'], _("Edit"));
    delete_button_cell("Delete" . $myrow['id'], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing status code
        $myrow = get_movement_type($selected_id);
        $_POST['name'] = $myrow["name"];
    }
    hidden('selected_id', $selected_id);
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:movement_types.php

示例14: unset

    unset($_POST);
    $_POST['show_inactive'] = $sav;
}
//-----------------------------------------------------------------------------------
$result = get_all_work_centres(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=50%");
$th = array(_("Name"), _("description"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
    alt_table_row_color($k);
    label_cell($myrow["name"]);
    label_cell($myrow["description"]);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'workcentres', 'id');
    edit_button_cell("Edit" . $myrow['id'], _("Edit"));
    delete_button_cell("Delete" . $myrow['id'], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        //editing an existing status code
        $myrow = get_work_centre($selected_id);
        $_POST['name'] = $myrow["name"];
        $_POST['description'] = $myrow["description"];
    }
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:work_centres.php

示例15: start_form

start_form();
start_table(TABLESTYLE, "width=30%");
$th = array(_("Name"), _("Tax exempt"), '', '');
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result2)) {
    alt_table_row_color($k);
    if ($myrow["exempt"] == 0) {
        $disallow_text = _("No");
    } else {
        $disallow_text = _("Yes");
    }
    label_cell($myrow["name"]);
    label_cell($disallow_text);
    inactive_control_cell($myrow["id"], $myrow["inactive"], 'item_tax_types', 'id');
    edit_button_cell("Edit" . $myrow["id"], _("Edit"));
    delete_button_cell("Delete" . $myrow["id"], _("Delete"));
    end_row();
}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        $myrow = get_item_tax_type($selected_id);
        unset($_POST);
        // clear exemption checkboxes
        $_POST['name'] = $myrow["name"];
        $_POST['exempt'] = $myrow["exempt"];
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:item_tax_types.php


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