本文整理汇总了PHP中gen_build_pull_down函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_build_pull_down函数的具体用法?PHP gen_build_pull_down怎么用?PHP gen_build_pull_down使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gen_build_pull_down函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
$objID = $m . '_' . $j;
$level_info = explode(':', $price_levels[$i]);
$price = $level_info[0] ? $level_info[0] : ($i == 0 ? $full_price : 0);
$qty = $level_info[1] ? $level_info[1] : $j;
$src = $level_info[2] ? $level_info[2] : 0;
$adj = $level_info[3] ? $level_info[3] : 0;
$adj_val = $level_info[4] ? $level_info[4] : '0';
$rnd = $level_info[5] ? $level_info[5] : 0;
$rnd_val = $level_info[6] ? $level_info[6] : '0';
echo '<tr>' . chr(10);
echo ' <td align="center">' . $j . '</td>' . chr(10);
echo ' <td>' . html_input_field('qty_' . $objID, $qty, 'size="5" style="text-align:right" onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_pull_down_menu('src_' . $objID, gen_build_pull_down($i == 0 ? $first_source_list : $price_mgr_sources), $src, 'onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_pull_down_menu('adj_' . $objID, gen_build_pull_down($price_mgr_adjustments), $adj, 'onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_input_field('adj_val_' . $objID, $currencies->format($adj_val), 'size="10" style="text-align:right" onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_pull_down_menu('rnd_' . $objID, gen_build_pull_down($price_mgr_rounding), $rnd, 'onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_input_field('rnd_val_' . $objID, $currencies->precise($rnd_val), 'size="10" style="text-align:right" onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_input_field('price_' . $objID, $currencies->precise($price), 'size="11" style="text-align:right" onchange="updatePrice(' . $m . ')"') . '</td>' . chr(10);
echo ' <td>' . html_input_field('margin_' . $objID, $currencies->precise('0'), 'readonly="readonly" size="6" style="text-align:right"') . '</td>' . chr(10);
echo '</tr>' . chr(10);
}
?>
</tbody>
</table>
</div>
<!-- end of tabsets -->
<?php
$price_sheets->MoveNext();
$m++;
}
echo '</div>' . chr(10);
示例2: html_input_field
?>
</th>
</tr>
<tr>
<td align="right"><?php
echo TEXT_ASSET_ID;
?>
</td>
<td><?php
echo html_input_field('asset_id', $asset_id, 'size="17" maxlength="16"');
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo ASSETS_ENTRY_ASSET_TYPE;
?>
</td>
<td><?php
echo html_pull_down_menu('asset_type', gen_build_pull_down($assets_types), isset($asset_type) ? $asset_type : 'vh');
?>
</td>
</tr>
<tr>
<td nowrap="nowrap" colspan="2"><?php
echo ' ';
?>
</td>
</tr>
</table>
</form>
示例3: html_pull_down_menu
<td class="main" align="right"><?php
echo INV_ENTRY_INVENTORY_TYPE;
?>
</td>
<td class="main"><?php
echo html_pull_down_menu('inventory_type', gen_build_pull_down($inventory_types), isset($inventory_type) ? $inventory_type : 'si', 'onchange="setSkuLength()"');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo INV_ENTRY_INVENTORY_COST_METHOD;
?>
</td>
<td class="main"><?php
echo html_pull_down_menu('cost_method', gen_build_pull_down($cost_methods), isset($cost_method) ? $cost_method : 'f');
?>
</td>
<script>
/* por default, marco la opcion LIFO*/
$("#cost_method option[value='l']").attr('selected', 'selected');
/* si al ingresar el sku/codigo de barras, ingresan un enter (a mano o lo hace el lector), se ejecutará un submit del formulario para que vaya al siguiente*/
$("#sku").keydown(function(event) {
if (event.keyCode == '13') {
event.preventDefault();
submitToDo('create')
}
});
</script>
</tr>
示例4: html_radio_field
</tr>
<tr>
<td><?php
echo html_radio_field('NewType', 'rpt') . TEXT_REPORT . ' ====> ' . RW_RPT_RPTGRP;
?>
</td>
<td><?php
echo html_pull_down_menu('GroupName', gen_build_pull_down($ReportGroups));
?>
</td>
</tr>
<tr>
<th colspan="2"> </th>
</tr>
<tr>
<td><?php
echo html_radio_field('NewType', 'frm') . TEXT_FORM . ' ====> ' . RW_FRM_RPTGRP;
?>
</td>
<td><?php
echo html_pull_down_menu('FormGroup', gen_build_pull_down($FormGroups));
?>
</td>
</tr>
<?php
}
// end if
?>
</table>
</form>
示例5: html_pull_down_menu
<td>
<?php
if ($Type == 'frm') {
if ($FieldListings['defaults']['buttonvalue'] == TEXT_NEW || $FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
echo html_pull_down_menu('Params', gen_build_pull_down($FormEntries), $Params['index']);
} else {
echo $FormEntries[$Params['index']] . html_hidden_field('Params', $Params['index']);
}
} else {
echo html_pull_down_menu('Params', gen_build_pull_down($TotalLevels), $Params['index']);
}
?>
</td>
<?php
if ($Type != 'frm') {
echo '<td>' . html_pull_down_menu('Align', gen_build_pull_down($FontAlign), $Params['align']) . '</td>';
}
?>
<td align = "center">
<?php
if ($FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="submitToDo(\'add\')"');
} else {
echo html_icon('actions/view-refresh.png', TEXT_CHANGE, 'medium', 'onclick="submitToDo(\'change\')"');
}
?>
</td>
</tr>
<tr><th id="fieldListHeading" colspan="20"><?php
echo RW_RPT_FLDLIST;
?>
示例6: html_pull_down_menu
<td nowrap="nowrap"><?php
echo TEXT_DEFAULT . ' ' . html_pull_down_menu('shipping_default_dry_ice_checked', $sel_checked, $_POST['shipping_default_dry_ice_checked'] ? $_POST['shipping_default_dry_ice_checked'] : SHIPPING_DEFAULT_DRY_ICE_CHECKED, '');
?>
</td>
<td><?php
echo ' ';
?>
</td>
</tr>
<tr>
<td><?php
echo CD_10_60_DESC;
?>
</td>
<td><?php
echo html_pull_down_menu('shipping_default_return_service_show', $sel_show, $_POST['shipping_default_return_service_show'] ? $_POST['shipping_default_return_service_show'] : SHIPPING_DEFAULT_RETURN_SERVICE_SHOW, '');
?>
</td>
<td nowrap="nowrap"><?php
echo TEXT_DEFAULT . ' ' . html_pull_down_menu('shipping_default_return_service_checked', $sel_checked, $_POST['shipping_default_return_service_checked'] ? $_POST['shipping_default_return_service_checked'] : SHIPPING_DEFAULT_RETURN_SERVICE_CHECKED, '');
?>
</td>
<td nowrap="nowrap"><?php
echo TEXT_VALUE . ' ' . html_pull_down_menu('shipping_default_return_service', gen_build_pull_down($shipping_defaults['return_label']), $_POST['shipping_default_return_service'] ? $_POST['shipping_default_return_service'] : SHIPPING_DEFAULT_RETURN_SERVICE, '');
?>
</td>
</tr>
</tbody>
</table>
</div>
示例7: html_pull_down_menu
?>
</td>
<td align="right" valign="top"><?php
echo TEXT_REQUESTED_BY;
?>
</td>
<td><?php
echo html_pull_down_menu('requested_by', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $cInfo->requested_by);
?>
</td>
<td align="right"><?php
echo TEXT_STATUS;
?>
</td>
<td><?php
echo html_pull_down_menu('capa_status', gen_build_pull_down($status_codes), $cInfo->capa_status);
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo TEXT_CAPA_ID . ' ' . TEXT_ASSIGNED_BY_SYSTEM;
?>
</td>
<td><?php
echo html_input_field('capa_num', $cInfo->capa_num, 'readonly="readonly"');
?>
</td>
<td align="right"><?php
echo TEXT_ENTERED_BY;
?>
示例8: html_pull_down_menu
<td><?php
echo html_pull_down_menu('search_gl_acct_from', $gl_array_list, $_SESSION['search_gl_acct_from']);
?>
</td>
<td><?php
echo html_pull_down_menu('search_gl_acct_to', $gl_array_list, $_SESSION['search_gl_acct_to']);
?>
</td>
</tr>
<tr>
<td><?php
echo TEXT_JOURNAL_RECORD_ID;
?>
</td>
<td><?php
echo html_pull_down_menu('search_main_id', gen_build_pull_down($choices), $_SESSION['search_main_id'], $params = '');
?>
</td>
<td><?php
echo html_input_field('search_main_from', $_SESSION['search_main_from'], $params = '');
?>
</td>
<td><?php
echo html_input_field('search_main_to', $_SESSION['search_main_to'], $params = '');
?>
</td>
</tr>
</tbody>
</table>
<div style="height:19px"><?php
echo $query_split->display_count(TEXT_DISPLAY_NUMBER . TEXT_RESULTS);
示例9: build_form_html
function build_form_html($action, $id = '')
{
global $db, $messageStack;
global $integer_lengths, $decimal_lengths, $check_box_choices;
$cInfo = '';
if ($action != 'new') {
$result = $db->Execute("select id, entry_type, field_name, description, id, params \n\t from " . TABLE_EXTRA_FIELDS . " where id = '" . $id . "'");
$params = unserialize($result->fields['params']);
foreach ($params as $key => $value) {
$result->fields[$key] = $value;
}
$form_array = xtra_field_prep_form($result->fields);
$cInfo = new objectInfo($form_array);
}
// build the tab list
$tab_list = gen_build_pull_down(xtra_field_get_tabs('assets'));
array_shift($tab_list);
if ($action == 'new' && sizeof($tab_list) < 1) {
$messageStack->add(EXTRA_FIELDS_ERROR_NO_TABS, 'error');
echo $messageStack->output();
}
$output = '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
$output .= ' <thead class="ui-widget-header">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <th colspan="2">' . ($action == 'new' ? TEXT_NEW_FIELD : TEXT_EDIT_FIELD) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' </thead>' . "\n";
$output .= ' <tbody class="ui-widget-content">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . INV_FIELD_NAME . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('field_name', $cInfo->field_name, 'size="33" maxlength="32"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td colspan="2">' . INV_FIELD_NAME_RULES . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description', $cInfo->description, 'size="65" maxlength="64"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . INV_CATEGORY_MEMBER . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('tab_id', $tab_list, $cInfo->tab_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="ui-widget-header">' . chr(10);
$output .= ' <th colspan="2">' . TEXT_PROPERTIES . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>';
$output .= html_radio_field('entry_type', 'text', $cInfo->entry_type == 'text' ? true : false) . ' ' . INV_LABEL_TEXT_FIELD . '<br />';
$output .= html_radio_field('entry_type', 'html', $cInfo->entry_type == 'html' ? true : false) . ' ' . INV_LABEL_HTML_TEXT_FIELD . '</td>' . chr(10);
$output .= ' <td>' . INV_LABEL_MAX_NUM_CHARS;
$output .= '<br />' . html_input_field('text_length', $cInfo->text_length ? $cInfo->text_length : DEFAULT_TEXT_LENGTH, 'size="10" maxlength="9"');
$output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . '<br />' . INV_LABEL_MAX_255;
$output .= '<br />' . html_textarea_field('text_default', 35, 6, $cInfo->text_default);
$output .= ' </td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>';
$output .= html_radio_field('entry_type', 'hyperlink', $cInfo->entry_type == 'hyperlink' ? true : false) . ' ' . INV_LABEL_HYPERLINK . '<br />';
$output .= html_radio_field('entry_type', 'image_link', $cInfo->entry_type == 'image_link' ? true : false) . ' ' . INV_LABEL_IMAGE_LINK . '<br />';
$output .= html_radio_field('entry_type', 'inventory_link', $cInfo->entry_type == 'inventory_link' ? true : false) . ' ' . INV_LABEL_INVENTORY_LINK;
$output .= ' </td>' . chr(10);
$output .= ' <td>' . INV_LABEL_FIXED_255_CHARS;
$output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE;
$output .= '<br />' . html_textarea_field('link_default', 35, 3, $cInfo->link_default);
$output .= ' </td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . html_radio_field('entry_type', 'integer', $cInfo->entry_type == 'integer' ? true : false) . ' ' . INV_LABEL_INTEGER_FIELD . '</td>' . chr(10);
$output .= ' <td>' . INV_LABEL_INTEGER_RANGE;
$output .= '<br />' . html_pull_down_menu('integer_range', gen_build_pull_down($integer_lengths), $cInfo->integer_range);
$output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('integer_default', $cInfo->integer_default, 'size="16"');
$output .= ' </td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . html_radio_field('entry_type', 'decimal', $cInfo->entry_type == 'decimal' ? true : false) . ' ' . INV_LABEL_DECIMAL_FIELD . '</td>' . chr(10);
$output .= ' <td>' . INV_LABEL_DECIMAL_RANGE;
$output .= html_pull_down_menu('decimal_range', gen_build_pull_down($decimal_lengths), $cInfo->decimal_range);
$output .= '<br />' . INV_LABEL_DEFAULT_DISPLAY_VALUE . html_input_field('decimal_display', $cInfo->decimal_display ? $cInfo->decimal_display : DEFAULT_REAL_DISPLAY_FORMAT, 'size="6" maxlength="5"');
$output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('decimal_default', $cInfo->decimal_default, 'size="16"');
$output .= ' </td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>';
$output .= html_radio_field('entry_type', 'drop_down', $cInfo->entry_type == 'drop_down' ? true : false) . ' ' . INV_LABEL_DROP_DOWN_FIELD . '<br />';
$output .= html_radio_field('entry_type', 'radio', $cInfo->entry_type == 'radio' ? true : false) . ' ' . INV_LABEL_RADIO_FIELD;
$output .= ' </td>' . chr(10);
$output .= ' <td>' . INV_LABEL_CHOICES . '<br />' . html_textarea_field('radio_default', 35, 6, $cInfo->radio_default) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . html_radio_field('entry_type', 'check_box', $cInfo->entry_type == 'check_box' ? true : false) . ' ' . INV_LABEL_CHECK_BOX_FIELD . '</td>' . chr(10);
$output .= ' <td>' . INV_LABEL_DEFAULT_TEXT_VALUE . html_pull_down_menu('check_box_range', gen_build_pull_down($check_box_choices), $cInfo->check_box_range) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . html_radio_field('entry_type', 'date', $cInfo->entry_type == 'date' ? true : false) . ' ' . TEXT_DATE . '</td>' . chr(10);
$output .= ' <td> </td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . html_radio_field('entry_type', 'time', $cInfo->entry_type == 'time' ? true : false) . ' ' . TEXT_TIME . '</td>' . chr(10);
$output .= ' <td> </td>' . chr(10);
//.........这里部分代码省略.........
示例10: html_checkbox_field
}
?>
<?php
if (SHIPPING_DEFAULT_RETURN_SERVICE_SHOW) {
echo '<tr><td class="dataTableContent">';
echo html_checkbox_field('return_service', '1', $pkg->return_service);
echo SHIPPING_TEXT_RETURN_SERVICES;
echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $pkg->return_service_value, $parameters = '', $required = false);
echo '</td></tr>';
}
?>
<?php
if (defined('SHIPPING_DEFAULT_LTL_CLASS')) {
echo '<tr><td class="dataTableContent">';
echo SHIPPING_LTL_FREIGHT_CLASS;
echo html_pull_down_menu('ltl_class', gen_build_pull_down($ltl_classes), SHIPPING_DEFAULT_LTL_CLASS, $parameters = '', $required = false);
echo '</td></tr>';
}
?>
</table></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<th colspan="2" align="center"><?php
echo SHIPPING_TEXT_METHODS;
?>
</th>
</tr>
<?php
示例11: html_radio_field
</tr>
<tr>
<td align="center">
<?php
echo html_radio_field('Line', '1', $Params['Line'] == '1' ? true : false) . TEXT_STDCOLOR . '<br />';
?>
<?php
echo html_pull_down_menu('BrdrColor', $kFontColors, $Params['BrdrColor']);
?>
</td>
<td align="center">
<?php
echo html_radio_field('Line', '2', $Params['Line'] == '2' ? true : false) . TEXT_CUSTCOLOR . '<br />';
echo TEXT_RED . html_input_field('BrdrRed', $Params['BrdrRed'], 'size="4" maxlength="3"');
echo TEXT_GREEN . html_input_field('BrdrGreen', $Params['BrdrGreen'], 'size="4" maxlength="3"');
echo TEXT_BLUE . html_input_field('BrdrBlue', $Params['BrdrBlue'], 'size="4" maxlength="3"');
?>
</td>
</tr>
<tr>
<td><?php
echo RW_RPT_LINEWIDTH;
?>
</td>
<td><?php
echo html_pull_down_menu('LineSize', gen_build_pull_down($LineSizes), $Params['LineSize']);
?>
</td>
</tr>
</table>
</form>
示例12: html_pull_down_menu
// ******************** end fields tab, start page setup tab **************************
if ($report->reporttype == 'rpt') {
?>
<div id="tab_page">
<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">
<thead class="ui-widget-header">
<tr><th colspan="8"><?php
echo PHREEFORM_PGLAYOUT;
?>
</th></tr>
</thead>
<tbody class="ui-widget-content">
<tr>
<td colspan="4" align="center">
<?php
echo TEXT_PAPER . ' ' . html_pull_down_menu('papersize', gen_build_pull_down($PaperSizes), $report->page->size, 'onchange="calculateWidth()"');
?>
</td>
<td colspan="4" align="center">
<?php
echo TEXT_ORIEN . ' ' . html_radio_field('paperorientation', 'P', $report->page->orientation == 'P' ? true : false, '', 'onchange="calculateWidth()"') . ' ' . TEXT_PORTRAIT;
?>
<?php
echo ' ' . html_radio_field('paperorientation', 'L', $report->page->orientation == 'L' ? true : false, '', 'onchange="calculateWidth()"') . ' ' . TEXT_LANDSCAPE;
?>
</td>
</tr>
<tr class="ui-widget-header"><th colspan="8"><?php
echo PHREEFORM_PGMARGIN;
?>
</th></tr>
示例13: html_input_field
cell[0] += '<?php
echo html_input_field('fld_wid[]', '', 'size="6" maxlength="4"');
?>
';
cell[0] += '<?php
echo html_input_field('fld_hgt[]', '', 'size="6" maxlength="4"');
?>
';
if (document.getElementById('serialform') && document.getElementById('serialform').checked) {
cell[0] += '<?php
echo str_replace("'", "\\'", html_pull_down_menu('fld_brk[]', $nyChoice, '1', ''));
?>
';
}
temp = '<?php
echo str_replace("'", "\\'", html_pull_down_menu('fld_type_row_TBD', gen_build_pull_down($FormEntries), '', 'onchange="boxLoad(this.value, row_TBD)"'));
?>
';
temp += '<?php
echo html_hidden_field('row_id[]', 'row_TBD');
?>
';
temp += '<?php
echo ' ' . str_replace("'", "\\'", html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_fld_row_TBD')) . ' ';
?>
';
temp += '<?php
echo str_replace("'", "\\'", html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"')) . ' ';
?>
';
temp += '<?php
示例14: html_pull_down_menu
echo TEXT_QA_INIT;
?>
</td>
<td><?php
echo html_pull_down_menu('qa', $yes_no_array, $qa);
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo TEXT_TASK_TIME;
?>
</td>
<td><?php
echo html_input_field('job_time', $job_time, 'size="10" maxlength="10"');
echo html_pull_down_menu('job_unit', gen_build_pull_down($job_units), $job_unit ? $job_unit : '1');
?>
</td>
<td align="right"><?php
echo TEXT_DATA_ENTRY;
?>
</td>
<td><?php
echo html_pull_down_menu('data_entry', $yes_no_array, $data_entry);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo ' ';
?>
示例15: build_form_html
function build_form_html($action, $id = '')
{
global $db, $project_cost_types;
$sql = "select description_short, description_long, cost_type, cost_breakdown, inactive \r\n\t from " . $this->db_table . " where phase_id = '" . $id . "'";
$result = $db->Execute($sql);
$cInfo = new objectInfo($result->fields);
$output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
$output .= ' <tr class="dataTableHeadingRow">' . chr(10);
$output .= ' <th colspan="2">' . ($action == 'new' ? SETUP_INFO_HEADING_NEW_PROJECT_PHASES : SETUP_INFO_HEADING_EDIT_PROJECT_PHASES) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td colspan="2">' . ($action == 'new' ? SETUP_PROJECT_PHASES_INSERT_INTRO : SETUP_PROJECT_PHASES_EDIT_INTRO) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_short', $cInfo->description_short, 'size="17" maxlength="16"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_long', $cInfo->description_long, 'size="50" maxlength="64"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_COST_TYPE . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('cost_type', gen_build_pull_down($project_cost_types), $cInfo->cost_type) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_COST_BREAKDOWN . '</td>' . chr(10);
$output .= ' <td>' . html_checkbox_field('cost_breakdown', '', $cInfo->cost_breakdown) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . TEXT_INACTIVE . '</td>' . chr(10);
$output .= ' <td>' . html_checkbox_field('inactive', '1', $cInfo->inactive ? true : false) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= '</table>' . chr(10);
return $output;
}