public function build_form_html($action, $id = '') { $output = parent::build_form_html($action, $id = ''); $output .= '<table style="border-collapse:collapse;width:100%;">' . chr(10); $output .= ' <thead class="ui-widget-header"><tr><th>' . TEXT_OPTIONS . "</th></tr></thead>\n"; $output .= ' <tbody class="ui-widget-content"><tr><td>' . "\n"; $output .= html_checkbox_field('use_in_inventory_filter', true, $this->use_in_inventory_filter, '') . ' ' . TEXT_USE_IN_FILTER . "<br />\n"; $output .= ' </td></tr></tbody>' . "\n"; $output .= "</table>\n"; return $output; }
?> </td> <td><?php echo html_checkbox_field('jID_18', '1', false); ?> </td> <td><?php echo GEN_ADM_TOOLS_J18; ?> </td> </tr> <tr> <td colspan="2"> </td> <td colspan="2"> </td> <td><?php echo html_checkbox_field('jID_20', '1', false); ?> </td> <td><?php echo GEN_ADM_TOOLS_J20; ?> </td> <td colspan="2" align="right"><?php echo html_button_field('repost', GEN_ADM_TOOLS_BTN_REPOST, 'onclick="if (confirm(\'' . GEN_ADM_TOOLS_REPOST_CONFIRM . '\')) submitToDo(\'repost\')"'); ?> </td> </tr> </tbody> </table> </fieldset>
<td><?php echo ZENCART_TAX_CLASS; ?> </td> <td><?php echo html_input_field('zencart_tax_class', $tax_class ? $tax_class : '', 'size="40"'); ?> </td> </tr> <tr> <td><?php echo ZENCART_USE_PRICES; ?> </td> <td><?php echo html_checkbox_field('zencart_use_prices', '1', $use_prices ? true : false, '', 'onclick="togglePriceSheets()"'); ?> </td> </tr> <tr id="price_sheet_row"> <td><?php echo ZENCART_TEXT_PRICE_SHEET; ?> </td> <td><?php echo html_pull_down_menu('zencart_price_sheet', pull_down_price_sheet_list(), $price_sheet ? $price_sheet : '', ''); ?> </td> </tr> <tr> <td><?php
$extra_params = $query_result->fields['waiting'] == '1' ? 'readonly="readonly" ' : ''; echo '<tr' . ($extra_params ? ' class="ui-state-error"' : '') . '>' . chr(10); echo '<td align="center">' . chr(10); echo gen_locale_date($query_result->fields['post_date']) . chr(10); // Hidden fields echo html_hidden_field('id_' . $idx, $query_result->fields['id']) . chr(10); echo html_hidden_field('bill_acct_id_' . $idx, $query_result->fields['bill_acct_id']) . chr(10); echo html_hidden_field('amt_' . $idx, $amount_due) . chr(10); echo html_hidden_field('inv_' . $idx, $query_result->fields['purchase_invoice_id']) . chr(10); echo html_hidden_field('origdisc_' . $idx, $currencies->clean_value($discount)) . chr(10); echo html_hidden_field('discdate_' . $idx, $due_dates['early_date']) . chr(10); echo html_hidden_field('acct_' . $idx, $query_result->fields['gl_acct_id']) . chr(10); // End hidden fields echo '</td>' . chr(10); echo '<td>' . htmlspecialchars($query_result->fields['bill_primary_name']) . '</td>' . chr(10); echo '<td align="center">' . $query_result->fields['purchase_invoice_id'] . '</td>' . chr(10); echo '<td align="center" style="text-align:right">' . $currencies->format($amount_due) . '</td>' . chr(10); echo '<td align="center">' . html_input_field('desc_' . $idx, $query_result->fields['purch_order_id'], $extra_params . 'size="32"') . '</td>' . chr(10); echo '<td align="center">' . gen_locale_date($due_dates['net_date']) . '</td>' . chr(10); echo '<td align="center">' . html_input_field('dscnt_' . $idx, $discount, $extra_params . 'size="11" maxlength="20" onchange="updateDiscTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10); echo '<td align="center">' . html_input_field('total_' . $idx, '', $extra_params . 'size="11" maxlength="20" onchange="updateLineTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10); echo '<td align="center">' . html_checkbox_field('pay_' . $idx, '1', false, '', ($extra_params ? 'disabled="disabled" ' : '') . 'onclick="bbUpdatePayValues(' . $idx . ')"') . '</td>' . chr(10); echo '</tr>' . chr(10); $idx++; $query_result->MoveNext(); } ?> </tbody> </table> </div> </form>
} ?> <?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>'; } ?> </table></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <th colspan="2" align="center"><?php echo SHIPPING_TEXT_METHODS; ?> </th> </tr> <?php foreach ($module_list as $value) { echo ' <tr><td colspan="2" class="dataTableContent">'; echo html_checkbox_field('ship_method_' . $value['id'], '1', $action == 'back' ? '' : $value['checked']) . ' ' . $value['text']; echo '</td></tr>' . chr(10); } ?> </tr> </table>
</table> <table class="ui-widget" style="border-collapse:collapse;width:100%"> <thead class="ui-widget-header"> <tr><th colspan="4"><?php echo TEXT_PAYMENT_TERMS; ?> </th></tr> </thead> <tbody class="ui-widget-content"> <tr> <td><?php echo CD_03_11_DESC; ?> </td> <td><?php echo html_checkbox_field('ap_use_credit_limit', $inc_chart, $_POST['ap_use_credit_limit'] ? $_POST['ap_use_credit_limit'] : AP_USE_CREDIT_LIMIT, ''); ?> </td> <td><?php echo sprintf(CD_03_12_DESC, DEFAULT_CURRENCY); ?> </td> <td><?php echo html_input_field('ap_credit_limit_amount', $_POST['ap_credit_limit_amount'] ? $_POST['ap_credit_limit_amount'] : AP_CREDIT_LIMIT_AMOUNT, 'style="text-align:right"'); ?> </td> </tr> <tr> <td colspan="2"><?php echo CD_02_10_DESC; ?>
</td> <td class="main"> </td> <td class="main"> </td> <td class="main"> </td> <td class="main"> </td> </tr> <tr> <td class="main" align="right"><?php echo TEXT_EMPLOYEE_ROLES; ?> </td> <?php $col_count = 1; foreach ($employee_types as $key => $value) { $preset = $action == 'new' && $key == 'e' || strpos($cInfo->gl_type_account, $key) !== false ? '1' : '0'; echo '<td class="main">' . html_checkbox_field('gl_type_account[' . $key . ']', '1', $preset) . ' ' . $value . '</td>'; $col_count++; if ($col_count == 6) { echo '</tr><tr>' . chr(10); echo '<td class="main"> </td>'; $col_count = 1; } } ?> </tr> </table> </fieldset> <?php // *********************** Mailing/Main Address (only one allowed) ****************************** ?>
function BuildFieldList($FieldListings) { $CriteriaString = ''; $i = 0; foreach ($FieldListings as $FieldValues) { $CriteriaString .= '<tr><td>'; $CriteriaString .= html_hidden_field('id_' . $i, $FieldValues['id']); $CriteriaString .= html_hidden_field('seq_' . $i, $FieldValues['seqnum']); $CriteriaString .= $FieldValues['displaydesc'] . '</td>' . chr(10); // add the description $CriteriaString .= '<td align="center">' . html_checkbox_field('show_' . $i, '1', $FieldValues['visible'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10); $CriteriaString .= '<td align="center">' . html_checkbox_field('break_' . $i, '1', $FieldValues['columnbreak'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10); $CriteriaString .= '<td align="center">' . html_input_field('width_' . $i, $FieldValues['params']['columnwidth'] ? $FieldValues['params']['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3" onchange="calculateWidth()"') . '</td>' . chr(10); $CriteriaString .= '<td id="col_' . $i . '" align="center"> </td>' . chr(10); $CriteriaString .= '<td id="tot_' . $i . '" align="center"> </td>' . chr(10); $CriteriaString .= '<td align="center">'; $CriteriaString .= html_icon('actions/go-up.png', TEXT_UP, 'small', 'onclick="exchange(' . $i . ', \'up\')"'); $CriteriaString .= html_icon('actions/go-down.png', TEXT_DOWN, 'small', 'onclick="exchange(' . $i . ', \'down\')"'); $CriteriaString .= '</td></tr>' . chr(10); $i++; } return $CriteriaString; }
case 7: $req_date = date(DATE_FORMAT, time()); $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . ' ' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"')); $template_options['waiting'] = array('title' => ORD_WAITING_FOR_INVOICE, 'field' => html_checkbox_field('waiting', '1', $order->waiting ? true : false, '', '')); break; case 9: $req_date = date(DATE_FORMAT, time()); $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>'); $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . ' ' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"')); $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', '')); break; case 10: $req_date = date(DATE_FORMAT, time()); $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>'); $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . ' ' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"')); $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', '')); break; case 12: $req_date = date(DATE_FORMAT, time()); $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>'); $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . ' ' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"')); break; case 13: case 19: case 21: $req_date = date(DATE_FORMAT, time()); break; default: } $include_header = true; $include_footer = true;
</th> <th width="20%"><?php echo TEXT_ALL_DATA; ?> </th> </tr> <?php foreach ($loaded_modules as $mod) { // load modules and query for copy if ($mod == 'phreedom') { continue; } ?> <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>
<td align="center"><?php echo html_pull_down_menu('title1fontcolor', $kFontColors, $Prefs['title1fontcolor']); ?> </td> <td align="center"><?php echo html_pull_down_menu('title1fontalign', $kFontAlign, $Prefs['title1fontalign']); ?> </td> </tr> <tr> <td nowrap="nowrap" colspan="3"><?php echo RW_RPT_PGTITL2 . ' ' . html_input_field('title2desc', $Prefs['title2desc'], 'size="30" maxlength="50"'); ?> </td> <td align="center"><?php echo html_checkbox_field('title2show', '1', $Prefs['title2show'] == '1' ? true : false); ?> </td> <td align="center"><?php echo html_pull_down_menu('title2font', $kFonts, $Prefs['title2font']); ?> </td> <td align="center"><?php echo html_pull_down_menu('title2fontsize', $kFontSizes, $Prefs['title2fontsize']); ?> </td> <td align="center"><?php echo html_pull_down_menu('title2fontcolor', $kFontColors, $Prefs['title2fontcolor']); ?> </td> <td align="center"><?php
echo CP_ADD_REMOVE_BOXES; ?> </div> <table border="1" width="100%" cellspacing="0" cellpadding="1"> <tr> <th><?php echo TEXT_SHOW; ?> </th> <th><?php echo TEXT_TITLE; ?> </th> <th><?php echo TEXT_DESCRIPTION; ?> </th> </tr> <?php foreach ($the_list as $value) { if (!$value['security'] || $_SESSION['admin_security'][$value['security']] > 0) { // make sure user can view this control panel element echo '<tr><td align="center">'; $checked = in_array($value['module_id'], $my_profile) ? ' selected' : ''; echo html_checkbox_field($value['module_id'], '1', $checked, '', $parameters = ''); echo '</td><td>' . $value['title'] . '</td><td>' . $value['description'] . '</td></tr>'; } } ?> </table> </form>
?> </td> <td> <?php echo TEXT_SOURCE_LANGUAGE . ' ' . html_input_field('source_lang', 'en_us'); ?> </td> </tr> <tr><th colspan="2"><?php echo TEXT_OPTIONS; ?> </th></tr> <tr> <td> <?php echo html_checkbox_field('replace', '1', false); ?> <?php echo TRANSLATOR_NEW_OVERRIDE . ' '; ?> </td> <td><?php echo html_input_field('history_lang', DEFAULT_LANGUAGE); ?> </td> </tr> <tr> <td colspan="2" align="right"><?php echo html_button_field('new', TEXT_CREATE_NEW_TRANSLATION, 'onclick="submitToDo(\'create_new\')"'); ?> </td>
</td> <td width="15%" class="dataTableContent" align="right"><?php echo $detail['dep_amount'] ? $currencies->format($detail['dep_amount']) : ' '; ?> </td> <td width="15%" class="dataTableContent" align="right"><?php echo $detail['pmt_amount'] ? $currencies->format($detail['pmt_amount']) : ' '; ?> </td> <td width="30%" class="dataTableContent"><?php echo htmlspecialchars($detail['name']); ?> </td> <td width="7%" class="dataTableContent" align="center"> <?php echo html_checkbox_field('chk[' . $i . ']', '1', $detail['cleared'] == 1 ? true : false, '', 'onclick="updateDetail(' . $ref . ')"') . chr(10); ?> <?php echo html_hidden_field('id[' . $i . ']', $detail['id']) . chr(10); ?> <?php echo html_hidden_field('pmt_' . $i, $detail['payment']) . chr(10); ?> </td> <td id="<?php echo 'disp_' . $ref . '_' . $j; ?> " width="7%"><?php echo ' '; ?> </td>
} echo $toolbar->build_toolbar(); // Build the page ?> <div class="pageHeading"><?php echo ORD_CONVERT_TO_PO; ?> </div> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td class="main"> <?php echo ORD_DROP_SHIP; ?> </td> <td class="main"> <?php echo html_checkbox_field('drop_ship', '1', $drop_ship ? true : false); ?> </td> </tr> <tr> <td class="main"><?php echo ORD_TEXT_4_NUMBER; ?> </td> <td class="main"><?php echo html_input_field('po_num', $purchase_invoice_id, ''); ?> </td> </tr> </table> <?php
if (!isset($order->{$id_num})) { break; } // no more rows to build, exit loop $extra_params = $order->{$inv_num} ? '' : 'readonly="readonly" '; echo '<tr' . ($extra_params ? ' class="ui-state-error"' : '') . '>' . chr(10); echo '<td align="center">' . chr(10); echo html_input_field($inv_num, $order->{$inv_num}, 'readonly="readonly" size="15"') . chr(10); // Hidden fields echo html_hidden_field($id_num, $order->{$id_num}) . chr(10); echo html_hidden_field($prcnt_num, $order->{$prcnt_num}) . chr(10); echo html_hidden_field($early_num, $order->{$early_num}) . chr(10); echo html_hidden_field($acct_num, $order->{$acct_num}) . chr(10); // End hidden fields echo '</td>' . chr(10); echo '<td align="center">' . html_input_field($due_num, gen_locale_date($order->{$due_num}), 'readonly="readonly" size="15"') . '</td>' . chr(10); echo '<td align="center">' . html_input_field($amt_num, $currencies->format($currencies->clean_value($order->{$amt_num})), 'readonly="readonly" size="12" style="text-align:right"') . '</td>' . chr(10); echo '<td align="center">' . html_input_field($desc_num, $order->{$desc_num}, $extra_params . 'size="64" maxlength="64"') . '</td>' . chr(10); echo '<td align="center">' . html_input_field($dscnt_num, $currencies->format($currencies->clean_value($order->{$dscnt_num})), $extra_params . 'size="15" maxlength="20" onchange="updateRowTotal(' . $i . ')" style="text-align:right"') . '</td>' . chr(10); echo '<td align="center">' . html_input_field($total_num, $currencies->format($currencies->clean_value($order->{$total_num})), $extra_params . 'size="15" maxlength="20" onchange="updateUnitPrice(' . $i . ')" style="text-align:right"') . '</td>' . chr(10); echo '<td align="center">' . ($extra_params ? ' ' : html_checkbox_field($pay_num, '1', $order->{$pay_num} ? true : false, '', 'onclick="updatePayValues(' . $i . ')"')) . '</td>' . chr(10); echo '</tr>' . chr(10); $i++; } } ?> </tbody> </table> </div> </form>
<td class="main"><?php echo constant('ACT_' . strtoupper($type) . '_SHORT_NAME'); ?> </td> <td class="main"><?php echo html_input_field('short_name', $cInfo->short_name, 'size="21" maxlength="20"', true); ?> </td> <td class="main"> </td> <td class="main"> </td> <td class="main" align="right"><?php echo TEXT_INACTIVE; ?> </td> <td class="main"><?php echo html_checkbox_field('inactive', '1', $cInfo->inactive); ?> </td> </tr> <tr> <td align="right" class="main"><?php echo GEN_FIRST_NAME; ?> </td> <td class="main"><?php echo html_input_field('contact_first', $cInfo->contact_first, 'size="33" maxlength="32"', false); ?> </td> <td align="right" class="main"><?php echo GEN_MIDDLE_NAME; ?>
<?php echo html_checkbox_field('inactive', '1', $cInfo->inactive); ?> </td> <td rowspan="4" class="main" align="center"> <?php if ($cInfo->image_with_path) { // show image if it is defined echo html_image(DIR_WS_HTTPS_ADMIN . 'my_files/' . $_SESSION['company'] . '/assets/images/' . $cInfo->image_with_path, $cInfo->image_with_path, '', '100', 'style="cursor:pointer" onclick="ImgPopup(\'' . DIR_WS_HTTPS_ADMIN . 'my_files/' . $_SESSION['company'] . '/assets/images/' . $cInfo->image_with_path . '\')" LANGUAGE="javascript"'); } else { echo ' '; } ?> </td> <td class="main"><?php echo ASSETS_ENTRY_SELECT_IMAGE . ' (' . TEXT_REMOVE . ' ' . html_checkbox_field('remove_image', '1', $cInfo->remove_image) . ')'; ?> </td> </tr> <tr> <td class="main"><?php echo ASSETS_ENTRY_ASSETS_DESC_SHORT; ?> </td> <td class="main"><?php echo html_input_field('description_short', $cInfo->description_short, 'size="33" maxlength="32"', false); ?> </td> <td class="main"><?php echo html_file_field('asset_image'); ?>
<th><?php echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small'); ?> </th> <th><?php echo TEXT_FILENAME; ?> </th> <th><?php echo TEXT_ACTION; ?> </th> </tr> <?php if (sizeof($cInfo->attachments) > 0) { foreach ($cInfo->attachments as $key => $value) { echo '<tr>'; echo ' <td>' . html_checkbox_field('rm_attach_' . $key, '1', false) . '</td>' . chr(10); echo ' <td>' . $value . '</td>' . chr(10); echo ' <td>' . html_button_field('dn_attach_' . $key, TEXT_DOWNLOAD, 'onclick="submitSeq(' . $key . ', \'download\', true)"') . '</td>'; echo '</tr>' . chr(10); } } else { echo '<tr><td colspan="3">' . TEXT_NO_DOCUMENTS . '</td></tr>'; } ?> </tbody> </table> </fieldset> </div> </div>
<tr> <td class="main"><?php echo INV_ENTRY_INVENTORY_COST_METHOD; ?> </td> <td class="main"> <?php foreach ($cost_methods as $key => $value) { $cost_pulldown_array[] = array('id' => $key, 'text' => $value); } ?> <?php echo html_pull_down_menu('cost_method', $cost_pulldown_array, $cInfo->cost_method, is_null($cInfo->last_journal_date) ? '' : 'disabled="disabled"'); ?> <?php echo ' ' . INV_ENTRY_INVENTORY_SERIALIZE . ' ' . html_checkbox_field('serialize', '1', $cInfo->serialize, '', 'disabled="disabled"'); ?> </td> <td class="main" align="right"> </td> <td class="main"> </td> </tr> <tr> <td class="main"><?php echo TEXT_DEFAULT_PRICE_SHEET; ?> </td> <td class="main"><?php echo html_pull_down_menu('price_sheet', get_price_sheet_data(), $cInfo->price_sheet); ?> </td> <td class="main" align="right"><?php
<tr> <td><?php echo TEXT_SELECT_FILE_TO_ATTACH . ' ' . html_file_field('file_name'); ?> </td> <td align="right"> <?php echo $account_type == 'v' ? ORD_PURCHASE_TAX . ' ' : ORD_SALES_TAX . ' '; echo ' ' . html_input_field('sales_tax', $currencies->format($order->sales_tax ? $order->sales_tax : '0.00', true, $order->currencies_code, $order->currencies_value), 'readonly="readonly" size="15" maxlength="20" onchange="updateTotalPrices()" style="text-align:right"'); ?> </td> </tr> <tr> <td><div id="show_attach" style="display:none"> <?php echo html_checkbox_field('rm_attach', '1', $order->del_attach ? true : false, '', '') . ' ' . TEXT_DELETE_ATTACHMENT; ?> <?php echo html_button_field('dn_attach', TEXT_DOWNLOAD_ATTACHMENT, 'onclick="downloadAttachment()"'); ?> </div> </td> <td align="right"> <?php echo ORD_INVOICE_TOTAL . ' '; echo html_input_field('total', $currencies->format($order->total_amount, true, $order->currencies_code, $order->currencies_value), 'readonly="readonly" size="15" maxlength="20" style="text-align:right"'); ?> </td> </tr> </tbody> </table>
$fieldset_content .= html_icon('actions/go-down.png', TEXT_PROPERTIES, $size = 'small', '', '16', '16'); $fieldset_content .= ' </a></div>' . chr(10); $fieldset_content .= ' <div id="up_arrow" style="float:right;display:none"><a href="#" onclick ="return boxHide(\'doc_security\');">'; $fieldset_content .= html_icon('actions/go-up.png', TEXT_CANCEL, $size = 'small', '', '16', '16'); $fieldset_content .= ' </a></div>' . $desc . '</td>' . chr(10); $fieldset_content .= ' </tr></tbody></table>' . chr(10); $fieldset_content .= '<div id="doc_security" style="display:none">' . chr(10); // security table $fieldset_content .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . chr(10); $fieldset_content .= ' <thead class="ui-widget-header">' . chr(10); $fieldset_content .= ' <tr><th>' . TEXT_USERS . '</th><th>' . TEXT_GROUPS . '</th></tr>' . chr(10); $fieldset_content .= ' </thead>' . chr(10); $fieldset_content .= ' <tbody class="ui-widget-content">' . chr(10); $fieldset_content .= ' <tr>' . chr(10); $fieldset_content .= ' <td align="center">' . html_checkbox_field('user_all', '1', in_array('0', $security['u'], true) ? true : false) . ' ' . TEXT_ALL_USERS . '</td>' . chr(10); $fieldset_content .= ' <td align="center">' . html_checkbox_field('group_all', '1', in_array('0', $security['g'], true) ? true : false) . ' ' . TEXT_ALL_GROUPS . '</td>' . chr(10); $fieldset_content .= ' </tr>' . chr(10); $fieldset_content .= ' <tr>' . chr(10); $fieldset_content .= ' <td width="50%" align="center">' . html_pull_down_menu('users[]', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $security['u'], 'multiple="multiple" size="20"') . '</td>' . chr(10); $fieldset_content .= ' <td width="50%" align="center">' . html_pull_down_menu('groups[]', gen_get_pull_down(TABLE_DEPARTMENTS, true, '1'), $security['g'], 'multiple="multiple" size="20"') . '</td>' . chr(10); $fieldset_content .= ' </tr>' . chr(10); $fieldset_content .= ' </tbody>' . chr(10); $fieldset_content .= '</table>' . chr(10); $fieldset_content .= '</div>' . chr(10); } else { $fieldset_content .= ' </tbody></table>' . chr(10); } $fieldset_content .= '</td>' . chr(10); // column 2 $fieldset_content .= '<td width="50%" valign="top">' . chr(10); $fieldset_content .= ' <table class="ui-widget" style="border-collapse:collapse;width:100%">' . chr(10);
function build_form_html($action, $id) { global $db; $sql = "select * from " . $this->db_table . " where currencies_id = '" . $id . "'"; $result = $db->Execute($sql); if ($action == 'new') { $cInfo = ''; } else { $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_CURRENCY : SETUP_INFO_HEADING_EDIT_CURRENCY) . '</th>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td colspan="2">' . ($action == 'new' ? SETUP_CURR_INSERT_INTRO : SETUP_CURR_EDIT_INTRO) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_TITLE . '</td>' . chr(10); $output .= ' <td>' . html_input_field('title', $cInfo->title) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_CODE . '</td>' . chr(10); $output .= ' <td>' . html_input_field('code', $cInfo->code) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_SYMBOL_LEFT . '</td>' . chr(10); $output .= ' <td>' . html_input_field('symbol_left', htmlspecialchars($cInfo->symbol_left)) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_SYMBOL_RIGHT . '</td>' . chr(10); $output .= ' <td>' . html_input_field('symbol_right', htmlspecialchars($cInfo->symbol_right)) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_DECIMAL_POINT . '</td>' . chr(10); $output .= ' <td>' . html_input_field('decimal_point', $cInfo->decimal_point) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_THOUSANDS_POINT . '</td>' . chr(10); $output .= ' <td>' . html_input_field('thousands_point', $cInfo->thousands_point) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_DECIMAL_PLACES . '</td>' . chr(10); $output .= ' <td>' . html_input_field('decimal_places', $cInfo->decimal_places) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_DECIMAL_PRECISE . '</td>' . chr(10); $output .= ' <td>' . html_input_field('decimal_precise', $cInfo->decimal_precise) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td>' . SETUP_INFO_CURRENCY_VALUE . '</td>' . chr(10); $output .= ' <td>' . html_input_field('value', $cInfo->value) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); if (DEFAULT_CURRENCY != $cInfo->code) { $output .= ' <tr class="dataTableRow">' . chr(10); $output .= ' <td colspan="2">' . html_checkbox_field('default') . ' ' . SETUP_INFO_SET_AS_DEFAULT . '</td>' . chr(10); $output .= ' </tr>' . chr(10); } $output .= '</table>' . chr(10); return $output; }
</tr> <tr> <td class="dataTableContent" colspan="2"> <?php echo html_checkbox_field('cod', '1', $sInfo->cod); echo SHIPPING_COD_AMOUNT; echo html_input_field('total_amount', $sInfo->total_amount, 'size="6" style="text-align:right"') . ' '; echo html_pull_down_menu('cod_currency', $currency_array, $sInfo->cod_currency) . ' '; echo html_pull_down_menu('cod_payment_type', gen_build_pull_down($shipping_defaults['cod_funds_code']), $sInfo->cod_payment_type); ?> </td> </tr> <tr> <td class="dataTableContent" colspan="2"> <?php echo html_checkbox_field('return_service', '1', $sInfo->return_service); echo SHIPPING_TEXT_RETURN_SERVICES; echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $sInfo->return_service_value); ?> </td> </tr> </table> </fieldset> </div> <div> <fieldset> <legend><?php echo SRV_SHIP_FEDEX_LTL_FREIGHT; ?> </legend> <table border="0" cellspacing="0" cellpadding="2">
<?php if ($Type != 'frm') { echo '<td>' . $FieldDetails['fieldname'] . '</td>'; } ?> <td><?php echo $FieldDetails['displaydesc']; ?> </td> <?php if ($Type != 'frm') { echo '<td align="center">' . html_checkbox_field('brk_' . $FieldDetails['seqnum'], '1', $FieldDetails['columnbreak'] == '1' ? true : false, '', 'disabled="disabled"') . '</td>'; echo '<td id="width_' . ($FieldDetails['seqnum'] - 1) . '" align="center">' . ($Params['columnwidth'] ? $Params['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH) . '</td>'; echo '<td id="total_' . ($FieldDetails['seqnum'] - 1) . '" align="center"> </td>'; } echo '<td align="center">' . html_checkbox_field('vis_' . $FieldDetails['seqnum'], '1', $FieldDetails['visible'] == '1' ? true : false, '', 'disabled="disabled"') . '</td>'; if ($Type != 'frm') { echo '<td>' . $FormProcessing[$Params['processing']] . ' </td>'; } ?> <td><?php echo $Type == 'frm' ? $FormEntries[$Params['index']] : $TotalLevels[$Params['index']]; ?> </td> <?php if ($Type != 'frm') { echo '<td>' . $FontAlign[$Params['align']] . ' </td>'; } ?> <td nowrap="nowrap"> <?php
<div id="tab_chart_of_accounts"> <?php echo $chart_of_accounts_toolbar->build_toolbar(); ?> <h1><?php echo $chart_of_accounts->title; ?> </h1> <div align="center"> <?php echo GL_SELECT_STD_CHART . html_pull_down_menu('std_chart', $sel_chart); ?> <?php echo GL_CHART_IMPORT_DESC . html_file_field('file_name') . '<br />'; ?> <?php echo html_checkbox_field('delete_chart', '1', false) . GL_CHART_REPLACE; ?> <?php echo html_button_field('import', TEXT_IMPORT, 'onclick="submitToDo(\'import\')"'); ?> <?php echo '<br />' . GL_CHART_DELETE_WARNING; ?> </div> <div id="chart_of_accounts_content"><?php echo $chart_of_accounts->build_main_html(); ?> </div> </div>
<td><?php echo GEN_RESTRICT_STORE . ' ' . html_checkbox_field('restrict_store', '1', $error && $_POST['restrict_store'] || $uInfo->restrict_store ? true : false); ?> </td> <td><?php echo GEN_DEF_AR_ACCT . ' ' . html_pull_down_menu('def_ar_acct', gen_coa_pull_down(), $error ? $_POST['def_ar_acct'] : $uInfo->def_ar_acct, ''); ?> </td> <td><?php echo ' '; ?> </td> </tr> <tr> <td><?php echo GEN_RESTRICT_PERIOD . ' ' . html_checkbox_field('restrict_period', '1', $error && $_POST['restrict_period'] || $uInfo->restrict_period ? true : false); ?> </td> <td><?php echo GEN_DEF_AP_ACCT . ' ' . html_pull_down_menu('def_ap_acct', gen_coa_pull_down(), $error ? $_POST['def_ap_acct'] : $uInfo->def_ap_acct, ''); ?> </td> <td><?php echo ' '; ?> </td> </tr> </table> </fieldset> <fieldset>
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; }
function build_form_html($action, $id = '') { global $db, $project_cost_types; if ($action != 'new' && $this->error == false) { $sql = "select description_short, description_long, cost_type, inactive \n\t from " . $this->db_table . " where cost_id = '" . $this->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_INFO_HEADING_NEW_PROJECT_COSTS : SETUP_INFO_HEADING_EDIT_PROJECT_COSTS) . '</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_PROJECT_COSTS_INSERT_INTRO : HR_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="17" maxlength="16"') . '</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="50" maxlength="64"') . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . 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), $this->cost_type) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' <tr>' . chr(10); $output .= ' <td>' . TEXT_INACTIVE . '</td>' . chr(10); $output .= ' <td>' . html_checkbox_field('inactive', '1', $this->inactive ? true : false) . '</td>' . chr(10); $output .= ' </tr>' . chr(10); $output .= ' </tbody>' . "\n"; $output .= '</table>' . chr(10); return $output; }
function pre_install($odd, $my_profile) { if (!$this->valid_user) { return false; } $output = '<tr class="' . ($odd ? 'odd' : 'even') . '"><td align="center">'; $checked = in_array($this->dashboard_id, $my_profile) ? ' selected' : ''; $output .= html_checkbox_field($this->dashboard_id, '1', $checked, '', $parameters = ''); $output .= ' </td><td>' . $this->title . '</td><td>' . $this->description . '</td></tr>'; return $output; }