FCKE22
require("FCKeditor/fckeditor.php");
// <- FCKE22
////
// The HTML href link wrapper function
function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
if ($page == '') {
die('
Error!
Unable to determine the page link!
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($connection == 'NONSSL') {
$link = HTTP_SERVER . DIR_WS_ADMIN;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL == 'true') {
$link = HTTPS_SERVER . DIR_WS_ADMIN;
} else {
$link = HTTP_SERVER . DIR_WS_ADMIN;
}
} else {
die('
Error!
Unable to determine connection method on a link!
Known methods: NONSSL SSL
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($parameters == '') {
$link = $link . $page . '?' . SID;
} else {
$link = $link . $page . '?' . $parameters . '&' . SID;
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL_CATALOG == 'true') {
$link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG;
} else {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
}
} else {
die('
Error!
Unable to determine connection method on a link!
Known methods: NONSSL SSL
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($parameters == '') {
$link .= $page;
} else {
$link .= $page . '?' . $parameters;
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
////
// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
$image = ' HTTP_CATALOG_SERVER . '/' . DIR_WS_DESIGN . "logo/order_info.gif",
"logo_ups" => HTTP_CATALOG_SERVER . '/' . DIR_WS_DESIGN . "logo/logo_ups_34x40_clr.gif",
"logo_exapaq" => HTTP_CATALOG_SERVER . '/' . DIR_WS_DESIGN . "logo/logo_exapaq_40x68.gif",
);
function accrosys_tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
global $IMAGEDB;
$image = '
OSC-91: Transformation bouton image en bouton texte
// Output a function button in the selected language
function tep_button($text, $url = '', $params = '') {
return '';
}
// <- OSC-91: Transformation bouton image en bouton texte
// -> OSC-99 - Gestion des agents commerciaux
function tep_button_new_window($text, $url = '', $params = '') {
return '';
}
// <- OSC-99 - Gestion des agents commerciaux
////
// javascript to dynamically update the states/provinces list when the country is changed
// TABLES: zones
function tep_js_zone_list($country, $form, $field) {
$countries_query = tep_db_query("select distinct zone_country_id from " . TABLE_ZONES . " order by zone_country_id");
$num_country = 1;
$output_string = '';
while ($countries = tep_db_fetch_array($countries_query)) {
if ($num_country == 1) {
$output_string .= ' if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";
} else {
$output_string .= ' } else if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n";
}
$states_query = tep_db_query("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '" . $countries['zone_country_id'] . "' order by zone_name");
$num_state = 1;
while ($states = tep_db_fetch_array($states_query)) {
if ($num_state == '1') $output_string .= ' ' . $form . '.' . $field . '.options[0] = new Option("' . PLEASE_SELECT . '", "");' . "\n";
$output_string .= ' ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option("' . $states['zone_name'] . '", "' . $states['zone_id'] . '");' . "\n";
$num_state++;
}
$num_country++;
}
$output_string .= ' } else {' . "\n" .
' ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" .
' }' . "\n";
return $output_string;
}
////
// Output a form
function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') {
$form = '