Changeset 31893


Ignore:
Timestamp:
12/21/14 13:25:38 (9 years ago)
Author:
Stephan
Message:

[webif] front power action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r31858 r31893  
    38803880        sendstr = ostrcat(sendstr, ", dirsort.value", 1 , 0);
    38813881
    3882 ///////////////////
     3882///////////////////rcpower
    38833883        ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
    38843884        ostrcatbig(&buf, _("Power aktion"), &maxlen, &pos);
     
    39223922        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
    39233923        sendstr = ostrcat(sendstr, ", poweraktion.value", 1 , 0);
     3924
     3925///////////////////frontpower
     3926        ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
     3927        ostrcatbig(&buf, _("Frontpanel Power Aktion"), &maxlen, &pos);
     3928        ostrcatbig(&buf, "&nbsp;</font></td><td><select name=\"frontpoweraktion\" border=\"0\">", &maxlen, &pos);
     3929       
     3930        if(getconfigint("frontpoweraktion", NULL) == 1)
     3931                ostrcatbig(&buf, "<option value=\"1\" selected>", &maxlen, &pos);               
     3932        else
     3933                ostrcatbig(&buf, "<option value=\"1\">", &maxlen, &pos);
     3934        ostrcatbig(&buf, _("Power Off"), &maxlen, &pos);
     3935        ostrcatbig(&buf, "</option>", &maxlen, &pos);
     3936
     3937        if(getconfigint("frontpoweraktion", NULL) == 2)
     3938                ostrcatbig(&buf, "<option value=\"2\" selected>", &maxlen, &pos);               
     3939        else
     3940                ostrcatbig(&buf, "<option value=\"2\">", &maxlen, &pos);
     3941        ostrcatbig(&buf, _("Standby"), &maxlen, &pos);
     3942        ostrcatbig(&buf, "</option>", &maxlen, &pos);
     3943
     3944        ostrcatbig(&buf,"</select></td></tr>", &maxlen, &pos);
     3945        sendstr = ostrcat(sendstr, ", frontpoweraktion.value", 1 , 0);
    39243946
    39253947///////////////////
Note: See TracChangeset for help on using the changeset viewer.