Changeset 7228
- Timestamp:
- 07/30/12 23:11:07 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-webif-pages.c
r7225 r7228 421 421 </FORM>\n\ 422 422 ##TPLFOOTER##" 423 424 #define TPLFILTERFORM "<FORM ACTION=\"files.html\" method=\"get\">\n\ 425 <INPUT name=\"file\" type=\"hidden\" value=\"userfile\">\n\ 426 <SELECT name=\"filter\">\n\ 427 ##FILTERFORMOPTIONS##\ 428 </SELECT><input type=\"submit\" name=\"action\" value=\"Filter\" title=\"Filter for a specific user\"></FORM>" 423 429 424 430 #define TPLAPIFILE "##TPLAPIHEADER##\n\ … … 2370 2376 ,{"FILEMENU", TPLFILEMENU, ""} 2371 2377 ,{"FILE", TPLFILE, ""} 2378 ,{"FILTERFORM", TPLFILTERFORM, ""} 2372 2379 ,{"APIFILE", TPLAPIFILE, ""} 2373 2380 ,{"FAILBAN", TPLFAILBAN, ""} -
trunk/module-webif.c
r7226 r7228 3955 3955 tpl_addVar(vars, TPLAPPEND, "LOGMENU", "<A HREF=\"files.html?file=userfile&clear=usrfile\">Clear Log</A>"); 3956 3956 3957 tpl_addVar(vars, TPLADD, "FILTERFORM", "<FORM ACTION=\"files.html\" method=\"get\">\n"); 3958 tpl_addVar(vars, TPLAPPEND, "FILTERFORM", "<INPUT name=\"file\" type=\"hidden\" value=\"userfile\">\n"); 3959 tpl_addVar(vars, TPLAPPEND, "FILTERFORM", "<SELECT name=\"filter\">\n"); 3960 tpl_printf(vars, TPLAPPEND, "FILTERFORM", "<OPTION value=\"%s\">%s</OPTION>\n", "all", "all"); 3961 3957 tpl_printf(vars, TPLADD, "FILTERFORMOPTIONS", "<OPTION value=\"%s\">%s</OPTION>\n", "all", "all"); 3962 3958 struct s_auth *account; 3963 3959 for (account = cfg.account; (account); account = account->next) { 3964 tpl_printf(vars, TPLAPPEND, "FILTERFORM", "<OPTION value=\"%s\" %s>%s</OPTION>\n", account->usr, strcmp(getParam(params, "filter"), account->usr) ? "":"selected", account->usr); 3965 } 3966 tpl_addVar(vars, TPLAPPEND, "FILTERFORM", "</SELECT><input type=\"submit\" name=\"action\" value=\"Filter\" title=\"Filter for a specific user\"></FORM>"); 3967 3960 tpl_printf(vars, TPLAPPEND, "FILTERFORMOPTIONS", "<OPTION value=\"%s\" %s>%s</OPTION>\n", account->usr, strcmp(getParam(params, "filter"), account->usr) ? "":"selected", account->usr); 3961 } 3962 tpl_addVar(vars, TPLADD, "FILTERFORM", tpl_getTpl(vars, "FILTERFORM")); 3968 3963 } 3969 3964 #ifdef CS_ANTICASC
Note:
See TracChangeset
for help on using the changeset viewer.