imran7 Posted September 16, 2010 Posted September 16, 2010 Hello All, just want to first say thanks for all your help and support you guys and gals have been a huge help to me (a VERY novice web designer). I just have 2 small issues on my contact us page. I installed a contact us page contribution and its amazing!! Here is the link to my page: http://amedeoexclusive.com/contact_us.php here is the code to the contact us page: <?php /* $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); // BOF Super Contact us enhancement 1.41 $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']);} else{ $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); } $emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT; if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } // EOF Super Contact us enhancement 1.41 } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> <!-- header //--> <?php $tab_sel = 7; ?> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0"> <tr> <td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php include(DIR_WS_BOXES . 'panel_top.php');?><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <?php echo HEADING_TITLE; ?> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <?php if ($messageStack->size('contact') > 0) { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td><?php echo $messageStack->output('contact'); ?></td></tr> </table> <?php echo tep_pixel_trans();?> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> </table> <?php echo tep_pixel_trans();?> <?php /* echo tep_draw_infoBox2_top(); */?> <table border="0" width="100%" cellspacing="0" cellpadding="2"><tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table> <?php /* echo tep_draw_infoBox2_bottom(); */?> <!-- BOF Super Contact us enhancement 1.41 //--> <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; $email = $account['customers_email_address']; } ?> <tr><td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"><td><table><tr> <td class="main" valign="top" width=40%><b><?php echo nl2br(STORE_NAME_ADDRESS); ?></b><br><br> <?php echo (OPENING_HOURS); ?><br><br></td> <td class="main" valign="top" width="60%"><?php echo ENTRY_NAME; ?><br> <?php echo tep_draw_input_field('name'); ?><br /> <?php echo ENTRY_EMAIL; ?><br> <?php echo tep_draw_input_field('email'); ?><br /> <?php echo ENTRY_ORDER_ID; ?><br> <?php echo tep_draw_input_field('order_id'); ?><br /> <?php if (CONTACT_US_LIST !=''){ echo SEND_TO_TEXT . '<br>'; if(SEND_TO_TYPE=='radio'){ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { if($k==0){ $checked=true; }else{ $checked=false; } echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v); } }else{ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } echo tep_draw_pull_down_menu('send_to', $send_to_array); } echo('<br>'); } ?> <?php echo ENTRY_REASON; ?><br> <select name="reason"> <?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?> <?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?> <?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?> <?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?> <?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?> <?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?> </select><br /> <?php echo ENTRY_ENQUIRY; ?><BR> <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?> <br /> </td></tr></table></td> </tr> </table> <br /> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td></tr> <?php } ?> <!-- EOF Super Contact us enhancement 1.41 //--> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> </form></td> <!-- body_text_eof //--> <td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> } else { <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> <?php require 'js/script.php';?> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> the 2 things i would love to change is: 1. to get rid of that } else { statement in the bottom right of the page. 2. The "continue" button under the big "enquiry" box is so hard for a customer to see, i would love to maybe change the font on that or just anything to make it more visable to the customer. Thanks so much in advance for your help and time Imran
multimixer Posted September 16, 2010 Posted September 16, 2010 1) } else { Find this in your file <!-- body_eof //--> } else { and delete the } else { ( ! ) 2) Button Go to includes/languages/images/buttons, find the image button_send.gif, draw a new one you like and upload it My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Guest Posted September 16, 2010 Posted September 16, 2010 Imran, In the code find this: <!-- body_eof //--> } else { <!-- footer //--> Change it to this: <!-- body_eof //--> <!-- footer //--> For the continue button, change this: <td align="right"><?php echo tep_image_submit('button_send.gif', IMAGE_BUTTON_CONTINUE); ?></td> to this: <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> Chris
imran7 Posted September 16, 2010 Author Posted September 16, 2010 you guys are amazing!! and so fast!! Thanks so much!! I really really appreciate it. Hopefully one day i can give back to this community. you guys rock! Thanks again Imran
germ Posted September 16, 2010 Posted September 16, 2010 One other thing you need to know... Site security has been compromised. Hack files in the images folder: goog1e12bf41976cb1bf.php goog1e1928701d13eac.php goog1e2a9f3382a03c1c.php goog1e3f2011451dbd1c.php goog1e472f3d4bc77585.php goog1e5f2856c14bce76.php goog1e60cc566ea6c97e.php goog1e64d11826a05354.php goog1e7d3c628c5033cd.php goog1e8f7c95387f7f7b.php goog1e97c91393989893.php goog1e9ca6b360b39bb.php goog1e9f1eaca5407983.php goog1ea02e396b3188a9.php goog1ec5d198441724cb.php goog1ec73afb29f1fb.php Hack files in the root folder google2eba5ed744b4.php googlee6f0a1982bf0.php Visit the "Security" section and read the pinned thread "How to Secure Your Site". If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
imran7 Posted October 4, 2010 Author Posted October 4, 2010 Hello Germ, i am so sorry i havent logged into this site until now, and i saw this message you have sent me...thanks so much i am going to go look through it right now. i am so new to this stuff and dont know much about anything, but i am learning :) Thanks so much again and i will check all of this out right now. Thanks Imran One other thing you need to know... Site security has been compromised. Hack files in the images folder: goog1e12bf41976cb1bf.php goog1e1928701d13eac.php goog1e2a9f3382a03c1c.php goog1e3f2011451dbd1c.php goog1e472f3d4bc77585.php goog1e5f2856c14bce76.php goog1e60cc566ea6c97e.php goog1e64d11826a05354.php goog1e7d3c628c5033cd.php goog1e8f7c95387f7f7b.php goog1e97c91393989893.php goog1e9ca6b360b39bb.php goog1e9f1eaca5407983.php goog1ea02e396b3188a9.php goog1ec5d198441724cb.php goog1ec73afb29f1fb.php Hack files in the root folder google2eba5ed744b4.php googlee6f0a1982bf0.php Visit the "Security" section and read the pinned thread "How to Secure Your Site".
Recommended Posts
Archived
This topic is now archived and is closed to further replies.