src/chxj_hdml.c
/**
 * It is a handler that takes charge of the processing of the input tag. 
 *
 * @param pdoc [i/o] The pointer to the HDML structure at the output
 *                   destination is specified.
 * @param node [i]   The tag node to be processed is specified. 
 */
It is a handler that takes charge of the processing of the input tag.
@param pdoc [i/o] The pointer to the HDML structure at the output
destination is specified.
@param node [i]   The tag node to be processed is specified.
It is a handler that takes charge of the processing of the input tag . @param pdoc [ i / o ] The pointer to the HDML structure at the output destination is specified . @param node [ i ] The tag node to be processed is specified .
static char *
s_hdml_start_input_tag(void *pdoc, Node *node) 
{
  hdml_t *hdml = GET_HDML(pdoc);
  Doc    *doc  = hdml->doc;
  Attr   *attr;
  for (attr = qs_get_attr(doc,node); 
       attr; 
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    if (STRCASEEQ('t','T',"type",name)) {
      if (STRCASEEQ('t','T',"text",value)) {
        s_hdml_do_input_text_tag(hdml, node);
      }
      else if (STRCASEEQ('p','P',"password",value)) {
        s_hdml_do_input_password_tag(hdml, node);
      }
      else if (STRCASEEQ('s','S',"submit",value)) {
        s_hdml_do_input_submit_tag(hdml, node);
      }
      else if (STRCASEEQ('h','H',"hidden",value)) {
        s_hdml_do_input_hidden_tag(hdml, node);
      }
      else if (STRCASEEQ('r','R',"radio",value)) {
        s_hdml_do_input_radio_tag(hdml, node);
      }
      else if (STRCASEEQ('c','C',"checkbox",value)) {
        s_hdml_do_input_checkbox_tag(hdml, node);
      }
      else if (STRCASEEQ('r','R',"reset",value)) {
        s_hdml_do_input_reset_tag(hdml, node);
      }
    }
    else if (STRCASEEQ('n','N',"name",name)) {
    }
    else if (STRCASEEQ('v','V',"value",name)) {
    }
    else if (STRCASEEQ('s','S',"size",name)) {
    }
    else if (STRCASEEQ('m','M',"maxlength",name)) {
    }
    else if (STRCASEEQ('c','C',"checked",name)) {
    }
    else  if (STRCASEEQ('a','A',"accesskey",name)) {
    }
    else if (STRCASEEQ('i','I',"istyle",name)) {
    }
  }
  hdml->hdml_br_flag = 0;
  return hdml->out;
}
static char * s_hdml_start_input_tag ( void * pdoc , Node * node ) { hdml_t * hdml = GET_HDML ( pdoc ) ; Doc * doc = hdml -> doc ; Attr * attr ; for ( attr = qs_get_attr ( doc , node ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_text_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_password_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_submit_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_hidden_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_radio_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_checkbox_tag ( hdml , node ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { s_hdml_do_input_reset_tag ( hdml , node ) ; } } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { } } hdml -> hdml_br_flag = 0 ; return hdml -> out ; }
It is a handler that takes charge of the processing of the input tag.
It is a handler that takes charge of the processing of the input tag .
/*--------------------------------------------------------------------------*/ /* The attribute of the input tag is acquired.                              */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type ='text'" tag is processed.                             */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='password'" tag is processed.                          */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='submit'" tag is processed.                            */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='hidden'" tag is processed.                            */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='radio'" tag is processed.                             */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='checkbox'" tag is processed.                          */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* "input type='reset'" tag is processed.                            */ /*--------------------------------------------------------------------*/ /* ignore */ /* ignore */ /* ignore */ /* ignore */ /* ignore */ /* ignore */ /* ignore */