function tep_draw_form($name, $action, $method = 'post', $parameters = '')
 {
     $form = '<form name="' . tep_parse_input_field_data($name, array('"' => '&quot;')) . '" action="' . tep_parse_input_field_data($action, array('"' => '&quot;')) . '" method="' . tep_parse_input_field_data($method, array('"' => '&quot;')) . '"';
     if (tep_not_null($parameters)) {
         $form .= ' ' . $parameters;
     }
     $form .= '>';
     return $form;
 }
示例#2
0
 function tep_output_string($string, $translate = false, $protected = false) {
   if ($protected == true) {
     return htmlspecialchars($string);
   } else {
     if ($translate == false) {
       return tep_parse_input_field_data($string, array('"' => '&quot;'));
     } else {
       return tep_parse_input_field_data($string, $translate);
     }
   }
 }
示例#3
0
function tep_output_string($string, $translate = false, $protected = false)
{
    if ($protected == true) {
        return str_replace("'", '&#039;', htmlspecialchars(stripslashes($string)));
    } else {
        if ($translate == false) {
            return tep_parse_input_field_data($string, array('"' => '&quot;'));
        } else {
            return tep_parse_input_field_data($string, $translate);
        }
    }
}