本文整理汇总了PHP中delete_button_cell函数的典型用法代码示例。如果您正苦于以下问题:PHP delete_button_cell函数的具体用法?PHP delete_button_cell怎么用?PHP delete_button_cell使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了delete_button_cell函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
示例2: 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();
}
示例3: array
$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"];
}
hidden('selected_id', $selected_id);
示例4: start_table
start_table(TABLESTYLE);
$th = array(_("Name"), _("Contact Person"), _("Phone Number"), _("Secondary Phone"), _("Address"), "", "");
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["shipper_name"]);
label_cell($myrow["contact"]);
label_cell($myrow["phone"]);
label_cell($myrow["phone2"]);
label_cell($myrow["address"]);
inactive_control_cell($myrow["shipper_id"], $myrow["inactive"], 'shippers', 'shipper_id');
edit_button_cell("Edit" . $myrow["shipper_id"], _("Edit"));
delete_button_cell("Delete" . $myrow["shipper_id"], _("Delete"));
end_row();
}
inactive_control_row($th);
end_table(1);
//----------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing Shipper
$myrow = get_shipper($selected_id);
$_POST['shipper_name'] = $myrow["shipper_name"];
$_POST['contact'] = $myrow["contact"];
$_POST['phone'] = $myrow["phone"];
$_POST['phone2'] = $myrow["phone2"];
$_POST['address'] = $myrow["address"];
示例5: start_table
} else {
start_table(TABLESTYLE, "width=65%");
$th = array(_("Supplier"), _("Price"), _("Currency"), _("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", "");
table_header($th);
$k = $j = 0;
//row colour counter
while ($myrow = db_fetch($result)) {
alt_table_row_color($k);
label_cell($myrow["supp_name"]);
amount_decimal_cell($myrow["price"]);
label_cell($myrow["curr_code"]);
label_cell($myrow["suppliers_uom"]);
qty_cell($myrow['conversion_factor'], false, 'max');
label_cell($myrow["supplier_description"]);
edit_button_cell("Edit" . $myrow['supplier_id'], _("Edit"));
delete_button_cell("Delete" . $myrow['supplier_id'], _("Delete"));
end_row();
$j++;
if ($j == 12) {
$j = 1;
table_header($th);
}
//end of page full new headings
}
//end of while loop
end_table();
}
div_end();
}
//-----------------------------------------------------------------------------------------------
$dec2 = 6;
示例6: end_table
}
end_table(1);
//-------------------------------------------------------------------------------------------------------------------
$vresult = get_all_asset_valuations($_POST['assetid']);
start_form();
start_table(TABLESTYLE, "width=50%");
$th = array(_("Valuation Year"), _("Asset Value"), _("Value Change"), "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($vresult)) {
alt_table_row_color($k);
label_cell($myrow["valuation_year"]);
amount_cell($myrow["asset_value"]);
amount_cell($myrow["value_change"]);
delete_button_cell("Delete" . $myrow['asset_valuation_id'], _("Delete"));
end_row();
}
end_table(1);
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_asset_valuation($selected_id);
$_POST['valuationyear'] = $myrow["valuation_year"];
$_POST['assetvalue'] = number_format2($myrow["asset_value"], 2);
}
hidden('selected_id', $selected_id);
}
text_row(_("Year of Valuation :"), 'valuationyear', null, 50, 50);
amount_row(_("Asset Value :"), 'assetvalue', null, null, null, 2);
示例7: array
$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"];
$_POST['salesman_phone'] = $myrow["salesman_phone"];
$_POST['salesman_fax'] = $myrow["salesman_fax"];
示例8: get_sales_groups
}
//-------------------------------------------------------------------------------------------------
$result = get_sales_groups(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=30%");
$th = array(_("ID"), _("Group Name"), "", "");
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"], 'groups', '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 group
$myrow = get_sales_group($selected_id);
$_POST['description'] = $myrow["description"];
}
hidden("selected_id", $selected_id);
label_row(_("ID"), $myrow["id"]);
}
示例9: while
$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"];
$_POST['description'] = $myrow["description"];
$_POST['tax_type_id'] = $myrow["dflt_tax_type"];
示例10: get_all_item_units
$result = get_all_item_units(check_value('show_inactive'));
start_form();
start_table(TABLESTYLE, "width=40%");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
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["abbr"]);
label_cell($myrow["name"]);
label_cell($myrow["decimals"] == -1 ? _("User Quantity Decimals") : $myrow["decimals"]);
inactive_control_cell($myrow["abbr"], $myrow["inactive"], 'item_units', 'abbr');
edit_button_cell("Edit" . $myrow["abbr"], _("Edit"));
delete_button_cell("Delete" . $myrow["abbr"], _("Delete"));
end_row();
}
inactive_control_row($th);
end_table(1);
//----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != '') {
if ($Mode == 'Edit') {
//editing an existing item category
$myrow = get_item_unit($selected_id);
$_POST['abbr'] = $myrow["abbr"];
$_POST['description'] = $myrow["name"];
$_POST['decimals'] = $myrow["decimals"];
}
hidden('selected_id', $selected_id);
示例11: display_languages
function display_languages()
{
global $table_style, $installed_languages, $dflt_lang, $GetText;
$th = array(_("Language"), _("Name"), _("Encoding"), _("Right To Left"), _("Installed"), _("Available"), _("Default"), "", "");
$currlang = $_SESSION["language"]->code;
div_start('lang_tbl');
start_form();
//
// select/display system locales support for sites using native gettext
//
if (function_exists('gettext')) {
if (check_value('DisplayAll')) {
array_insert($th, 7, _("Supported"));
}
start_table();
check_row(_('Display also languages not supported by server locales'), 'DisplayAll', null, true);
end_table();
}
start_table(TABLESTYLE);
table_header($th);
$k = 0;
// get list of all (available and installed) langauges
$langs = get_languages_list();
foreach ($langs as $pkg_name => $lng) {
if ($lng == 'C') {
// skip default locale (aka no translation)
continue;
}
$lang = $lng['code'];
$lang_name = $lng['name'];
$charset = $lng['encoding'];
$rtl = @$lng['rtl'] == 'yes' || @$lng['rtl'] === true;
$available = @$lng['available'];
$installed = @$lng['version'];
$id = @$lng['local_id'];
if ($lang == $currlang) {
start_row("class='stockmankobg'");
} else {
alt_table_row_color($k);
}
$support = $GetText->check_support($lang, $charset);
if (function_exists('gettext') && !$support && !get_post('DisplayAll')) {
continue;
}
label_cell($lang);
label_cell($available ? get_package_view_str($lang, $lang_name) : $lang_name);
label_cell($charset);
label_cell($rtl ? _("Yes") : _("No"));
label_cell($id === null ? _("None") : ($available && $installed ? $installed : _("Unknown")));
label_cell($available ? $available : _("None"));
label_cell($id === null ? '' : radio(null, 'CurDflt', $id, $dflt_lang == $lang, true), "align='center'");
if (function_exists('gettext') && check_value('DisplayAll')) {
label_cell($support ? _("Yes") : _("No"));
}
if (!$available && $lang != 'C') {
// manually installed language
button_cell('Edit' . $id, _("Edit"), _('Edit non standard language configuration'), ICON_EDIT);
} elseif (check_pkg_upgrade($installed, $available)) {
// outdated or not installed language in repo
button_cell('Update' . $pkg_name, $installed ? _("Update") : _("Install"), _('Upload and install latest language package'), ICON_DOWN);
} else {
label_cell('');
}
if ($id !== null && $lang != $currlang && $lang != 'C') {
delete_button_cell('Delete' . $id, _('Delete'));
submit_js_confirm('Delete' . $id, sprintf(_("You are about to remove language \\'%s\\'.\nDo you want to continue ?"), $lang_name));
} else {
label_cell('');
}
end_row();
}
end_table();
display_note(_("The marked language is the current language which cannot be deleted."), 0, 0, "class='currentfg'");
br();
submit_center_first('Refresh', _("Update default"), '', null);
submit_center_last('Add', _("Add new language manually"), '', false);
end_form();
div_end();
}
示例12: get_sales_areas
$_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"];
}
hidden("selected_id", $selected_id);
}
示例13: start_table
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') {
//editing an existing payment terms
$myrow = get_payment_terms($selected_id);
示例14: start_form
start_form();
start_table(TABLESTYLE, "width=40%");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
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["abbr"]);
label_cell($myrow["name"]);
label_cell($myrow["decimals"] == -1 ? _("User Quantity Decimals") : $myrow["decimals"]);
$id = htmlentities($myrow["abbr"]);
inactive_control_cell($id, $myrow["inactive"], 'item_units', 'abbr');
edit_button_cell("Edit" . $id, _("Edit"));
delete_button_cell("Delete" . $id, _("Delete"));
end_row();
}
inactive_control_row($th);
end_table(1);
//----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != '') {
if ($Mode == 'Edit') {
//editing an existing item category
$myrow = get_item_unit($selected_id);
$_POST['abbr'] = $myrow["abbr"];
$_POST['description'] = $myrow["name"];
$_POST['decimals'] = $myrow["decimals"];
}
hidden('selected_id', $myrow["abbr"]);
示例15: get_all_requisition_details
echo "<hr/>\n";
$result = get_all_requisition_details(get_post('requisitionid'));
start_form();
start_table(TABLESTYLE, "width=50%");
$th = array(_("Item Code"), _("Item Name"), _("Purpose"), _("Qrder Quantity"), _("Estimate Price"), "", "");
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
alt_table_row_color($k);
label_cell($myrow["item_code"]);
label_cell($myrow["description"]);
label_cell($myrow["purpose"]);
label_cell($myrow["order_quantity"]);
amount_cell($myrow["estimate_price"]);
edit_button_cell("Edit" . $myrow['requisition_detail_id'], _("Edit"));
delete_button_cell("Delete" . $myrow['requisition_detail_id'], _("Delete"));
end_row();
}
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_requisition_detail($selected_id);
$_POST['item_code'] = $myrow["item_code"];
$_POST['purpose'] = $myrow["purpose"];
$_POST['order_quantity'] = $myrow["order_quantity"];
$_POST['estimate_price'] = $myrow["estimate_price"];
}
hidden('selected_id', $selected_id);