Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding to Information Box


Paycheck

Recommended Posts

I am using the about us contribution and have added a page called about_us.php to my information box. I am also working on a contribution for a survey that I am coding and have added this as well. My problem is this, My cart MS2.2 never had a filenames.php in the includes directory. Where are my links coming from or should I say where are the define links coming from for the information box links.?

 

When I added my two extra links the link is coming up FILENAME_survey.php

 

See it happening here At Surfcamp.com

 

THank you in advance for any help on this one.

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

Al the filename defines are in application_top.php, you will need to define your FILENAME_survery there.

 

Anywhere is fine, but if you put it with the other filename defines, it will be easier to find.

Link to comment
Share on other sites

Thank you. I found that my header image was 750 wide so I reduced it to 500, is it stil showing that way now on your system. I am running a 23 inch cinima screen at 1280 so I am not seeing it.

 

Thanks though

 

JM

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

Can you help me with this survey form I inputting. The Survey Form

 

I have taken the privacy policy form and modified it however I am getting a page that is formatted incorrectly.

 

Here is the code for the page.

 

<?php
/*
 $Id: privacy.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 //require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SURVEY);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SURVEY));
?>
<!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 border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
 <tr> 
   <td colspan="3"><p><img src="images/TS_Signature.gif" width="193" height="61"></p>
     <p><font face="Geneva, Arial, Helvetica, san-serif"><em>...wants to know. 
       Please take a moment to fill out our online survey which will allow us 
       to better serve you in the future. We listen and appreciate your comments 
       and feedback.<br>
       </em></font></p></td>
 </tr>
 <tr> 
   <td colspan="3" background="../images/cellpic3.gif"> </td>
 </tr>
 <tr> 
   <td width="33%"><table width="178" border="1">
       <tr> 
         <td width="168"><label><img src="images/buttons/survey/survey_here_about_us.gif" width="175" height="20"></label></td>
       </tr>
       <tr> 
         <td> <font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <input type="radio" name="How did you here about surfcamp" value="FRIEND">
           A Friend</font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How did you here about surfcamp" value="LUCKY">
           Lucky I Guess</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How did you here about surfcamp" value="SEARCH">
           I did a Search</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How did you here about surfcamp" value="MAGAZINE">
           A Magazine Ad.</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How did you here about surfcamp" value="I KNOW TERRY">
           I Know Terry Senate</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How did you here about surfcamp" value="OTHER">
           Other</label>
           </font></td>
       </tr>
     </table></td>
   <td width="35%"> <table width="185" border="1">
       <tr> 
         <td width="175" valign="top"> <label><img src="images/buttons/survey/survey_experiance.gif" width="175" height="20"></label></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <input type="radio" name="Your Experiance" value="GREAT">
           Great !!!</font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="Your Experiance" value="OVER THE TOP">
           Over the Top</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="Your Experiance" value="ACCEPTABLE">
           Acceptable</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="Your Experiance" value="OK">
           Just OK</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="Your Experiance" value="LESS THAN EXPECTED">
           Less than Expected</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="Your Experiance" value="NEVER AGAIN">
           Never Again</label>
           </font></td>
       </tr>
     </table></td>
   <td width="32%" valign="top"> <table width="71%" height="85" border="1" cellpadding="0" cellspacing="0">
       <tr> 
         <td><img src="images/buttons/survey/survey_missing.gif" width="175" height="20"></td>
       </tr>
       <tr> 
         <td> <table width="124" align="center">
             <tr> 
               <td width="54"><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
                 <input type="radio" name="Did we miss Something" value="YES">
                 Yes</font></td>
               <td width="54"><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
                 <label> 
                 <input type="radio" name="Did we miss Something" value="NO">
                 No </label>
                 </font></td>
             </tr>
           </table>
           <div align="center"></div></td>
       </tr>
       <tr> 
         <td><div align="center"><font size="1" face="Geneva, Arial, Helvetica, san-serif">If 
             Yes, please tell us what.</font></div></td>
       </tr>
       <tr> 
         <td><textarea name="missing_item" cols="21" id="missing_item"></textarea></td>
       </tr>
     </table></td>
 </tr>
 <tr> 
   <td background="../images/cellpic3.gif"> </td>
   <td colspan="2" background="../images/cellpic3.gif"> </td>
 </tr>
 <tr> 
   <td height="24" valign="top"> <p><font size="1" face="Geneva, Arial, Helvetica, san-serif">What 
       are your favorite brand name items:</font></p></td>
   <td valign="top"><div align="center"><font size="1" face="Geneva, Arial, Helvetica, san-serif">How 
       much do you spend online each month?</font></div></td>
   <td valign="top"><div align="center"><font size="1" face="Geneva, Arial, Helvetica, san-serif">What 
       types of items do you purchase</font></div></td>
 </tr>
 <tr> 
   <td align="center"> <select name="select" size="4" multiple>
       <option value="TERRY SENATE">Terry Senate</option>
       <option value="HURLY">Hurly</option>
       <option value="BODY GLOVE">Body Glove</option>
       <option value="RIP CURL">Rip Curl</option>
       <option value="LOST">Lost</option>
       <option value="OCEAN MINDED">Ocean Minded</option>
       <option value="REEF">Reef </option>
       <option value="RAINBOW">Rainbow</option>
       <option value="VITAMIN BLUE">Vitamin Blue</option>
       <option value="QUICK SILVER">Quick Silver</option>
     </select> </td>
   <td rowspan="4"><table width="185" border="1">
       <tr> 
         <td width="176" height="19"><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="10">
           10.00</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="20-50">
           20.00 to 50.00</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="50-100">
           50.00 to 100.00</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="100-250">
           100.00 to 250.00</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="250-500">
           250.00 to 500.00</label>
           </font></td>
       </tr>
       <tr> 
         <td><font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
           <label> 
           <input type="radio" name="How Much Do you Spend" value="Over 500">
           Over 500.00</label>
           </font></td>
       </tr>
     </table></td>
   <td valign="top"> <input name="items_purchased" type="text" id="items_purchased" size="30"></td>
 </tr>
 <tr>
   <td align="center"><font size="1" face="Geneva, Arial, Helvetica, san-serif">Other 
     Brands</font></td>
   <td valign="bottom"> <p><font size="1" face="Geneva, Arial, Helvetica, san-serif">Would 
       you be interested in being on an updated products listing?</font></p></td>
 </tr>
 <tr>
   <td align="center"><input name="other_brands" type="text" id="other_brands" size="30"></td>
   <td height="15" valign="top"> <p align="left"> 
       <label> <font face="Geneva, Arial, Helvetica, san-serif"> <font size="1"> 
       <input type="radio" name="Product Listing" value="YES">
       Yes</font></font></label>
       <font size="1" face="Geneva, Arial, Helvetica, san-serif"> 
       <label> 
       <input type="radio" name="Product Listing" value="NO">
       No</label>
       </font> </p></td>
 </tr>
 <tr>
   <td align="center"> </td>
   <td valign="bottom"><div align="right"> 
       <input type="submit" name="Submit" value="Submit this survey">
     </div></td>
 </tr>
</table>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

As you can see this is my first time doing this so any help straightening it out would be greatly appreciated.

 

Thank you

 

JM

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

750 would be right for your tables. This would display on a 15" monitor at 800x600, or a 1024x760 with the favorites column open. Check width on your left and right colums.

 

From your page:

 

your entire page.

If you remove these tags all of you info will be shifted below you categories box on your pages. If you dont

Believe me, try it....lol. //-->

 

<tr>

<td>

<table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">

<tr>

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

 

set left column to 135,

 

your code:

 

</table></td>

<!-- body_text_eof //-->

<td width="155" valign="top"><table border="0" width="155" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<!-- shopping_cart //-->

<tr>

<td>

<table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">

<tr>

<td>

 

do the same on the right column.

 

Be sure to check the tables within each column, as most are set to 144 px, more than you need. Headers and footers look okay.

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

SO are you saying to remove those tags from my code and the footer will go back to the bottom of the page?

 

I am a bit confused. IN looking at code on other pages it appears that I am trying to simply insert a table into the middle of the page. Could it be that I need to use the DEFINE_TEXT peram as with the contact us form, shipping and returns etc. These pages call a contact page that calls the text information from the language file?

 

I am really bummed as I can not figure out what I would have changed to make this happen.

 

THanks again

 

JM

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

Well, the survey page looks OK to me, although the third table along is slightly out of alignment with the other two. THis is becasue the third table has this

 

<td width="32%" valign="top">

 

Whereas the other two don't have a valign.

 

They should either all be valigned or none of them.

 

You also have two spelling mistakes on this page, "here" should be "hear" and "experiance" should be "experience"

 

The logo looks OK now - no more horizontal bars, buit I cannot read the telephone number at all at 1024 res on a 17" monitor.

 

Suggest redesigning the logo to have a bit more white space at the bottom, under the line, and make the details bigger.

Link to comment
Share on other sites

No, picked up some stray stuff from STS(?) you use for templates. What I am suggesting is that you set your right and left colums to 135 px wide each, including the sub-tables in your right and left panels. This will allow more room for the graphics in the center panel to display without making your overall table wider.

 

Did I see a post from you about using STS and a problem with Java script/popups?

 

An updated contribution was posted yesterday (02APR) to fix the problem.

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...