$error = false; if (isset($_GET['action']) && $_GET['action'] == 'send') { if (olc_validate_email(trim($_POST['email']))) { olc_php_mail($_POST['email'], $_POST['name'], AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', $_POST['email'], $_POST['name'], '', '', EMAIL_SUBJECT, $_POST['enquiry'], $_POST['enquiry']); if (!isset($mail_error)) { olc_redirect(olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=success')); } else { echo $mail_error; } } else { $error = true; } } $breadcrumb->add(NAVBAR_TITLE, olc_href_link(FILENAME_AFFILIATE, '', SSL)); $breadcrumb->add(NAVBAR_TITLE_CONTACT, olc_href_link(FILENAME_AFFILIATE_CONTACT)); $affiliate_values = olc_db_query("select * from " . TABLE_AFFILIATE . " where affiliate_id = '" . $_SESSION['affiliate_id'] . APOS); require DIR_WS_INCLUDES . 'header.php'; if (isset($_GET['action']) && $_GET['action'] == 'success') { $smarty->assign('SUMMARY_LINK', HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END); } else { $smarty->assign('FORM_ACTION', olc_draw_form('contact_us', olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=send'))); $smarty->assign('INPUT_NAME', olc_draw_input_field('name', $affiliate['affiliate_firstname'] . BLANK . $affiliate['affiliate_lastname'], 'size=40')); $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $affiliate['affiliate_email_address'], 'size=40')); $smarty->assign('error', $error); $smarty->assign('TEXTAREA_ENQUIRY', olc_draw_textarea_field('enquiry', 'soft', 50, 15, $_POST['enquiry'])); $smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_contact' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
<?php $meta_title = $products_meta_title[$lang_id]; $meta_title = $is_post && $meta_title ? stripslashes($meta_title) : olc_get_products_meta_title($products_id, $lang_id); $meta_title = str_replace('\\', EMPTY_STRING, $meta_title); $meta_description = $products_meta_description[$lang_id]; $meta_description = $is_post && $meta_description ? stripslashes($meta_description) : olc_get_products_meta_description($products_id, $lang_id); $meta_description = str_replace('\\', EMPTY_STRING, $meta_description); $meta_keywords = $products_meta_keywords[$lang_id]; $meta_keywords = $is_post && $meta_keywords ? stripslashes($meta_keywords) : olc_get_products_meta_keywords($products_id, $lang_id); $meta_keywords = str_replace('\\', EMPTY_STRING, $meta_keywords); echo HTML_B_START . TEXT_META_TITLE . HTML_B_END . HTML_BR; echo olc_draw_textarea_field('products_meta_title[' . $lang_id . ']', 'soft', '60', '4', $meta_title) . HTML_BR; echo HTML_B_START . TEXT_META_DESCRIPTION . HTML_B_END . HTML_BR; echo olc_draw_textarea_field('products_meta_description[' . $lang_id . ']', 'soft', '60', '4', $meta_description) . HTML_BR; echo HTML_B_START . TEXT_META_KEYWORDS . HTML_B_END . HTML_BR; echo olc_draw_textarea_field('products_meta_keywords[' . $lang_id . ']', 'soft', '60', '4', $meta_keywords); ?> </td> </tr> </table> <?php if (DO_PROMOTION) { include DIR_WS_MODULES . 'products_promotion.php'; } } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="pageHeading"><?php echo HEADING_PRODUCT_OPTIONS; ?>
if (strpos($shop_content_data['content_file'], '.txt')) { echo '<pre>'; } include DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']; if (strpos($shop_content_data['content_file'], '.txt')) { echo '</pre>'; } } else { $contact_content = $shop_content_data['content_text']; } require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('CONTACT_CONTENT', $contact_content); $smarty->assign('FORM_ACTION', olc_draw_form('contact_us', olc_href_link(FILENAME_CONTENT, 'action=send&coID=' . $coID))); $smarty->assign('INPUT_NAME', olc_draw_input_field('name', $error ? $_POST['name'] : $first_name)); $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $error ? $_POST['email'] : $email_address)); $smarty->assign('INPUT_TEXT', olc_draw_textarea_field('message_body', 'soft', 50, 15, $_POST[''])); $smarty->assign('BUTTON_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'contact_us' . HTML_EXT, SMARTY_CACHE_ID); } else { if ($shop_content_data['content_file'] != '') { ob_start(); if (strpos($shop_content_data['content_file'], '.txt')) { echo '<pre>'; } include DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']; if (strpos($shop_content_data['content_file'], '.txt')) { echo '</pre>'; } $smarty->assign('file', ob_get_contents()); ob_end_clean();
if ($products_promotion_image) { $image = olc_image(ADMIN_PATH_PREFIX . DIR_WS_PROMOTION_IMAGES . $products_promotion_image) . NEW_LINE . olc_draw_hidden_field($products_promotion_image_text, $products_promotion_image) . HTML_BR . olc_draw_checkbox_field('del_' . $products_promotion_image_text) . BLANK . PROMOTION_DELETE . HTML_BR . HTML_BR; } else { $image = EMPTY_STRING; } $image .= olc_draw_file_field($products_promotion_image_text) . HTML_BR; $s = $products_promotion_desc_text . UNDERSCORE . $lang_id; $content = $promotion['products_promotion_desc']; if ($use_spaw) { ob_start(); $sw = new SPAW_Wysiwyg($control_name = $s, $value = $content, $lang = EMPTY_STRING, $mode = 'full', $theme = 'default', $width = '600px', $height = '400px', $css_stylesheet = SPAW_STYLESHEET, $dropdown_data = EMPTY_STRING); $sw->show(); $editor = ob_get_contents(); ob_end_clean(); } else { $editor = olc_draw_textarea_field($s, 'soft', '70', '15', $content); } $description = $editor . HTML_BR; $lang_image .= HTML_B_START; echo ' <br /><span class="pageHeading">' . PROMOTION_HEADER . '</span> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td valign="top" colspan="2"> <table width="100%" cellpadding="0" cellspacing="1" border="0"> <tr> <td class="main">' . olc_draw_checkbox_field("products_promotion_status", ONE_STRING, $pInfo->products_promotion_status == ONE_STRING) . HTML_NBSP . HTML_B_START . PROMOTION_ON . HTML_B_END . ' </td> </tr> <tr> <td class="main">' . olc_draw_checkbox_field("products_promotion_show_title", ONE_STRING, $pInfo->products_promotion_show_title == ONE_STRING) . HTML_NBSP . HTML_B_START . PROMOTION_PRODUCT_TITLE . HTML_B_END . '
$group_query = olc_db_query("SELECT count(*) as count\n\t\t\t\t\t\t\t\t\t\t\t\t FROM " . TABLE_CUSTOMERS . "\n\t\t\t\t\t\t\t\t\t\t\t\t WHERE\n\t\t\t\t\t\t\t\t\t\t\t\t customers_status='" . $customers_status[$i]['id'] . APOS); $group_data_all = olc_db_fetch_array($group_query); echo olc_draw_checkbox_field('status[' . $i . ']', 'yes', true) . BLANK . $customers_status[$i]['text'] . ' <i>(<b>' . $group_data['count'] . HTML_B_END . TEXT_USERS . $group_data_all['count'] . BLANK . BOX_CUSTOMERS . ') <br/>'; } echo olc_draw_checkbox_field('status_all', 'yes', false) . ' <b>' . TEXT_NEWSLETTER_ONLY . HTML_B_END; ?> </td> </tr> <tr> <td width="10%"><?php echo TEXT_CC; ?> </td> <td width="90%"><?php echo olc_draw_textarea_field('cc', 'soft', '100%', '3', $newsletters_data['cc']); ?> </td> </tr> <tr> <td width="10%" valign="top"><?php echo TEXT_BODY; ?> </td> <td width="90%"><?php $sw = new SPAW_Wysiwyg($control_name = 'newsletter_body', $value = stripslashes($newsletters_data['body']), $lang = EMPTY_STRING, $mode = 'full', $theme = 'default', $width = '100%', $height = '800px', $css_stylesheet = SPAW_STYLESHEET, $dropdown_data = EMPTY_STRING); $sw->show(); ?> </td> </tr> </table>
// generic_link $title = $affiliate_banners_title; } $image = $affiliate_banners_image; break; case 2: // Link to Products if ($prod_id > 0) { $link = $link_products_id; } else { // generic_link $title = $affiliate_banners_title; } $image = FILENAME_AFFILIATE_SHOW_BANNER . '?' . $param . $affiliate_banner_id; break; } $link .= olc_image($image, $title) . HTML_A_END; $banner_table_content .= '<tr>'; $banner_table_content .= '<td><table width="100%" border="0" cellspacing="0" cellpadding="2">'; $banner_table_content .= '<tr><td class="infoBoxHeading" align="center">' . TEXT_AFFILIATE_NAME . BLANK . $affiliate_banners_title . '</td></tr>'; $banner_table_content .= '<tr><td class="smallText" align="center"><br/>' . $link . '</td></tr>'; $banner_table_content .= '<tr><td class="smallText" align="center">' . TEXT_AFFILIATE_INFO . '</td></tr>'; $banner_table_content .= '<tr><td class="smallText" align="center">' . olc_draw_textarea_field('affiliate_banner', 'soft', '60', '6', $link) . '</td></tr>'; $banner_table_content .= '</table></td></tr>'; } $smarty->assign('banner_table_content', $banner_table_content); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_banners' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
display_input_field('INPUT_PASSWORD', true, EMPTY_STRING, ENTRY_PASSWORD, EMPTY_STRING, 'customers_password', $cInfo->customers_password, MAX_LENGTH, MAX_SIZE, EMPTY_STRING, $error, $entry_password_error, ENTRY_PASSWORD_ERROR, EMPTY_STRING); } if ($IsUserMode) { $smarty->assign('CHECKBOX_NEWSLETTER', olc_draw_checkbox_field('newsletter', '1') . ENTRY_NEWSLETTER_TEXT); if (!$IsGuest) { display_input_field('INPUT_CONFIRMATION', true, EMPTY_STRING, ENTRY_PASSWORD_CONFIRMATION, EMPTY_STRING, 'customers_password_confirmation', $customers_password_confirmation, MAX_LENGTH, MAX_SIZE, EMPTY_STRING, $error, $entry_password_confirmation_error, ENTRY_PASSWORD_ERROR_NOT_MATCHING, EMPTY_STRING); } } else { $field_desc_width = 300; //EMPTY_STRING; // display_pulldown_menu(EMPTY_STRING, ENTRY_CUSTOMERS_STATUS, $field_desc_width, 'status', $cInfo->customers_status, $customers_statuses_array, $error, 0, EMPTY_STRING); if (!$error) { $customers_send_mail = YES; } display_radio_field(EMPTY_STRING, ENTRY_MAIL, $field_desc_width, 'customers_mail', array('yes', 'no'), array(YES, NO), $customers_send_mail, $error, $entry_mail_error, ENTRY_MAIL_ERROR, EMPTY_STRING); echo field_start(ENTRY_MAIL_COMMENTS, $field_desc_width, EMPTY_STRING, EMPTY_STRING) . olc_draw_textarea_field('mail_comments', 'soft', '60', '5', $mail_comments) . '</td> </tr>'; } } else { display_pulldown_menu(EMPTY_STRING, ENTRY_NEWSLETTER, EMPTY_STRING, 'customers_newsletter', $cInfo->customers_newsletter, $newsletter_array, NOT_REQUIRED, 0, EMPTY_STRING); include DIR_WS_MODULES . FILENAME_CUSTOMER_MEMO; } display_category_end(); } } elseif ($IsAccount) { if ($_SESSION['customer_default_address_id'] != $_GET['edit']) { require_once DIR_FS_INC . 'olc_get_smarty_config_variable.inc.php'; $entry_primary_text = olc_get_smarty_config_variable($smarty, 'address_book_process', 'text_standard'); display_checkbox_field('CHECKBOX_PRIMARY', $entry_primary_text, EMPTY_STRING, 'primary', 'on', EMPTY_STRING . $error, EMPTY_STRING, EMPTY_STRING); $smarty->assign('CHECKBOX_PRIMARY', true); }
echo olc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']); ?> " onclick="javascript:return confirm('<?php echo DELETE_ENTRY; ?> ')"><?php echo olc_image_button('button_delete.gif', IMAGE_DELETE); ?> </a></td> </tr> </table> <?php } ?> <table width="100%"> <tr> <td class="main"><b><?php echo TEXT_TITLE; ?> </b>:<?php echo olc_draw_input_field('memo_title'); ?> <br/><?php echo olc_draw_textarea_field('memo_text', 'soft', '80', '5'); ?> <br/><?php echo olc_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td> </tr> </table></td>
<tr> <td class="main" valign="top"><?php echo TEXT_META_KEYWORDS; ?> </td> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main" valign="top" width="40"> <?php echo $lang_image; ?> </td> <td class="main"><?php echo olc_draw_textarea_field('categories_meta_keywords[' . $lang_id . ']', 'soft', '82', '3', $cat_meta_keywords ? stripslashes($cat_meta_keywords) : olc_get_categories_meta_keywords($cInfo->categories_id, $lang_id)); ?> </td> </tr> </table> </td> </tr> <?php } ?> <tr><td colspan="2"><?php echo $sep; ?> </td></tr> </table> </td>
$template_content = str_replace('{$prod_attributes}', $s, $template_content); $template_content = str_replace('{$catalog_url}', $catalog_dir_remote, $template_content); $template_content = str_replace('{$tpl_path}', TEMPLATE_PATH . CURRENT_TEMPLATE . SLASH, $template_content); $template_content = str_replace('{$store_name}', STORE_NAME, $template_content); $products_description = str_replace('{$ebay_name}', trim(EBAY_MEMBER_NAME), $template_content); //F*****g SPAW-Editor does not display "–" properly! $products_description = str_replace(HTML_NDASH, XDASH_REPLACE, $products_description); } } $eval_spaw = USE_SPAW == TRUE_STRING_S; if ($eval_spaw) { define('SPAW_CONTROL_NAME', $products_description_text . UNDERSCORE . SESSION_LANGUAGE_ID); define('SPAW_CONTROL_DATA', $products_description); $content_spaw = "\n\t\t\t\$sw=new SPAW_Wysiwyg(\n\t\t\t\$control_name=SPAW_CONTROL_NAME,\t// control's name\n\t\t\t\$value= SPAW_CONTROL_DATA,\t\t\t // initial value\n\t\t\t\$lang=EMPTY_STRING, \t\t\t// language\n\t\t\t\$mode='full', \t\t \t// toolbar mode\n\t\t\t\$theme='default', \t\t\t// theme (skin)\n\t\t\t\$width='100%', \t\t\t// width\n\t\t\t\$height='400px', \t\t\t// height\n\t\t\t\$css_stylesheet=SPAW_STYLESHEET,\t// css stylesheet file for content\n\t\t\t\$dropdown_data=EMPTY_STRING \t\t\t// data for dropdowns (style, font, etc.)\n\t\t\t);\n\t\t\t\$sw->show(true);\n\t\t"; } else { $content_spaw = olc_draw_textarea_field("description", 'soft', '100', '15', $products_description); } /* $onclick=' onclick="javascript:SPAW_UpdateFields();preview.submit();return false;"'; $content_preview=HTML_A_START.olc_href_link(HASH). '" target="_blank"'.$onclick.'><font color="red"><b>'. AUCTIONS_TEXT_PREVIEW.'</b></font>'.HTML_A_END; */ define('SPIFFY_DATE_FIELD_CAPTION', sprintf(AUCTIONS_TEXT_AUCTION_START_DATE, $fees[$starttime_text])); if (!$mystarttime) { $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);
<td width="90%"><?php echo olc_draw_input_field('cont_link', $content['content_link'], 'size="60"'); ?> </td> </tr> <tr> <td width="10%" valign="top"><?php echo TEXT_FILE_DESC; ?> </td> <td width="90%"><?php if (USE_SPAW == TRUE_STRING_S) { $sw = new SPAW_Wysiwyg('file_comment', stripslashes($content['file_comment']), 'de', 'sidetable', 'default', '550px', '350px'); $sw->show(); } else { echo olc_draw_textarea_field('file_comment', EMPTY_STRING, '100', '15', $content['file_comment']); } ?> </td> </tr> <tr> <td width="10%"><?php echo TEXT_CHOOSE_FILE; ?> </td> <td width="90%"><?php echo olc_draw_pull_down_menu('select_file', $content_files, $default_value); echo BLANK . TEXT_CHOOSE_FILE_DESC; ?> </td> </tr>
$your_name_prompt = HTML_B_START . $your_name_prompt . HTML_B_END; $your_email_address_prompt = HTML_B_START . $account_values['customers_email_address'] . HTML_B_END; } else { $your_name_prompt = olc_draw_input_field('yourname', $fromname_error ? $_POST['yourname'] : $_GET['yourname']); if ($fromname_error) { $smarty->assign('INPUT_NAME_ERROR', TEXT_REQUIRED); } $your_email_address_prompt = olc_draw_input_field('from', $fromemail_error ? $_POST['from'] : $_GET['from']); if ($fromemail_error) { $smarty->assign('INPUT_EMAIL_ERROR', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $smarty->assign('FORM_ACTION', olc_draw_form('email_friend', olc_href_link(FILENAME_TELL_A_FRIEND, 'action=process&products_id=' . $products_id)) . olc_draw_hidden_field('products_name', $product_info['products_name'])); $smarty->assign('INPUT_NAME', $your_name_prompt); $smarty->assign('INPUT_EMAIL', $your_email_address_prompt); $smarty->assign('INPUT_MESSAGE', olc_draw_textarea_field('yourmessage', 'soft', 40, 8)); $input_friendname = olc_draw_input_field('friendname', $friendname_error ? $_POST['friendname'] : $_GET['friendname']); if ($friendname_error) { $smarty->assign('INPUT_FRIENDNAME_ERROR', TEXT_REQUIRED); } $input_friendemail = olc_draw_input_field('friendemail', $friendemail_error ? $_POST['friendemail'] : $_GET['send_to']); if ($friendemail_error) { $smarty->assign('INPUT_FRIENDEMAIL_ERROR', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } $smarty->assign('INPUT_FRIENDNAME', $input_friendname); $smarty->assign('INPUT_FRIENDEMAIL', $input_friendemail); $input_seccode = olc_draw_input_field('code', $code); if ($seccode_error) { $smarty->assign('INPUT_CODE_ERROR', ENTRY_SECCODE_CHECK_ERROR); } $smarty->assign('VVIMG', '<img src="' . olc_href_link(FILENAME_DISPLAY_VVCODES) . '" alt="Sicherheitscode" />');
$gv_result = olc_db_fetch_array($gv_query); $send_name = $gv_result['customers_firstname'] . BLANK . $gv_result['customers_lastname']; //W. Kaiser - AJAX $smarty->assign('FORM_ACTION', olc_draw_form('gv_send', olc_href_link(FILENAME_GV_SEND, 'action=process', NONSSL))); //W. Kaiser - AJAX $smarty->assign('MAIN_MESSAGE', sprintf(MAIN_MESSAGE, $currencies->format($_POST['amount']), stripslashes($_POST['to_name']), $_POST['email'], stripslashes($_POST['to_name']), $currencies->format($_POST['amount']), $send_name)); if ($_POST['message']) { $smarty->assign('PERSONAL_MESSAGE', sprintf(PERSONAL_MESSAGE, $gv_result['customers_firstname'])); $smarty->assign('POST_MESSAGE', stripslashes($_POST['message'])); } $smarty->assign('HIDDEN_FIELDS', olc_draw_hidden_field('send_name', $send_name) . olc_draw_hidden_field('to_name', stripslashes($_POST['to_name'])) . olc_draw_hidden_field('email', $_POST['email']) . olc_draw_hidden_field('amount', $gv_amount) . olc_draw_hidden_field('message', stripslashes($_POST['message']))); $smarty->assign('LINK_BACK', olc_image_submit('button_back.gif', IMAGE_BUTTON_BACK, 'name=back') . HTML_A_END); $smarty->assign('LINK_SUBMIT', olc_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE)); } elseif ($_GET['action'] == '' || $error) { $smarty->assign('action', ''); //W. Kaiser - AJAX $smarty->assign('FORM_ACTION', olc_draw_form('gv_send', olc_href_link(FILENAME_GV_SEND, 'action=send', NONSSL))); //W. Kaiser - AJAX $smarty->assign('LINK_SEND', olc_href_link(FILENAME_GV_SEND, 'action=send', NONSSL)); $smarty->assign('INPUT_TO_NAME', olc_draw_input_field('to_name', stripslashes($_POST['to_name']))); $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $_POST['email'])); $smarty->assign('ERROR_EMAIL', $error_email); $smarty->assign('INPUT_AMOUNT', olc_draw_input_field('amount', $_POST['amount'], '', '', false)); $smarty->assign('ERROR_AMOUNT', $error_amount); $smarty->assign('TEXTAREA_MESSAGE', olc_draw_textarea_field('message', 'soft', 50, 15, stripslashes($_POST['message']))); $smarty->assign('LINK_SUBMIT', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); } $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'gv_send' . HTML_EXT, SMARTY_CACHE_ID); $smarty->assign(MAIN_CONTENT, $main_content); require BOXES; $smarty->display(INDEX_HTML);
?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_BANNERS_HTML_TEXT; ?> </td> <td class="main"><?php echo olc_draw_textarea_field('html_text', 'soft', '60', '5', $bInfo->banners_html_text); ?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td class="main"> <?php $spiffy_date_field_caption = TEXT_BANNERS_SCHEDULED_AT; $spiffy_date = $bInfo->date_scheduled; $spiffy_control_name = "dateScheduled";
?> </table></td> </tr> <tr> <td class="main"><br/><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></td> </tr> <tr> <?php echo olc_draw_form('status', FILENAME_ORDERS, olc_get_all_get_params(array('action')) . 'action=update_order'); ?> <td class="main"> <?php echo olc_draw_textarea_field('comments', 'soft', '60', '5', $order->info['comments']); ?> </td> </tr> <tr> <td> <table border="0" cellspacing="0" cellpadding="2" align="left"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="2" align="left"> <?php require_once DIR_FS_INC . 'olc_get_track_code.inc.php'; //Check if tracking enabled at all for shipping class! $TrackURL = olc_get_track_code($order, $track_code); if ($TrackURL) { $track_code = $order->info['orders_trackcode'];
<?php } $languages = olc_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $language_id = $languages[$i]['id']; ?> <tr> <td align="left" valign="top" class="main"><?php if ($i == 0) { echo COUPON_DESC; } ?> </td> <td align="left" valign="top"><?php echo olc_draw_textarea_field('coupon_desc[' . $languages[$i]['id'] . ']', 'physical', '24', '3', $coupon_desc[$language_id]) . HTML_NBSP . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']); ?> </td> <td align="left" valign="top" class="main"><?php if ($i == 0) { echo COUPON_DESC_HELP; } ?> </td> </tr> <?php } ?> <tr> <td align="left" class="main"><?php echo COUPON_AMOUNT;
$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);
</td> <td class="main" align="right" valign="top"><?php echo olc_image(DIR_WS_CATALOG_IMAGES . $rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> </tr> </table></td> </tr> <tr> <td><table witdh="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main" valign="top"><b><?php echo ENTRY_REVIEW; ?> </b><br/><br/><?php echo olc_draw_textarea_field('reviews_text', 'soft', '60', '15', $rInfo->reviews_text); ?> </td> </tr> <tr> <td class="smallText" align="right"><?php echo ENTRY_REVIEW_TEXT; ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?>
$hidden_fields = olc_draw_hidden_field('target_url', $form_action_url) . olc_draw_hidden_field('response_wait', ${$_SESSION}['payment']->response_wait); $form_action_url = FILENAME_CHECKOUT_AJAX_PAYMENT_PROXY; } } else { $form_action_url = olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL); } $smarty->assign('CHECKOUT_FORM', olc_draw_form('checkout_confirmation', $form_action_url, 'post') . $hidden_fields); if (is_array($payment_modules->modules)) { $smarty->assign('MODULE_BUTTONS', $payment_modules->process_button()); } if (CUSTOMER_STATUS_ID == DEFAULT_CUSTOMERS_STATUS_ID_COMPANY) { $customers_order_reference_text = 'customers_order_reference'; $smarty->assign('CUSTOMERS_REFERENCE', olc_draw_input_field($customers_order_reference_text, $_SESSION[$customers_order_reference_text], 'size="40"')); } $comments_text = 'comments'; $smarty->assign('COMMENTS', olc_draw_textarea_field($comments_text, 'soft', '60', '5', $_SESSION[$comments_text])); //check if display conditions on checkout page is true if (DISPLAY_CONDITIONS_ON_CHECKOUT == TRUE_STRING_S) { $shop_content_query = olc_db_query("SELECT\n \t\t\t\t\tcontent_title,\n \t\t\t\t\tcontent_heading,\n \t\t\t\t\tcontent_text,\n \t\t\t\t\tcontent_file\n \t\t\t\t\tFROM " . TABLE_CONTENT_MANAGER . "\n \t\t\t\t\tWHERE content_group='3'\n \t\t\t\t\tAND languages_id='" . SESSION_LANGUAGE_ID . APOS); $shop_content_data = olc_db_fetch_array($shop_content_query); if ($shop_content_data['content_file'] == EMPTY_STRING) { $file = 'cache/cache/agb' . HTML_EXT; if (file_exists($file)) { //Write file only once a day! // $last_modified = filemtime($file); // $now = time(); // $today = mktime(0, 0, 0, date("m", $now) , date("d", $now), date("Y", $now)); // $write_file=$last_modified>$today or $last_modified > $now; // $table_status_query="show table status like '".TABLE_CONTENT_MANAGER.APOS; $table_status = olc_db_query($table_status_query); $table_status = olc_db_fetch_array($table_status);
?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?> </td> <td><?php echo olc_draw_textarea_field('message', 'soft', '60', '15'); ?> </td> </tr> <tr> <td colspan="2"><?php echo olc_draw_separator('pixel_trans.gif', '1', '10'); ?> </td> </tr> <tr> <td colspan="2" align="right"><?php echo olc_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?> </td> </tr>
function olc_cfg_textarea($text) { return olc_draw_textarea_field('configuration_value', false, 50, 5, $text); }