Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected T_STRING in /includes/languages/english/index.php on line 13


fabian2005

Recommended Posts

Posted

Does anyone know how to resolve this problem

Parse error: syntax error, unexpected T_STRING in /includes/languages/english/index.php on line 13

Posted
Does anyone know how to resolve this problem

Parse error: syntax error, unexpected T_STRING in /includes/languages/english/index.php on line 13

 

 

check you index page some thing is wrong/ missing on line no 13 or 12.

When I was born, I was cryed and everyone around me was smiling.

Live our life so at the end,

I am the one who is smiling and everyone around me is crying.

Posted
Paste your /includes/languages/english/index.php page

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define('TEXT_MAIN', '<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define('TEXT_MAIN', '');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>It is important to secure the Administration Tool as there is currently no security implementation available.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let's See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', '' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What's New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

Try this one:

 

<?php
/*
$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2007 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. Products shown are for demonstrational purposes. <b>Any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>\');</nobr><br><br>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<br><br><nobr>define(\'TEXT_MAIN\', \'\');</nobr><br><br>More information concerning the PHP define() function can be read <a href="http://www.php.net/define" target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Online Documentation</b><br><br>Online documentation can be read at the <a href="http://www.oscommerce.info" target="_blank"><u>osCommerce Knowledge Base</u></a> site.<br><br>Support is available at the <a href="http://www.oscommerce.com/support" target="_blank"><u>osCommerce Support Site</u></a>.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
 define('TABLE_HEADING_QUANTITY', 'Quantity');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All Categories');
 define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

Posted

Found a few differences doing a file compare. eg

define('HEADING_TITLE', 'Let's See What We Have Here');

define('HEADING_TITLE', 'Let\'s See What We Have Here');

 

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_BUY', 'Buy 1 \'');

 

define('TEXT_NOW', '' now');

define('TEXT_NOW', '\' now');

 

define('HEADING_TITLE', 'What's New Here?');

define('HEADING_TITLE', 'What\'s New Here?');

 

Try using the latest OsCommerce version, your one appears old.

Posted
Try using the latest OsCommerce version, your one appears old.

or a template.

Posted

I try the code above and got this error

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/varbsvqo/public_html/store/includes/header.php on line 364

Posted

wow plenty of problems ... paste your /store/includes/header.php file now

Posted

This code has an error on line 364, can someone please help

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<!--

 

 

 

 

 

 

-->

 

 

 

<table cellspacing=0 cellpadding=0 width=758 align=center>

<tr><td valign=top>

<table cellspacing=0 cellpadding=0 width=758>

<tr><td height=4></td></tr>

<tr><td>

<table cellspacing=0 cellpadding=0 width=758 class=ch1>

<tr><td align=center>

<table cellspacing=0 cellpadding=0 width=727>

<tr><td height=86>

<table cellspacing=0 cellpadding=0 width=727 height=86>

<tr><td width=313 style="padding-left: 14px" style="padding-bottom: 11px" valign=bottom><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m01.gif width=177 height=35 border=0></a></td>

<td width=99>

<table cellspacing=0 cellpadding=0>

<tr><td class=ch4>Choose language:</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>

</table>

</td>

<td width=1><img src=images/m05.gif width=1 height=40></td>

<td width=104 align=center>

<table cellspacing=0 cellpadding=0>

<tr><td class=ch4>Currencies:</td></tr>

<tr><td>

 

<? // CURRENCIES

 

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=se1"') . $hidden_get_variables . tep_hide_session_id();

echo '</form>';

 

?>

 

 

 

 

 

</td></tr>

</table>

</td>

<td width=1><img src=images/m05.gif width=1 height=40></td>

<td width=58 align=right style="padding-right: 7px"><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m06.gif width=24 height=25 border=0></a></td>

<td width=151>

<table cellspacing=0 cellpadding=0>

<tr><td class=ch4>Shopping Cart</td></tr>

<tr><td class=se4>now in your cart <a class=ml1 href=<?=tep_href_link('shopping_cart.php')?>><?=$cart->count_contents()?> items</a></td></tr>

</table>

</td></tr>

</table>

</td></tr>

<tr>

 

 

<?

switch($tab_sel){

 

case 2:

$td1 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td2 = 'width=105 height=21 border=r0 background=images/m088.jpg';

$td3 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td4 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg';

break;

 

case 3:

$td1 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td2 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td3 = 'width=105 height=21 border=r0 background=images/m088.jpg';

$td4 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg';

break;

 

case 4:

$td1 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td2 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td3 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td4 = 'width=105 height=21 border=r0 background=images/m088.jpg';

$td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg';

break;

 

case 5:

$td1 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td2 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td3 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td4 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td5 = 'width=104 height=21 border=r0 background=images/m99.jpg';

break;

 

 

default:

 

$td1 = 'width=105 height=21 border=r0 background=images/m088.jpg';

$td2 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td3 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td4 = 'width=105 height=21 border=r0 background=images/m077.jpg';

$td5 = 'width=104 height=21 border=r0 background=images/m0777.jpg';

 

}

?>

 

 

 

 

 

 

 

 

<td height=21 align=right>

<table cellspacing=0 cellpadding=0 border=0>

<tr><td <?=$td1?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('index.php')?>>Home</a></td>

<td <?=$td2?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('products_new.php')?>>New Products</a></td>

<td <?=$td3?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('account.php')?>>My Account</a></td>

<td <?=$td4?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('shopping_cart.php')?>>Shopping cart</a></td>

<td <?=$td5?> align=center valign=middle><a class=ml0 href=<?=tep_href_link('checkout_shipping.php')?>>Checkout</a></td></tr>

</table>

</td></tr>

<tr><td bgcolor=#E77B00 height=42>

<table cellspacing=0 cellpadding=0>

<tr><td width=517 style="padding-left: 23px"><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('specials.php')?> class=ml2>Specials</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('advanced_search.php')?> class=ml2>Search</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('contact_us.php')?> class=ml2>Contact Us</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <a href=<?=tep_href_link('create_account.php')?> class=ml2>Create an account</a><span class=ch5></span><img src=images/m12.gif width=5 height=5 align=absmiddle> <?=(!tep_session_is_registered('customer_id') ? '<a href='.tep_href_link('login.php').' class=ml2>Customer Login</a>' : '<a href='.tep_href_link('logoff.php').' class=ml2>Sign Out</a>')?></td>

<td width=1><img src=images/m13.gif width=1 height=23></td>

<td width=209 align=center class=ml2>Phone us: 1-800-123-1234 Toll-free</td></tr>

</table>

</td></tr>

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

</table>

</td></tr>

</table>

</td></tr>

</table>

</td></tr>

<tr><td height=100% valign=top align=center class=ch2>

<table cellspacing=0 cellpadding=0 width=727>

<tr><td width=165 valign=top>

<table cellspacing=0 cellpadding=0 width=165>

 

 

 

 

<? // ---- CATEGORIES

 

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

if(!$tree[$counter]['level']){

 

$categories_string .= $categories_string ? '<tr><td bgcolor=#68A200 align=center><img src=images/m15.gif width=162 height=1></td></tr>' : '';

 

$categories_string .= '<tr><td bgcolor=#68A200 height=25 class=ch6><img src=images/m14.gif width=5 height=5 align=absmiddle>  <a class=ml3 href=';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

$categories_string .= tep_href_link('index.php', $cPath_new) . '>';

// display categry name

$categories_string .= $tree[$counter]['name'];

$categories_string .= '</a></td></tr> ';

 

}else{ // SUBCATEGORY

 

$categories_string .= '<tr><td bgcolor=#68A200 height=25 class=ch6><img src=images/m14.gif width=5 height=5 align=absmiddle>  ';

 

for($i=0;$i<$tree[$counter]['le vel'];$i++)

$categories_string .= '     ';

 

$categories_string .= '    <a class=ml3 style="font-weight:normal;" href=';

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

$categories_string .= tep_href_link('index.php', $cPath_new) . '>-';

// display category name

$categories_string .= $tree[$counter]['name'];

$categories_string .= '</a></td></tr>';

}

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

 

 

 

define(TABLE_CATEGORIES, "categories");

define(TABLE_CATEGORIES_DESCRIPTION, "categories_description");

$categories_string = '';

$tree = array();

 

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

while ($categories = tep_db_fetch_array($categories_query)) {

$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],

'parent' => $categories['parent_id'],

'level' => 0,

'path' => $categories['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $categories['categories_id'];

}

 

$parent_id = $categories['categories_id'];

 

if (!isset($first_element)) {

$first_element = $categories['categories_id'];

}

}

 

//------------------------

if ($cPath) {

$new_path = '';

reset($cPath_array);

while (list($key, $value) = each($cPath_array)) {

unset($parent_id);

unset($first_id);

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");

if (tep_db_num_rows($categories_query)) {

$new_path .= $value;

while ($row = tep_db_fetch_array($categories_query)) {

$tree[$row['categories_id']] = array('name' => $row['categories_name'],

'parent' => $row['parent_id'],

'level' => $key+1,

'path' => $new_path . '_' . $row['categories_id'],

'next_id' => false);

 

if (isset($parent_id)) {

$tree[$parent_id]['next_id'] = $row['categories_id'];

}

 

$parent_id = $row['categories_id'];

 

if (!isset($first_id)) {

$first_id = $row['categories_id'];

}

 

$last_id = $row['categories_id'];

}

$tree[$last_id]['next_id'] = $tree[$value]['next_id'];

$tree[$value]['next_id'] = $first_id;

$new_path .= '_';

} else {

break;

}

}

}

$categories_string .= '';

tep_show_category($first_element);

$categories_string .= '';

 

echo $categories_string;

?>

 

 

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

<tr><td><a href=<?=tep_href_link('contact_us.php')?>><img src=images/m16.gif width=162 height=75 border=0></a></td></tr>

<tr><td height=69 align=center>

 

 

<? // SEARCH ?>

<table cellspacing=0 cellpadding=0>

<tr><td class=ch7 colspan=2>Site Search</td></tr>

<tr><td height=7 colspan=2></td></tr>

 

<?=tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get')?>

<tr><td width=108>

 

<?=tep_draw_input_field('keywords', '', 'size="20" maxlength="50" onclick="this.value=''" value="keyword" class=se2') . ' ' . tep_hide_session_id()?></td>

<td width=37><input type=image src=images/m17.gif></td></tr>

</form>

 

<? // END SEARCH ?>

 

 

</table>

</td></tr>

<tr><td bgcolor=#CCCCCC height=1></td></tr>

<tr><td align=center width=165>

 

 

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

 

</td></tr>

 

</table>

</td>

<td width=5></td>

<td width=557 valign=top>

<table cellspacing=0 cellpadding=0 width=557>

<tr><td><a href=<?=tep_href_link('index.php','cPath=38')?>><img src=images/m19.gif width=401 height=121 border=0></a></td>

<td width=5></td>

<td width=151 valign=top>

<table cellspacing=0 cellpadding=0 width=151>

<tr><td bgcolor=#00689F height=29 align=center class=ch14>Select manufacturer</td></tr>

<tr><td height=92 class=ch15 align=center>

 

<? // ---- MANUFACTURERS

 

 

$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");

if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {

 

echo ' <table cellspacing=0 cellpadding=0>

<tr><td height=9></td></tr>

'.

tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get')

.'<tr><td>';

 

$manufacturers_array = array();

while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {

$manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']);

$manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'],

'text' => $manufacturers_name);

}

 

echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" class=se4') . tep_hide_session_id();

echo ' </td></tr>

</form>

';

}

 

?>

 

 

<tr><td height=8></td></tr>

<tr><td align=right><a href=#><img src=images/m17.gif width=37 height=21 border=0></a></td></tr>

</table>

</td></tr>

</table>

</td></tr>

<tr><td height=4></td></tr>

<tr><td colspan=3>

Posted

I dont want to sound lazy but can you please copy and code and do the adjustment for me please and post it when you done

 

please, please, please

Posted
I dont want to sound lazy but can you please copy and code and do the adjustment for me please and post it when you done

 

please, please, please

You might want to read this.

  • 11 months later...
Posted

hello, i just got the same problem before, and then i just upload an new language file then make it default, the problem disappear.. i think this error occurs when i make a extreme translation :) ,,,anyway, can somebody help me to find download area for malay language ... im from malaysia

Archived

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

×
×
  • Create New...