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


PHP text_row_ex函数代码示例

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


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

示例1: edit_param

 function edit_param()
 {
     $_POST['data_filter'] = $this->data_filter;
     $_POST['days_future'] = $this->days_future;
     text_row_ex(_("Days in future:"), 'days_future', 2);
     text_row_ex(_("Filter:"), 'data_filter', 50);
 }
开发者ID:raqib,项目名称:ac_dev,代码行数:7,代码来源:reminders.php

示例2: edit_param

 function edit_param()
 {
     global $top, $sequences, $asc_desc;
     $graph_types = array('LineChart' => _("Line Chart"), 'ColumnChart' => _("Column Chart"), 'Table' => _("Table"));
     $_POST['top'] = $this->top;
     $_POST['graph_type'] = $this->graph_type;
     $_POST['data_filter'] = $this->data_filter;
     text_row_ex(_("Number of weeks:"), 'top', 2);
     text_row_ex(_("Filter:"), 'data_filter', 50);
     select_row(_("Graph Type:"), "graph_type", null, $graph_types, null);
 }
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:11,代码来源:dailysales.php

示例3: end_row

    end_row();
}
end_table(1);
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    if ($Mode == 'Edit') {
        $result = fetchAuthors($selected_id);
        while ($myrow = db_fetch($result)) {
            $_POST['fname'] = $myrow['author_fname'];
            $_POST['mname'] = $myrow['author_mname'];
            $_POST['lname'] = $myrow['author_lname'];
            $_POST['bdate'] = sql2date($myrow["author_birthdate"]);
            $_POST['address'] = $myrow['author_address'];
            $_POST['contact_number'] = $myrow['author_contact_number'];
            $_POST['email_address'] = $myrow['author_email'];
            $_POST['selected_id'] = $myrow['id'];
        }
    }
    hidden('selected_id', $selected_id);
}
text_row_ex(_("First Name:"), 'fname', 25);
text_row_ex(_("Middle Name:"), 'mname', 25);
text_row_ex(_("Last Name:"), 'lname', 25);
date_row(_("Birth Date:"), 'bdate');
text_row_ex(_("Address:"), 'address', 25);
text_row_ex(_("Contact Number:"), 'contact_number', 25);
text_row_ex(_("Email Address:"), 'email_address', 25);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:author.php

示例4: array

$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"]);
}
text_row_ex(_("Group Name:"), 'description', 30);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:sales_groups.php

示例5: end_table

end_table();
//------------------------------------------------------------------------------------------------
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Sales Person"));
//------------------------------------------------------------------------------------------------
start_form();
if (isset($selected_id)) {
    //editing an existing Sales-person
    $sql = "SELECT *  FROM salesman WHERE salesman_code='{$selected_id}'";
    $result = db_query($sql, "could not get sales person");
    $myrow = db_fetch($result);
    $_POST['salesman_name'] = $myrow["salesman_name"];
    $_POST['salesman_phone'] = $myrow["salesman_phone"];
    $_POST['salesman_fax'] = $myrow["salesman_fax"];
    $_POST['salesman_email'] = $myrow["salesman_email"];
    $_POST['provision'] = percent_format($myrow["provision"]);
    $_POST['break_pt'] = price_format($myrow["break_pt"]);
    $_POST['provision2'] = percent_format($myrow["provision2"]);
    hidden('selected_id', $selected_id);
}
start_table("{$table_style2} width=60%");
text_row_ex(tr("Sales person name:"), 'salesman_name', 30);
text_row_ex(tr("Telephone number:"), 'salesman_phone', 20);
text_row_ex(tr("Fax number:"), 'salesman_fax', 20);
text_row_ex(tr("Email:"), 'salesman_email', 40);
percent_row(tr("Provision"), 'provision');
amount_row(tr("Break Pt.:"), 'break_pt');
percent_row(tr("Provision") . " 2", 'provision2');
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:sales_people.php

示例6: inactive_control_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_type($selected_id);
        $_POST['id'] = $myrow["id"];
        $_POST['name'] = $myrow["name"];
        $_POST['parent'] = $myrow["parent"];
        if ($_POST['parent'] == '-1') {
            $_POST['parent'] == "";
        }
        $_POST['class_id'] = $myrow["class_id"];
        hidden('selected_id', $myrow['id']);
        hidden('old_id', $myrow["id"]);
    } else {
        hidden('selected_id', $selected_id);
        hidden('old_id', $_POST["old_id"]);
    }
}
text_row_ex(_("ID:"), 'id', 10);
text_row_ex(_("Name:"), 'name', 50);
gl_account_types_list_row(_("Subgroup Of:"), 'parent', null, _("None"), true);
class_list_row(_("Class:"), 'class_id', null);
end_table(1);
submit_add_or_update_center($selected_id == "", '', 'both');
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_account_types.php

示例7: foreach

     break;
 case '5':
     if (!isset($_POST['name'])) {
         foreach ($_SESSION['inst_set'] as $name => $val) {
             $_POST[$name] = $val;
         }
         set_focus('name');
     }
     if (!isset($installed_extensions)) {
         $installed_extensions = array();
         update_extensions($installed_extensions);
     }
     subpage_title(_('Company Settings'));
     start_table(TABLESTYLE);
     text_row_ex(_("Company Name:"), 'name', 30);
     text_row_ex(_("Admin Login:"), 'admin', 30);
     password_row(_("Admin Password:"), 'pass', @$_POST['pass']);
     password_row(_("Reenter Password:"), 'repass', @$_POST['repass']);
     coa_list_row(_("Select Chart of Accounts:"), 'coa');
     languages_list_row(_("Select Default Language:"), 'lang');
     end_table(1);
     submit_center_first('back', _('<< Back'));
     submit_center_last('set_admin', _('Continue >>'));
     break;
 case '6':
     // final screen
     subpage_title(_('SerbizHub Suite ERP has been installed successsfully.'));
     display_note(_('Please do not forget to remove install wizard folder.'));
     session_unset();
     session_destroy();
     hyperlink_no_params($path_to_root . '/index.php', _('Click here to start.'));
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php

示例8: label_cell

    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"];
    }
    hidden('selected_id', $selected_id);
}
text_row_ex(_("Name:"), 'shipper_name', 40);
text_row_ex(_("Contact Person:"), 'contact', 30);
text_row_ex(_("Phone Number:"), 'phone', 32, 30);
text_row_ex(_("Secondary Phone Number:"), 'phone2', 32, 30);
text_row_ex(_("Address:"), 'address', 50);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:shipping_companies.php

示例9: edit_param

 function edit_param()
 {
     $_POST['data_filter'] = $this->data_filter;
     text_row_ex(_("Filter:"), 'data_filter', 50);
 }
开发者ID:raqib,项目名称:ac_dev,代码行数:5,代码来源:salesinvoices.php

示例10: get_tax_group

    //editing an existing status code
    if (!isset($_POST['name'])) {
        $group = get_tax_group($selected_id);
        $_POST['name'] = $group["name"];
        $_POST['tax_shipping'] = $group["tax_shipping"];
        $items = get_tax_group_items($selected_id);
        $i = 0;
        while ($tax_item = db_fetch($items)) {
            $_POST['tax_type_id' . $i] = $tax_item["tax_type_id"];
            $_POST['rate' . $i] = percent_format($tax_item["rate"]);
            $i++;
        }
    }
    hidden('selected_id', $selected_id);
}
text_row_ex(tr("Description:"), 'name', 40);
yesno_list_row(tr("Tax Shipping:"), 'tax_shipping', null, "", "", true);
end_table();
display_note(tr("Select the taxes that are included in this group."), 1);
start_table($table_style2);
$th = array(tr("Tax"), tr("Default Rate (%)"), tr("Rate (%)"));
table_header($th);
for ($i = 0; $i < 5; $i++) {
    start_row();
    if (!isset($_POST['tax_type_id' . $i])) {
        $_POST['tax_type_id' . $i] = 0;
    }
    tax_types_list_cells(null, 'tax_type_id' . $i, $_POST['tax_type_id' . $i], true, tr("None"), true);
    if ($_POST['tax_type_id' . $i] != 0 && $_POST['tax_type_id' . $i] != reserved_words::get_all_numeric()) {
        $default_rate = get_tax_type_default_rate($_POST['tax_type_id' . $i]);
        label_cell(percent_format($default_rate), "nowrap align=right");
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:tax_groups.php

示例11: hidden

    }
    hidden('selected_id', $selected_id);
}
text_row_ex(_("Description") . ':', 'description', 50, 60);
quick_entry_types_list_row(_("Entry Type") . ':', 'type', null, true);
if (get_post('type') == QE_JOURNAL) {
    yesno_list_row(_("Balance Based"), 'bal_type', null, _("Yes"), _("No"), true);
}
if (list_updated('bal_type') || list_updated('type')) {
    $Ajax->activate('qe');
}
if (get_post('type') == QE_JOURNAL && get_post('bal_type') == 1) {
    yesno_list_row(_("Period"), 'base_amount', null, _("Monthly"), _("Yearly"));
    gl_all_accounts_list_row(_("Account"), 'base_desc', null, true);
} else {
    text_row_ex(_("Base Amount Description") . ':', 'base_desc', 50, 60, '');
    amount_row(_("Default Base Amount") . ':', 'base_amount', price_format(0));
}
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
if ($selected_id != -1) {
    display_heading(_("Quick Entry Lines") . " - " . $_POST['description']);
    $result = get_quick_entry_lines($selected_id);
    start_table(TABLESTYLE2);
    $dim = get_company_pref('use_dimension');
    if ($dim == 2) {
        $th = array(_("Post"), _("Account/Tax Type"), _("Amount"), _("Dimension"), _("Dimension") . " 2", "", "");
    } elseif ($dim == 1) {
        $th = array(_("Post"), _("Account/Tax Type"), _("Amount"), _("Dimension"), "", "");
    } else {
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_quick_entries.php

示例12: edit_param

 function edit_param()
 {
     global $top;
     $item_types = array('stock' => _("Stock"), 'manuf' => _("Manufactured"));
     $graph_types = array('PieChart' => _("Pie Chart"), 'Table' => _("Table"));
     $_POST['top'] = $this->top;
     $_POST['item_type'] = $this->item_type;
     $_POST['graph_type'] = $this->graph_type;
     $_POST['data_filter'] = $this->data_filter;
     text_row_ex(_("Number of items:"), 'top', 2);
     text_row_ex(_("Filter:"), 'data_filter', 50);
     select_row(_("Graph Type"), "graph_type", null, $graph_types, null);
     select_row(_("Item Type"), "item_type", null, $item_types, null);
 }
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:14,代码来源:items.php

示例13: label_cell

    }
    label_cell($myrow["cid"]);
    label_cell($myrow['class_name']);
    label_cell($bs_text);
    edit_link_cell("selected_id=" . $myrow["cid"]);
    delete_link_cell("selected_id=" . $myrow["cid"] . "&delete=1");
    end_row();
}
end_table();
//-----------------------------------------------------------------------------------
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Account Class"));
start_form();
start_table($table_style2);
if ($selected_id != -1) {
    //editing an existing status code
    $myrow = get_account_class($selected_id);
    $_POST['id'] = $myrow["cid"];
    $_POST['name'] = $myrow["class_name"];
    $_POST['Balance'] = $myrow["balance_sheet"];
    hidden('selected_id', $selected_id);
    label_row(tr("Class ID:"), $_POST['id']);
} else {
    text_row_ex(tr("Class ID:"), 'id', 3);
}
text_row_ex(tr("Class Name:"), 'name', 50);
yesno_list_row(tr("Balance Sheet:"), 'Balance', null, "", "", false);
end_table(1);
submit_add_or_update_center($selected_id == -1);
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_account_classes.php

示例14: hyperlink_no_params

hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Location"));
start_form();
start_table($table_style2);
if (isset($selected_id)) {
    //editing an existing Location
    $myrow = get_item_location($selected_id);
    $_POST['loc_code'] = $myrow["loc_code"];
    $_POST['location_name'] = $myrow["location_name"];
    $_POST['delivery_address'] = $myrow["delivery_address"];
    $_POST['contact'] = $myrow["contact"];
    $_POST['phone'] = $myrow["phone"];
    $_POST['fax'] = $myrow["fax"];
    $_POST['email'] = $myrow["email"];
    hidden("selected_id", $selected_id);
    hidden("loc_code", $_POST['loc_code']);
    label_row(tr("Location Code:"), $_POST['loc_code']);
} else {
    //end of if $selected_id only do the else when a new record is being entered
    text_row(tr("Location Code:"), 'loc_code', null, 5, 5);
}
text_row_ex(tr("Location Name:"), 'location_name', 50, 50);
text_row_ex(tr("Contact for deliveries:"), 'contact', 30, 30);
textarea_row(tr("Address:"), 'delivery_address', null, 35, 5);
text_row_ex(tr("Telephone No:"), 'phone', 30, 30);
text_row_ex(tr("Facsimile No:"), 'fax', 30, 30);
text_row_ex(tr("Email:"), 'email', 30, 30);
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
//end if record deleted no point displaying form to add record
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:locations.php

示例15: table_section_title

possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['language'])) {
    $_POST['language'] = $_SESSION['language']->code;
}
table_section_title(_("Language"));
languages_list_row(_("Language:"), 'language', $_POST['language']);
table_section(2);
table_section_title(_("Miscellaneous"));
check_row(_("Show hints for new users:"), 'show_hints', user_hints());
check_row(_("Show GL Information:"), 'show_gl', user_show_gl_info());
check_row(_("Show Item Codes:"), 'show_codes', user_show_codes());
themes_list_row(_("Theme:"), "theme", user_theme());
/* The array $themes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
pagesizes_list_row(_("Page Size:"), "page_size", user_pagesize());
tab_list_row(_("Start-up Tab"), 'startup_tab', user_startup_tab());
/* The array $pagesizes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['print_profile'])) {
    $_POST['print_profile'] = user_print_profile();
}
print_profiles_list_row(_("Printing profile") . ':', 'print_profile', null, _('Browser printing support'));
check_row(_("Use popup window to display reports:"), 'rep_popup', user_rep_popup(), false, _('Set this option to on if your browser directly supports pdf files'));
check_row(_("Use icons instead of text links:"), 'graphic_links', user_graphic_links(), false, _('Set this option to on for using icons instead of text links'));
text_row_ex(_("Query page size:"), 'query_size', 5, 5, '', user_query_size());
check_row(_("Remember last document date:"), 'sticky_doc_date', sticky_doc_date(), false, _('If set document date is remembered on subsequent documents, otherwise default is current date'));
end_outer_table(1);
submit_center('setprefs', _("Update"), true, '', 'default');
end_form(2);
//-------------------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:display_prefs.php


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