chinaboy Posted May 5, 2009 Posted May 5, 2009 Can anyone help me out, as I am very new to this type of stuff. I have my site up and running, but I was trying to add an image with my telephone number to header.php but I cannot get the look I am looking for. I am trying to put the image right below the "now in your cart" text. I am not sure how to do so without affecting the layout of the page. Can someone tell me where in my header.php file should I put the information for my image. I am guessing this is the code I need to insert, but dont know where to put it. Below is my part of the code in the header.php file. You look at my site at http://sos4theotherwoman.com/ <?php echo tep_image(DIR_WS_IMAGES.'tel_number.gif')?> This is the part of the code that I inserted to display the image, but it doesn't appear correctly. <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="logo"><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'logo.gif')?></a></td><td class="logo"></a></td><?php echo tep_image(DIR_WS_IMAGES.'tel_number.gif')?> <td class="header"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><table border="0" cellspacing="0" cellpadding="0" align="center" style="width:100px"> <tr> <td class="al_left"><strong><?php echo BOX_HEADING_CURRENCIES?>:</strong> <?php echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="select"') . $hidden_get_variables . tep_hide_session_id(); echo '</form>'; ?> <span class="cont_padd"><a href="<?php echo tep_href_link('index.php')?>"></a></span></td> </tr> </table></td> <td style="width:50%;"><?php echo tep_image(DIR_WS_IMAGES.'part.gif')?></td> <td><table width="17" border="0" align="left" cellpadding="0" cellspacing="0" style="width:110px"> <tr> <td height="19" class="al_left"><strong><?php echo BOX_HEADING_LANGUAGES?>:</strong> <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } echo $languages_string; ?></td> </tr> </table></td> <td style="width:50%;"><a href="<?php echo tep_href_link('index.php')?>"><br /> </a></td> <td> <table width="88" border="0" align="center" cellpadding="0" cellspacing="0" style="width:110px;"> <tr> <td width="88" height="0" class="z1 al_left"><p><b><?php echo BOX_HEADING_SHOPPING_CART?>:</b><?php echo BOX_SHOPPING_NOW?> <a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?><a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo BOX_SHOPPING_CART_EMPTY?></a><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'tel_number.gif')?></a></p>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.