Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Baffled! Very quick question...


betty

Recommended Posts

Posted

Hi Everyone,

 

Check this out:

 

http://www.cukoo.co.uk/Order_Info.php

 

Anyone have any idea at all why the Telephone Number and the Newsletter input boxes aren't lining up with the rest?

 

Everything from View/Source seems to be in order doesn't it?? I can't understand it! Help!

 

Betty

Posted

Hello Sweet Betty :D

 

Maby youve inserted a &nbs "Spacer" before the line...

 

Just edit the code and delete that, if that doesn?t help send me the source and ill try fixing it for you.

Posted

I think this is the problem but im just guessing

 

This is your code:

<tr>
           <td class="accountinfo" width="120">Fax Number:</td>
           <td class="basic" width="430">?
<input type="text" name="fax" size="38">?</td>
</tr>

 

This is what i think should be there logically because every other line has it:

 

          <tr>
           <td class="accountinfo" width="120">Fax Number:</td>
           <td class="basic" width="430">?
<input type="text" name="fax" size="38"> <span class="inputRequirement">*</span></td>
         </tr>

 

 

The thing youve missed is a line after the <input type="text" name="fax" size="38"> is the Span class...

Posted

Hiya Pedragon,

 

Thanks for your reply. The fax input box is actually fine - just how i want it. I don't want it to be a required field. It's actually the telephone and newsletter boxes that I'm having trouble with. Any ideas about them??

 

Betty

Posted

By the way, this is the relevant code...

 

   <tr>
       <td>
 <table border="0" width="550" align="center" cellspacing="0" cellpadding="1">
         <tr>
               <td class="accountinfo" width="120">Telephone Number:</td>
               <td class="basic" width="430">
<?php
 if ($is_read_only) {
   echo $account['customers_telephone'];
 } elseif ($error) {
   if ($entry_telephone_error) {
     echo tep_draw_input_field('telephone', '', 'size="38"') . '?' . ENTRY_TELEPHONE_NUMBER_ERROR;
   } else {
     echo $telephone . tep_draw_hidden_field('telephone');
   }
 } else {
   echo tep_draw_input_field('telephone', $account['customers_telephone'], 'size="38"') . ' <span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>';
 }
?></td>
         </tr>
   
   
         <tr>
           <td class="accountinfo" width="120"><?php echo ENTRY_FAX_NUMBER; ?></td>
           <td class="basic" width="430">?
<?php
 if ($is_read_only) {
   echo $account['customers_fax'];
 } elseif ($processed) {
   echo $fax . tep_draw_hidden_field('fax', '', 'size="38"');
 } else {
   echo tep_draw_input_field('fax', $account['customers_fax'], 'size="38"') . '?' . ENTRY_FAX_NUMBER_TEXT;
 }
?></td>
         </tr>
   
   
   
       </table>
 </td>
     </tr>
  
<tr>
<td class="lineheight" height="12"> </td>
</tr>

     <tr>
       <td class="accountinfo"><b><font color="#990099"><?php echo CATEGORY_OPTIONS; ?></font></b></td>
     </tr>
  
<tr>
<td class="lineheight" height="5"> </td>
</tr>   
     
  <tr>
       <td>
 <table border="0" width="550" align="center" cellspacing="0" cellpadding="1">
             <tr>
               <td class="accountinfo"  width="120"><?php echo ENTRY_NEWSLETTER; ?></td>
               <td class="basic" width="430">
<?php
 if ($is_read_only) {
   if ($account['customers_newsletter'] == '1') {
     echo ENTRY_NEWSLETTER_YES;
   } else {
     echo ENTRY_NEWSLETTER_NO;
   }
 } elseif ($processed) {
   if ($newsletter == '1') {
     echo ENTRY_NEWSLETTER_YES;
   } else {
     echo ENTRY_NEWSLETTER_NO;
   }
   echo tep_draw_hidden_field('newsletter');  
 } else {
   echo tep_draw_pull_down_menu('newsletter', $newsletter_array, $account['customers_newsletter']) . '?' . ENTRY_NEWSLETTER_TEXT;
 }
?></td>
         </tr>
       </table>
</td>
         </tr>

 

I'd appreciate any ideas!! Thanks!

 

Betty

Posted

   <tr>
       <td>
 <table border="0" width="550" align="center" cellspacing="0" cellpadding="1">
         <tr>
               <td class="accountinfo" width="135">Telephone Number: </td>
               <td class="basic" width="430">
<input type="text" name="telephone" size="38"><span class="inputRequirement">*</span></td>
         </tr>
   
   
         <tr>
           <td class="accountinfo" width="130">Fax Number:</td>
           <td class="basic" width="430"><input type="text" name="fax" size="38"></td>
         </tr>

 

Paste this to your page, This will help *smile*

Posted

No... still no luck i'm afraid. don't worry for now - i'll keep working on it! Thanks anyway!

Archived

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

×
×
  • Create New...