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_CATALOG == '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 . '?' . tep_output_string($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 = '
'"', '\'' => ''', '<' => '<', '>' => '>')) . '';
}
$field .= '';
if ($required == true) $field .= TEXT_FIELD_REQUIRED;
return $field;
}
////
// Output a jQuery UI Button
function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
static $button_counter = 1;
$types = array('submit', 'button', 'reset');
if ( !isset($params['type']) ) {
$params['type'] = 'submit';
}
if ( !in_array($params['type'], $types) ) {
$params['type'] = 'submit';
}
if ( ($params['type'] == 'submit') && isset($link) ) {
$params['type'] = 'button';
}
if (!isset($priority)) {
$priority = 'secondary';
}
$button = '';
if ( ($params['type'] == 'button') && isset($link) ) {
$button .= '';
$button_counter++;
return $button;
}
?>