src/chxj_chtml10.c
static char *
s_chtml10_start_form_tag(void *pdoc, Node *node) 
{
  chtml10_t    *chtml10;
  Doc          *doc;
  request_rec  *r;
  Attr         *attr;

  chtml10 = GET_CHTML10(pdoc);
  doc     = chtml10->doc;
  r       = doc->r;

  W_L("<form");

  /*--------------------------------------------------------------------------*/
  /* Get Attributes                                                           */
  /*--------------------------------------------------------------------------*/
  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);
    switch(*name) {
    case 'a':
    case 'A':
      if (strcasecmp(name, "action") == 0) {
        /*--------------------------------------------------------------------*/
        /* CHTML 1.0                                                          */
        /*--------------------------------------------------------------------*/
        value = chxj_encoding_parameter(r, value);
        value = chxj_add_cookie_parameter(r, value, chtml10->cookie);
  
        W_L(" action=\"");
        W_V(value);
        W_L("\"");
      }
      break;

    case 'm':
    case 'M':
      if (strcasecmp(name, "method") == 0) {
        /*--------------------------------------------------------------------*/
        /* CHTML 1.0                                                          */
        /*--------------------------------------------------------------------*/
        W_L(" method=\"");
        W_V(value);
        W_L("\"");
      }
      break;

    case 'u':
    case 'U':
      if (strcasecmp(name, "utn") == 0) {
        /*--------------------------------------------------------------------*/
        /* CHTML 3.0                                                          */
        /*--------------------------------------------------------------------*/
        /* ignore */
      }
      break;

    default:
      break;
    }
  }

  W_L(">");

  return chtml10->out;
}
/**
 * It is a handler who processes the FORM tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The FORM tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the FORM tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The FORM tag node is specified.
@return The conversion result is returned.
It is a handler who processes the FORM tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The FORM tag node is specified . @return The conversion result is returned .
static char *
s_chtml10_start_form_tag(void *pdoc, Node *node) 
{
  chtml10_t    *chtml10;
  Doc          *doc;
  request_rec  *r;
  Attr         *attr;
  chtml10 = GET_CHTML10(pdoc);
  doc     = chtml10->doc;
  r       = doc->r;
  W_L("<form");
  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);
    switch(*name) {
    case 'a':
    case 'A':
      if (strcasecmp(name, "action") == 0) {
        value = chxj_encoding_parameter(r, value);
        value = chxj_add_cookie_parameter(r, value, chtml10->cookie);
        W_L(" action=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'm':
    case 'M':
      if (strcasecmp(name, "method") == 0) {
        W_L(" method=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'u':
    case 'U':
      if (strcasecmp(name, "utn") == 0) {
      }
      break;
    default:
      break;
    }
  }
  W_L(">");
  return chtml10->out;
}
static char * s_chtml10_start_form_tag ( void * pdoc , Node * node ) { chtml10_t * chtml10 ; Doc * doc ; request_rec * r ; Attr * attr ; chtml10 = GET_CHTML10 ( pdoc ) ; doc = chtml10 -> doc ; r = doc -> r ; W_L ( " " ) ; 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 ) ; switch ( * name ) { case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { value = chxj_encoding_parameter ( r , value ) ; value = chxj_add_cookie_parameter ( r , value , chtml10 -> cookie ) ; W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { } break ; default : break ; } } W_L ( " " ) ; return chtml10 -> out ; }
It is a handler who processes the FORM tag.
It is a handler who processes the FORM tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* CHTML 1.0                                                          */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* CHTML 1.0                                                          */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* CHTML 3.0                                                          */ /*--------------------------------------------------------------------*/ /* ignore */