Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2010, 17:44
viajeaperu
 
Fecha de Ingreso: marzo-2010
Mensajes: 57
Antigüedad: 14 años, 1 mes
Puntos: 1
Respuesta: ¿como insertar logout para el cliente?

Luego en el header.php
agregue el codigo aquí el header.php
si hay alguien que me revise porfavor o me de sugerencia

Código PHP:
--------------------------------------      -->


  <table cellspacing=0 cellpadding=0 width=700 align=center>
   <tr><td>
        <table cellspacing=0 cellpadding=0>
         <tr><td height=34 colspan=3></td></tr>
         <tr><td><a href=<?=tep_href_link('index.php')?>><img src=images/m01.gif width=200 height=90 border=0></a></td>
             <td width=3></td>
             <td width=497>
              <table cellspacing=0 cellpadding=0>
               <tr>
                 <td width=157>                    
                    <table cellspacing=0 cellpadding=0 width=140 align=center>
                     <tr><td class=ml style="font-size:10px">Choose<br>your language:</a></td></tr>
                     <tr><td height=3></td></tr>
                     <tr><td>
<? // LANGUAGES

  
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>
                     <tr><td height=4></td></tr>
                     <tr><td><img src=images/m05.gif width=139 height=1></td></tr>
                     <tr><td height=4></td></tr>
                     <tr><td class=ml style="font-size:10px; padding-bottom:3px">Monedas:</a></td></tr>
                     <tr><td>
<? // CURRENCIES

    
echo tep_draw_form('currencies'tep_href_link(basename($PHP_SELF), ''$request_typefalse), '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();" style="width:130px " ') . $hidden_get_variables tep_hide_session_id();
    echo 
'</form>';
    
?>               
                    </td></tr> 
                    </table>                         
                   </td>
                   <td><img src=images/m06.gif width=1 height=90></td>
                   <td width=152>
                    <table cellspacing=0 cellpadding=0 width=110 align=center>
                     <tr><td height=10></td></tr>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px" href=<?php
if (!tep_session_is_registered('customer_id')) {echo("<a class=ml href='login.php')'></a></td></tr>"); }
else {echo(
"<a class=ml href='logoff.php'>Salir</a></td></tr>");}
?>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px" href=<?=tep_href_link('specials.php')?> class=ml>Ofertas</a><br></td></tr>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px" href=<?=tep_href_link('advanced_search.php')?> class=ml>B&uacute;squeda</a><br></td></tr>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px" href=<?=tep_href_link('contact_us.php')?> class=ml>Cont&aacute;ctenos</a><br></td></tr>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px" href=<?=tep_href_link('create_account.php')?> class=ml>Crear una cuenta</a><br></td></tr>
                     <tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle> &nbsp; <a style="font-size:10px"  href=<?=tep_href_link('conditions.php')?> class=ml>&iquest;Qui&eacute;nes Somos?</a><br><br></td></tr>
                    </table>                         
                   </td>
                   <td><img src=images/m06.gif width=1 height=90></td>
                   <td width=185>
                    <table cellspacing=0 cellpadding=0 width=137 align=center>
                     <tr><td height=20 colspan=2></td></tr>
                     <tr><td><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m08.gif width=40 height=40 border=0></a></td><td class=sc >Shopping<br>Cart</td></tr>                     
                     <tr><td height=3 colspan=2></td></tr>
                     <tr><td colspan=2>now in your cart &nbsp;<a href=<?=tep_href_link('shopping_cart.php')?> class=ml1><?=$cart->count_contents()?> items</a></td></tr>
                     <tr><td height=15 colspan=2></td></tr>
                    </table>                 
               </td></tr>
              </table>
         </td></tr>
         <tr><td height=3 colspan=3></td></tr>
        </table>
        <table cellspacing=0 cellpadding=0>
         <tr><td style="background-repeat:no-repeat" background=images/m15.gif width=200 height=71>

<? // SEARCH ?>
              <table cellspacing=0 cellpadding=0 width=160 align=center>
               <?=tep_draw_form('quick_find'tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get')?>                       
               <tr><td height=13 colspan=2></td></tr>
               <tr><td class=ml colspan=2><font color=#ffffff>B&uacute;squeda:</a></td></tr>
               <tr><td width=135><?=tep_draw_input_field('keywords''''size="20" maxlength="30" class=go') . tep_hide_session_id()?></td><td width=25 align=right><input type=image src=images/m09.gif width=20 height=20></td></tr>
               <tr><td width=135 align=right>
               <a href=<?=tep_href_link('advanced_search.php')?> class=ml2>B&uacute;squeda Avanzada</a></td><td width=25></td></tr>
               <tr><td height=9 colspan=2></td></tr>
               </form>
              </table>
<? // END SEARCH ?>
             </td> 
             <td width=3></td>
             <td><a href=<?=tep_href_link('index.php')?>><img src=images/m10.gif width=102 height=71 border=0></a><a href=<?=tep_href_link('products_new.php')?>><img src=images/m11.gif width=99 height=71 border=0></a><a href=<?=tep_href_link('account.php')?>><img src=images/m12.gif width=99 height=71 border=0></a><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m13.gif width=99 height=71 border=0></a><a href=<?=tep_href_link('checkout_shipping.php')?>><img src=images/m14.gif width=98 height=71 border=0></a></td></tr>
         <tr><td height=3 colspan=3></td></tr>
         <tr><td height=3 width=700 bgcolor=#9B9B9B colspan=3></td></tr>
         <tr><td height=3 colspan=3></td></tr>
        </table>
        <table cellspacing=0 cellpadding=0>
         <tr><td width=200 valign=top>
              <table cellspacing=0 cellpadding=0>
               <tr><td><img src=images/m16.gif width=200 height=43></td></tr>
               <tr><td class=bg>
                    <table cellspacing=0 cellpadding=0 width=154 align=center>
                     <tr><td height=10></td></tr>

                     </tr><tr><td height=3></td></tr>