Subversion Repositories wimsdev

Rev

Rev 13029 | Rev 15371 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13029 Rev 13285
Line 84... Line 84...
84
  if(kind==FORM_BAR) {
84
  if(kind==FORM_BAR) {
85
    s=getvar("wims_ref_class");
85
    s=getvar("wims_ref_class");
86
    if(s!=NULL && *s!=0 && !isspace(*s)) {
86
    if(s!=NULL && *s!=0 && !isspace(*s)) {
87
      snprintf(pfrb,sizeof(pfrb)," <span class=\"%s\">",s); strcpy(pfre,"</span>");
87
      snprintf(pfrb,sizeof(pfrb)," <span class=\"%s\">",s); strcpy(pfre,"</span>");
88
    } else { pfrb[0]=0; pfre[0]=0; }
88
    } else { pfrb[0]=0; pfre[0]=0; }
89
    output("%s<span style=\"font-weight:bold;\">-</span>",pfrb);
89
    output("%s<span style=\"font-weight:bold;\">-</span>&nbsp;",pfrb);
90
  }
90
  }
91
  val=getvar(nbuf);if(val==NULL) val="";
91
  val=getvar(nbuf);if(val==NULL) val="";
92
 
92
 
93
  s = getvar("wims_ref_id");
93
  s = getvar("wims_ref_id");
94
  if(s!=NULL && *s!=0 && !isspace(*s)) { strcpy(input_id,s); }
94
  if(s!=NULL && *s!=0 && !isspace(*s)) { strcpy(input_id,s); }
Line 148... Line 148...
148
        }
148
        }
149
        if(i<itemcnt-1 && itemcnt>2 && (hmode==NULL || *hmode==0)) _output_(",");
149
        if(i<itemcnt-1 && itemcnt>2 && (hmode==NULL || *hmode==0)) _output_(",");
150
        _output_("\n");
150
        _output_("\n");
151
        break;
151
        break;
152
      case FORM_BAR:
152
      case FORM_BAR:
153
        output("<input type=\"%s\" name=\"%s\" id=\"%s_%d\" value=\"%s\"%s/>\n<span style=\"display:none\" aria-hidden=\"false\"><label for=\"%s_%d\">%d</label></span>",
153
        output("<input type=\"%s\" name=\"%s\" id=\"%s_%d\" title=\"%s\" value=\"%s\"%s/><label style=\"display:none\" for=\"%s_%d\">%s</label>",
154
           name,nbuf,input_id,i+1,p0,pc,input_id,i+1,i+1);
154
           name,nbuf,input_id,i+1,p0,p0,pc,input_id,i+1,p0);
155
        break;
155
        break;
156
    }
156
    }
157
  }
157
  }
158
  setvar("wims_ref_class","");
158
  setvar("wims_ref_class","");
159
  setvar("wims_ref_id","");
159
  setvar("wims_ref_id","");
160
  setvar("wims_html_mode","");
160
  setvar("wims_html_mode","");
161
  if(kind==FORM_SELECT) _output_("</select>");
161
  if(kind==FORM_SELECT) _output_("</select>");
162
  if(kind==FORM_BAR) output("<span style=\"font-weight:bold;\">+</span>%s",pfre);
162
  if(kind==FORM_BAR) output("&nbsp;<span style=\"font-weight:bold;\">+</span>%s",pfre);
163
}
163
}
164
 
164
 
165
void exec_formselect(char *p)
165
void exec_formselect(char *p)
166
{
166
{
167
  _form_menus(p,FORM_SELECT);
167
  _form_menus(p,FORM_SELECT);