function _draw_stocked_attributes() { global $languages_id; $out = ''; $attributes = $this->_build_attributes_array(true, false); if (sizeof($attributes) > 0) { $combinations = array(); $selected_combination = 0; $this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination); $combname = ''; foreach ($attributes as $attrib) { $combname .= ', ' . $attrib['oname']; } $combname = substr($combname, 2) . ':'; foreach ($combinations as $combindex => $comb) { $out .= "<tr>\n"; $out .= ' <td align="right" class=main><b>' . $combname . "</b></td>\n <td class=main>"; $out .= tep_draw_radio_field('attrcomb', $combinations[$combindex]['id'], $combindex == $selected_combination) . $comb['text']; $out .= "</td>\n"; $out .= "</tr>\n"; $combname = ''; } } $out .= $this->_draw_out_of_stock_message_js($attributes); return $out; }
function radio_option() { $string = ''; $select_array = func_get_args(); $key_value = array_shift($select_array); for ($i = 0, $j = count($select_array); $i < $j; $i++) { $checked = $key_value == $select_array[$i] ? true : false; $string .= '<div>' . tep_draw_radio_field('configuration_value', $select_array[$i], $checked); $string .= $select_array[$i] . '</div>'; } return $string; }
function selection() { $selection = array('id' => $this->code, 'module' => $this->title, 'description' => $this->description); $selection['fields'] = array(); if (tep_not_null(MODULE_PAYMENT_CHEQUE_ACCOUNT_TYPE)) { $selection['fields'][] = array('title' => MODULE_PAYMENT_CHEQUE_ACCOUNT_TYPE, 'field' => tep_draw_radio_field('check_account_type', 'Checking', true) . MODULE_PAYMENT_CHEQUE_ACCOUNT_TYPE_CHECKING . '<br />' . "\n" . tep_draw_radio_field('check_account_type', 'Savings') . MODULE_PAYMENT_CHEQUE_ACCOUNT_TYPE_SAVINGS); } $selection['fields'][] = array('title' => MODULE_PAYMENT_CHEQUE_BANK_NAME, 'field' => tep_draw_input_field('check_bank_name')); $selection['fields'][] = array('title' => MODULE_PAYMENT_CHEQUE_ROUTING_NUMBER, 'field' => tep_draw_input_field('check_routing_number') . ' ' . MODULE_PAYMENT_CHEQUE_ROUTING_NUMBER_TEXT); $selection['fields'][] = array('title' => MODULE_PAYMENT_CHEQUE_ACCOUNT_NUMBER, 'field' => tep_draw_input_field('check_account_number') . ' ' . MODULE_PAYMENT_CHEQUE_ACCOUNT_NUMBER_TEXT); return $selection; }
function get($fID) { $result = array('data' => $this->get_field_info($fID), 'options' => $this->get_options($fID)); $options_array = $result['options']; foreach ($options_array as $option => $options_data) { $values_array = $this->get_values($option); $html_type = 0; if (isset($this->flat_array[$options_data['form_types_id']])) { $html_type = $this->flat_array[$options_data['form_types_id']]; } $drop_down_array = array(); foreach ($values_array as $key => $value) { switch ($html_type) { case 'CHECK-BOX': $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => tep_draw_checkbox_field('checkbox[' . $value['form_values_id'] . ']', 'on') . '<sep>' . $value['form_values_name']); break; case 'DROP_DOWN': $drop_down_array[] = array('id' => $value['form_values_id'], 'text' => $value['form_values_name']); break; case 'INPUT-LINE': $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => $value['form_values_name'] . '<sep>' . tep_draw_input_field('input[' . $value['form_values_id'] . ']')); break; case 'RADIO': $selection = false; if ($value['form_values_name'] == $value['form_values_default']) { $selection = true; } $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => tep_draw_radio_field('radio[' . $option['form_options_id'] . ']', $value['form_values_name'], $selection) . '<sep>' . $value['form_values_name']); break; case 'TEXT-AREA': $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => ''); break; default: if (empty($result['options'][$option]['values'][$key])) { $result['options'][$option]['values'][$key] = array('name' => $value['form_values_name'], 'default' => $value['form_values_default'], 'html' => $value['form_values_name'] . '<sep>' . $value['form_values_default']); } break; } } if ($html_type == 'DROP_DOWN') { $result['options'][$option]['values'][$key] = array('name' => $option['form_options_name'], 'default' => '', 'html' => $option['form_options_name'] . '<sep>' . tep_draw_pull_down_menu('dropdown[' . $option['form_options_id'] . ']', $drop_down_array)); } } return $result; }
</table></td> </tr> <tr> <td> <?php echo tep_draw_form('coupon', 'coupon_admin.php', 'action=update&oldaction=' . ($_GET['oldaction'] == 'voucheredit' ? $_GET['oldaction'] : $_GET['action']) . '&cid=' . $_GET['cid']); ?> <table border="0" width="100%" cellspacing="0" cellpadding="6"> <tr> <td align="left" class="main"><?php echo COUPON_STATUS; ?> </td> <td align="left"><?php echo tep_draw_radio_field('coupon_status', 'Y', $in_status) . ' ' . IMAGE_ICON_STATUS_GREEN . ' ' . tep_draw_radio_field('coupon_status', 'N', $out_status) . ' ' . IMAGE_ICON_STATUS_RED; ?> </td> <td align="left" class="main"><?php echo COUPON_STATUS_HELP; ?> </td> </tr> <?php $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $language_id = $languages[$i]['id']; ?> <tr> <td align="left" class="main"><?php
<td><table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo tep_draw_textarea_field('review', 'soft', 60, 15); ?> </td> </tr> <tr> <td class="smallText" align="right"><?php echo TEXT_NO_HTML; ?> </td> </tr> <tr> <td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?> </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
if (ACCOUNT_GENDER == 'true') { if (isset($gender)) { $male = $gender == 'm' ? true : false; $female = $gender == 'f' ? true : false; } else { $male = false; $female = false; } ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <td class="main"><?php echo tep_draw_radio_field('gender', 'm', $male) . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>' : ''); ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>' : ''); ?> </td>
Released under the GNU General Public License */ if (!isset($process)) { $process = false; } if (ACCOUNT_GENDER == 'true') { if (isset($gender)) { $male = $gender == 'm' ? true : false; } else { $male = $entry['entry_gender'] == 'm' ? true : false; } $female = !$male; $xoopsTpl->assign("gender", 1); $xoopsTpl->assign("male", tep_draw_radio_field('gender', 'm', $male)); $xoopsTpl->assign("female", tep_draw_radio_field('gender', 'f', $female)); if (tep_not_null(ENTRY_GENDER_TEXT)) { $xoopsTpl->assign("gender_entry", '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>'); } } $xoopsTpl->assign("firstname", tep_draw_input_field('firstname', $entry['entry_firstname'])); $xoopsTpl->assign("lastname", tep_draw_input_field('lastname', $entry['entry_lastname'])); $xoopsTpl->assign("seperator", tep_draw_separator('pixel_trans.gif', '100%', '10')); if (tep_not_null(ENTRY_FIRST_NAME_TEXT)) { $xoopsTpl->assign("firstname_entry", '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>'); } if (tep_not_null(ENTRY_LAST_NAME_TEXT)) { $xoopsTpl->assign("lastname_entry", '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>'); } if (ACCOUNT_COMPANY == 'true') { $xoopsTpl->assign("company", 1);
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="moduleRow"> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" colspan="2"><b><?php echo tep_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?> </b></td> <td class="main" align="right"><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], $addresses['address_book_id'] == $checked); ?> <span style="color:red">Select</span></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php
break; case 'move_product': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>'); $contents = array('form' => tep_draw_form('products', FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath) . tep_draw_hidden_field('products_id', $pInfo->products_id)); $contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name)); $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</b>'); $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br>' . tep_draw_pull_down_menu('move_to_category_id', tep_get_category_tree(), $current_category_id)); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'copy_to': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>'); $contents = array('form' => tep_draw_form('copy_to', FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath) . tep_draw_hidden_field('products_id', $pInfo->products_id)); $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</b>'); $contents[] = array('text' => '<br>' . TEXT_CATEGORIES . '<br>' . tep_draw_pull_down_menu('categories_id', tep_get_category_tree(), $current_category_id)); $contents[] = array('text' => '<br>' . TEXT_HOW_TO_COPY . '<br>' . tep_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br>' . tep_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_copy.gif', IMAGE_COPY) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if ($rows > 0) { if (isset($cInfo) && is_object($cInfo)) { // category info box contents $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . tep_image_button('button_move.gif', IMAGE_MOVE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added)); if (tep_not_null($cInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified)); } $contents[] = array('text' => '<br>' . tep_info_image($cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . $cInfo->categories_image); $contents[] = array('text' => '<br>' . TEXT_SUBCATEGORIES . ' ' . $cInfo->childs_count . '<br>' . TEXT_PRODUCTS . ' ' . $cInfo->products_count); } elseif (isset($pInfo) && is_object($pInfo)) {
echo TEXT_MANUFACTURERS_FEATURED_DATE; ?> </td> <td class="main"><?php echo '<small>(YYYY-MM-DD)</small><br>' . tep_draw_input_field('manufacturers_featured_until', isset($mInfo->manufacturers_featured_until) ? $mInfo->manufacturers_featured_until : '', 'id="manufacturers"'); ?> </td> </tr> <tr> <td class="main"><br><?php echo TEXT_MANUFACTURER_FEATURED; echo ' <span title="' . MANUFACTURER_FEATURED_HELP . '|' . MANUFACTURER_FEATURED_HELP_TEXT . '">' . tep_image(DIR_WS_ICONS . 'help.png', ''); ?> </span></td> <td class="main"><br><?php echo tep_draw_radio_field('manufacturer_featured', '1', $in_fm_status) . ' ' . TEXT_MANUFACTURER_YES . ' ' . tep_draw_radio_field('manufacturer_featured', '0', $out_fm_status) . ' ' . TEXT_MANUFACTURER_NO; ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_MANUFACTURER_FEATURED_DATE; ?> </td> <td class="main"><?php echo '<small>(YYYY-MM-DD)</small><br>' . tep_draw_input_field('manufacturer_featured_until', isset($mInfo->manufacturer_featured_until) ? $mInfo->manufacturer_featured_until : '', 'id="manufacturer"'); ?> </td> </tr> </table> </td>
echo TEXT_ENTER_PAYMENT_INFORMATION . '<br /><br />' . "\n"; } $js_string = ''; $radio_buttons = 0; for ($i = 0, $n = sizeof($selection); $i < $n; $i++) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php if ($selection[$i]['id'] == $payment || $n == 1) { echo ' <tr id="defaultSelected" class="moduleRowSelected">' . "\n"; } else { echo ' <tr class="moduleRow">' . "\n"; } ?> <td valign="top"><?php echo tep_draw_radio_field('payment', $selection[$i]['id'], $i == 0, 'id="rb' . $i . '"' . (tep_not_null($selection[$i]['error']) ? ' disabled="disabled"' : ' onclick="showSelectionFields(\'' . $selection[$i]['id'] . '\');"')); ?> </td> <td valign="top" width="100%"><?php echo '<label for="rb' . $i . '"><strong>' . $selection[$i]['module'] . '</strong></label><br />' . (tep_not_null($selection[$i]['error']) ? '<span class="errorText">' . $selection[$i]['error'] . '</span>' : nl2br(trim($selection[$i]['description']))); if (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { $js_string .= (tep_not_null($js_string) ? ',' : '') . '"' . $selection[$i]['id'] . '"'; ?> <table border="0" cellspacing="0" cellpadding="0" id="payment_<?php echo $selection[$i]['id']; ?> " style="display: <?php echo $selection[$i]['id'] == $payment || $i == 0 && !isset($payment) ? 'block' : 'none'; ?> ;"> <?php
</p> <?php } $radio_buttons = 0; ?> <ul class="formatted-list"> <?php for ($i = 0, $n = sizeof($selection); $i < $n; $i++) { ?> <li class="moduleRow paymentRow<?php echo $selection[$i]['id'] == $paymentMethod ? ' moduleRowSelected' : ''; ?> "> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $paymentMethod); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> <span class="method-name"><?php echo $selection[$i]['module']; ?> </span> <?php if (isset($selection[$i]['error'])) { echo $selection[$i]['error']; } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields']) && $selection[$i]['id'] == $paymentMethod) { for ($j = 0, $n2 = sizeof($selection[$i]['fields']); $j < $n2; $j++) { echo $selection[$i]['fields'][$j]['title']; echo $selection[$i]['fields'][$j]['field'];
<td><?php echo tep_draw_pull_down_menu('banners_group_manufacturers_id', $manufacturers_pull_down, $banners_group_section == 'manufacturers' ? $banners_group_id : '', ' onChange="if (Number(this.value)) $(\'group_section_manufacturers\').checked=true"'); ?> </tr> <tr> <td><?php echo tep_draw_radio_field('banners_group_section', 'info', 0, $banners_group_section, ' id="group_section_info"'); ?> Info Page:</td> <td><?php echo tep_draw_pull_down_menu('banners_group_info_id', $info_pull_down, $banners_group_section == 'info' ? $banners_group_id : '', ' onChange="if (Number(this.value)) $(\'group_section_info\').checked=true"'); ?> </tr> <tr> <td><?php echo tep_draw_radio_field('banners_group_section', 'other', 0, $banners_group_section, ' id="group_section_other"'); ?> Other:</td> <td><?php echo tep_draw_input_field('banners_group_other', $banners_group_section == 'other' ? $banner['banners_group'] : '', ' onChange="if (this.value!=\'\') $(\'group_section_other\').checked=true"'); ?> </tr> </table> <!--?php echo tep_draw_pull_down_menu('banners_group', $groups_array, $bInfo->banners_group) . TEXT_BANNERS_NEW_GROUP . '<br>' . tep_draw_input_field('new_banners_group', '', '', ((sizeof($groups_array) > 0) ? false : true)); ?--> </td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
if (ACCOUNT_GENDER == 'true' && !tep_session_is_registered('customer_id')) { $gender = $billingAddress['entry_gender']; if (isset($gender)) { $male = $gender == 'm' ? true : false; $female = $gender == 'f' ? true : false; } else { $male = false; $female = false; } ?> <tr> <td colspan="2"><?php echo Translate('Geslacht'); ?> <?php echo tep_draw_radio_field('billing_gender', 'm', $male) . ' ' . Translate('man') . ' ' . tep_draw_radio_field('billing_gender', 'f', $female) . ' ' . Translate('vrouw'); ?> </td> </tr> <?php } if (ACCOUNT_COMPANY == 'true') { ?> <tr> <td> <?php if (!tep_session_is_registered('customer_id')) { ?> <label class="formLabel" for="billing_company"><?php echo Translate('Bedrijf'); ?>
</tr> <tr> <td class="main"><?php echo tep_draw_textarea_field('review', 60, 8); ?> </td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr valign="top"> <td class="main"><?php echo TEXT_RATING; ?> <span id="stars-cap"></span><div id="stars-wrapper1"><?php echo tep_draw_radio_field('rating', '1', '', 'title="' . TEXT_POOR . '"') . ' ' . tep_draw_radio_field('rating', '2', '', 'title="' . TEXT_FAIR . '"') . ' ' . tep_draw_radio_field('rating', '3', '', 'title="' . TEXT_AVERAGE . '"') . ' ' . tep_draw_radio_field('rating', '4', '', 'title="' . TEXT_GOOD . '"') . ' ' . tep_draw_radio_field('rating', '5', '', 'title="' . TEXT_EXCELLENT . '"'); ?> </div></td> <td class="smallText" align="right"><?php echo TEXT_NO_HTML; ?> </td> </tr> </table> </td> </tr> <!-- reCAPTCHA - start --> <?php if (RECAPTCHA_ON == 'true' && RECAPTCHA_PRODUCT_REVIEWS_WRITE == 'true') {
<?php if (ACCOUNT_GENDER == 'true') { if (isset($gender)) { $male = $gender == 'm' ? true : false; } else { $male = $account['customers_gender'] == 'm' ? true : false; } $female = !$male; ?> <div class="form-group"> <label><?php echo (tep_not_null(ENTRY_GENDER_TEXT) ? '<sup class="inputRequirement">' . ENTRY_GENDER_TEXT . '</sup>' : '') . ENTRY_GENDER; ?> </label> <?php echo tep_draw_radio_field('gender', 'm', $male) . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE; ?> </div> <?php } ?> <div class="form-group"> <label><?php echo (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<sup class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</sup>' : '') . ENTRY_FIRST_NAME; ?> </label> <?php echo tep_draw_input_field('firstname', $account['customers_firstname']); ?> </div> <div class="form-group">
<td><?php echo 'Enable ' . tep_draw_radio_field('sort_config', 'on', false); ?> </td> <td><b><?php echo TEXT_INFO_OPTIMIZE_SORT; ?> </b></td> </tr> <tr> <td> <?php echo 'No Changes ' . tep_draw_radio_field('sort_duplicates', '0', true); ?> </td> <td><?php echo 'Enable ' . tep_draw_radio_field('sort_duplicates', 'on', false); ?> </td> <td><b><?php echo TEXT_INFO_OPTIMIZE_DUPLICATES; ?> </b></td> </tr> </table></td> <td><?php echo tep_image_submit('button_submit.gif', 'Process Global Options'); ?> </td> </tr> </table></form></div> <?php
switch ($action) { case 'backup': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>'); $contents = array('form' => tep_draw_form('backup', FILENAME_BACKUP, 'action=backupnow')); $contents[] = array('text' => TEXT_INFO_NEW_BACKUP); $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION); if (file_exists(LOCAL_EXE_GZIP)) { $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP); } if (file_exists(LOCAL_EXE_ZIP)) { $contents[] = array('text' => tep_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP); } if ($dir_ok == true) { $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } else { $contents[] = array('text' => '<br>' . tep_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'restore': $heading[] = array('text' => '<b>' . $buInfo->date . '</b>'); $contents[] = array('text' => tep_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' ')); $contents[] = array('align' => 'center', 'text' => '<br><a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'restorelocal': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>'); $contents = array('form' => tep_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS); $contents[] = array('text' => '<br>' . tep_draw_file_field('sql_file')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_restore.gif', IMAGE_RESTORE) . ' <a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
$female = !$male; ?> <div class="form-group has-feedback"> <label class="control-label col-sm-3"><?php echo ENTRY_GENDER; ?> </label> <div class="col-sm-9"> <label class="radio-inline"> <?php echo tep_draw_radio_field('gender', 'm', $male, 'required aria-required="true" aria-describedby="atGender"') . ' ' . MALE; ?> </label> <label class="radio-inline"> <?php echo tep_draw_radio_field('gender', 'f', $female) . ' ' . FEMALE; ?> </label> <?php echo FORM_REQUIRED_INPUT; ?> <?php if (tep_not_null(ENTRY_GENDER_TEXT)) { echo '<span id="atGender" class="help-block">' . ENTRY_GENDER_TEXT . '</span>'; } ?> </div> </div> <?php } ?>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="formAreaTitle"><?php echo STATUS_INFORMATION; ?> </td> <td class="main"> <?php if ($edit[visible] == 1) { echo tep_draw_radio_field('visible', '1', "checked") . ' ' . INFORMATION_ACTIVE . ' ' . tep_draw_radio_field('visible', '0') . ' ' . INFORMATION_DEACTIVE; } else { echo tep_draw_radio_field('visible', '1') . ' ' . INFORMATION_ACTIVE . ' ' . tep_draw_radio_field('visible', '0', "checked") . ' ' . INFORMATION_DEACTIVE; } ?> </td> </tr> <tr> <td colspan="2" style="height:10px;"><b></b></td> </tr> <tr> <td class="formAreaTitle">Sort Order:<?php //php echo QUEUE_INFORMATION; ?> </td> <td class="formAreaTitle"> <?php
echo tep_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?> </div> </div> --> <fieldset> <legend><?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?> </legend> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <?php $radio_buttons = 0; $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id, entry_telephone as telephone from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int) $customer_id . "' and entry_country_id in (select countries_id from " . TABLE_COUNTRIES . ")"); while ($addresses = tep_db_fetch_array($addresses_query)) { $format_id = tep_get_address_format_id($addresses['country_id']); echo ' <tr valign="top">' . "\n" . ' <td>' . tep_draw_radio_field('address', $addresses['address_book_id'], $addresses['address_book_id'] == $sendto, 'style="margin-bottom: -2px;"') . tep_address_format($format_id, $addresses, true, ' ', ', ') . '</td>' . "\n" . ' </tr>'; $radio_buttons++; } ?> </table> </fieldset> <div class="buttons"> <div style="text-align: right;"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?> </div> </div> <?php } } if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
$contents[] = array('text' => '<br>' . TEXT_CEF_CG_HIDE . '<br>' . tep_draw_input_field('fields_cef_cg_hide', $fInfo->fields_cef_cg_hide)); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $_GET['fID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_FIELD . '</b>'); $contents = array('form' => tep_draw_form('fields', FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=save', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_EDIT_INTRO); $field_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $field_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('fields_name[' . $languages[$i]['id'] . ']', tep_get_customers_extra_fields_name($fInfo->fields_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br>' . TEXT_FIELD_NAME . $field_inputs_string); $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_TYPE . '<br>' . tep_draw_radio_field('fields_input_type', 0, $fInfo->fields_input_type == 0 ? true : false) . TEXT_INPUT_FIELD . '<br>' . tep_draw_radio_field('fields_input_type', 1, $fInfo->fields_input_type == 1 ? true : false) . TEXT_TEXTAREA_FIELD . '<br>' . tep_draw_radio_field('fields_input_type', 2, $fInfo->fields_input_type == 2 ? true : false) . TEXT_RADIO_FIELD . '<br>' . tep_draw_radio_field('fields_input_type', 3, $fInfo->fields_input_type == 3 ? true : false) . TEXT_CHECK_FIELD . '<br>' . tep_draw_radio_field('fields_input_type', 4, $fInfo->fields_input_type == 4 ? true : false) . TEXT_DOWN_FIELD); $contents[] = array('text' => '<br>' . TEXT_FIELD_INPUT_VALUE . '<br>' . tep_draw_textarea_field('fields_input_value', 30, 8, $fInfo->fields_input_value)); $contents[] = array('text' => '<br>' . TEXT_FIELD_REQUIRED_STATUS . '<br>' . tep_draw_radio_field('fields_required_status', 0, $fInfo->fields_required_status == 0 ? true : false) . 'false<br>' . tep_draw_radio_field('fields_required_status', 1, $fInfo->fields_required_status == 1 ? true : false) . 'true'); $contents[] = array('text' => TEXT_FIELD_SIZE . '<br>' . tep_draw_input_field('fields_size', $fInfo->fields_size)); $contents[] = array('text' => '<br>' . TEXT_CEF_CG_HIDE . '<br>' . tep_draw_input_field('fields_cef_cg_hide', $fInfo->fields_cef_cg_hide)); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_FIELD . '</b>'); $contents = array('form' => tep_draw_form('manufacturers', FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $fInfo->fields_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($fInfo) && is_object($fInfo)) { $heading[] = array('text' => '<b>' . $fInfo->fields_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_EXTRA_FIELDS, 'page=' . $_GET['page'] . '&fID=' . $fInfo->fields_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
</td> <?php if ($n > 1 || $n2 > 1) { ?> <td align="right"> <?php if (isset($quotes[$i]['error'])) { // nothing echo ' '; } else { echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0)); ?> <?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'required aria-required="true"'); } ?> </td> <?php } else { ?> <td align="right"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0)) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?> </td> <?php }
<tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <td class="main"> <?php if ($error == true) { if ($entry_gender_error == true) { echo tep_draw_radio_field('customers_gender', 'm', false, $cInfo->customers_gender) . ' ' . MALE . ' ' . tep_draw_radio_field('customers_gender', 'f', false, $cInfo->customers_gender) . ' ' . FEMALE . ' ' . ENTRY_GENDER_ERROR; } else { echo $cInfo->customers_gender == 'm' ? MALE : FEMALE; echo tep_draw_hidden_field('customers_gender'); } } else { echo tep_draw_radio_field('customers_gender', 'm', false, $cInfo->customers_gender) . ' ' . MALE . ' ' . tep_draw_radio_field('customers_gender', 'f', false, $cInfo->customers_gender) . ' ' . FEMALE; } ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"> <?php if ($error == true) {
} } else { echo tep_draw_input_field('customers_name', $bInfo->customers_name, 'size="30" maxlength="150"', true); } ?> </td> </tr> <tr> <td class="main" width="250"><?php echo ENTRY_STATUS; ?> </td> <td class="main"><?php reset($boards_statuses); while (list($status_id, $status_name) = each($boards_statuses)) { echo tep_draw_radio_field('boards_status', (string) $status_id, false, (string) $bInfo->boards_status) . ' ' . $status_name . '<br>'; } ?> </td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td colspan="2" class="formAreaTitle"><?php echo CATEGORY_PRODUCT; ?> </td>
if ($addresses['address_book_id'] == $sendto) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td class="main" colspan="2"><b><?php echo tep_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?> </b></td> <td class="main" align="right"><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], $addresses['address_book_id'] == $sendto); ?> </td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> </tr> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?> </td> <td colspan="3"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php
echo '<td>' . tep_draw_checkbox_field($e['field'] . '[]', $value['id'], false, 'id="' . $value['id'] . '"') . '</td><td>' . tep_get_extra_field_list_value($value['id'], false, $e['display_type']) . '<td><td> </td>'; } echo '</tr></table>'; } else { // single select field $epf_values = array_merge(array(array('id' => '', 'text' => TEXT_ANY_VALUE)), $epf_values); if ($e['use_checkbox']) { $col = 0; echo '<table><tr>'; foreach ($epf_values as $value) { $col++; if ($col > $e['columns']) { echo '</tr><tr>'; $col = 1; } echo '<td>' . tep_draw_radio_field($e['field'], $value['id'], $value['id'] == '', 'id="' . $e['field'] . '_' . $value['id'] . '"') . '</td><td>' . ($value['id'] == '' ? TEXT_ANY_VALUE : tep_get_extra_field_list_value($value['id'], false, $e['display_type'])) . '<td><td> </td>'; } echo '</tr></table>'; } else { echo tep_draw_pull_down_menu($e['field'], $epf_values); } } } else { // text field echo tep_draw_input_field($e['field'], '', 'style="width: 300px"'); } ?> </td> </tr> <tr> <td colspan="2"><?php
<tr> <td colspan="3"> </td> </tr> <?php if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td > </td> <td width="15%" align="center"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id']); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> <td width="10%" > </td> <td width="75%" ><b><?php echo $selection[$i]['module']; ?></b></td> </tr> <tr> <td colspan="3"> </td> <td > <table border="0" width="100%" cellspacing="0" cellpadding="2">
<table class="table table-striped table-condensed table-hover"> <tbody> <?php $radio_buttons = 0; for ($i = 0, $n = sizeof($selection); $i < $n; $i++) { ?> <tr class="table-selection"> <td><strong><?php echo $selection[$i]['module']; ?> </strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $payment, 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td colspan="2"><?php echo $selection[$i]['error'];