mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-23 07:36:54 +01:00
two new channel types
This commit is contained in:
@@ -210,6 +210,22 @@ int http_fn_index(http_request_t *request) {
|
||||
hprintf128(request,"<input type=\"radio\" name=\"set\" value=\"%i\" onchange=\"this.form.submit()\" %s>%s",j,check,types[j]);
|
||||
}
|
||||
hprintf128(request,"</form>");
|
||||
hprintf128(request,"<br>");
|
||||
} else if(channelType == ChType_TextField) {
|
||||
int iValue;
|
||||
iValue = CHANNEL_Get(i);
|
||||
|
||||
hprintf128(request,"<p>Change channel %i value:</p><form action=\"index\">",i);
|
||||
hprintf128(request,"<input type=\"hidden\" name=\"setIndex\" value=\"%i\">",i);
|
||||
hprintf128(request,"<input type=\"number\" name=\"set\" value=\"%i\">",iValue);
|
||||
hprintf128(request,"<input type=\"submit\" value=\"Set!\"/></form>");
|
||||
hprintf128(request,"</form>");
|
||||
hprintf128(request,"<br>");
|
||||
} else if(channelType == ChType_ReadOnly) {
|
||||
int iValue;
|
||||
iValue = CHANNEL_Get(i);
|
||||
|
||||
hprintf128(request,"Channel %i = %i",i,iValue);
|
||||
hprintf128(request,"<br>");
|
||||
|
||||
} else if(h_isChannelRelay(i) || channelType == ChType_Toggle) {
|
||||
|
||||
Reference in New Issue
Block a user