Avatar billede mt79 Nybegynder
14. januar 2008 - 22:08 Der er 9 kommentarer og
1 løsning

Flyttet logo i faktura fil

Med risiko for at være "gået forkert i byen" prøver jeg lige at høre om nogen kan hjælpe mig med at få flyttet mit faktura logo (logo-invoice.gif) i denne linie til venstre top.

"<td align="left" valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?></td>"

For mig der er totalt HTML dum, ser det jo ud til at den allerede er i venstre top, men det er den ikke. Den ligger i højre side lidt nede.
Avatar billede mt79 Nybegynder
14. januar 2008 - 22:09 #1
Den fulde tekst er:

<?php
/*
  $Id: invoice.php 739 2006-06-28 07:31:36Z sasha $

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

  Copyright (c) 2003 osCommerce

  Supercharged to OpenBizBox
  http://www.openbizbox.com

  Copyright (c) 2005, Golden Planet ApS
  http://www.goldenplanet.com

  Released under the GNU General Public License
*/

require('includes/application_top.php');

require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$action = tep_db_prepare_input($HTTP_GET_VARS['action']);

//Professional Invoice and Packing Slip START

// invoice exist for this order
$verify_query = tep_db_query("select orders_id from " . TABLE_INVOICE . " where orders_id = '" . (int)$oID . "'");
$verify_id = tep_db_fetch_array($verify_query);
$sql_data_array = array('orders_id' => $oID);

if ($verify_id['orders_id'] != $oID AND $action != 'preview') {
  $invoice_id_query = tep_db_query("select MAX(invoice_id) as num from " . TABLE_INVOICE);
  $invoice = tep_db_fetch_array($invoice_id_query);
  // Check if we start a new number series
  if ($invoice['num'] < INVOICE_MIN_NUMBER) {
    tep_db_query("insert into " . TABLE_INVOICE . " (invoice_id, orders_id, invoice_date) values ('".INVOICE_MIN_NUMBER."', '". (int)$oID . "', NOW())");
  } else {
    tep_db_query("insert into " . TABLE_INVOICE . " (orders_id, invoice_date) values ('". (int)$oID . "',NOW())");
  }
}
// -END-  invoice counting

$invoice_id_query = tep_db_query("select invoice_id, invoice_date from " . TABLE_INVOICE . " where orders_id = '" . (int)$oID . "'");
$invoice = tep_db_fetch_array($invoice_id_query);
// Professional Invoice and Packing Slip END

$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

include(DIR_WS_CLASSES . 'order.php');
$order = new order($oID);

$customer_type_id = $order->customer['customer_type'];
if (empty($customer_type_id)) {
  $customer_type_id = DEFAULT_CUSTOMERS_TYPE_ID;
}

$customer_type_sql = "select t.customers_type_id as id, t.customers_type_name as name, ti.customers_type_information as information,  ti.customers_type_scan_address as scan_address from " . TABLE_CUSTOMERS_TYPE . " t INNER JOIN  " . TABLE_CUSTOMERS_TYPE_INFO . " ti ON t.customers_type_id = ti.customers_type_id where language_id = '" . (int)$languages_id . "' AND t.customers_type_id = '". $customer_type_id ."'";
$customer_type_query = tep_db_query($customer_type_sql);
$customer_type = tep_db_fetch_array($customer_type_query);
?>
<!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>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body>
<!-- body_text //-->
<br>
<br>
<br>
<br>
<br>
<table border="0" width="100%" >
  <tr>
    <td>
      <table width="100%" border="0">
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><hr></td>
          <td width="100" align="center" valign="middle"  class="pageHeading"><em><b><?php echo ENTRY_HEADLINE; ?></b></em></td>
          <td width="10%"> <hr></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0">
        <tr>
          <td width="45%" class="deliveryFrame-invoice" rowspan="2" align="left" valign="top">
            <table style="white-space:wrap;" width="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" bgcolor="#FFFFFF">
                  <table class="delivery-invoice" width="100%"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="left" valign="top"><b><?php
                      if (empty($customer_type['scan_address'])) {
                        echo ENTRY_BILLING_TO;
                      } else {
                        echo ENTRY_INVOICE_TO;
                      }
                      ?></b></td>
                    </tr>
                    <tr>
                      <td nowrap align="left" valign="bottom"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
                    </tr>
                    <tr>
                      <td align="left" valign="bottom"><?php
                      if (empty($customer_type['scan_address'])) {
                        echo tep_address_format($order->billing['format_id'], $order->billing, 1, '', '<br>');
                      } else {
                        echo nl2br($customer_type['scan_address']);
                      }
                      ?></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </td>
          <td width="45%" class="deliveryFrame-invoice" rowspan="2" align="left" valign="top">
            <table style="white-space:wrap;" width="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center" bgcolor="#FFFFFF">
                  <table class="delivery-invoice" width="100%"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="left" valign="top"><b><?php
                      if (empty($customer_type['scan_address'])) {
                        echo ENTRY_SHIP_TO;
                      } else {
                        echo ENTRY_BILLING_TO;
                      }
                      ?></b></td>
                    </tr>
                    <tr>
                      <td nowrap align="left" valign="bottom"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
                    </tr>
                    <tr>
                      <td align="left" valign="bottom"><?php
                      if (empty($customer_type['scan_address'])) {
                        echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>');
                      } else {
                        echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>');
                      }
                      ?></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </td>
          <td width="10%" align="left" style="white-space:wrap;">
            <table style="white-space:wrap;"  class="pageHeading-invoice" width="100%" border="0" cellpadding="0" cellspacing="0"  >
              <tr>
                <td align="left" valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?></td>
              </tr>
              <tr>
                <td align="left" valign="top"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td>
              </tr>
            </table>
            <table class="customer-invoice" style="white-space:wrap;"  width="100%" border="0" cellpadding="0" cellspacing="0"  >
              <tr>
                <td colspan="2"><i><?php echo ENTRY_CUSTOMER_INFO; ?></i></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
              </tr>
              <tr>
                <td colspan="2"><b><?php echo ENTRY_CUSTOMER_ID; ?></b><br/>
                &nbsp;<?php echo $order->customer['id']; ?></td>
              </tr>
              <tr>
                <td colspan="2"><b><?php echo ENTRY_CUSTOMER_TYPE; ?></b><br/>
                &nbsp;<?php echo $customer_type['name']; ?></td>
              </tr>
              <tr>
                <td colspan="2"><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></b><br/>
                &nbsp;<?php echo $order->customer['telephone']; ?></td>
              </tr>
              <tr>
                <td colspan="2"><b><?php echo IMAGE_EMAIL; ?>:</b><br/>
                &nbsp;<?php echo $order->customer['email_address']; ?></td>
              </tr>
              <!-- Standard layout
              <tr>
                <td nowrap><b><?php echo ENTRY_CUSTOMER_ID; ?></b></td>
                <td nowrap>&nbsp;<?php echo $order->customer['id']; ?></td>
              </tr>
              <tr>
                <td nowrap><b><?php echo ENTRY_CUSTOMER_TYPE; ?></b></td>
                <td nowrap>&nbsp;<?php echo $customer_type['name']; ?></td>
              </tr>
              <tr>
                <td nowrap width="100"><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></b></td>
                <td nowrap>&nbsp;<?php echo $order->customer['telephone']; ?></td>
              </tr>
              <tr>
                <td nowrap><b><?php echo IMAGE_EMAIL; ?>:</b></td>
                <td nowrap>&nbsp;<?php echo $order->customer['email_address']; ?></td>
              </tr>
              -->
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?></td>
              </tr>
              <tr>
                <td><b><?php echo ENTRY_INVOICE_NUMBER; ?></b></td>
                <td>&nbsp;<?php
                if ($action != 'preview') {
                  echo INVOICE_NUMBER_PREFIX . $invoice['invoice_id'] . INVOICE_NUMBER_SUFFIX;
                } else {
                  echo INVOICE_NUMBER_PREVIEW;
                }
                ?></td>
              </tr>
              <tr>
                <td nowrap><b><?php echo ENTRY_INVOICE_DATE; ?></b></td>
                <td nowrap>&nbsp;<?php echo strftime(DATE_FORMAT_SHORT, strtotime($invoice['invoice_date'])); ?></td>
              </tr>
            </table>
          </td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" >
        <tr>
          <td class="main-payment"><b><?php echo ENTRY_ORDER_NUMBER ?></b> <?php echo $oID; ?></td>
          <td class="main-payment"><b><?php echo ENTRY_ORDER_DATE ?> </b><?php echo tep_date_short($order->info['date_purchased']); ?></td>
          <!--<td class="main-payment"><b><?php echo ENTRY_INVOICE_NUMBER ?></b> <?php echo INVOICE_NUMBER_PREFIX . $invoice['invoice_id'] . INVOICE_NUMBER_SUFFIX; ?></td>-->
          <td class="main-payment"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b>&nbsp;<?php echo $order->info['payment_method']; ?></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><pre><?php echo tep_draw_separator('pixel_trans.gif', '1', '40'); ?></pre></td>
  </tr>
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr class="dataTableHeadingRow">
        <td class="dataTableHeadingContent-invoice" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
        <td width="20%" class="dataTableHeadingContent-invoice"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
<?php
        if (DISPLAY_PRICE_WITH_TAX == 'true') {
          echo '        <td nowrap width="10%" class="dataTableHeadingContent-invoice" align="right">'.TABLE_HEADING_TAX."</td>\n";
        }
        if (INVOICE_SHOW_LINE_PRICE == 'True') {
          if (DISPLAY_PRICE_WITH_TAX == 'false') {
            echo '        <td nowrap width="10%" class="dataTableHeadingContent-invoice" align="right">'.TABLE_HEADING_PRICE_EXCLUDING_TAX."</td>\n";
          } else {
            echo '        <td nowrap width="10%" class="dataTableHeadingContent-invoice" align="right">'.TABLE_HEADING_PRICE_INCLUDING_TAX."</td>\n";
          }
        }
        if (INVOICE_SHOW_LINE_TOTAL == 'True') {
          if (DISPLAY_PRICE_WITH_TAX == 'false') {
            echo '        <td nowrap width="10%" class="dataTableHeadingContent-invoice" align="right">'.TABLE_HEADING_TOTAL_EXCLUDING_TAX."</td>\n";
          } else {
            echo '        <td nowrap width="10%" class="dataTableHeadingContent-invoice" align="right">'.TABLE_HEADING_TOTAL_INCLUDING_TAX."</td>\n";
          }
        }
?>
      </tr>
<?php
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
      echo '      <tr class="dataTableRow">' . "\n" .
          '        <td width="5%" class="dataTableContent-invoice" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
          '        <td class="dataTableContent-invoice" valign="top">' . $order->products[$i]['name'];

      if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) {
        for ($j = 0; $j < $k; $j++) {
          echo '<br><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
          if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
          echo '</i></small>';
        }
      }

      echo '        </td>' . "\n" .
          '        <td class="dataTableContent-invoice" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
      if (DISPLAY_PRICE_WITH_TAX == 'true') {
        echo '        <td class="dataTableContent-invoice" align="right" valign="top" style="white-space:nowrap;">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
      }
      if (INVOICE_SHOW_LINE_PRICE == 'True') {
        if (DISPLAY_PRICE_WITH_TAX == 'false') {
          echo '        <td class="dataTableContent-invoice" align="right" valign="top" style="white-space:nowrap;"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
        } else {
          echo '        <td class="dataTableContent-invoice" align="right" valign="top" style="white-space:nowrap;"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
        }
      }
      if (INVOICE_SHOW_LINE_TOTAL == 'True') {
        if (DISPLAY_PRICE_WITH_TAX == 'false') {
          echo '        <td class="dataTableContent-invoice" align="right" valign="top" style="white-space:nowrap;"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
        } else {
          echo '        <td class="dataTableContent-invoice" align="right" valign="top" style="white-space:nowrap;"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
        }
      }
      echo '      </tr>' . "\n";
    }
?>
      <tr>
        <td align="right" colspan="8"><br> <table border="0" cellspacing="0" cellpadding="2">
<?php
  for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" .
        '            <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
        '            <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
        '          </tr>' . "\n";
  }
?>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '40'); ?></td>
  </tr>
  <tr>
    <td colspan="2" align="left" class="main" style="padding: 5px;"><?php echo $ENTRY_FOOTER[$customer_type['id']]; ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- body_text_eof //-->

<br>
</body>
</html>
<?php

  if(isset($_GET['resetlanguage'])){
      $HTTP_GET_VARS['language'] = tep_db_prepare_input($_GET['resetlanguage']);
      if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {
        if (!tep_session_is_registered('language')) {
          tep_session_register('language');
          tep_session_register('languages_id');
        }

        include_once(DIR_WS_CLASSES . 'language.php');
        $lng = new language();

        if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {
          $lng->set_language($HTTP_GET_VARS['language']);
        } else {
          $lng->get_browser_language();
        }

        $language = $lng->language['directory'];
        $languages_id = $lng->language['id'];
      }
  }

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
Avatar billede svelmoe Nybegynder
14. januar 2008 - 23:08 #2
Du har måske noget css der "overruler" din align="left" og valign="top"

prøv at kig lidt på det der er sat på din table evt.
Avatar billede mt79 Nybegynder
14. januar 2008 - 23:55 #3
Øhh...som jeg skrev er jeg totalt HTML mongol, så du må lige forklare hvad css og table er?
Avatar billede svelmoe Nybegynder
15. januar 2008 - 12:56 #4
Okay :) du har din kode som var:

<td align="left" valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?></td>

her har du sat align="left" valign="top" rigtigt nok som burde placere dit indhold øverst til venstre.

dit indhold ligger i en <td></td>.
<td></td> er en del af en <table></table> som hovedregel.

f.eks
<table> = rammen
  <tr> = række1
    <td>indhold1</td> = kolonne1
    <td>indhold2</td> = kolonne2
  </tr> = række1 slut
</table> = ramme slut

ovenstående er med beskrivelse, og skal se sådan ud uden:

<table>
  <tr>
    <td>indhold1</td>
    <td>indhold2</td>
  </tr>
</table>

CSS (Cascading Style Sheets) er til at få tekst, tables, form's og meget andet til at se ud som ønsket. Læs mere her:
http://www.html.dk/tutorials/css/

Din starten af din table hvor dit logo ligger i ser sådan her ud:

<table style="white-space:wrap;"  class="pageHeading-invoice" width="100%" border="0" cellpadding="0" cellspacing="0"  >
              <tr>
                <td align="left" valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?></td>....

her har du som før nævnt rigtig nok sat <td align="left" valign="top">.

men i din table start referere du til noget CSS: class="pageHeading-invoice".

den referere til noget kode, som muligvis også påvirker din td's udseende.

css kode kan ligge i selve sidens kode. en anden mulighed er at den ligger eksternt.

et sted i din kode har du:
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">.

og jeg vil skyde på det er der class="pageHeading-invoice" er sat.

filen ligger her : includes/stylesheet.css, tag den frem og find pageHeading-invoice.
og se om der ikke er skrevet noget modstridende der.

håber jeg er til noget hjælp, er ikke så erfaren i at besvare spørgsmål :-)
Avatar billede mt79 Nybegynder
15. januar 2008 - 15:52 #5
Jeg synes ikke rigtigt at der står noget om "logo-invoice.gif" i stylesheet.ccs? Men du kan lige se den her:

/*
  $Id: stylesheet.css 362 2006-01-10 15:00:37Z sasha $

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

  Copyright (c) 2003 osCommerce

  Supercharged to OpenBizBox
  http://www.openbizbox.com

  Copyright (c) 2005, Golden Planet ApS
  http://www.goldenplanet.com

  Released under the GNU General Public License
*/

/* Product Tabs [start]*/
.rel_heading{
  font-family:Tahoma, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-decoration: underline;
}

.attributeRemove {
  background-color: #FFC6C6;
}

.attributeAdd {
  background-color: #E8FFC6;
}




form {
        margin: 0;
        padding: 0;
}

/* over ride styles from webfxlayout */

.tab-page { background: #FFFFFF; }
.dynamic-tab-pane-control h2 {
        text-align: center;
        width: auto;
}

.dynamic-tab-pane-control h2 a {
        display: inline;
        width: auto;
}

.dynamic-tab-pane-control a:hover {
        background: transparent;
}

/* Product Tabs [end]*/



.infoBoxButton { font-family: Verdana, Arial, sans-serif; font-size: 9px; color: white; font-weight: bold; padding: 2px; margin: 1px; border: 1px solid black; background-color: #8DAD23; }
.operationButton { font-family: Verdana, Arial, sans-serif; font-size: 9px; color: white; font-weight: bold; padding: 2px; margin: 1px; border: 1px solid black; background-color: #2386AD; }

/* data table */
.dataTableHeadingRow { background-color: #C9C9C9; }
.dataTableHeadingContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; padding-right: 5px;  }
.dataTableRow { background-color: #F0F1F1; }
.dataTableRowSelected { background-color: #DEE4E8; }
.dataTableRowOver { background-color: #FFFFFF; cursor: pointer;  }
.dataTableContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }

.dataTable {
  border-collapse: collapse;
  clear: both;
}

.dataTable thead th {
  background-color: #E6E6E6;
  border-width: 1px;
  border-top-color: #FFFFFF;
  border-bottom-color: #C1C1C1;
  border-left-color: #C1C1C1;
  border-right-color: #C1C1C1;
  border-style: solid;
  padding: 2px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #000000;
}

.dataTable tbody td {
  background-color: #F0F1F1;
  border-width: 1px;
  border-color: #E6E6E6;
  border-style: solid;
  padding: 2px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
  color: #000000;
}

.dataTable tr.selected td {
  background-color: #FBEBB1;
}

.dataTable tr.mouseOver td {
  background-color: #FFFAF3;
}




/* Contribution Prof_Invoice&PackingSlip */
.deliveryFrame-invoice { padding-top: 20px; padding-left: 30px; }
.delivery-invoice { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; font-weight: normal; padding:3px; }
.customer-invoice { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; font-weight: normal; padding:3px; }
.pageHeading-invoice { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; font-weight: normal; padding: 3px; }
.pageHeading-invoice2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #666666; font-weight: normal; border: 1px ridge #CCCCCC; padding: 3px; }
.dataTableHeadingContent-invoice { font-family: Verdana, Arial, sans-serif; border-bottom: 2px solid black; font-size: 11px; color: #000000; font-weight: bold;}
.dataTableContent-invoice { padding-right: 5px; font-family: Verdana, Arial, sans-serif;        font-size: 10px; color: #000000; font-weight: bold;}
.main-payment { font-family: Verdana, Arial, sans-serif; font-size: 12px; background-color: #FFFF99; border: 1px ridge #000000; }

.img_bg {background-color:#CFD1D8}

/*  new admin menu [raa]*/
.sub_active { font-family: Verdana, Arial, sans-serif; font-size: 12px; background-color:#DEE4E8}
.sub_inactive { font-family: Verdana, Arial, sans-serif; font-size: 12px; background-color:#F8F8F8}
.topactive { font-family: Verdana, Arial, sans-serif; font-size: 11px; background-color:#C9C9C9}
/*  new admin menu [end]*/

/* Nesletter send window */
table.newsTable { empty-cells:show; width: 100%; height: 100%; }
td.newsLogo { font-size: 14px; font-family: Verdana, sans-serif; color: #000000; padding: 0px;  }
td.newsTitle { font-size: 18px; font-family: Verdana, sans-serif; color: #000000; padding: 0px;}
td.newsHeader { background-color:#7A1315; font-family: Verdana, sans-serif; font-size:11px; color:#FFFFFF; padding: 4px;}
td.newsLeft { background-color:#BAAFA4; vertical-align: top; overflow: auto;
              font-family: Verdana, sans-serif; font-size:10px; padding: 0px; border-right: 1px solid black; border-bottom: 1px solid black; }
td.newsRight { font-family: Verdana, sans-serif; font-size:11px; border-bottom: 1px solid black; }
td.newsBottom { padding: 4px; }
table.newsProgress { empty-cells: show; background-color: rgb(0, 0, 153); }

/* QG */
.tableLines {background-color:#000000; border: 1px solid black; empty-cells:show;}
.tableLogo {padding: 10px; height: 10px}
.tableHeader {background-color:#7A1315; font-family: Verdana, sans-serif; font-size:12px; color:#FFFFFF; padding: 4px;}
.tableLeftColumn {background-color:#BAAFA4; font-family: Verdana, sans-serif; font-size:11px; padding: 4px;}
.tableBody {background-color:#F0F0F0; font-family:Verdana, sans-serif; font-size:12px; padding: 4px;}
.tableFont {font-family: Verdana, sans-serif; font-size:12px;}
a.QGLink:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.QGLink:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.QGLink:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.QGLink:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #FF0000; font-weight: bold; text-decoration: underline; }

/* links */

a:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: normal; text-decoration: none; }
a:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: normal; text-decoration: none; }
a:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: normal; text-decoration: none; }
a:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; font-weight: normal; text-decoration: underline; }

a.headerLink:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; text-decoration: none; }
a.headerLink:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; text-decoration: none; }
a.headerLink:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; text-decoration: none; }
a.headerLink:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; text-decoration: underline; }

a.textLink:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.textLink:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.textLink:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: bold; text-decoration: underline; }
a.textLink:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #FF0000; font-weight: bold; text-decoration: underline; }

a.menuBoxHeadingLink:link { font-size: 10px; color: #616060; font-weight: bold; text-decoration: none; }
a.menuBoxHeadingLink:visited { font-size: 10px; color: #616060; font-weight: bold; text-decoration: none; }
a.menuBoxHeadingLink:active { font-size: 10px; color: #616060; font-weight: bold; text-decoration: none; }
a.menuBoxHeadingLink:hover { font-size: 10px; color: #616060; font-weight: bold; text-decoration: none; }

a.menuBoxContentLink:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; font-weight: normal; text-decoration: none; }
a.menuBoxContentLink:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; font-weight: normal; text-decoration: none; }
a.menuBoxContentLink:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; font-weight: normal; text-decoration: none; }
a.menuBoxContentLink:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; font-weight: normal; text-decoration: underline; }

a.splitPageLink:link { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: normal; text-decoration: none; }
a.splitPageLink:visited { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: normal; text-decoration: none; }
a.splitPageLink:active { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: normal; text-decoration: none; }
a.splitPageLink:hover { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #0000FF; font-weight: normal; text-decoration: underline; background-color: #FFFF33; }

/* menu box */
.menuBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; background-color: #ffffff; }
.menuBoxContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #616060; }

/* page */
body { background-color: #ffffff; color: #000000; margin: 0px; }
.headerBar { background-color: #7A1315; }
.headerBarContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; padding: 2px; }
.columnLeft { background-color: #F0F1F1; border-color: #999999; border-width: 1px; border-style: solid; padding: 2px; }
.pageHeading { font-family: Verdana, Arial, sans-serif; font-size: 18px; color: #727272; font-weight: bold; }
.pageHeadingSmall { font-family: Verdana, Arial, sans-serif; font-size: 14px; color: #727272; font-weight: bold; }

/* info box */
.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; background-color: #B3BAC5; }
.infoBoxContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; background-color: #DEE4E8; }
.infoBoxTable { color: #000000; background-color: #DEE4E8; border: 1px solid #929699; }

/* message box */

.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }
.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }

/* forms */
CHECKBOX, INPUT, RADIO, SELECT, TEXTAREA, FILE { font-family: Verdana, Arial, sans-serif; font-size: 11px; }
FORM { display: inline; }

/* account */
.formArea { background-color: #f1f9fe; border-color: #7b9ebd; border-style: solid; border-width: 1px; }
.formAreaTitle { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; }

/* attributes */
.attributes-odd { background-color: #f4f7fd; }
.attributes-even { background-color: #ffffff; }

/* miscellaneous */
.specialPrice { color: #ff0000; }
.oldPrice { text-decoration: line-through; }
.fieldRequired { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }
.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.main { font-family: Verdana, Arial, sans-serif; font-size: 12px; }
.infoHeading { font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; border-bottom: 1px solid gray; }
.infoTable { font-family: Verdana, Arial, sans-serif; font-size: 10px; border: 1px solid gray; }
.errorText { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }
.highlighted { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #010000; background: #ffff66; }

/* mod: Visitor Web Stats [start] */
.VisitorTableBox {border-top: solid 1px #000000; border-left: solid 1px #000000; }
.VisitorTableHeadingContent { font: bold 8pt Verdana, Arial, sans-serif; color: #000000; border-right: solid 1px #000000; border-bottom: solid 1px #000000; }
.VisitorTableContent { font: normal 8pt Verdana, Arial, sans-serif; color: #000000; border-right: solid 1px #000000; border-bottom: solid 1px #000000; }
/* mod: Visitor Web Stats [end] */

OLDtd {
border: 1px solid #aaa;
white-space: nowrap;
color: black;
background: #f6f6f6;
}
tr.headers td {
color: black;
background: #fe6;
white-space: nowrap;
border: 1px #aaa solid;
font-weight: bold;
text-align: center;
}

tr.headers td.orderStatus{
background: #eee;
text-align: right;
}
td.orderNr, td.price, td.qty {
text-align: right;
}
span.orderStat {
color: #d00;
}
span.date {
float: left;
}
/* column width's (should add up to 100%) */
td.orderNr, td.price {
width: 7%;
}
td.model {
width: 20%;
}
td.name {
width: 30%;
}
td.qty, td.chk {
width: 5%;
}
td.notes {
width: 26%
}
@media print {
  body, html, table {
  font-size: 7pt;
  }
}

a.dataTableHeadingContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; padding-right: 5px; }
a.menu { font-family: Verdana, Arial, sans-serif; font-size: 12px; text-decoration: underline;}
a.menu:visited { font-family: Verdana, Arial, sans-serif; font-size: 12px; text-decoration: underline;}
a.menu:active { font-family: Verdana, Arial, sans-serif; font-size: 12px; text-decoration: underline;}
a.menu:link { font-family: Verdana, Arial, sans-serif; font-size: 12px; text-decoration: underline;}
a.menu:hover {font-family: Verdana, Arial, sans-serif; font-size: 12px; text-decoration: underline; color: #5f5f5f;}

/* QG 2.0 */
.tip_0, a.tip_0 {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
}
Avatar billede svelmoe Nybegynder
15. januar 2008 - 16:24 #6
det var heller ikke selve filen du skulle lede efter :-)

det var pageHeading-invoice. men kan se der ikke er noget der skulle påvirke eller overskrive din align og valign i:

.pageHeading-invoice { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; font-weight: normal; padding: 3px; }.


hvad sker der hvis du fjerner style="white-space:wrap;"

i:
<table style="white-space:wrap;"  class="pageHeading-invoice" width="100%" border="0" cellpadding="0" cellspacing="0"  >
              <tr>
                <td align="left" valign="top"><?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?></td>....
Avatar billede svelmoe Nybegynder
15. januar 2008 - 16:27 #7
Kan lige tilføje at grunden til du ikke skal lede efter gif filen i stylesheet.css.
Er at du kalder en style i din table.

sådan her:

class="pageHeading-invoice" på den måde finder den selv det kode der er i stylesheet
Avatar billede mt79 Nybegynder
15. januar 2008 - 16:48 #8
Det hjalp ikke at fjerne - style="white-space:wrap;" - hvad kan jeg så prøve?
Avatar billede svelmoe Nybegynder
17. januar 2008 - 11:26 #9
det logo der er tale om, er det bare et billede? eller har det en funktion?

for ellers kunne du prøve at skifte:

<?php echo tep_image(DIR_WS_IMAGES . 'logo-invoice.gif', ''); ?>

ud med:

<img src="logo-invoice.gif" border="0" height="xxx" width="xxx">

(xxx skal lige udskiftes med de rigtige værdier)

Men jeg må indrømme det er et skud fra hoften.
Avatar billede mt79 Nybegynder
25. april 2008 - 00:15 #10
Virkede ikke rigtigt - LUKKET
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester