Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with formatting


resoman

Recommended Posts

Hi, I changed the format of my site, but one page, I have serious table / padding problems that I cant seem to figure out.

 

http://www.proforcesoftware.net/exchange_links.php

 

If someone has a moment to look at the tables I would appreciate it!

 

source here:

 

<?php

/*

$Id: exchange_links.php, v0.2 2003/05/02 Exp $

 

Links Manager for OSC v0.2

 

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_EXCHANGE_LINKS);

 

//VJ TODO imitate index page breadcrumb behaviour

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_EXCHANGE_LINKS));

 

// calculate link category path

if (isset($HTTP_GET_VARS['lPath'])) {

$lPath = $HTTP_GET_VARS['lPath'];

} else {

$lPath = '';

}

 

?>

<!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; ?>">

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

<title><?php echo TITLE; ?></title>

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<?php require('includes/form_check.js.php'); ?>

</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%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="4" bgcolor="#777777"><img src="images/pixel_trans.gif" width="4" height="1"></td>

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

<tr>

<td width="4" height="4"><img src="images/mainbox/main_box_03.jpg" width="4" height="4"></td>

<td height="4" background="images/mainbox/main_box_05.jpg"><img src="images/pixel_trans.gif" width="1" height="1"></td>

<td width="4" height="4"><img src="images/mainbox/main_box_07.jpg" width="4" height="4"></td>

</tr>

<tr>

<td width="4" background="images/mainbox/main_box_12.jpg"><img src="images/pixel_trans.gif" width="1" height="1"></td>

<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

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

<tr>

<td width="125"> <table width="125" height="173" border="0" cellpadding="3" cellspacing="0" background="images/1box.gif">

<tr>

<td height="15" colspan="2"> <div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.proforcesoftware.net/default.php/name/Software/cPath/21" class="boxTop">Software</a></strong></font></div></td>

</tr>

<tr>

<td width="2" rowspan="9" ><img src="images/pixel_trans.gif" width="1" height="1"></td>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Commercial/cPath/23" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Commercial</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Construction/cPath/24" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Construction</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Exchange/cPath/25" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Exchange</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Financial/cPath/26" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Financial</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Paralegal/cPath/27" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Paralegal</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Rent%20Lease/cPath/28" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Rent

Lease</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Residential/cPath/29" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Residential</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="allcategories.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Show

All</font></a></div></td>

</tr>

<tr>

<td height="6" ><img src="images/pixel_trans.gif" width="1" height="6"></td>

</tr>

</table></td>

<td width="15" rowspan="3"><img src="images/pixel_trans.gif" width="15" height="1"></td>

</tr>

<tr>

<td height="10"><img src="images/pixel_trans.gif" width="1" height="1"></td>

</tr>

<tr>

<td><table width="125" height="173" border="0" cellpadding="3" cellspacing="0" background="images/1box.gif">

<tr>

<td height="15" colspan="2"> <div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.proforcesoftware.net/default.php/name/Single%20Forms/cPath/22" class="boxTop">Single

Forms</a></strong></font></div></td>

</tr>

<tr>

<td width="2" rowspan="9" ><img src="images/pixel_trans.gif" width="1" height="1"></td>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Commercial/cPath/30" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Commercial</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Construction/cPath/31" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Construction</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Exchange/cPath/32" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Exchange</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Financial/cPath/33" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Financial</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Paralegal/cPath/34" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Paralegal</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Rent%20Lease/cPath/35" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Rent

Lease</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="http://www.proforcesoftware.net/default.php/name/Residential/cPath/36" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Residential</font></a></div></td>

</tr>

<tr>

<td height="18" > <div align="left"><a href="allcategories.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Show

All</font></a></div></td>

</tr>

<tr>

<td height="6" ><img src="images/pixel_trans.gif" width="1" height="6"></td>

</tr>

</table></td>

</tr>

</table></td>

<td valign="top"><table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<!-- body_text //-->

<?php

if($lPath == '') {

?>

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

<tr>

<td><table border="0" width="100%" 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>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

<td align="left"><a href="http://www.linktausch.de" target="_blank">

<img src="http://www.linktausch.de/werbung/linktausch-logo1.gif" border="0" width="142" height="52">

</a> </TD>

</TR>

<tr>

<td><br> <table border="1" width="100%" cellspacing="0" cellpadding="5">

<tr>

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

</tr>

</table></td>

</tr>

<!-- VJ category listing begin -->

<tr>

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

<tr>

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

<tr>

<?php

$link_category_query = tep_db_query("select * from " . TABLE_EXCHANGE_LINKS_CATEGORIES . " where link_category_status = '1' order by link_category_name");

 

$rows = 0;

while($link_category_data = tep_db_fetch_array($link_category_query)) {

$rows++;

 

//links count under each category

$link_count_query = tep_db_query("select count(*) as link_count from " . TABLE_EXCHANGE_LINKS_LINKS . " where link_category_id='" . $link_category_data['link_category_id'] . "' and link_status = '1'");

$link_count_data = tep_db_fetch_array($link_count_query);

$link_count = $link_count_data['link_count'];

 

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <b><a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a></b> (' . $link_count . ')<br>' . $link_category_data['link_category_description'].'</td>' . "n";

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($link_category_query))) {

echo ' </tr>' . "n";

echo ' <tr>' . "n";

}

}

?>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<!-- VJ category listing end -->

<tr>

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

</tr>

<tr>

<td align="right"><br> <a href="<?php echo tep_href_link(FILENAME_EXCHANGE_LINKS_SUBMIT); ?>"><?php echo tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK); ?></a></td>

</tr>

</table></td>

<?php

} else {

?>

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

<tr>

<td><table border="0" width="100%" 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>

</table></td>

</tr>

<tr>

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

</tr>

<tr>

<td><br> <table border="1" width="100%" cellspacing="0" cellpadding="5">

<tr>

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

</tr>

</table></td>

</tr>

<!-- VJ category listing begin -->

<tr>

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

<tr>

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

<tr>

<?php

$link_category_query = tep_db_query("select * from " . TABLE_EXCHANGE_LINKS_CATEGORIES . " where link_category_status = '1' order by link_category_name");

 

$rows = 0;

while($link_category_data = tep_db_fetch_array($link_category_query)) {

$rows++;

 

//links count under each category

$link_count_query = tep_db_query("select count(*) as link_count from " . TABLE_EXCHANGE_LINKS_LINKS . " where link_category_id='" . $link_category_data['link_category_id'] . "' and link_status = '1'");

$link_count_data = tep_db_fetch_array($link_count_query);

$link_count = $link_count_data['link_count'];

 

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <b><a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS, 'lPath=' . $link_category_data['link_category_id']) . '" class="subCatLinks">' . $link_category_data['link_category_name'] . '</a></b> (' . $link_count . ')<br>' . $link_category_data['link_category_description'] . '</td>' . "n";

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($link_category_query))) {

echo ' </tr>' . "n";

echo ' <tr>' . "n";

}

}

?>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<!-- VJ category listing end -->

<!-- VJ links listing begin -->

<tr>

<td><br> <?php echo tep_draw_separator('pixel_black.gif', '100%', '1'); ?>

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

<tr>

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

<tr>

<?php

$link_link_query = tep_db_query("select l.link_title, l.link_description, l.link_url, c.link_category_name from " . TABLE_EXCHANGE_LINKS_LINKS . " l, " . TABLE_EXCHANGE_LINKS_CATEGORIES . " c where l.link_category_id = c.link_category_id and c.link_category_id = '" . $lPath . "' and l.link_status = '1' order by l.link_title");

//$link_link_query = tep_db_query("select * from " . TABLE_EXCHANGE_LINKS_LINKS . " l where l.link_category_id = '" . $lPath . "'");

 

echo ' <tr>' . "n";

echo ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "n";

 

//links under category

$rows = 0;

while($link_links_data = tep_db_fetch_array($link_link_query)) {

$rows++;

if($rows == 1) {

echo ' <tr>' . "n";

echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><a name="' . $link_links_data['link_category_id'] . '"></a><br><b> :: <a href="' . tep_href_link(FILENAME_EXCHANGE_LINKS . '#' . $link_links_data['link_category_id'], '', NONSSL, false) . '" class="subCatLinks">' . $link_links_data['link_category_name'] . '</a></b></td>' . "n";

echo ' </tr>' . "n";

}

 

echo ' <tr>' . "n";

echo ' <td align="left" class="smallText" style="width: ' . $width . '" valign="top"><br> » <a href="' . $link_links_data['link_url'] . '" class="exLinkTitle" target="_blank">' . $link_links_data['link_title'] . '</a><br><div align="justify">' . $link_links_data['link_description'] . '</div><a href="' . $link_links_data['link_url'] . '" class="exLinkURL" target="_blank">' . $link_links_data['link_url'] . '</a></td>' . "n";

echo ' </tr>' . "n";

}

?>

<tr>

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

</tr>

<?php

echo ' </table></td>' . "n";

echo ' </tr>' . "n";

//}

?>

</table></tr>

</table></td>

</tr>

</table></td>

</tr>

<!-- VJ links listing end -->

</table>

<?php

}

?>

<!-- body_text_eof //-->

</td>

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

<tr>

<td width="15" rowspan="3"><img src="images/pixel_trans.gif" width="15" height="1"></td>

<td width="125"> <table width="125" height="173" border="0" cellpadding="3" cellspacing="0" background="images/1box.gif">

<tr>

<td height="15"> <div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.proforcesoftware.net/allcategories.php" class="boxTop">Navigation</a></strong></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="#" class="boxNav">

<?php if (tep_session_is_registered('customer_id')) { ?>

<?php echo HEADER_TITLE_LOGOFF; ?></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right">

<?php } ?>

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="boxNav"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>" class="boxNav"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'); ?>" class="boxNav"><?php echo HEADER_TITLE_CHECKOUT; ?></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.proforcesoftware.net/shipping.php" class="boxNav">Shipping

& Returns</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.proforcesoftware.net/privacy.php" class="boxNav">Privacy

Notice</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.proforcesoftware.net/conditions.php" class="boxNav">Conditions

of Use</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.proforcesoftware.net/contact_us.php" class="boxNav">Contact

Us</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="6" ><img src="images/pixel_trans.gif" width="1" height="6"></td>

</tr>

</table></td>

</tr>

<tr>

<td height="10"><img src="images/pixel_trans.gif" width="1" height="1"></td>

</tr>

<tr>

<td><table width="125" height="172" border="0" cellpadding="3" cellspacing="0" background="images/1box.gif">

<tr>

<td height="15"> <div align="center"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="http://www.proforcesoftware.net/realestate/index.php" class="boxTop">Support</a></strong></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="affiliate_info.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Affiliate

Programs</font></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="about_us.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">About

Us</font></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="guides.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Guides</font></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><a href="manuals.php" class="boxNav"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Manuals</font></a><img src="images/pixel_trans.gif" width="5" height="1"></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="plugins.php" class="boxNav">Plug-ins</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="product_registration.php" class="boxNav">Register

Product</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="upgrades.php" class="boxNav">Upgrades</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="18" > <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="vendors.php" class="boxNav">Vendor

Aid</a><img src="images/pixel_trans.gif" width="5" height="1"></font></div></td>

</tr>

<tr>

<td height="6" ><img src="images/pixel_trans.gif" width="1" height="6"></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<td width="4" background="images/mainbox/main_box_13.jpg"><img src="images/pixel_trans.gif" width="1" height="1"></td>

</tr>

<tr>

<td width="4" height="4"><img src="images/mainbox/main_box_16.jpg" width="4" height="4"></td>

<td height="4" background="images/mainbox/main_box_17.jpg"><img src="images/pixel_trans.gif" width="1" height="1"></td>

<td width="4" height="4"><img src="images/mainbox/main_box_18.jpg" width="4" height="4"></td>

</tr>

</table></td>

<td width="4" bgcolor="#777777"><img src="images/pixel_trans.gif" width="4" height="1"></td>

</tr>

</table>

<!-- body_eof //-->

<!-- footer //-->

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

<!-- footer_eof //-->

</body>

</html>

Jesse Rooney

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...