|
/*
$Id: support_functions.php,v 1.3 2003/02/05 12:55:51 puddled Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 Puddled Computer Services
Contributed by Puddled Computer services
http://www.puddled.co.uk
Author David Howarth
Email dave@puddled.co.uk
Released under the GNU General Public License
*/
function cutstr ($string, $len) {
$i = $len;
while ($i < strlen($string)) {
if ($string[$i] == " ") {
$string = substr($string, 0, $i)."...";
return $string;
}
$i++;
}
return $string;
}
function internal_href ($link, $text) {
return "$text";
}
function tep_draw_faq_field($name, $wrap, $width, $height, $text = '', $parameters = 'maxlength=128', $reinsert_value = true) {
$field = '';
return $field;
}
function faq_internal_toc () {
global $PHP_SELF;
static $old_faq_id;
if ($old_faq_id) {
$exclude=explode("&", $old_faq_id);
while (list($dummy,$old_id)=each($exclude)) {
if ($old_id) {$query.="faq_id != $old_id AND ";unset($old_id);}
}
}
// $result=mysql_fetch_array(mysql_db_query(DB_DATABASE, "SELECT faq_id, question FROM " . TABLE_FAQ . " WHERE $query visible='1' ORDER BY v_order"));
$result=tep_db_fetch_array(tep_db_query("SELECT faq_id, question FROM " . TABLE_INTERNAL_FAQ . " WHERE $query visible='1' ORDER BY v_order"));
if ($result[faq_id]) {$old_faq_id.="$result[faq_id]&"; $result[toc]=internal_href(tep_href_link(FILENAME_FAQ, '', 'NONSSL') . "#$result[faq_id]", '' . $result[question] . '');}
return $result;
}
function read_internal_faq () {
static $old_faq_id;
if ($old_faq_id) {
$exclude=explode("&", $old_faq_id);
while (list($dummy,$old_id)=each($exclude)) {
if ($old_id) {$query.="faq_id != $old_id AND ";unset($old_id);}
}
}
// $result=mysql_fetch_array(mysql_db_query(DB_DATABASE, "SELECT faq_id, question, answer FROM " . TABLE_FAQ . " WHERE $query visible='1' ORDER BY v_order"));
$result=tep_db_fetch_array(tep_db_query("SELECT faq_id, question, answer FROM " . TABLE_INTERNAL_FAQ . " WHERE $query visible='1' ORDER BY v_order"));
if ($result[faq_id]) {
$old_faq_id.="$result[faq_id]&";
$result[faq]="$result[question]
$result[answer]";
}
return $result;
}
|
En QUINTERO CARRERO & ASOCIADOS, S.C., hemos desarrollado nuestra experiencia en diferentes sectores, cuyas actividades de negocios está centrada en los siguientes sectores:
Quintero Carrero & Asociados
Av. 15 con Esquina 73 Unicentro Naro Primer Piso, Locales 10 y 11. Maracaibo, Estado Zulia - Venezuela.
Telefono:+58 (0261) 797-98-82 / 797-49-65 / 797-19-60 / 798-95-97 / 798-60-58
Email: info@qca.com.ve