Error! Unable to determine the page link!
Function used:
oos_href_link_admin(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
$link = OOS_HTTPS_SERVER . OOS_SHOP . OOS_ADMIN;
if (oos_is_not_null($parameters)) {
$link = $link . $page . '?' . oos_output_string($parameters) . '&' . SID;
} else {
$link = $link . $page . '?' . SID;
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
/**
* The HTML catalog href link wrapper function
*
* @param $modul
* @param $page
* @param $parameters
* @param $connection
* @return string
*/
function oos_catalog_link($page = '', $parameters = '') {
$page = oos_output_string($page);
if ($page == '') {
die('Error! Unable to determine the page link!
Function used:
oos_href_link_admin(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')
');
}
$link = OOS_HTTPS_SERVER . OOS_SHOP;
if ($parameters == '') {
$link .= 'index.php?content=' . $page;
} else {
$link .= 'index.php?content=' . $page . '&' . oos_output_string($parameters);
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
/**
* The HTML catalog href link wrapper function
*
* @param $src
* @param $alt
* @param $width
* @param $height
* @param $params
* @return string
*/
function oos_image($src, $alt = '', $width = '', $height = '', $params = '') {
$image = '
' . $title . '';
}
/**
* Outputs a submit button
*
* @param $title
* @return string
*/
function oos_submit_button($title = '') {
return '';
}
/**
* Outputs a reset button
*
* @param $title
* @return string
*/
function oos_reset_button($title = '') {
return '';
}
/**
* Outputs a back button
*
* @param $title
* @return string
*/
function oos_back_button($title = '') {
return '';
}
/**
* javascript to dynamically update the states/provinces list when the country is changed
*
* @param $country
* @param $form
* @param $field
* @return string
*/
function oos_is_zone_list($country, $form, $field) {
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$countries_query = "SELECT distinct zone_country_id
FROM " . $oostable['zones'] . "
ORDER BY zone_country_id";
$countries_result = $dbconn->Execute($countries_query);
$num_country = 1;
$output_string = '';
while ($countries = $countries_result->fields) {
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 = "SELECT zone_name, zone_id
FROM " . $oostable['zones'] . "
WHERE zone_country_id = '" . $countries['zone_country_id'] . "'
ORDER BY zone_name";
$states_result = $dbconn->Execute($states_query);
$num_state = 1;
while ($states = $states_result->fields) {
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++;
// Move that ADOdb pointer!
$states_result->MoveNext();
}
$num_country++;
// Close result set
$states_result->Close();
// Move that ADOdb pointer!
$countries_result->MoveNext();
}
// Close result set
$countries_result->Close();
$output_string .= ' } else {' . "\n" .
' ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" .
' }' . "\n";
return $output_string;
}
/**
* Output a form
*
* @param $name
* @param $action
* @param $parameters
* @param $method
* @param $params
* @return string
*/
function oos_draw_form($id, $name, $action, $parameters = '', $method = 'post', $parsley_validate = TRUE, $params = '') {
$form = '