Changeset 204
- Timestamp:
- 1999-03-16T17:47:03+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/statusaction.cpp
r201 r204 12 12 /* 13 13 $Log$ 14 Revision 1.10 1999/03/16 04:47:03 rjmcnab 15 Changed the list of arguments on the argument page to be the info list 16 not the current args list (there are some arguments which don't have 17 a default so they never make it onto the args list). 18 14 19 Revision 1.9 1999/03/11 01:26:02 rjmcnab 15 20 Fixed a few small formatting things. … … 190 195 if (recpt == NULL) return; 191 196 cgiargsinfoclass *rcargsinfo = recpt->get_cgiargsinfo_ptr (); 197 if (rcargsinfo == NULL) return; 192 198 193 199 textout << outconvert << disp << "_status:header_(Argument Information)\n"; … … 202 208 << "<th>current value</th></tr>\n"; 203 209 204 cgiargsclass::const_iterator argshere = args.begin(); 205 cgiargs class::const_iterator argsend = args.end();206 cgiarg info *ainfo;207 208 while (args here != argsend) {209 const text_t &aname = (*argshere).first;210 211 cgiargsinfoclass::const_iterator argsinfohere = rcargsinfo->begin(); 212 cgiargsinfoclass::const_iterator argsinfoend = rcargsinfo->end(); 213 text_t *arg_value; 214 while (argsinfohere != argsinfoend) { 215 const cgiarginfo &ainfo = (*argsinfohere).second; 210 216 textout << outconvert 211 << "<tr valign=top><td>" << aname << "</td>\n"; 212 213 if ((rcargsinfo != NULL) && 214 ((ainfo=rcargsinfo->getarginfo(aname)) != NULL)) { 215 textout << outconvert << "<td>" << ainfo->longname << "</td>\n"; 216 if (ainfo->multiplechar) textout << outconvert << "<td>yes</td>\n"; 217 else textout << outconvert << "<td>no</td>\n"; 218 textout << outconvert << "<td>" << ainfo->argdefault << "</td>\n"; 219 switch (ainfo->defaultstatus) { 220 case cgiarginfo::none: textout << outconvert << "<td>none</td>\n"; break; 221 case cgiarginfo::weak: textout << outconvert << "<td>weak</td>\n"; break; 222 case cgiarginfo::good: textout << outconvert << "<td>good</td>\n"; break; 223 case cgiarginfo::config: textout << outconvert << "<td>config</td>\n"; break; 224 case cgiarginfo::imperative: textout << outconvert << "<td>imperative</td>\n"; break; 225 } 226 switch (ainfo->savedarginfo) { 227 case cgiarginfo::mustnot: textout << outconvert << "<td>mustnot</td>\n"; break; 228 case cgiarginfo::can: textout << outconvert << "<td>can</td>\n"; break; 229 case cgiarginfo::must: textout << outconvert << "<td>must</td>\n"; break; 230 } 231 } else { 232 textout << outconvert << "<td colspan=5></td>\n"; 233 } 234 235 textout << outconvert << "<td>\"" << (*argshere).second << "\"</td></tr>\n"; 236 237 argshere ++; 217 << "<tr valign=top><td>" << ainfo.shortname << "</td>\n"; 218 219 textout << outconvert << "<td>" << ainfo.longname << "</td>\n"; 220 if (ainfo.multiplechar) textout << outconvert << "<td>yes</td>\n"; 221 else textout << outconvert << "<td>no</td>\n"; 222 textout << outconvert << "<td>" << ainfo.argdefault << "</td>\n"; 223 switch (ainfo.defaultstatus) { 224 case cgiarginfo::none: textout << outconvert << "<td>none</td>\n"; break; 225 case cgiarginfo::weak: textout << outconvert << "<td>weak</td>\n"; break; 226 case cgiarginfo::good: textout << outconvert << "<td>good</td>\n"; break; 227 case cgiarginfo::config: textout << outconvert << "<td>config</td>\n"; break; 228 case cgiarginfo::imperative: textout << outconvert << "<td>imperative</td>\n"; break; 229 } 230 switch (ainfo.savedarginfo) { 231 case cgiarginfo::mustnot: textout << outconvert << "<td>mustnot</td>\n"; break; 232 case cgiarginfo::can: textout << outconvert << "<td>can</td>\n"; break; 233 case cgiarginfo::must: textout << outconvert << "<td>must</td>\n"; break; 234 } 235 236 arg_value = args.getarg (ainfo.shortname); 237 if (arg_value == NULL) textout << outconvert << "<td></td></tr>\n"; 238 else textout << outconvert << "<td>\"" << *arg_value << "\"</td></tr>\n"; 239 240 argsinfohere ++; 238 241 } 239 242
Note:
See TracChangeset
for help on using the changeset viewer.