src/chxj_chtml10.c
/**
 * It is a handler who processes the INPUT tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The INPUT tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the INPUT tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The INPUT tag node is specified.
@return The conversion result is returned.
It is a handler who processes the INPUT tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The INPUT tag node is specified . @return The conversion result is returned .
static char *
s_chtml10_start_input_tag(void *pdoc, Node *node) 
{
  chtml10_t     *chtml10;
  Doc           *doc;
  request_rec   *r;
  char          *max_length;
  char          *type;
  char          *name;
  char          *value;
  char          *istyle;
  char          *size;
  char          *checked;
  char          *accesskey;
  chtml10     = GET_CHTML10(pdoc);
  doc         = chtml10->doc;
  r           = doc->r;
  max_length  = NULL;
  type        = NULL;
  name        = NULL;
  value       = NULL;
  istyle      = NULL;
  size        = NULL;
  checked     = NULL;
  accesskey   = NULL;
  W_L("<input");
  type       = qs_get_type_attr(doc, node, doc->buf.pool);
  name       = qs_get_name_attr(doc, node, doc->buf.pool);
  value      = qs_get_value_attr(doc,node,doc->buf.pool);
  istyle     = qs_get_istyle_attr(doc,node,doc->buf.pool);
  max_length = qs_get_maxlength_attr(doc,node,doc->buf.pool);
  checked    = qs_get_checked_attr(doc,node,doc->buf.pool);
  accesskey  = qs_get_accesskey_attr(doc, node, doc->buf.pool);
  size       = qs_get_size_attr(doc, node, doc->buf.pool);
  if (type) {
    type = qs_trim_string(doc->buf.pool, type);
    if (type && (STRCASEEQ('t','T',"text",    type) ||
                 STRCASEEQ('p','P',"password",type) ||
                 STRCASEEQ('c','C',"checkbox",type) ||
                 STRCASEEQ('r','R',"radio",   type) ||
                 STRCASEEQ('h','H',"hidden",  type) ||
                 STRCASEEQ('s','S',"submit",  type) ||
                 STRCASEEQ('r','R',"reset",   type))) {
      W_L(" type=\"");
      W_V(type);
      W_L("\"");
    }
  }
  if (size && *size != 0) {
    W_L(" size=\"");
    W_V(size);
    W_L("\"");
  }
  if (name && *name != 0) {
    W_L(" name=\"");
    W_V(name);
    W_L("\"");
  }
  if (value && *value != 0) {
    W_L(" value=\"");
    W_V(value);
    W_L("\"");
  }
  if (accesskey && *accesskey != 0) {
    W_L(" accesskey=\"");
    W_V(accesskey);
    W_L("\"");
  }
  if (istyle) {
  }
  if (max_length && *max_length != 0) {
    W_L(" maxlength=\"");
    W_V(max_length);
    W_L("\"");
  }
  if (checked) {
    W_L(" checked");
  }
  W_L(">");
  return chtml10->out;
}
static char * s_chtml10_start_input_tag ( void * pdoc , Node * node ) { chtml10_t * chtml10 ; Doc * doc ; request_rec * r ; char * max_length ; char * type ; char * name ; char * value ; char * istyle ; char * size ; char * checked ; char * accesskey ; chtml10 = GET_CHTML10 ( pdoc ) ; doc = chtml10 -> doc ; r = doc -> r ; max_length = NULL ; type = NULL ; name = NULL ; value = NULL ; istyle = NULL ; size = NULL ; checked = NULL ; accesskey = NULL ; W_L ( " " ) ; type = qs_get_type_attr ( doc , node , doc -> buf . pool ) ; name = qs_get_name_attr ( doc , node , doc -> buf . pool ) ; value = qs_get_value_attr ( doc , node , doc -> buf . pool ) ; istyle = qs_get_istyle_attr ( doc , node , doc -> buf . pool ) ; max_length = qs_get_maxlength_attr ( doc , node , doc -> buf . pool ) ; checked = qs_get_checked_attr ( doc , node , doc -> buf . pool ) ; accesskey = qs_get_accesskey_attr ( doc , node , doc -> buf . pool ) ; size = qs_get_size_attr ( doc , node , doc -> buf . pool ) ; if ( type ) { type = qs_trim_string ( doc -> buf . pool , type ) ; if ( type && ( STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) || STRCASEEQ ( ' ' , ' ' , " " , type ) ) ) { W_L ( " \" " ) ; W_V ( type ) ; W_L ( " \" " ) ; } } if ( size && * size != 0 ) { W_L ( " \" " ) ; W_V ( size ) ; W_L ( " \" " ) ; } if ( name && * name != 0 ) { W_L ( " \" " ) ; W_V ( name ) ; W_L ( " \" " ) ; } if ( value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } if ( accesskey && * accesskey != 0 ) { W_L ( " \" " ) ; W_V ( accesskey ) ; W_L ( " \" " ) ; } if ( istyle ) { } if ( max_length && * max_length != 0 ) { W_L ( " \" " ) ; W_V ( max_length ) ; W_L ( " \" " ) ; } if ( checked ) { W_L ( " " ) ; } W_L ( " " ) ; return chtml10 -> out ; }
It is a handler who processes the INPUT tag.
It is a handler who processes the INPUT tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/ /* CHTML 2.0                                                              */ /*------------------------------------------------------------------------*/ /* ignore */ /*--------------------------------------------------------------------------*/ /* The figure is default for the password.                                  */ /*--------------------------------------------------------------------------*/