Just downloaded the "login anywhere on the page" script and it looks like this:
now the variables for the two inputfields.. where are the code for them?PHP Code:<!--
--------------------------------------------------------------------
Login Anywhere 1.0 by Skeedo.com Enterprises info@skeedo.com
Released under GNU General Public License for use with OSCommerce
--------------------------------------------------------------------
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2" class="infoBoxContents">
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>
<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>
<td class="main"><?php echo tep_draw_password_field('password'); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
</tr>
<tr>
<td>
<?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?>
</td>
</tr>
</table>
</BODY>
</HTML>
I have two inputfields with css markups.. and I wonder how to transfer this:
..into this tag:Code:<input class="login_form" onFocus="this.className='login_formON'" onBlur="this.className='login_form'" type="text" name="e-mail_login" size="22">
..and then some:PHP Code:<?php echo tep_draw_input_field('email_address'); ?>
"HOW TO INSTALL
1. Upload loginbox.php to your /catalog directory.
2. Insert <?php include('loginbox.php'); ?> anywhere you desire
(replacing the <?php echo tep_customer_greeting(); ?> in default.php is a good place).
3. Thats it!"
1. what catalog directory? (templates/fallback?)
2. default.php.. where's that? ._o ..can't I put it in main_page.tpl.php?





LinkBack URL
About LinkBacks






Bookmarks