} if (ACCOUNT_GENDER == TRUE_STRING_S) { $module_smarty->assign('ACCOUNT_GENDER', TRUE_STRING_S); $male = $affiliate['affiliate_gender'] == 'm' ? true : false; $female = $affiliate['affiliate_gender'] == 'f' ? true : false; if ($is_read_only == true) { $gender_content = $affiliate['affiliate_gender'] == 'm' ? MALE : FEMALE; } elseif ($error == true) { if ($entry_gender_error == true) { $gender_content = olc_draw_radio_field('a_gender', 'm', $male) . ' ' . MALE . ' ' . olc_draw_radio_field('a_gender', 'f', $female) . ' ' . FEMALE . HTML_NBSP . ENTRY_GENDER_ERROR; } else { $gender_content = $a_gender == 'm' ? MALE : FEMALE; $gender_content .= olc_draw_hidden_field('a_gender'); } } else { $gender_content = olc_draw_radio_field('a_gender', 'm', $male) . ' ' . MALE . ' ' . olc_draw_radio_field('a_gender', 'f', $female) . ' ' . FEMALE . HTML_NBSP . ENTRY_GENDER_TEXT; } $module_smarty->assign('gender_content', $gender_content); } if ($is_read_only == true) { $firstname_content = $affiliate['affiliate_firstname']; } elseif ($error == true) { if ($entry_firstname_error == true) { $firstname_content = olc_draw_input_field('a_firstname') . HTML_NBSP . ENTRY_FIRST_NAME_ERROR; } else { $firstname_content = $a_firstname . olc_draw_hidden_field('a_firstname'); } } else { $firstname_content = olc_draw_input_field('a_firstname', $affiliate['affiliate_firstname']) . HTML_NBSP . ENTRY_FIRST_NAME_TEXT; } $module_smarty->assign('firstname_content', $firstname_content);
<tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"><b><?php echo ENTRY_RATING; ?> </b> <?php echo TEXT_BAD; ?> <?php for ($i = 1; $i <= 5; $i++) { echo olc_draw_radio_field('reviews_rating', $i, '', $rInfo->reviews_rating) . HTML_NBSP; } echo TEXT_GOOD; ?> </td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td align="right" class="main"><?php echo olc_draw_hidden_field('reviews_id', $rInfo->reviews_id) . olc_draw_hidden_field('products_id', $rInfo->products_id) . olc_draw_hidden_field('customers_name', $rInfo->customers_name) . olc_draw_hidden_field('products_name', $rInfo->products_name) . olc_draw_hidden_field('products_image', $rInfo->products_image) . olc_draw_hidden_field('date_added', $rInfo->date_added) . olc_image_submit('button_preview.gif', IMAGE_PREVIEW) . BLANK . HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $_GET['rID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END; ?>
<td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> '; $address_book_id = $addresses['address_book_id']; if ($address_book_id == $checkout_id) { $id = ' id="defaultSelected"'; $selected = 'Selected'; } else { $id = EMPTY_STRING; $selected = EMPTY_STRING; } $address_content .= ' <tr' . $id . ' class="moduleRow' . $selected . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="javascript:selectRowEffect(this, ' . $radio_buttons . ')"> <td width="10"> </td> <td class="main">' . olc_draw_radio_field('address', $address_book_id, $address_book_id == $checkout_id) . ' <b>' . trim($addresses['firstname'] . BLANK . $addresses['lastname']) . '</b> </td> </tr> <tr> <td width="10"> </td> <td> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10"> </td> <td class="main">' . olc_address_format($format_id, $addresses, true, BLANK, ', ') . '</td> </tr> </table> </td> </tr> </table>
onclick="javascript:' . $ShowHideBankTransferFields . ';selectRowEffect(this, ' . $radio_buttons . ')" >' . NEW_LINE; if ($current_selection_id == $payment || $n == 1) { $payment_block .= ' <tr id="defaultSelected" class="moduleRowSelected"' . $payment_block_text; } else { $payment_block .= ' <tr class="moduleRow"' . $payment_block_text; } if ($OptionBoxRight) { $payment_block .= ' <td class="main" colspan="3" valign="top"><b>' . $this_selection['module'] . '</b></td> '; } $payment_block .= ' <td class="main" align="left" width="3%"> '; if ($have_multiple_payments) { $payment_block .= olc_draw_radio_field('payment', $current_selection_id, $is_session_payment, 'onclick="javascript:' . $ShowHideBankTransferFields . QUOTE); } else { $payment_block .= olc_draw_hidden_field('payment', $current_selection_id); } $payment_block .= ' </td> '; if (!$OptionBoxRight) { $payment_block .= ' <td class="main" colspan="3" align="left"><b>' . $this_selection['module'] . '</b></td> '; } $payment_block .= ' </tr> <tr> <td class="main" colspan="3"> </td>
if ($products_name) { $products_name = QUOTE . $products_name . QUOTE; } //define('AJAX_TITLE',sprintf($text, $products_name, olc_output_generated_category_path($current_category_id))); define('AJAX_TITLE', sprintf($text, $products_name)); echo ' <span class="pageHeading"> ' . AJAX_TITLE; ?> </span><br/><br/> <table width="100%" border="0"> <tr> <td class="main" width="50%" valign="top"> <?php $products_status = 'products_status'; echo TEXT_PRODUCTS_STATUS . HTML_NBSP . olc_draw_radio_field($products_status, ONE_STRING, $status) . HTML_NBSP . TEXT_PRODUCT_AVAILABLE . HTML_NBSP . olc_draw_radio_field($products_status, ZERO_STRING, $out_status) . HTML_NBSP . TEXT_PRODUCT_NOT_AVAILABLE; ?> <br/> <table width="100%" border="0"> <tr> <td class="main" width="127"> <?php $spiffy_date_field_caption = TEXT_PRODUCTS_DATE_AVAILABLE; $spiffy_date = $pInfo->products_date_available; $spiffy_control_name = "dateAvailable"; $spiffy_form_name = $form_name; $spiffy_date_field_name = 'products_date_available'; include DIR_FS_INC . 'olc_create_spiffy_control.inc.php'; /* if (true or IS_AJAX_PROCESSING) {
unset($_SESSION['box_relations']); include DIR_FS_INC . 'olc_get_box_configuration'; } } unset($_SESSION['ajax']); if (USE_AJAX) { echo "restart"; } else { olc_redirect(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DEFAULT); } olc_exit(); } else { require DIR_FS_INC . 'olc_draw_radio_field.inc.php'; require DIR_WS_INCLUDES . 'header.php'; $content_body = EMPTY_STRING; $templates_entry0 = olc_draw_radio_field($templates_dir, HASH, true) . ' <b><font size="3">#</font></b>'; $templates_image_file = 'templates/#/images/#.gif'; $templates_image = " " . olc_image($templates_image_file, "Shop-Design '#'", EMPTY_STRING, EMPTY_STRING, 'align="middle"'); $templates_count = 0; $illegal_templates = CURRENT_TEMPLATE . 'CVS.common.powertemplates'; $dh = opendir($templates_dir); while ($this_template = readdir($dh)) { if (is_dir($templates_dir . SLASH . $this_template)) { $first_char = substr($this_template, 0, 1); if ($first_char != DOT) { if ($first_char != UNDERSCORE) { if (strpos($illegal_templates, $this_template) === false) { $templates_entry = str_replace(HASH, $this_template, $templates_entry0); if ($templates_count != 0) { $templates_entry = str_replace(' CHECKED', EMPTY_STRING, $templates_entry); }
$contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENT_CATEGORIES . '<br/><b>' . $categories_contained . HTML_B_END); if (QUICKLINK_ACTIVATED == TRUE_STRING_S) { $contents[] = array('text' => '<hr noshade="noshade"/>'); $contents[] = array('text' => HTML_B_START . TEXT_MULTICOPY . '</b><br/>' . TEXT_MULTICOPY_DESC); $cat_tree = olc_get_category_tree(); $tree = EMPTY_STRING; for ($i = 0; $n = sizeof($cat_tree), $i < $n; $i++) { $cat_tree_text = $cat_tree[$i]['text']; //$tree .='<input type="checkbox" name="cat_ids[]" value="'.$cat_tree[$i]['id'].'"><font size="1">' $tree .= olc_draw_checkbox_field('cat_ids[]', $cat_tree[$i]['id'], !(strpos($categories_contained, str_replace(HTML_NBSP, EMPTY_STRING, $cat_tree_text)) === false)) . $cat_tree_text . '</font><br/>'; } $contents[] = array('text' => $tree . '<br/><hr noshade="noshade"/>'); $contents[] = array('text' => HTML_B_START . TEXT_SINGLECOPY . '</b><br/>' . TEXT_SINGLECOPY_DESC); } $contents[] = array('text' => HTML_BR . TEXT_CATEGORIES . HTML_BR . olc_draw_pull_down_menu('categories_id', olc_get_category_tree(), $current_category_id)); $contents[] = array('text' => HTML_BR . TEXT_HOW_TO_COPY . HTML_BR . olc_draw_radio_field('copy_as', 'link', true) . HTML_NBSP . TEXT_COPY_AS_LINK . HTML_BR . olc_draw_radio_field('copy_as', 'duplicate') . HTML_NBSP . TEXT_COPY_AS_DUPLICATE); $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_copy.gif', IMAGE_COPY) . BLANK . HTML_A_START . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; default: if ($rows > 0) { if (is_object($cInfo)) { // category info box contents $heading[] = array('text' => HTML_B_START . $cInfo->categories_name . HTML_B_END); $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . olc_image_button('button_move.gif', IMAGE_MOVE) . HTML_A_END); $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . HTML_NBSP . olc_date_short($cInfo->date_added)); if (olc_not_null($cInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . HTML_NBSP . olc_date_short($cInfo->last_modified)); } $contents[] = array('text' => HTML_BR . olc_info_image_c($cInfo->categories_image, $cInfo->categories_name) . HTML_BR . $cInfo->categories_image); $contents[] = array('text' => HTML_BR . TEXT_SUBCATEGORIES . HTML_NBSP . $cInfo->childs_count . HTML_BR . TEXT_PRODUCTS . HTML_NBSP . $cInfo->products_count);
$activate = $check_mail['mail_status'] == '1'; } else { $activate = true; } $remove = !$activate; } } } else { $info_message = ENTRY_EMAIL_ADDRESS_CHECK_ERROR; } $breadcrumb->add(NAVBAR_TITLE_NEWSLETTER, olc_href_link(FILENAME_NEWSLETTER, EMPTY_STRING)); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('info_message', $info_message); if ($force) { $smarty->assign('FORCE', true); $button_send = HTML_A_START . olc_href_link(FILENAME_DEFAULT) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END; } else { $smarty->assign('text_newsletter', TEXT_NEWSLETTER); $smarty->assign('FORM_ACTION', olc_draw_form('sign', olc_href_link(FILENAME_NEWSLETTER, 'action=process'))); $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $email, 'size="30"')); $smarty->assign('INPUT_CODE', olc_draw_input_field('code')); $smarty->assign('CHECK_INP', olc_draw_radio_field('check', 'inp', $activate)); $smarty->assign('CHECK_DEL', olc_draw_radio_field('check', 'del', $remove)); $smarty->assign('VVIMG', '<img src="' . olc_href_link(FILENAME_DISPLAY_VVCODES) . '" alt="Sicherheitscode" />'); $button_send = olc_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); } $smarty->assign('BUTTON_SEND', $button_send); $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'newsletter' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
?> </td> </tr> //W. Kaiser - AJAX <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER == TRUE_STRING_S) { ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?> </td> <td class="main"><?php echo olc_draw_radio_field('affiliate_gender', 'm', false, $aInfo->affiliate_gender) . ' ' . MALE . ' ' . olc_draw_radio_field('affiliate_gender', 'f', false, $aInfo->affiliate_gender) . ' ' . FEMALE; ?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?> </td> <td class="main"><?php echo olc_draw_input_field('affiliate_firstname', $aInfo->affiliate_firstname, 'maxlength="32"', true); ?> </td>
$get_params_back = substr($get_params_back, 0, -1); //remove trailing & } else { $get_params_back = $get_params; } $breadcrumb->add(NAVBAR_TITLE_REVIEWS_WRITE, olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params)); $customer_info_query = olc_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS); $customer_info = olc_db_fetch_array($customer_info_query); require DIR_WS_INCLUDES . 'header.php'; if ($valid_product == false) { $smarty->assign('error', ERROR_INVALID_PRODUCT); } else { $product_info = olc_db_fetch_array($product_query); $name = $customer_info['customers_firstname'] . BLANK . $customer_info['customers_lastname']; if ($name == BLANK) { $customer_info['customers_lastname'] = TEXT_GUEST; } $smarty->assign('PRODUCTS_NAME', $product_info['products_name']); $smarty->assign('AUTHOR', $customer_info['customers_firstname'] . BLANK . $customer_info['customers_lastname']); $smarty->assign('INPUT_TEXT', olc_draw_textarea_field('review', 'soft', 60, 15, EMPTY_STRING, 'style="font-size:12px;"')); $smarty->assign('INPUT_RATING', olc_draw_radio_field($rating_text, '1') . BLANK . olc_draw_radio_field($rating_text, '2') . BLANK . olc_draw_radio_field($rating_text, '3') . BLANK . olc_draw_radio_field($rating_text, '4') . BLANK . olc_draw_radio_field($rating_text, '5', true)); //W. Kaiser - AJAX $smarty->assign('FORM_ACTION', olc_draw_form('product_reviews_write', olc_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'action=process&products_id=' . $_GET['products_id']), 'post', 'onsubmit="return checkForm(\'product_reviews_write\');"')); $smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params_back) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); //W. Kaiser - AJAX $smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE) . olc_draw_hidden_field('get_params', $get_params)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'product_reviews_write' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
function display_radio_field($smarty_name, $field_desc, $field_desc_size, $field_name, $field_conditions_array, $field_descriptions_array, $field_value, $error, $entry_error, $entry_error_desc, $add_html = EMPTY_STRING) { field_init($field_name, $field_desc, $field_desc_size, $field_backcolor, $error, $entry_error, $entry_error_desc); global $have_entry_error, $error_text, $display_text, $IsUserMode; if ($IsUserMode) { global $smarty; } $IsSelected = false; $radio_buttons = sizeof($field_conditions_array) - 1; for ($radio_button = 0; $radio_button <= $radio_buttons; $radio_button++) { $field_condition = $field_conditions_array[$radio_button]; if (!$entry_error) { $IsSelected = $field_value == $field_condition; } $radio_field = olc_draw_radio_field($field_name, $field_condition, $IsSelected, $field_value); if ($IsUserMode) { if ($have_entry_error) { if ($radio_button == $radio_buttons) { $radio_field .= $error_text; } } $smarty->assign($smarty_name[$radio_button], $radio_field); } else { $display_text .= $radio_field . HTML_NBSP . $field_descriptions_array[$radio_button] . DOUBLE_SPACE; } } field_output($field_name, 'dummmy_radio', EMPTY_STRING); }
</table></td> <?php $heading = array(); $contents = array(); switch ($_GET['action']) { case 'backup': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_BACKUP . HTML_B_END); $contents = array('form' => olc_draw_form('backup', FILENAME_BACKUP, 'action=backupnow')); $contents[] = array('text' => TEXT_INFO_NEW_BACKUP); if ($messageStack->size > 0) { $contents[] = array('text' => HTML_BR . olc_draw_radio_field('compress', 'no', true) . BLANK . TEXT_INFO_USE_NO_COMPRESSION); $contents[] = array('text' => HTML_BR . olc_draw_radio_field('download', 'yes', true) . BLANK . TEXT_INFO_DOWNLOAD_ONLY . '*<br/><br/>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } else { $contents[] = array('text' => HTML_BR . olc_draw_radio_field('compress', 'gzip', true) . BLANK . TEXT_INFO_USE_GZIP); $contents[] = array('text' => olc_draw_radio_field('compress', 'zip') . BLANK . TEXT_INFO_USE_ZIP); $contents[] = array('text' => olc_draw_radio_field('compress', 'no') . BLANK . TEXT_INFO_USE_NO_COMPRESSION); $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('download', 'yes') . BLANK . TEXT_INFO_DOWNLOAD_ONLY . '*<br/><br/>*' . TEXT_INFO_BEST_THROUGH_HTTPS); } $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . olc_href_link(FILENAME_BACKUP) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'restore': $heading[] = array('text' => HTML_B_START . $buInfo->date . HTML_B_END); $contents[] = array('text' => olc_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, BLANK)); $contents[] = array('align' => 'center', 'text' => '<br/><a href="' . olc_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . olc_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . olc_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); break; case 'restorelocal': $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_RESTORE_LOCAL . HTML_B_END); $contents = array('form' => olc_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' => HTML_BR . olc_draw_file_field('sql_file')); $contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
$mystarttime = date('d.m.Y', time() + 24 * 60 * 60); } define('SPIFFY_DATE', $mystarttime); define('SPIFFY_FORM_NAME', $form_name); define('SPIFFY_DATE_FIELD_NAME', $starttime_text); define('SPIFFY_CONTROL_NAME', 'date' . SPIFFY_DATE_FIELD_NAME); $content_cal = 'include("' . DIR_FS_INC . 'olc_create_spiffy_control.inc.php");'; if ($ebay_express_only) { $content_aut = olc_draw_hidden_field($auction_type_text, $ebay_express_type); $desc_aut = EMPTY_STRING; } else { $content_aut = olc_draw_pull_down_menu($auction_type_text, $types, $auction_type); $desc_aut = AUCTIONS_TEXT_AUCTION_TYPE; $content_auto_sub = olc_draw_checkbox_field($auto_resubmit_text, ONE_STRING, $auto_resubmit == ONE_STRING) . AUCTIONS_TEXT_AUCTION_AUTO_SUBMIT_EXPLAIN; } $content_exp_dur = olc_draw_radio_field($express_duration_text, ZERO_STRING, $express_duration == ZERO_STRING) . AUCTIONS_TEXT_AUCTION_EXPRESS_DURATION_30 . HTML_NBSP . HTML_NBSP . olc_draw_radio_field($express_duration_text, ONE_STRING, $express_duration == ONE_STRING) . AUCTIONS_TEXT_AUCTION_EXPRESS_DURATION_PERMANENT; $content_ti = olc_draw_input_field($title_text, $product_title, $size_100); $content_sti = olc_draw_input_field($subtitle_text, $product_subtitle, $size_100); $field0 = olc_draw_input_field("cat~", ATSIGN, $size_100) . HTML_NBSP . HTML_A_START . '#" onclick="javascript:loadcategories(~)">' . AUCTIONS_TEXT_SUBMIT_SELECT . HTML_A_END; $content_cat1 = str_replace(TILDE, ONE_STRING, $field0); $content_cat1 = str_replace(ATSIGN, $cat1, $content_cat1); $content_cat2 = str_replace(TILDE, TWO_STRING, $field0); $content_cat2 = str_replace(ATSIGN, $cat2, $content_cat2); $content_rebuild = olc_draw_checkbox_field($rebuild_text, ONE_STRING, $rebuild == ONE_STRING) . AUCTIONS_TEXT_AUCTION_DESCRIPTION_FORCE_REBUILD_EXPLAIN; if ($ebay_express_only) { $content_sub = AUCTIONS_TEXT_AUCTION_EXPRESS . olc_draw_hidden_field($auction_text, ONE_STRING); } else { $content_sub = olc_draw_checkbox_field($auction_text, ONE_STRING, $auction) . HTML_NBSP . AUCTIONS_TEXT_AUCTION_AUCTION; $content_sub .= HTML_NBSP . HTML_NBSP; $content_sub .= olc_draw_checkbox_field($express_text, ONE_STRING, $express) . HTML_NBSP . AUCTIONS_TEXT_AUCTION_EXPRESS; //Prepare durations array
function display() { $customers_statuses_array = olc_get_customers_statuses(); // build Currency Select $curr = ''; $currencies = olc_db_query("SELECT code FROM " . TABLE_CURRENCIES); while ($currencies_data = olc_db_fetch_array($currencies)) { $curr .= olc_draw_radio_field('currencies', $currencies_data['code'], true) . $currencies_data['code'] . HTML_BR; } return array('text' => EXPORT_STATUS_TYPE . HTML_BR . EXPORT_STATUS . HTML_BR . olc_draw_pull_down_menu('status', $customers_statuses_array, '1') . HTML_BR . CURRENCY . HTML_BR . CURRENCY_DESC . HTML_BR . $curr . EXPORT_TYPE . HTML_BR . EXPORT . HTML_BR . olc_draw_radio_field('export', 'no', false) . EXPORT_NO . HTML_BR . olc_draw_radio_field('export', 'yes', true) . EXPORT_YES . HTML_BR . HTML_BR . olc_image_submit('button_export.gif', IMAGE_UPDATE) . HTML_A_START . olc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=kelkoo') . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END); }
<tr class="moduleRow' . $id . ' onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="javascript:selectRowEffect(this, ' . $radio_buttons . ')">' . NEW_LINE; if ($OptionBoxRight) { $shipping_block .= ' <td class="main" width="75%">' . $current_quotes_methods['title'] . '</td>'; } else { $shipping_block .= ' <td class="main" align="left" width="10">' . olc_draw_radio_field('shipping', $current_id, $checked) . ' </td>'; } if (!CUSTOMER_SHOW_PRICE_TAX) { $current_quotes['tax'] = 0; } $cost = olc_format_price(olc_add_tax($current_quotes_methods['cost'], $current_quotes['tax']), $price_special = 1, $calculate_currencies = true); if ($n > 1 || $n2 > 1) { $radio = olc_draw_radio_field('shipping', $current_id, $checked); if ($OptionBoxRight) { $shipping_block .= ' <td class="main">' . $cost . '</td> <td class="main" align="right">' . $radio . '</td>'; } else { $shipping_block .= ' <td class="main" width="75%" align="left">' . $current_quotes_methods['title'] . '</td> <td class="main">' . $cost . '</td>'; } } else { $shipping_block .= ' <td class="main" align="right" colspan="2">' . $cost . $radio . '</td>'; } $shipping_block .= ' </tr>
} } $show_saved_cart = true; $module_content_save = $module_content; include_once DIR_WS_MODULES . 'order_details_cart.php'; $module_content = $module_content_save; $show_saved_cart = false; } } else { $parameters = 'basket_id=' . $basket_id; $cart_content = EMPTY_STRING; } $link = olc_href_link(CURRENT_SCRIPT, $parameters); $date = $basket['basket_date_added']; $date = substr($date, 6, 2) . DOT . substr($date, 4, 2) . DOT . substr($date, 0, 4); $module_content[] = array('show_order_details' => $show_order_details, 'BOX_SELECT' => olc_draw_radio_field('cart_select[]', $basket_id, $selected), 'NAME' => $basket['basket_name'], 'DATE' => $date, 'BOX_DELETE' => olc_draw_checkbox_field('cart_delete[]', $basket_id), 'LINK' => $link); } } else { $error_message = olc_get_smarty_config_variable($smarty, 'shopping_cart', 'text_no_saved_cart'); } $cart_restore_text = 'cart_restore'; if ($error_message) { $module_smarty->assign('ERROR_MESSAGE', $error_message); } else { $module_smarty->assign(MODULE_CONTENT, $module_content); if ($bid) { $MODULE_order_details_text = 'MODULE_order_details'; $module_smarty->assign($MODULE_order_details_text, $smarty->_tpl_vars[$MODULE_order_details_text]); $smarty->assign($MODULE_order_details_text, EMPTY_STRING); } }
//$module_smarty=new Smarty; olc_smarty_init($module_smarty, $cacheid); if (!isset($process)) { $process = false; } // include needed functions include_once DIR_FS_INC . 'olc_get_zone_name.inc.php'; include_once DIR_FS_INC . 'olc_get_country_list.inc.php'; include_once DIR_FS_INC . 'olc_get_countries.inc.php'; include_once DIR_FS_INC . 'olc_draw_checkbox_field.inc.php'; if (ACCOUNT_GENDER == TRUE_STRING_S) { $male = $entry['entry_gender'] == 'm' ? true : false; $female = $entry['entry_gender'] == 'f' ? true : false; $module_smarty->assign('gender', '1'); $module_smarty->assign('INPUT_MALE', olc_draw_radio_field('gender', 'm', $male)); $module_smarty->assign('INPUT_FEMALE', olc_draw_radio_field('gender', 'f', $female) . (olc_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>' : '')); } $module_smarty->assign('INPUT_FIRSTNAME', olc_draw_input_field('firstname', $entry['entry_firstname']) . HTML_NBSP . (olc_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>' : '')); $module_smarty->assign('INPUT_LASTNAME', olc_draw_input_field('lastname', $entry['entry_lastname']) . HTML_NBSP . (olc_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>' : '')); if (ACCOUNT_COMPANY == TRUE_STRING_S) { $module_smarty->assign('company', '1'); $module_smarty->assign('INPUT_COMPANY', olc_draw_input_field('company', $entry['entry_company']) . HTML_NBSP . (olc_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>' : '')); } $module_smarty->assign('INPUT_STREET', olc_draw_input_field('street_address', $entry['entry_street_address']) . HTML_NBSP . (olc_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>' : '')); if (ACCOUNT_SUBURB == TRUE_STRING_S) { $module_smarty->assign('suburb', '1'); $module_smarty->assign('INPUT_SUBURB', olc_draw_input_field('suburb', $entry['entry_suburb']) . HTML_NBSP . (olc_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>' : '')); } $module_smarty->assign('INPUT_CODE', olc_draw_input_field('postcode', $entry['entry_postcode']) . HTML_NBSP . (olc_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>' : '')); $module_smarty->assign('INPUT_CITY', olc_draw_input_field('city', $entry['entry_city']) . HTML_NBSP . (olc_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>' : '')); if (ACCOUNT_STATE == TRUE_STRING_S) {