function build_form_href($array_tree, $ref = '') { $entry_string = ''; if (is_array($array_tree)) { foreach ($array_tree as $key => $entry) { $new_ref = $ref . $key; $entry_string .= '<table border="0" cellpadding="1" cellspacing="1"><tr>' . chr(10); if (isset($entry['children'])) { $entry_string .= '<td><a id="rpt_' . $new_ref . '" href="javascript:Toggle(\'' . $new_ref . '\');">'; $entry_string .= html_icon('status/folder-open.png', TEXT_EXPAND, 'small', $params = 'hspace="0" vspace="0"') . '</a>'; } else { $entry_string .= '<td>' . html_radio_field('id', 'f' . $key, false); } $entry_string .= ' ' . $entry['desc'] . '</td>' . chr(10); $entry_string .= '</tr></table>' . chr(10); if (isset($entry['children'])) { $entry_string .= '<div id="' . $new_ref . '" style="display:none; margin-left:1em;">' . chr(10) . chr(10); $entry_string .= build_form_href($entry['children'], $new_ref) . chr(10); $entry_string .= '</div>' . chr(10); } } } return $entry_string; }
<?php echo html_radio_field('TruncLongDesc', '0', $FormParams['Prefs']['trunclong'] != '1' ? true : false) . TEXT_NO; ?> </td> </tr> <tr> <td><?php echo RW_TEXT_TOTAL_ONLY; ?> </td> <td colspan="4"> <?php echo html_radio_field('TotalOnly', '1', $FormParams['Prefs']['totalonly'] == '1' ? true : false) . TEXT_YES; ?> <?php echo html_radio_field('TotalOnly', '0', $FormParams['Prefs']['totalonly'] != '1' ? true : false) . TEXT_NO; ?> </td> </tr> <?php } else { // for forms ?> <tr> <td><?php echo RW_FRM_SET_PRINTED . '<sup>1</sup>'; $notes .= '<br /><sup>1 </sup>' . RW_FRM_SET_PRINTED_NOTE; ?> </td> <td colspan="4"><?php echo html_pull_down_menu('SetPrintedFlag', $kFields, $FormParams['Prefs']['setprintedflag']);
function create_row($array) { global $odd, $settings; if (!empty($array['submenu']) && $array['text'] != BOX_HEADING_CONFIGURATION) { foreach ($array['submenu'] as $menu_item) { create_row($menu_item); } } else { if ($array['security_id'] == '') { return; } // && $item['heading'] <> MENU_HEADING_TOOLS) continue; // special case for reports listings not in Tools menu $checked = array(); if ($array['show_in_users_settings'] === false) { return; // skip if menu only item } elseif (isset($settings[$array['security_id']])) { $checked[0] = false; $checked[$settings[$array['security_id']]] = true; } elseif ($error) { $checked[0] = false; $checked[$_POST['sID_' . $array['security_id']]] = true; } else { $checked[0] = true; // default to no access } echo '<tr valign="top" class="' . ($odd ? 'odd' : 'even') . '">'; echo '<td>' . $array['text'] . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $array['security_id'], '4', $checked[4]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $array['security_id'], '3', $checked[3]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $array['security_id'], '2', $checked[2]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $array['security_id'], '1', $checked[1]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $array['security_id'], '0', $checked[0]) . '</td></tr>' . chr(10); $odd = !$odd; } }
echo html_radio_field('entry_type', $value = 'time', $cInfo->entry_type == 'time' ? true : false, '', $system_disable ? ' disabled ' : ''); echo ' ' . TEXT_TIME; ?> </td> <td class="main"> </td> </tr> <tr> <td class="main" valign="top"> <?php echo html_radio_field('entry_type', $value = 'date_time', $cInfo->entry_type == 'date_time' ? true : false, '', $system_disable ? ' disabled ' : ''); echo ' ' . INV_LABEL_DATE_TIME_FIELD; ?> </td> <td class="main"> </td> </tr> <tr> <td class="main" valign="top"> <?php echo html_radio_field('entry_type', $value = 'time_stamp', $cInfo->entry_type == 'time_stamp' ? true : false, '', $system_disable ? ' disabled ' : ''); echo ' ' . INV_LABEL_TIME_STAMP_FIELD; ?> </td> <td class="main"><?php echo INV_LABEL_TIME_STAMP_VALUE; ?> </td> </tr> </table></td> </tr> </table> </form>
<tr> <td> <?php echo html_radio_field('conv_type', 'so', true, '', '') . ($jID == 3 ? ORD_CONVERT_TO_PO : ORD_CONVERT_TO_SO) . chr(10); ?> </td> <td><?php echo ($jID == 3 ? ORD_HEADING_NUMBER_4 : ORD_HEADING_NUMBER_10) . html_input_field('so_num', $so_num, '') . '<br />' . chr(10); ?> </td> </tr> <?php if ($jID != 3) { ?> <tr> <td><?php echo html_radio_field('conv_type', 'inv', false, '', '') . ORD_CONVERT_TO_INV . '<br />' . chr(10); ?> </td> <td><?php echo ORD_HEADING_NUMBER_12 . html_input_field('inv_num', $inv_num, '') . '<br />' . chr(10); ?> </td> </tr> <?php } ?> </tbody> </table> <?php echo ORD_SO_INV_MESSAGE; ?>
</tr> <tr> <td><?php echo RW_FORM_DELIVERY_METHOD; ?> </td> <td align="center"><?php echo RW_BROWSER . html_radio_field('delivery_method', 'I', $delivery_method == 'I' ? true : false, '', 'onclick="hideEmail();"', false); ?> </td> <td align="center"><?php echo RW_DOWNLOAD . html_radio_field('delivery_method', 'D', $delivery_method == 'D' ? true : false, '', 'onclick="hideEmail();"', false); ?> </td> <td align="center"><?php echo TEXT_EMAIL . html_radio_field('delivery_method', 'S', $delivery_method == 'S' ? true : false, '', 'onclick="hideEmail();"', false); ?> </td> </tr> <?php if ($Prefs['dateselect'] != '') { // show the date choices only if form requires it ?> <tr> <th colspan="2"> </th> <th align="center"><?php echo TEXT_FROM; ?> </th> <th align="center"><?php echo TEXT_TO;
?> <tr> <td><?php echo html_checkbox_field($mod, '1', !in_array($mod, $core_modules) && $error && !isset($_POST[$mod]) ? false : true, '', in_array($mod, $core_modules) ? 'disabled="disabled"' : '') . ' ' . TEXT_MODULE . ': ' . $mod; ?> </td> <td align="center"><?php echo html_radio_field($mod . '_action', 'core', $_POST[$mod . '_action'] == 'core' ? true : false, '', $parameters = ''); ?> </td> <td align="center"><?php echo html_radio_field($mod . '_action', 'demo', $_POST[$mod . '_action'] == 'demo' ? true : false, '', $parameters = ''); ?> </td> <td align="center"><?php echo html_radio_field($mod . '_action', 'data', !isset($_POST[$mod . '_action']) || $_POST[$mod . '_action'] == 'data' ? true : false, '', $parameters = ''); ?> </td> </tr> <?php } ?> </table> </fieldset> <fieldset> <legend><?php echo SETUP_CO_MGR_DEL_CO; ?> </legend> <table> <tr>
?> <fieldset class="formAreaTitle"> <legend><?php echo ACT_CATEGORY_PAYMENT_TERMS; ?> </legend> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td class="main"> <?php echo html_radio_field('special_terms', 0, $terms[0] == '0' || $terms[0] == '' ? true : false, '', 'onclick="changeOptions()"') . ACT_TERMS_USE_DEFAULTS . '<br />' . chr(10); echo html_radio_field('special_terms', 1, $terms[0] == '1' ? true : false, '', 'onclick="changeOptions()"') . ACT_COD_SHORT . '<br />' . chr(10); echo html_radio_field('special_terms', 2, $terms[0] == '2' ? true : false, '', 'onclick="changeOptions()"') . ACT_PREPAID . '<br />' . chr(10); echo html_radio_field('special_terms', 3, $terms[0] == '3' ? true : false, '', 'onclick="changeOptions()"') . ACT_SPECIAL_TERMS . '<br />' . chr(10); echo html_radio_field('special_terms', 4, $terms[0] == '4' ? true : false, '', 'onclick="changeOptions()"') . ACT_DAY_NEXT_MONTH . '<br />' . chr(10); echo html_radio_field('special_terms', 5, $terms[0] == '5' ? true : false, '', 'onclick="changeOptions()"') . ACT_END_OF_MONTH . chr(10); ?> </td> <td class="main" valign="top"> <?php // terms[3] may contain either the net days or a date, set the defaults if ($terms[0] == '4' || $terms[0] == '5') { $net_terms = constant($terms_type . '_NUM_DAYS_DUE'); $date_terms = $terms[3]; } else { $net_terms = $terms[3] != '' ? $terms[3] : constant($terms_type . '_NUM_DAYS_DUE'); $date_terms = ''; } echo TEXT_CURRENT . ' - ' . gen_terms_to_language($cInfo->special_terms, false, $terms_type) . '<br />' . chr(10); echo ACT_DISCOUNT . html_input_field('early_percent', $terms[1] != '' ? $terms[1] : constant($terms_type . '_PREPAYMENT_DISCOUNT_PERCENT'), 'size="4"') . ACT_EARLY_DISCOUNT . '<br />' . chr(10); echo ACT_DUE_IN . html_input_field('early_days', $terms[2] != '' ? $terms[2] : constant($terms_type . '_PREPAYMENT_DISCOUNT_DAYS'), 'size="3"') . ACT_TERMS_EARLY_DAYS . '<br />' . chr(10);
echo RW_RPT_PGLAYOUT; ?> </th> </tr> <tr> <td colspan="4" width="50%" align="center"> <?php echo TEXT_PAPER . ' ' . html_pull_down_menu('papersize', gen_build_pull_down($PaperSizes), $myrow['papersize']); ?> </td> <td colspan="4" width="50%" align="center"> <?php echo TEXT_ORIEN . ' ' . html_radio_field('paperorientation', 'P', $myrow['paperorientation'] == 'P' ? true : false) . ' ' . TEXT_PORTRAIT; ?> <?php echo ' ' . html_radio_field('paperorientation', 'L', $myrow['paperorientation'] == 'L' ? true : false) . ' ' . TEXT_LANDSCAPE; ?> </td> </tr> <tr> <th colspan="8"><?php echo RW_RPT_PGMARGIN; ?> </th> </tr> <tr> <td colspan="2" width="25%" align="center"><?php echo TEXT_TOP . ' ' . html_input_field('margintop', $myrow['margintop'], 'size="5" maxlength="3"') . ' ' . TEXT_MM; ?> </td> <td colspan="2" width="25%" align="center"><?php
echo '</tr>'; echo '<tr><td valign="top">'; $report_types_heading = array('0' => RW_RPT_MYRPT, '1' => RW_RPT_DEFRPT); foreach ($report_types_heading as $standard => $fieldset_title) { echo '<fieldset><legend>' . $fieldset_title . '</legend>'; $definitions->Move(0); $definitions->MoveNext(); while (!$definitions->EOF) { $report_id = $definitions->fields['id']; if (!isset($rr_security[$report_id])) { $rr_security[$report_id] = 'u:0;e:0;d:0'; // enable everyone if security not set } if (security_check($rr_security[$report_id])) { if ($definitions->fields['groupname'] == $key && $definitions->fields['standard_report'] == $standard) { echo html_radio_field('id', 'r' . $report_id, false); echo ' ' . stripslashes($definitions->fields['description']) . '<br />' . chr(10); } } $definitions->MoveNext(); } echo '</fieldset>' . chr(10); } echo '</td>' . chr(10); // show form list $temp = build_form_href($form_array[$key]['children'], 'rpt_' . $key); if ($temp) { echo '<td valign="top"><fieldset>' . $temp . '</fieldset></td>' . chr(10); } else { echo '<td valign="top"> </td>' . chr(10); }
?> </td> </tr> <tr class="ui-widget-header"><th colspan="3"><?php echo TEXT_OPTIONS; ?> </th></tr> <tr> <td colspan="3"><?php echo html_radio_field('dl_type', 'file', true, '', '') . GEN_BACKUP_DB_ONLY; ?> </td> </tr> <tr> <td colspan="3"><?php echo html_radio_field('dl_type', 'dir', false, '', '') . GEN_BACKUP_FULL; ?> </td> </tr> <tr> <td colspan="2"><?php echo html_checkbox_field('save_local', '1', false, '', '') . GEN_BACKUP_SAVE_LOCAL; ?> </td> <td align="right"><?php echo html_button_field('backup_db', GEN_BACKUP_ICON_TITLE, 'onclick="submitToDo(\'save\', true)"'); ?> </td> </tr> </tbody> </table>
$show_active = false; foreach ($tab_groups as $key => $value) { $active = !$show_active ? ' class="active"' : ''; echo '<li><a href="#' . $key . '"' . $active . '>' . $value . '</a></li>' . chr(10); $show_active = true; } ?> </ul> <?php $query_raw = "select id, group_id, custom, security, title, description, table_name\r\n\tfrom " . TABLE_IMPORT_EXPORT . " order by group_id"; $definitions = $db->Execute($query_raw); foreach ($tab_groups as $key => $value) { echo '<div id="' . $key . '" class="tabset_content">' . chr(10); echo '<h2 class="tabset_label">' . $value . '</h2>' . chr(10); $definitions->Move(0); $definitions->MoveNext(); while (!$definitions->EOF) { if ($definitions->fields['group_id'] == $key) { echo html_radio_field('id', $definitions->fields['id'], false, '', ''); echo $definitions->fields['title'] . ' - ' . $definitions->fields['description'] . chr(10); echo '<br />'; } $definitions->MoveNext(); } echo '</div>' . chr(10); } ?> </td> </tr> </table> </form>
function build_form_html($action, $id = '') { global $db; require_once DIR_FS_MODULES . 'phreebooks/functions/phreebooks.php'; $tax_authorities_array = gen_build_tax_auth_array(); if ($action != 'new' && $this->error == false) { $sql = "select description_short, description_long, rate_accounts, freight_taxable \n\t from " . $this->db_table . " where tax_rate_id = " . $id; $result = $db->Execute($sql); foreach ($result->fields as $key => $value) { $this->{$key} = $value; } } $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' ? SETUP_HEADING_NEW_TAX_RATE : SETUP_HEADING_EDIT_TAX_RATE) . '</th>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' </thead>' . "\n"; $output .= ' <tbody class="ui-widget-content">' . "\n"; $output .= ' <tr>' . chr(10); $output .= ' <td colspan="2">' . ($action == 'new' ? SETUP_TAX_INSERT_INTRO : SETUP_TAX_EDIT_INTRO) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10); $output .= ' <td>' . html_input_field('description_short', $this->description_short, 'size="16" maxlength="15"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10); $output .= ' <td>' . html_input_field('description_long', $this->description_long, 'size="33" maxlength="64"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_TAX_AUTHORITIES . '</td>' . chr(10); $output .= ' <td>' . html_hidden_field('rate_accounts', $this->rate_accounts) . $this->draw_tax_auths($this->rate_accounts, $tax_authorities_array) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_TAX_AUTH_ADD . '</td>' . chr(10); $output .= ' <td>' . html_pull_down_menu('tax_auth_id_add', $this->get_tax_auths()) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_TAX_AUTH_DELETE . '</td>' . chr(10); $output .= ' <td>' . html_pull_down_menu('tax_auth_id_delete', $this->get_selected_tax_auths($this->rate_accounts, $tax_authorities_array)) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . SETUP_INFO_FREIGHT_TAXABLE . '</td>' . chr(10); $output .= ' <td>' . html_radio_field('freight_taxable', '0', !$this->freight_taxable) . TEXT_NO . html_radio_field('freight_taxable', '1', $this->freight_taxable) . TEXT_YES . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' </tbody>' . "\n"; $output .= '</table>' . chr(10); return $output; }
function build_form_html($action, $id = '') { global $db, $messageStack, $currencies, $integer_lengths, $decimal_lengths, $check_box_choices; if ($action != 'new' && $this->error == false) { $result = $db->Execute("select * from " . TABLE_EXTRA_FIELDS . " where id='{$this->id}'"); $params = unserialize($result->fields['params']); foreach ($result->fields as $key => $value) { $this->{$key} = $value; } if (is_array($params)) { foreach ($params as $key => $value) { $this->{$key} = $value; } } switch ($this->entry_type) { case 'data_list': case 'multi_check_box': case 'drop_down': case 'radio': $this->radio_default = $this->default; break; case 'hyperlink': case 'image_link': case 'inventory_link': $this->link_default = $this->default; break; case 'text': case 'html': $this->text_default = $this->default; break; case 'decimal': $this->decimal_range = $this->select; $this->decimal_default = number_format($this->default, $this->display, $currencies->currencies[DEFAULT_CURRENCY]['decimal_point'], $currencies->currencies[DEFAULT_CURRENCY]['thousands_point']); $this->decimal_display = $this->display; break; case 'integer': $this->integer_range = $this->select; $this->integer_default = $this->default; break; case 'check_box': $this->check_box_range = $this->select; break; } } // build the tab list $tab_list = gen_build_pull_down(xtra_field_get_tabs($this->module)); array_shift($tab_list); if ($action == 'new' && sizeof($tab_list) < 1) { $messageStack->add(EXTRA_FIELDS_ERROR_NO_TABS, 'error'); } $choices = explode(':', $params[$this->type_params]); $disabled = $this->tab_id !== '0' ? '' : 'disabled="disabled" '; $readonly = $this->tab_id !== '0' ? '' : 'readonly="readonly" '; $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_SETTINGS) . '</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', $this->field_name, $readonly . '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', $this->description, 'size="65" maxlength="64"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . TEXT_SORT_ORDER . '</td>' . chr(10); $output .= ' <td>' . html_input_field('sort_order', $this->sort_order, 'size="65" maxlength="64"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . TEXT_GROUP . '</td>' . chr(10); $output .= ' <td>' . html_input_field('group_by', $this->group_by, 'size="65" maxlength="64"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); if (is_array($this->type_array)) { $output .= ' <tr>' . chr(10); $output .= ' <td>' . $this->type_desc . '</td>' . chr(10); $output .= ' <td>'; while ($type = array_shift($this->type_array)) { if (!is_array($choices)) { $output .= html_checkbox_field('type_' . $type['id'], true, false, '', '') . $type['text']; $output .= '<br />'; } elseif (in_array($type['id'], $choices)) { $output .= html_checkbox_field('type_' . $type['id'], true, true, '', '') . $type['text']; $output .= '<br />'; } else { $output .= html_checkbox_field('type_' . $type['id'], true, false, '', '') . $type['text']; $output .= '<br />'; } } $output .= ' </td>'; $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, $this->tab_id, $disabled) . '</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', $this->entry_type == 'text' ? true : false, '', $disabled) . ' ' . INV_LABEL_TEXT_FIELD . '<br />'; $output .= html_radio_field('entry_type', 'html', $this->entry_type == 'html' ? true : false, '', $disabled) . ' ' . INV_LABEL_HTML_TEXT_FIELD . '</td>' . chr(10); $output .= ' <td>' . INV_LABEL_MAX_NUM_CHARS; $output .= '<br />' . html_input_field('length', $this->length ? $this->length : DEFAULT_TEXT_LENGTH, $readonly . '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, $this->text_default, $readonly); $output .= ' </td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="ui-widget-content">' . chr(10); $output .= ' <td>'; $output .= html_radio_field('entry_type', 'hyperlink', $this->entry_type == 'hyperlink' ? true : false, '', $disabled) . ' ' . INV_LABEL_HYPERLINK . '<br />'; $output .= html_radio_field('entry_type', 'image_link', $this->entry_type == 'image_link' ? true : false, '', $disabled) . ' ' . INV_LABEL_IMAGE_LINK . '<br />'; $output .= html_radio_field('entry_type', 'inventory_link', $this->entry_type == 'inventory_link' ? true : false, '', $disabled) . ' ' . 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, $this->link_default, $readonly); $output .= ' </td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . html_radio_field('entry_type', 'integer', $this->entry_type == 'integer' ? true : false, '', $disabled) . ' ' . 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), $this->integer_range, $disabled); $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('integer_default', $this->integer_default, $readonly . 'size="16"'); $output .= ' </td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="ui-widget-content">' . chr(10); $output .= ' <td>' . html_radio_field('entry_type', 'decimal', $this->entry_type == 'decimal' ? true : false, '', $disabled) . ' ' . 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), $this->decimal_range, $disabled); $output .= '<br />' . INV_LABEL_DEFAULT_DISPLAY_VALUE . html_input_field('decimal_display', $this->decimal_display ? $this->decimal_display : DEFAULT_REAL_DISPLAY_FORMAT, $readonly . 'size="6" maxlength="5"'); $output .= '<br />' . INV_LABEL_DEFAULT_TEXT_VALUE . html_input_field('decimal_default', $this->decimal_default, $readonly . 'size="16"'); $output .= ' </td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>'; $output .= html_radio_field('entry_type', 'multi_check_box', $this->entry_type == 'multi_check_box' ? true : false, '', $disabled) . ' ' . INV_LABEL_MULTI_SELECT_FIELD . '<br />'; $output .= html_radio_field('entry_type', 'drop_down', $this->entry_type == 'drop_down' ? true : false, '', $disabled) . ' ' . INV_LABEL_DROP_DOWN_FIELD . '<br />'; $output .= html_radio_field('entry_type', 'data_list', $this->entry_type == 'data_list' ? true : false, '', $disabled) . ' ' . TEXT_DATA_LIST . '<br />'; $output .= html_radio_field('entry_type', 'radio', $this->entry_type == 'radio' ? true : false, '', $disabled) . ' ' . INV_LABEL_RADIO_FIELD; $output .= ' </td>' . chr(10); $output .= ' <td>' . INV_LABEL_CHOICES . '<br />' . html_textarea_field('radio_default', 35, 6, $this->radio_default, $readonly) . '<br />'; $output .= INV_LABEL_RADIO_EXPLANATION . '<br />' . TEXT_DATA_LIST_EXPLANATION . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="ui-widget-content">' . chr(10); $output .= ' <td>' . html_radio_field('entry_type', 'check_box', $this->entry_type == 'check_box' ? true : false, '', $disabled) . ' ' . 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), $this->check_box_range, $disabled) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>'; $output .= html_radio_field('entry_type', 'date', $this->entry_type == 'date' ? true : false, '', $disabled) . ' ' . TEXT_DATE . '<br />'; $output .= html_radio_field('entry_type', 'time', $this->entry_type == 'time' ? true : false, '', $disabled) . ' ' . TEXT_TIME . '<br />'; $output .= html_radio_field('entry_type', 'date_time', $this->entry_type == 'date_time' ? true : false, '', $disabled) . ' ' . INV_LABEL_DATE_TIME_FIELD . '<br />'; $output .= html_radio_field('entry_type', 'time_stamp', $this->entry_type == 'time_stamp' ? true : false, '', $disabled) . ' ' . INV_LABEL_TIME_STAMP_FIELD; $output .= ' </td>' . chr(10); $output .= ' <td>' . INV_LABEL_TIME_STAMP_VALUE . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' </tbody>' . "\n"; $output .= '</table>' . chr(10); return $output; }
<?php echo html_radio_field('truncate', '0', $report->truncate != '1' ? true : false) . TEXT_NO; ?> </td> </tr> <tr> <td><?php echo TEXT_TOTAL_ONLY; ?> </td> <td> <?php echo html_radio_field('totalonly', '1', $report->totalonly == '1' ? true : false) . TEXT_YES; ?> <?php echo html_radio_field('totalonly', '0', $report->totalonly != '1' ? true : false) . TEXT_NO; ?> </td> </tr> <?php } elseif ($report->reporttype == 'frm') { ?> <tr> <td><?php echo PHREEFORM_SERIAL_FORM; ?> </td> <td><?php echo html_checkbox_field('serialform', '1', $report->serialform ? true : false, '', ''); ?> </td>
function build_field_entry($param_array, $cInfo) { $output = '<tr><td class="main">' . $param_array['description'] . '</td>'; $params = unserialize($param_array['params']); switch ($params['type']) { case 'text': case 'html': if ($params['length'] < 256) { $length = $params['length'] > 120 ? 'size="120"' : 'size="' . $params['length'] . '"'; $output .= '<td class="main">' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], $length) . '</td></tr>'; } else { $output .= '<td class="main">' . html_textarea_field($param_array['field_name'], DEFAULT_INPUT_FIELD_LENGTH, 4, $cInfo->{$param_array}['field_name']) . '</td></tr>'; } break; case 'hyperlink': case 'image_link': case 'inventory_link': $output .= '<td class="main">' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="' . DEFAULT_INPUT_FIELD_LENGTH . '"') . '</td></tr>'; break; case 'integer': case 'decimal': $output .= '<td class="main">' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="13" maxlength="12" style="text-align:right"') . '</td></tr>'; break; case 'date': case 'time': case 'date_time': $output .= '<td class="main">' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="21" maxlength="20"') . '</td></tr>'; break; case 'drop_down': case 'enum': $choices = explode(',', $params['default']); $pull_down_selection = array(); $default_selection = ''; while ($choice = array_shift($choices)) { $values = explode(':', $choice); $pull_down_selection[] = array('id' => $values[0], 'text' => $values[1]); if ($cInfo->{$param_array}['field_name'] == $values[0]) { $default_selection = $values[0]; } } $output .= '<td class="main">' . html_pull_down_menu($param_array['field_name'], $pull_down_selection, $default_selection) . '</td></tr>'; break; case 'radio': $output .= '<td class="main">'; $choices = explode(',', $params['default']); while ($choice = array_shift($choices)) { $values = explode(':', $choice); $values[0] = trim($values[0]); $cInfo->{$param_array}['field_name'] = trim($cInfo->{$param_array}['field_name']); $cmp = strcmp($values[0], $cInfo->{$param_array}['field_name']); $output .= html_radio_field($param_array['field_name'], $values[0], $cmp == 0 ? true : false); $output .= ' ' . $values[1] . ' '; } $output .= '</td></tr>'; break; case 'check_box': $output .= '<td class="main">' . html_checkbox_field($param_array['field_name'], '1', $cInfo->{$param_array}['field_name'] == 1 ? true : false) . '</td></tr>'; break; case 'time_stamp': default: $output = ''; } return $output; }
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); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . html_radio_field('entry_type', 'date_time', $cInfo->entry_type == 'date_time' ? true : false) . ' ' . INV_LABEL_DATE_TIME_FIELD . '</td>' . chr(10); $output .= ' <td> </td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . html_radio_field('entry_type', 'time_stamp', $cInfo->entry_type == 'time_stamp' ? true : false) . ' ' . INV_LABEL_TIME_STAMP_FIELD . '</td>' . chr(10); $output .= ' <td>' . INV_LABEL_TIME_STAMP_VALUE . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' </tbody>' . "\n"; $output .= '</table>' . chr(10); return $output; }
<tr> <th align="center"><?php echo ORD_RECUR_ENTRIES; ?> </th> </tr> <tr> <td align="center"><?php echo html_input_field('recur_id', '1', 'size="3"'); ?> </td> </tr> <tr> <th align="center"><?php echo ORD_RECUR_FREQUENCY; ?> </th> </tr> <tr> <td> <?php echo html_radio_field('recur_frequency', 1, false) . ORD_TEXT_WEEKLY . '<br />' . chr(10); echo html_radio_field('recur_frequency', 2, false) . ORD_TEXT_BIWEEKLY . '<br />' . chr(10); echo html_radio_field('recur_frequency', 3, true) . ORD_TEXT_MONTHLY . '<br />' . chr(10); echo html_radio_field('recur_frequency', 4, false) . ORD_TEXT_QUARTERLY . '<br />' . chr(10); echo html_radio_field('recur_frequency', 5, false) . ORD_TEXT_YEARLY . chr(10); ?> </td> </tr> </table> </form>
<tr><th colspan="8"><?php echo RW_RPT_PGLAYOUT; ?> </th></tr> <tr> <td colspan="4" align="center"> <?php echo TEXT_PAPER . ' ' . html_pull_down_menu('papersize', gen_build_pull_down($PaperSizes), $Prefs['papersize'], 'onchange="calculateWidth()"'); ?> </td> <td colspan="4" align="center"> <?php echo TEXT_ORIEN . ' ' . html_radio_field('paperorientation', 'P', $Prefs['paperorientation'] == 'P' ? true : false, '', 'onchange="calculateWidth()"') . ' ' . TEXT_PORTRAIT; ?> <?php echo ' ' . html_radio_field('paperorientation', 'L', $Prefs['paperorientation'] == 'L' ? true : false, '', 'onchange="calculateWidth()"') . ' ' . TEXT_LANDSCAPE; ?> </td> </tr> <tr><th colspan="8"><?php echo RW_RPT_PGMARGIN; ?> </th></tr> <tr> <td colspan="2" align="center"><?php echo TEXT_TOP . ' ' . html_input_field('margintop', $Prefs['margintop'], 'size="5" maxlength="3"') . ' ' . TEXT_MM; ?> </td> <td colspan="2" align="center"><?php echo TEXT_BOTTOM . ' ' . html_input_field('marginbottom', $Prefs['marginbottom'], 'size="5" maxlength="3"') . ' ' . TEXT_MM; ?>
function xtra_field_build_entry($param_array, $cInfo) { $output = '<tr><td>' . $param_array['description'] . '</td>'; $params = unserialize($param_array['params']); switch ($params['type']) { case 'text': case 'html': if ($params['length'] < 256) { $length = $params['length'] > 120 ? 'size="120"' : 'size="' . $params['length'] . '"'; $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], $length) . '</td></tr>'; } else { $output .= '<td>' . html_textarea_field($param_array['field_name'], DEFAULT_INPUT_FIELD_LENGTH, 4, $cInfo->{$param_array}['field_name']) . '</td></tr>'; } break; case 'data_list': $length = $params['length'] > 120 ? 'size="120"' : 'size="' . $params['length'] . '"'; $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], $length . " list='{$param_array['field_name']}'") . '</td>'; $output .= "<datalist id='{$param_array['field_name']}'>"; $choices = explode(',', $params['default']); while ($choice = array_shift($choices)) { $values = explode(':', $choice); if ($values[0] != '') { $output .= "<option value='{$values['0']}'>"; } } $output .= '</datalist></tr>'; break; case 'hyperlink': case 'image_link': case 'inventory_link': $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="' . DEFAULT_INPUT_FIELD_LENGTH . '"') . '</td></tr>'; break; case 'integer': case 'decimal': $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="13" maxlength="12" style="text-align:right"') . '</td></tr>'; break; case 'date': case 'time': case 'date_time': $output .= '<td>' . html_input_field($param_array['field_name'], $cInfo->{$param_array}['field_name'], 'size="21" maxlength="20"') . '</td></tr>'; break; case 'drop_down': case 'enum': $choices = explode(',', $params['default']); $pull_down_selection = array(); $default_selection = ''; while ($choice = array_shift($choices)) { $values = explode(':', $choice); $pull_down_selection[] = array('id' => $values[0], 'text' => $values[1]); if ($cInfo->{$param_array}['field_name'] == $values[0]) { $default_selection = $values[0]; } } $output .= '<td>' . html_pull_down_menu($param_array['field_name'], $pull_down_selection, $default_selection) . '</td></tr>'; break; case 'radio': $output .= '<td>'; $choices = explode(',', $params['default']); while ($choice = array_shift($choices)) { $values = explode(':', $choice); $output .= html_radio_field($param_array['field_name'], $values[0], $cInfo->{$param_array}['field_name'] == $values[0] ? true : false); $output .= '<label for="' . $param_array['field_name'] . '_' . $values[0] . '"> ' . $values[1] . '</label>'; } $output .= '</td></tr>'; break; case 'multi_check_box': $output .= '<td>'; $output .= '<table frame="border"><tr>'; $choices = explode(',', $params['default']); $selected = explode(',', $cInfo->{$param_array}['field_name']); $i = 1; while ($choice = array_shift($choices)) { $values = explode(':', $choice); $output .= '<td>'; $output .= html_checkbox_field($param_array['field_name'] . $values[0], $values[0], in_array($values[0], $selected) ? true : false); $output .= '<label for="' . $param_array['field_name'] . $values[0] . '"> ' . $values[1] . '</label>'; $output .= '</td>'; if ($i == 4) { $output .= '</tr><tr>'; $i = 0; } $i++; } $output .= '</tr></table>'; $output .= '</td></tr>'; break; case 'check_box': $output .= '<td>' . html_checkbox_field($param_array['field_name'], '1', $cInfo->{$param_array}['field_name'] == 1 ? true : false) . '</td></tr>'; break; case 'time_stamp': default: $output = ''; } return $output; }
<th colspan="2"><?php echo TEXT_FILL; ?> </th> </tr> <tr> <td colspan="2"><?php echo html_radio_field('Fill', '0', $Params['Fill'] == '0' || $Params['Fill'] == '' ? true : false) . RW_RPT_NOFILL; ?> </td> </tr> <tr> <td align="center"> <?php echo html_radio_field('Fill', '1', $Params['Fill'] == '1' ? true : false) . TEXT_STDCOLOR . '<br />'; ?> <?php echo html_pull_down_menu('FillColor', $kFontColors, $Params['FillColor']); ?> </td> <td align="center"> <?php echo html_radio_field('Fill', '2', $Params['Fill'] == '2' ? true : false) . TEXT_CUSTCOLOR . '<br />'; echo TEXT_RED . html_input_field('FillRed', $Params['FillRed'], 'size="4" maxlength="3"'); echo TEXT_GREEN . html_input_field('FillGreen', $Params['FillGreen'], 'size="4" maxlength="3"'); echo TEXT_BLUE . html_input_field('FillBlue', $Params['FillBlue'], 'size="4" maxlength="3"'); ?> </td> </tr> </table> </form>
function box_build($properties, $i) { global $kFonts, $kFontSizes, $kFontAlign, $kFontColors, $cFields; global $kFields, $kTblFields, $pFields, $tProcessing, $BarCodeTypes; $output = NULL; switch ($properties->type) { case 'BarCode': $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . TEXT_FIELDNAME . '</th>' . nl; $output .= ' <th>' . TEXT_TYPE . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', gen_build_pull_down($BarCodeTypes), $properties->boxfield[0]->processing) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i, false, false); break; case 'CBlk': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl; $output .= ' <table id="box_Cblk' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl; $output .= ' <tr><th colspan="4">' . TEXT_FIELD_LIST . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . TEXT_FIELDNAME . '</th>' . nl; $output .= ' <th>' . TEXT_SEPARATOR . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' <th>' . TEXT_ACTION . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; for ($j = 0; $j < sizeof($properties->boxfield); $j++) { $output .= ' <tr>' . nl; $output .= ' <td>' . html_pull_down_menu('box_fld_' . $i . '[]', $cFields, $properties->boxfield[$j]->fieldname) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $tProcessing, $properties->boxfield[$j]->processing) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_fmt_' . $i . '[]', $pFields, $properties->boxfield[$j]->formatting) . '</td>' . nl; $output .= ' <td nowrap="nowrap" align="right">'; $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_cblk_' . $i . '_' . $j) . chr(10); $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'); $output .= ' </td>' . nl; $output .= ' </tr>' . nl; } $output .= ' </tbody></table>' . nl; $output .= ' </td>' . nl; $output .= ' <td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Cblk\', \'add\', ' . $i . ')"') . '</td>' . nl; $output .= '</tr></table>' . nl; $output .= box_build_attributes($properties, $i); $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Cblk' . $i . '\'; tableCount++;</script>' . nl; break; case 'CDta': $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . TEXT_FIELDNAME . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td align="center">' . html_pull_down_menu('box_fld_' . $i . '[]', $cFields, $properties->boxfield[0]->fieldname) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i); break; case 'Data': $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TBLFNAME . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[0]->processing) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i); break; case 'Img': $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . TEXT_CURRENT_IMAGE . '</td>' . nl; $output .= ' <td align="center">' . nl; $output .= !$properties->filename ? TEXT_NO_IMAGE_SELECTED : html_image(PF_WEB_MY_REPORTS . 'images/' . $properties->filename, '', '', '32'); $output .= ' </td>' . nl; $output .= ' </tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th colspan="2">' . PHREEFORM_IMAGESEL . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_radio_field('img_sel_' . $i, 'U', false) . TEXT_UPLOAD_MAGE . '</td>' . nl; $output .= ' <td>' . html_file_field('img_upload_' . $i) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_radio_field('img_sel_' . $i, 'S', true) . TEXT_STORED_IMAGES . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('img_file_' . $i, ReadImages(), $properties->filename, 'size="6"') . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; break; case 'ImgLink': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TBLFNAME . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[0]->fieldname, 'onclick="updateFieldList(this)"') . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[0]->processing) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' <tr class="ui-widget-header"><th colspan="2">' . TEXT_IMAGE_LINK . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <td align="center" colspan="2">' . html_input_field('box_txt_' . $i, $properties->text ? $properties->text : DIR_WS_MY_FILES, 'size="40"') . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; // $output .= box_build_attributes($properties, $i, false, false, false, false); break; case 'Line': $output = '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th colspan="3">' . PHREEFORM_LINE_TYPE . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_radio_field('box_ltype_' . $i, 'H', !$properties->linetype || $properties->linetype == 'H' ? true : false) . TEXT_HORIZONTAL . '</td>' . nl; $output .= ' <td>' . html_radio_field('box_ltype_' . $i, 'V', $properties->linetype == 'V' ? true : false) . TEXT_VERTICAL . '</td>' . nl; $output .= ' <td>' . TEXT_LENGTH . ' ' . html_input_field('box_len_' . $i, $properties->length, 'size="4" maxlength="3"') . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' <tr class="ui-widget-header">' . nl; $output .= ' <th colspan="3">' . PHREEFORM_ENDPOS . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_radio_field('box_ltype_' . $i, 'C', $properties->linetype == 'C' ? true : false) . TEXT_CUSTOM . '</td>' . nl; $output .= ' <td>' . TEXT_ABSCISSA . html_input_field('box_eabs_' . $i, $properties->endabscissa, 'size="4" maxlength="3"') . '</td>' . nl; $output .= ' <td>' . TEXT_ORDINATE . html_input_field('box_eord_' . $i, $properties->endordinate, 'size="4" maxlength="3"') . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i, false, false, true, false); break; case 'PgNum': $output .= box_build_attributes($properties, $i, false); break; case 'Rect': $output .= box_build_attributes($properties, $i, false, false, true, true); break; case 'Tbl': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl; $output .= ' <table id="box_Tbl' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl; $output .= ' <tr><th colspan="9">' . TEXT_FIELD_LIST . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . TEXT_FIELDNAME . '</th>' . nl; $output .= ' <th>' . TEXT_DESCRIPTION . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' <th>' . TEXT_FONT . '</th>' . nl; $output .= ' <th>' . TEXT_SIZE . '</th>' . nl; $output .= ' <th>' . TEXT_ALIGN . '</th>' . nl; $output .= ' <th>' . TEXT_COLOR . '</th>' . nl; $output .= ' <th>' . TEXT_WIDTH . '</th>' . nl; $output .= ' <th>' . ' ' . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; for ($j = 0; $j < sizeof($properties->boxfield); $j++) { $output .= ' <tr>' . nl; $output .= ' <td nowrap="nowrap">' . html_combo_box('box_fld_' . $i . '[]', $kTblFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl; $output .= ' <td>' . html_input_field('box_desc_' . $i . '[]', $properties->boxfield[$j]->description, 'size="15"') . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_fnt_' . $i . '[]', $kFonts, $properties->boxfield[$j]->font) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_size_' . $i . '[]', $kFontSizes, $properties->boxfield[$j]->size) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_aln_' . $i . '[]', $kFontAlign, $properties->boxfield[$j]->align) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_clr_' . $i . '[]', $kFontColors, $properties->boxfield[$j]->color) . '</td>' . nl; $output .= ' <td>' . html_input_field('box_wid_' . $i . '[]', $properties->boxfield[$j]->width, 'size="4" maxlength="4"') . '</td>' . nl; $output .= ' <td nowrap="nowrap" align="right">' . nl; $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tbl_' . $i . '_' . $j); $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'); $output .= '</td>' . nl; $output .= ' </tr>' . nl; } $output .= ' </tbody></table>' . nl; $output .= '</td>' . nl; $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Tbl\', \'add\', ' . $i . ')"') . '</td>' . nl; $output .= '</tr></table>' . nl; $output .= box_build_attributes($properties, $i, false, true, true, true, 'h', PHREEFORM_TABLE_HEADING_PROP); $output .= box_build_attributes($properties, $i, false, false, true, true, '', TEXT_TABLE_BODY_PROPERTIES); $output .= PHREEFORM_FORM_TABLE_NOTES; $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Tbl' . $i . '\'; tableCount++;</script>' . nl; break; case 'TBlk': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl; $output .= ' <table id="box_Tblk' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl; $output .= ' <tr><th colspan="4">' . TEXT_FIELD_LIST . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TBLFNAME . '</th>' . nl; $output .= ' <th>' . TEXT_SEPARATOR . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' <th>' . TEXT_ACTION . '</th>' . nl; $output .= ' </tr>' . nl; $output .= '</thead><tbody class="ui-widget-content">' . nl; for ($j = 0; $j < sizeof($properties->boxfield); $j++) { $output .= ' <tr>' . nl; $output .= ' <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . '_' . $j) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $tProcessing, $properties->boxfield[$j]->processing) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_fmt_' . $i . '[]', $pFields, $properties->boxfield[$j]->formatting) . '</td>' . nl; $output .= ' <td nowrap="nowrap" align="right">' . nl; $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tblk_' . $i . '_' . $j) . chr(10); $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'); $output .= ' </td>' . nl; $output .= ' </tr>' . nl; } $output .= '</tbody></table>' . nl; $output .= '</td>' . nl; $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Tblk\', \'add\', ' . $i . ')"'); $output .= '</td></tr></table>' . nl; $output .= box_build_attributes($properties, $i); $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Tblk' . $i . '\'; tableCount++;</script>' . nl; break; case 'TDup': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td align="center">' . TEXT_NO_PROPERTIES . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; break; case 'LtrTpl': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TEXTDISP . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_textarea_field('box_txt_' . $i, '50', '20', $properties->text) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i); break; case 'LtrData': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl; $output .= ' <table id="box_LtrData' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl; $output .= ' <tr><th colspan="9">' . TEXT_FIELD_LIST . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . TEXT_FIELDNAME . '</th>' . nl; $output .= ' <th>' . TEXT_DESCRIPTION . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' <th>' . ' ' . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; for ($j = 0; $j < sizeof($properties->boxfield); $j++) { $output .= ' <tr>' . nl; $output .= ' <td nowrap="nowrap">' . html_combo_box('box_fld_' . $i . '[]', $kTblFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl; $output .= ' <td>' . html_input_field('box_desc_' . $i . '[]', $properties->boxfield[$j]->description, 'size="15"') . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl; $output .= ' <td nowrap="nowrap" align="right">' . nl; $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_tbl_' . $i . '_' . $j); $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'); $output .= '</td>' . nl; $output .= ' </tr>' . nl; } $output .= ' </tbody></table>' . nl; $output .= '</td>' . nl; $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_LtrData\', \'add\', ' . $i . ')"') . '</td>' . nl; $output .= '</tr></table>' . nl; $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_LtrData' . $i . '\'; tableCount++;</script>' . nl; break; case 'Text': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . nl; $output .= ' <thead class="ui-widget-header">' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TEXTDISP . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; $output .= ' <tr>' . nl; $output .= ' <td>' . html_textarea_field('box_txt_' . $i, '50', '3', $properties->text) . '</td>' . nl; $output .= ' </tr>' . nl; $output .= ' </tbody></table>' . nl; $output .= box_build_attributes($properties, $i); break; case 'Ttl': $output .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><tr><td>' . nl; $output .= ' <table id="box_Ttl' . $i . '" class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;"><thead class="ui-widget-header">' . nl; $output .= ' <tr><th colspan="3">' . TEXT_FIELD_LIST . '</th></tr>' . nl; $output .= ' <tr>' . nl; $output .= ' <th>' . PHREEFORM_TBLFNAME . '</th>' . nl; $output .= ' <th>' . TEXT_PROCESSING . '</th>' . nl; $output .= ' <th>' . TEXT_ACTION . '</th>' . nl; $output .= ' </tr>' . nl; $output .= ' </thead><tbody class="ui-widget-content">' . nl; for ($j = 0; $j < sizeof($properties->boxfield); $j++) { $output .= ' <tr>' . nl; $output .= ' <td>' . html_combo_box('box_fld_' . $i . '[]', $kFields, $properties->boxfield[$j]->fieldname, 'onclick="updateFieldList(this)"', '220px', '', 'box_fld_' . $i . $j) . '</td>' . nl; $output .= ' <td>' . html_pull_down_menu('box_proc_' . $i . '[]', $pFields, $properties->boxfield[$j]->processing) . '</td>' . nl; $output .= ' <td nowrap="nowrap" align="right">' . nl; $output .= html_icon('actions/view-fullscreen.png', TEXT_MOVE, 'small', 'style="cursor:move"', '', '', 'move_ttl_' . $i . '_' . $j) . chr(10); $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) $(this).parent().parent().remove();"'); $output .= ' </td>' . nl; $output .= ' </tr>' . nl; } $output .= '</tbody></table>' . nl; $output .= '</td>' . nl; $output .= '<td valign="bottom">' . html_icon('actions/list-add.png', TEXT_ADD, 'small', 'onclick="rowAction(\'box_Ttl\', \'add\', ' . $i . ')"'); $output .= '</td></tr></table>' . nl; $output .= box_build_attributes($properties, $i); $output .= '<script type="text/javascript">tableInit[tableCount] = \'box_Ttl' . $i . '\'; tableCount++;</script>' . nl; break; } return $output; }
<td><?php echo html_pull_down_menu('fy_year', $sel_fy_year, $_POST['fy_year'] ? $_POST['fy_year'] : date('Y')); ?> </td> </tr> <tr> <td align="right"><?php echo GEN_BACKUP_COMP_TYPE; ?> </td> <td> <?php echo html_radio_field('conv_type', 'zip', true, '', '') . GEN_COMP_ZIP . ' '; ?> <?php echo html_radio_field('conv_type', 'bz2', false, '', '') . GEN_COMP_BZ2; ?> </td> </tr> <tr> <td align="right"><?php echo html_button_field('backup', GEN_ADM_TOOLS_BTN_BACKUP, 'onclick="submitToDo(\'backup\', true)"'); ?> </td> <td><?php echo html_button_field('clean', GEN_ADM_TOOLS_BTN_CLEAN, 'onclick="if (confirm(\'' . GEN_ADM_TOOLS_BTN_CLEAN_CONFIRM . '\')) submitToDo(\'clean\')"'); ?> </td> </tr> </tbody> </table>
?> </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> <tr> <td colspan="2" align="center"><?php echo TEXT_TOP . ' ' . html_input_field('margintop', $report->page->margin->top, 'size="5" maxlength="3"') . ' ' . TEXT_MM; ?> </td> <td colspan="2" align="center"><?php echo TEXT_BOTTOM . ' ' . html_input_field('marginbottom', $report->page->margin->bottom, 'size="5" maxlength="3"') . ' ' . TEXT_MM; ?>
echo TEXT_AUDIT; ?> </legend> <table> <tr> <td align="right"> </td> <td align="right"><?php echo TEXT_ACTION_EFFECTIVE; ?> </td> <td> <?php echo TEXT_YES . ' ' . html_radio_field('capa_closed', 'y', !$cInfo->capa_closed || $cInfo->capa_closed == 'y' ? true : false); ?> <?php echo TEXT_NO . ' ' . html_radio_field('capa_closed', 'n', $cInfo->capa_closed == 'n' ? true : false); ?> </td> <td align="right"><?php echo TEXT_NEW_CAPA_NUMBER; ?> </td> <td><?php echo html_input_field('next_capa_num', $cInfo->next_capa_num, 'size="12" maxlength="10"'); ?> </td> </tr> <tr> <td align="right" valign="top"><?php echo TEXT_AUDIT_NOTES; ?>
</tr> <tr> <td width="80%"><?php echo DESC_AGREE; ?> </td> <td><?php echo html_radio_field('license', 'agree', false) . ' ' . TEXT_AGREE; ?> </td> </tr> <tr> <td width="80%"><?php echo DESC_DISAGREE; ?> </td> <td><?php echo html_radio_field('license', 'disagree', true) . ' ' . TEXT_DISAGREE; ?> </td> </tr> <tr> <td colspan="2" align="right"><?php echo html_button_field('submit_form', TEXT_CONTINUE, 'onclick="document.forms[0].submit()"'); ?> </td> </tr> </tbody> </table> </form>
</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>
?> </td> <td><?php echo html_input_field('short_name', $cInfo->short_name, 'size="21" maxlength="20"', true); ?> </td> <td align="right"><?php echo TEXT_INACTIVE; ?> </td> <td> <?php echo html_checkbox_field('inactive', '1', $cInfo->inactive) . ' '; echo constant('ACT_' . strtoupper($type) . '_ACCOUNT_NUMBER') . ' '; echo html_radio_field('account_number', 1, $cInfo->account_number == '1' ? true : false) . TEXT_YES . chr(10); echo html_radio_field('account_number', 2, $cInfo->account_number == '' || $cInfo->account_number == '2' ? true : false) . TEXT_NO . chr(10); ?> </td> </tr> <tr> <td align="right"><?php echo constant('ACT_' . strtoupper($type) . '_REP_ID'); ?> </td> <td> <?php $default_selection = $_REQUEST['action'] == 'new' ? AR_DEF_GL_SALES_ACCT : $cInfo->dept_rep_id; $selection_array = gen_get_rep_ids('c'); echo html_pull_down_menu('dept_rep_id', $selection_array, $default_selection); ?> </td>
<tr> <th colspan="2"><?php echo RW_RPT_IMAGESEL; ?> </th> </tr> <tr> <td><?php echo html_radio_field('ImgChoice', 'Upload') . RW_RPT_IMAGEUPLOAD; ?> </td> <td><input type="file" name="imagefile"></td> </tr> <tr> <td><?php echo html_radio_field('ImgChoice', 'Select', true) . RW_RPT_IMAGESTORED; ?> </td> <td><?php echo html_pull_down_menu('ImgFileName', ReadImages(), $Params['filename'], 'size="6"'); ?> </td> </tr> <tr> <th colspan="2"><?php echo RW_RPT_STARTPOS; ?> </th> </tr> <tr> <td width="50%" align="center">
// special case for reports listings not in Tools menu $checked = array(); if ($item['hide'] === true) { continue; // skip if menu only item } elseif (isset($settings[$item['security_id']])) { $checked[0] = false; $checked[$settings[$item['security_id']]] = true; } elseif ($error) { $checked[0] = false; $checked[$_POST['sID_' . $item['security_id']]] = true; } else { $checked[0] = true; // default to no access } echo '<tr valign="top" class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">'; echo '<td>' . $item['text'] . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $item['security_id'], '4', $checked[4]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $item['security_id'], '3', $checked[3]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $item['security_id'], '2', $checked[2]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $item['security_id'], '1', $checked[1]) . '</td>' . chr(10); echo '<td align="center">' . html_radio_field('sID_' . $item['security_id'], '0', $checked[0]) . '</td></tr>' . chr(10); } } } echo '</table></div>' . chr(10); } ?> </fieldset> </form>