'"')) . '" wrap="' . tep_parse_input_field_data($wrap, array('"' => '"')) . '" cols="' . tep_parse_input_field_data($width, array('"' => '"')) . '" rows="' . tep_parse_input_field_data($height, array('"' => '"')) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= $GLOBALS[$name]; } elseif (tep_not_null($text)) { $field .= $text; } $field .= ''; return $field; } function href ($link, $text) { return "$text"; } function faq_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_FAQ . " WHERE $query visible='1' ORDER BY v_order")); if ($result[faq_id]) {$old_faq_id.="$result[faq_id]&"; $result[toc]=href("$PHP_SELF#$result[faq_id]", $result[question]);} return $result; } function read_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_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; }