Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> modyfikacja kodu
Arcio
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 13.02.2005

Ostrzeżenie: (0%)
-----


Witam to moj pierwszy post na tym forum i jedno z pierwszych starć z php

Kod który niżeli wkleiłem to zawartość małego skryptu logowania
W czym problem.. caly skrypt otwiera się w małym okienku infoBox a ja chciałbym aby wyswietlala sie cala zawartosc bezposrednio bez zadnego infoboxu
usuwam ostatnie 3 linijki i nietety sie nic nie wyswietla
Proszę o jakieś małe światełko w tym długim tunelu php
pozdrawiam!

  1. <?php
  2.  
  3.   if (tep_session_is_registered('customer_id')) {
  4.  
  5.  
  6.  
  7. $db=DB_DATABASE;
  8.  
  9. $select=&#092;"select customers_firstname,customers_lastname from customers where customer
    s
  10. id=\"$customer_id\"\";
  11. $result=mysql_db_query($db,$select);
  12. $res=mysql_fetch_object($result);
  13.  
  14.      $in_out_action = \"<center><b>\";
  15.      $in_out_action.= LOGIN_BOX_WELCOME_TEXT;
  16.      $in_out_action.= \"</b><br>$res->customers_firstname $res->customers_lastname</center><br><center>\";
  17.      $in_out_action.='<a href=\"'.tep_href_link(FILENAME_LOGOFF, '', 'NONSSL').'\">';
  18.      $in_out_action.=LOGIN_BOX_WELCOME_LOGOUT;
  19.      $in_out_action.=\"</a>  <font color=black>&nbsp;&nbsp;|&nbsp;&nbsp;</font>\";
  20.      $in_out_action.='<a href=\"'.tep_href_link(FILENAME_ACCOUNT, '', 'SSL').'\">';
  21.      $in_out_action.= LOGIN_BOX_WELCOME_MYACCOUNT;
  22.      $in_out_action.=\"</a></center>\";
  23.      }
  24.  else
  25.      {
  26.  
  27.  
  28.   $in_out_action = ' <table>TUTAJ TAKIE HTMLOWE SPRAWY';
  29.  
  30.  
  31.  
  32.   $in_out_action.='<input type=\"submit\" value=\"';
  33.  
  34.   $in_out_action.='loguj';
  35.  
  36.  
  37.   $in_out_action.='\" name=\"Submit\">
  38.  
  39.  
  40.   </table>
  41. ';
  42.  
  43.      }
  44.   $info_box_contents = array();
  45.   $info_box_contents[] = array('text'  => $in_out_action                              
  46. );
  47.   new infoBox($info_box_contents);
  48. ?>


Ten post edytował Arcio 14.02.2005, 17:23:43
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 03:31