Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove pull down menu


Guest

Recommended Posts

Please help, I have decided to make the contact_us page a simple info only page.

 

I already have made several changes to the contact_us page (add ons) to help get ride of all the spam emails I recieve, and none of them have worked.

 

I installed the add-on Contact_us Super Enhancement with a pull down menu of items. How to do remove the pull down menu? I can not figure out where to add "//" so it doesn't show the pull down menu.

 

Following is my code

 

<?php

/*

$Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

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') && tep_email_isfromdomain($_POST['email']))

{

$error = true;

$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_ISFROMDOMAIN_ERROR);

}

elseif (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.42

$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{

$xipaddress = $HTTP_SERVER_VARS["REMOTE_ADDR"];

$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, $xipaddress);

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.42

} else {

$error = true;

$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

}

}

// BOF edit pages

$pages_name = "contact_us";

$page_query = tep_db_query("select pd.pages_title, pd.pages_body, p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_name = '" . $pages_name . "' and p.pages_id = pd.pages_id and pd.language_id = '" . (int)$languages_id . "'");

$page = tep_db_fetch_array($page_query);

define('NAVBAR_TITLE', $page['pages_title']);

define('HEADING_TITLE', $page['pages_title']);

if($page['pages_status'])

define('TEXT_MAIN', $page['pages_body']);

else

define('TEXT_MAIN', '');

// EOF edit pages

$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 marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

<!-- body //-->

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top" class="navizelle-links" background="images/bg_05.gif"><table border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0" valign=top>

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="contentBoxHeading" height="30" valign="bottom">

<tr>

<td class="contentBoxHeading" width=10><?=tep_draw_separator("","10")?></td><td height="30" valign="bottom" class="contentBoxHeading" width="100%"><?php echo HEADING_TITLE; ?></td>

</tr>

</table></td>

</tr>

<!---->

<tr>

<td class="contentBoxContents">

<table border="0" width="100%" cellspacing="10" cellpadding="0">

<tr>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<!---->

<!-- // BOF edit pages -->

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_MAIN; ?></td>

</tr>

<!-- // EOF edit pages -->

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

if ($messageStack->size('contact') > 0) {

?>

<tr>

<td><?php echo $messageStack->output('contact'); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

}

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {

?>

<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>

<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">

<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 '<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></td>

</tr>

</table></td>

</tr>

<!-- Google Code for lead Conversion Page -->

<script language="JavaScript" type="text/javascript">

<!--

var google_conversion_id = 1069602809;

var google_conversion_language = "de";

var google_conversion_format = "2";

var google_conversion_color = "FFFFFF";

if (1) {

var google_conversion_value = 1;

}

var google_conversion_label = "lead";

//-->

</script>

<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">

</script>

<noscript>

<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/1069602809/imp.gif?value=1&label=lead&script=0">

</noscript>

 

<!-- BOF Super Contact us enhancement 1.42 //-->

<?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.42 //-->

<!---->

</table>

</td>

</tr>

</table>

</td>

</tr>

<!---->

</table></form></td>

<!-- body_text_eof //-->

<td width="1" bgcolor="#C5C5C5" valign="top"><img src="images/bg_10.gif" width="1" height="1" alt="" border="0"></td>

<td width="177" valign="top" class="columnRight">

<table border="0" width="177" cellspacing="0" cellpadding="0" height="100%">

<!-- right_navigation //-->

<?php

require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table>

</td>

</tr>

</table>

<!-- body_eof //-->

<!-- footer //-->

<?php include(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...