Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where do i add this code ?


Guest

Recommended Posts

Hi,

 

This is copied from another file "categories.php". It is showing proper in that file, but i have tried allmost everything to fix it in the loginboxmain.php file, but couldnt make it.

 

I need help form guru`s :-)

 

Wanna add this to the code shown down:

 

 
?>
<!-- information //-->

<!-- This is where you will include you custom box header, left column and open up your Cell for your center column
Make sure you leave the first 2 tags in here "<tr> and <td>"  they maintain the control over your entire page.
If you remove these tags all of you info will be shifted below you categories box on your pages.  If you dont
Believe me, try it....lol. //-->


<tr>
 <td> 
   <table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">
     <tr>
       <td>          <table width=100% border=0 cellpadding=0 cellspacing=0 class="infoBoxContents">
           <tr> 
             <td colspan=3 width="100%"> <img src="images/boxes/table_categories.jpg"></td>
           </tr>
           <tr> 
             <td width="100%">

 

 

Here is the file code:

 

<?php
/*
 $Id: information.php,v 1.5 2002/01/11 22:04:06 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 Copyright ? 2001 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- information //-->
         <tr>
           <td>
<?php


include("includes/configure.php");

 if (tep_session_is_registered('customer_id')) {

$info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => 'Kunde Info'
                             );

$db=DB_DATABASE;

$select="select customers_firstname,customers_lastname from customers where customers_id=\"$customer_id\"";
$result=mysql_db_query($db,$select);
$res=mysql_fetch_object($result);


    $in_out_action = "<center><b>Velkommen</b><br>$res->customers_firstname $res->customers_lastname</center><br>";
    }
else
    {

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => 'Kunde Login'


                             );

 $in_out_action = '



<form name="login" action="login.php?action=process" method="post">
    
 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="120" id="AutoNumber1" height="93">
   <tr>
     <td width="100%" height="16">
     <p align="center"><font size="1" face="Verdana">Mail adresse</font></td>
   </tr>
   <tr>
     <td width="100%" height="16">
     <p align="center">
                           <b>
                           <font size="1" color="#FFFFFF" face="Verdana"> <input maxLength="96" name="email_address" 

size="12"></font></b></td>
   </tr>
   <tr>
     <td width="100%" height="16">
     <p align="center"><font size="1" face="Verdana">Passord</font></td>
   </tr>
   <tr>
     <td width="100%" height="19">
     <p align="center">
                           <b>
                           <font size="1" color="#FFFFFF" face="Verdana"> <input type="password" maxLength="40" value name="password"  

size="12"></font></b></td>
   </tr>
   <tr>
     <td width="100%" height="1">
     <p align="center">

<input type="submit" value="Login" name="Submit">


</td>
   </tr>
   </form>
 </table><BR>
<center>
           <A HREF=create_account.php . "\"><b>Opprett konto</b></A><BR>

           <A HREF=password_forgotten.php . "\">Glemt passord</A><BR>
          </center>



';
    }

 new infoBoxHeading($info_box_contents, false, false);


 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text'  => $in_out_action                              
);

 new infoBox($info_box_contents);

?></td></tr></p>
<!-- information_eof //-->

Link to comment
Share on other sites

what problem, specifically, are you having? Are you getting an error message? Is the content showing up, but doesn't look right?

 

The more specific you are, the more specific others can be in helping you.

 

-jared

Link to comment
Share on other sites

Hi,

 

When i add the code into the file, it shows the picture, but it allso shows content of the cart....i dont understand why it does that...

 

Regards,

Farrukh Munir

 

 

 

 

what problem, specifically, are you having?  Are you getting an error message?  Is the content showing up, but doesn't look right?

 

The more specific you are, the more specific others can be in helping you.

 

-jared

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...