brookba
asked on
Print Button for page created in oscommerce/Dreamweaver - 500 points
Hey!
Ive got this website that is made usin oscommerce/Dreamweaver. I need to put a print button on some of the pages. I need the print button to only print the form and not the rest of the screen.. i.e. the contents and the top of the webpage.
I already have two other PHP buttons which are the checkout and update buttons. Below is the code to the page that i need the print button to go on.
========================== ========== ========== ========== ========== ========== =
<?php
require("includes/applicat ion_top.ph p");
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART);
$breadcrumb->add(NAVBAR_TI TLE, tep_href_link(FILENAME_SHO PPING_CART ));
?>
<!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 height="2" valign="top" bgcolor="003366"><?php // echo '<a href="' . tep_href_link(FILENAME_DEF AULT) . '">' . tep_image(DIR_WS_IMAGES . ) . '</a>'; ?></td>
<td height="2" valign="top" background="images/line.gi f"> < /td>
<td height="2" valign="top"> </td>
<td height="2" valign="top"><?php echo tep_draw_form('cart_quanti ty', tep_href_link(FILENAME_SHO PPING_CART , 'action=update_product')); ?><span class="pageHeading">
<?php // echo HEADING_TITLE; ?>
</span></td>
<td valign="top"> </td>
</tr>
<tr>
<td bgcolor="003366" valign="top"><table bgcolor="003366" border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table>
<p> </p></td>
<td width="7" valign="top" background="images/line.gi f"><img src="images/line.gif" width="7" height="4"></td>
<td width="10" valign="top"><img src="images/blank.gif" width="10" height="4"></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="2"> </td>
</tr>
<?php
if ($cart->count_contents() > 0) {
?>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-hea ding"',
'text' => TABLE_HEADING_REMOVE);
$info_box_contents[0][] = array('params' => 'class="productListing-hea ding"',
'text' => TABLE_HEADING_PRODUCTS);
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-hea ding"',
'text' => TABLE_HEADING_QUANTITY);
$info_box_contents[0][] = array('align' => 'right',
'params' => 'class="productListing-hea ding"',
'text' => TABLE_HEADING_TOTAL);
$any_out_of_stock = 0;
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Push all attributes information in an array
if (isset($products[$i]['attr ibutes']) && is_array($products[$i]['at tributes'] )) {
while (list($option, $value) = each($products[$i]['attrib utes'])) {
//clr 030714 move hidden field to if statement below
//echo tep_draw_hidden_field('id[ ' . $products[$i]['id'] . '][' . $option . ']', $value);
$attributes = tep_db_query("select popt.products_options_name , poval.products_options_val ues_name, pa.options_values_price, pa.price_prefix
from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VAL UES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
where pa.products_id = '" . $products[$i]['id'] . "'
and pa.options_id = '" . $option . "'
and pa.options_id = popt.products_options_id
and pa.options_values_id = '" . $value . "'
and pa.options_values_id = poval.products_options_val ues_id
and popt.language_id = '" . $languages_id . "'
and poval.language_id = '" . $languages_id . "'");
$attributes_values = tep_db_fetch_array($attrib utes);
//clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily
if ($value == PRODUCTS_OPTIONS_VALUE_TEX T_ID) {
echo tep_draw_hidden_field('id[ ' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_ values'][$ option]);
$attr_value = $products[$i]['attributes_ values'][$ option];
} else {
echo tep_draw_hidden_field('id[ ' . $products[$i]['id'] . '][' . $option . ']', $value);
$attr_value = $attributes_values['produc ts_options _values_na me'];
}
$products[$i][$option]['pr oducts_opt ions_name' ] = $attributes_values['produc ts_options _name'];
$products[$i][$option]['op tions_valu es_id'] = $value;
//clr 030714 assign $attr_value
$products[$i][$option]['pr oducts_opt ions_value s_name'] = $attr_value ;
$products[$i][$option]['op tions_valu es_price'] = $attributes_values['option s_values_p rice'];
$products[$i][$option]['pr ice_prefix '] = $attributes_values['price_ prefix'];
}
}
}
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (($i/2) == floor($i/2)) {
$info_box_contents[] = array('params' => 'class="productListing-eve n"');
} else {
$info_box_contents[] = array('params' => 'class="productListing-odd "');
}
$cur_row = sizeof($info_box_contents) - 1;
$info_box_contents[$cur_ro w][] = array('align' => 'center',
'params' => 'class="productListing-dat a" valign="top"',
'text' => tep_draw_checkbox_field('c art_delete []', $products[$i]['id']));
$products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
' <tr>' .
// Remove images
// ' <td class="productListing-data " align="center"><a href="' . tep_href_link(FILENAME_PRO DUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
// Remove link
// ' <td class="productListing-data " valign="top"><a href="' . tep_href_link(FILENAME_PRO DUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
' <td class="productListing-data " valign="top"><b>' . $products[$i]['name'] . '</b>';
if (STOCK_CHECK == 'true') {
$stock_check = tep_check_stock($products[ $i]['id'], $products[$i]['quantity']) ;
if (tep_not_null($stock_check )) {
$any_out_of_stock = 1;
$products_name .= $stock_check;
}
}
if (isset($products[$i]['attr ibutes']) && is_array($products[$i]['at tributes'] )) {
reset($products[$i]['attri butes']);
while (list($option, $value) = each($products[$i]['attrib utes'])) {
// Remove attributes from page - Mod to display only right attributes for each product when multiple products are added together.
if ($products[$i][$option]['p roducts_op tions_name ']) {
$products_name .= '<br><small><i> ' . $products[$i][$option]['pr oducts_opt ions_name' ] . ' - ' . $products[$i][$option]['pr oducts_opt ions_value s_name'] . '</i></small>';
}
}
}
$products_name .= ' </td>' .
' </tr>' .
'</table>';
$info_box_contents[$cur_ro w][] = array('params' => 'class="productListing-dat a"',
'text' => $products_name);
$info_box_contents[$cur_ro w][] = array('align' => 'center',
'params' => 'class="productListing-dat a" valign="top"',
'text' => tep_draw_input_field('cart _quantity[ ]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('pro ducts_id[] ', $products[$i]['id']));
$info_box_contents[$cur_ro w][] = array('align' => 'right',
'params' => 'class="productListing-dat a" valign="top"',
'text' => '<b>' . $currencies->display_price ($products [$i]['fina l_price'], tep_get_tax_rate($products [$i]['tax_ class_id'] ), $products[$i]['quantity']) . '</b>');
}
new productListingBox($info_bo x_contents );
?>
</td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_ trans.gif' , '100%', '10'); ?></td>
</tr>
<tr>
<td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart- >show_tota l()); ?></b></td>
</tr>
<?php
if ($any_out_of_stock == 1) {
if (STOCK_ALLOW_CHECKOUT == 'true') {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td>
</tr>
<?php
} else {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT ; ?></td>
</tr>
<?php
}
}
?>
<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" >
<tr>
<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 class="main"><?php echo tep_image_submit('button_u pdate_cart .gif', IMAGE_BUTTON_UPDATE_CART); ?></td>
<?php
$back = sizeof($navigation->path)- 2;
if (isset($navigation->path[$ back])) {
?>
<td class="main"><?php // echo '<a href="' . tep_href_link($navigation- >path[$bac k]['page'] , tep_array_to_string($navig ation->pat h[$back][' get'], array('action')), $navigation->path[$back][' mode']) . '">' . tep_image_button('button_c ontinue_sh opping.gif ', IMAGE_BUTTON_CONTINUE_SHOP PING) . '</a>'; ?><?php echo '<a href="javascript:history.g o(-1);">' . tep_image_button('button_b ack.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
<?php
}
?>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHE CKOUT_SHIP PING, '', 'SSL') . '">' . tep_image_button('button_c heckout.gi f', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_ trans.gif' , '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
} else {
?>
<tr>
<td align="center" class="main"><?php // new infoBox(array(array('text' => TEXT_CART_EMPTY)));
echo TEXT_CART_EMPTY;
?></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" >
<tr>
<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" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEF AULT) . '">' . tep_image_button('button_c ontinue.gi f', 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>
<?php
}
?>
</table>
</form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="main">To continue shopping , please select an link on the left or click on a catalogue below. </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="center"><a href="catalogues.php"><img src="images/C_C_Image.jpg" width="151" height="213" border="0"></a> </div ></td>
<td><div align="center"> <a href="catalogues4_nsd2004. php"></a>< /div></td>
</tr>
</table></td>
</tr>
</table>
<p> </p></td>
<td valign="top"><img src="images/blank.gif" width="10" height="4"></td>
<!-- body_text_eof
<td bgcolor="CCD9E1" width="1%" valign="top"><table bgcolor="CCD9E1" border="0" width="<?php // echo BOX_WIDTH_RIGHT; ?>" 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 //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
========================== ========== ========== ========== ========== ====
It would be great if the customer could print this form out so that they can keep a record of what they have ordered.....
Thanks for your time....
Ive got this website that is made usin oscommerce/Dreamweaver. I need to put a print button on some of the pages. I need the print button to only print the form and not the rest of the screen.. i.e. the contents and the top of the webpage.
I already have two other PHP buttons which are the checkout and update buttons. Below is the code to the page that i need the print button to go on.
==========================
<?php
require("includes/applicat
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART);
$breadcrumb->add(NAVBAR_TI
?>
<!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 height="2" valign="top" bgcolor="003366"><?php // echo '<a href="' . tep_href_link(FILENAME_DEF
<td height="2" valign="top" background="images/line.gi
<td height="2" valign="top"> </td>
<td height="2" valign="top"><?php echo tep_draw_form('cart_quanti
<?php // echo HEADING_TITLE; ?>
</span></td>
<td valign="top"> </td>
</tr>
<tr>
<td bgcolor="003366" valign="top"><table bgcolor="003366" border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table>
<p> </p></td>
<td width="7" valign="top" background="images/line.gi
<td width="10" valign="top"><img src="images/blank.gif" width="10" height="4"></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="2"> </td>
</tr>
<?php
if ($cart->count_contents() > 0) {
?>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-hea
'text' => TABLE_HEADING_REMOVE);
$info_box_contents[0][] = array('params' => 'class="productListing-hea
'text' => TABLE_HEADING_PRODUCTS);
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-hea
'text' => TABLE_HEADING_QUANTITY);
$info_box_contents[0][] = array('align' => 'right',
'params' => 'class="productListing-hea
'text' => TABLE_HEADING_TOTAL);
$any_out_of_stock = 0;
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Push all attributes information in an array
if (isset($products[$i]['attr
while (list($option, $value) = each($products[$i]['attrib
//clr 030714 move hidden field to if statement below
//echo tep_draw_hidden_field('id[
$attributes = tep_db_query("select popt.products_options_name
from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VAL
where pa.products_id = '" . $products[$i]['id'] . "'
and pa.options_id = '" . $option . "'
and pa.options_id = popt.products_options_id
and pa.options_values_id = '" . $value . "'
and pa.options_values_id = poval.products_options_val
and popt.language_id = '" . $languages_id . "'
and poval.language_id = '" . $languages_id . "'");
$attributes_values = tep_db_fetch_array($attrib
//clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily
if ($value == PRODUCTS_OPTIONS_VALUE_TEX
echo tep_draw_hidden_field('id[
$attr_value = $products[$i]['attributes_
} else {
echo tep_draw_hidden_field('id[
$attr_value = $attributes_values['produc
}
$products[$i][$option]['pr
$products[$i][$option]['op
//clr 030714 assign $attr_value
$products[$i][$option]['pr
$products[$i][$option]['op
$products[$i][$option]['pr
}
}
}
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (($i/2) == floor($i/2)) {
$info_box_contents[] = array('params' => 'class="productListing-eve
} else {
$info_box_contents[] = array('params' => 'class="productListing-odd
}
$cur_row = sizeof($info_box_contents)
$info_box_contents[$cur_ro
'params' => 'class="productListing-dat
'text' => tep_draw_checkbox_field('c
$products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
' <tr>' .
// Remove images
// ' <td class="productListing-data
// Remove link
// ' <td class="productListing-data
' <td class="productListing-data
if (STOCK_CHECK == 'true') {
$stock_check = tep_check_stock($products[
if (tep_not_null($stock_check
$any_out_of_stock = 1;
$products_name .= $stock_check;
}
}
if (isset($products[$i]['attr
reset($products[$i]['attri
while (list($option, $value) = each($products[$i]['attrib
// Remove attributes from page - Mod to display only right attributes for each product when multiple products are added together.
if ($products[$i][$option]['p
$products_name .= '<br><small><i> ' . $products[$i][$option]['pr
}
}
}
$products_name .= ' </td>' .
' </tr>' .
'</table>';
$info_box_contents[$cur_ro
'text' => $products_name);
$info_box_contents[$cur_ro
'params' => 'class="productListing-dat
'text' => tep_draw_input_field('cart
$info_box_contents[$cur_ro
'params' => 'class="productListing-dat
'text' => '<b>' . $currencies->display_price
}
new productListingBox($info_bo
?>
</td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_
</tr>
<tr>
<td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart-
</tr>
<?php
if ($any_out_of_stock == 1) {
if (STOCK_ALLOW_CHECKOUT == 'true') {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT;
</tr>
<?php
} else {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT
</tr>
<?php
}
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" >
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_
<td class="main"><?php echo tep_image_submit('button_u
<?php
$back = sizeof($navigation->path)-
if (isset($navigation->path[$
?>
<td class="main"><?php // echo '<a href="' . tep_href_link($navigation-
<?php
}
?>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHE
<td width="10"><?php echo tep_draw_separator('pixel_
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
} else {
?>
<tr>
<td align="center" class="main"><?php // new infoBox(array(array('text'
echo TEXT_CART_EMPTY;
?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" >
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEF
<td width="10"><?php echo tep_draw_separator('pixel_
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table>
</form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td class="main">To continue shopping , please select an link on the left or click on a catalogue below. </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="center"><a href="catalogues.php"><img
<td><div align="center"> <a href="catalogues4_nsd2004.
</tr>
</table></td>
</tr>
</table>
<p> </p></td>
<td valign="top"><img src="images/blank.gif" width="10" height="4"></td>
<!-- body_text_eof
<td bgcolor="CCD9E1" width="1%" valign="top"><table bgcolor="CCD9E1" border="0" width="<?php // echo BOX_WIDTH_RIGHT; ?>" 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 //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php');
==========================
It would be great if the customer could print this form out so that they can keep a record of what they have ordered.....
Thanks for your time....
Here's a qwik way to resolve the issue:
Save a version of the page as a html file from within the browser. Open it in Dreamweaver and edit the css so that it displays how you want it to display for print. Copy the css into a new css file for your site, say print.css. Link the print.css file in the page header tags with the additional attribute media="print".
Throw in a link/button for printing the page: <a href="javascript:void(0);" oncluck="window.print();"> Print page</a>.
Save a version of the page as a html file from within the browser. Open it in Dreamweaver and edit the css so that it displays how you want it to display for print. Copy the css into a new css file for your site, say print.css. Link the print.css file in the page header tags with the additional attribute media="print".
Throw in a link/button for printing the page: <a href="javascript:void(0);"
I favor radnor's idea...
By using a second style sheet for printing, you can add all the page elements to this sheet with a display:none style. Leave the table out of this sheet (unless you want to customise it's appearance for print), and nothing will display on paper apart from the table in question.
By using a second style sheet for printing, you can add all the page elements to this sheet with a display:none style. Leave the table out of this sheet (unless you want to customise it's appearance for print), and nothing will display on paper apart from the table in question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.alistapart.com/articles/goingtoprint/