Rev 17170 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17170 | Rev 18321 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | cutitems(pbuf,plist,MAX_MENU_ITEMS); |
76 | cutitems(pbuf,plist,MAX_MENU_ITEMS); |
77 | } |
77 | } |
78 | ovlstrcpy(nbuf,n);substit(nbuf); |
78 | ovlstrcpy(nbuf,n);substit(nbuf); |
79 | if(kind==FORM_SELECT) { |
79 | if(kind==FORM_SELECT) { |
80 | char *pp; |
80 | char *pp; |
- | 81 | s=getvar("wims_ref_class"); |
|
- | 82 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
|
- | 83 | snprintf(pfrb,sizeof(pfrb),"class=\"%s\"",s); |
|
- | 84 | } else { pfrb[0]=0;} |
|
81 | pp=getvar("wims_formselect_switch"); if(pp==NULL) pp=""; |
85 | pp=getvar("wims_formselect_switch"); if(pp==NULL) pp=""; |
82 | output("<select %s name= |
86 | output("<select %s %s name=\"%s\" id=\"%s\">\n",pp,pfrb,nbuf,nbuf); |
83 | } |
87 | } |
84 | if(kind==FORM_BAR) { |
88 | if(kind==FORM_BAR) { |
85 | s=getvar("wims_ref_class"); |
89 | s=getvar("wims_ref_class"); |
86 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
90 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
87 | snprintf(pfrb,sizeof(pfrb)," <span class=\"%s\">",s); strcpy(pfre,"</span>"); |
91 | snprintf(pfrb,sizeof(pfrb)," <span class=\"%s\">",s); strcpy(pfre,"</span>"); |
Line 140... | Line 144... | ||
140 | case FORM_RADIO: |
144 | case FORM_RADIO: |
141 | case FORM_CHECKBOX: |
145 | case FORM_CHECKBOX: |
142 | if (itemcnt > 1) { |
146 | if (itemcnt > 1) { |
143 | output("%s<input type=\"%s\" name=\"%s\" id=\"%s_%d\" value=\"%s\"%s><label for=\"%s_%d\">%s</label>%s", |
147 | output("%s<input type=\"%s\" name=\"%s\" id=\"%s_%d\" value=\"%s\"%s><label for=\"%s_%d\">%s</label>%s", |
144 | pfrb,name,nbuf,input_id,i+1,p0,pc,input_id,i+1,plist[i],pfre); |
148 | pfrb,name,nbuf,input_id,i+1,p0,pc,input_id,i+1,plist[i],pfre); |
- | 149 | if (i==itemcnt) { |
|
- | 150 | output("</fieldset>"); |
|
- | 151 | } |
|
145 | } else { |
152 | } else { |
146 | output("%s<input type=\"%s\" name=\"%s\" id=\"%s\" value=\"%s\"%s><label for=\"%s\">%s</label>%s", |
153 | output("%s<input type=\"%s\" name=\"%s\" id=\"%s\" value=\"%s\"%s><label for=\"%s\">%s</label>%s", |
147 | pfrb,name,nbuf,input_id,p0,pc,input_id,plist[i],pfre); |
154 | pfrb,name,nbuf,input_id,p0,pc,input_id,plist[i],pfre); |
148 | } |
155 | } |
149 | if(i<itemcnt-1 && itemcnt>2 && (hmode==NULL || *hmode==0)) _output_(","); |
156 | if(i<itemcnt-1 && itemcnt>2 && (hmode==NULL || *hmode==0)) _output_(","); |