Changeset 1155


Ignore:
Timestamp:
01/09/10 23:45:40 (12 years ago)
Author:
alno
Message:

WebIf:

  • Readersection "blocknano" and "savenano" added if readertyp is "mouse"
Location:
branches/monitor-improvement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-http.c

    r1151 r1155  
    573573    tpl_printf(vars, 0, "EMMCACHE", "%d,%d,&d", reader[ridx].cachemm, reader[ridx].rewritemm, reader[ridx].logemm);
    574574
    575     //todo "blocknano"
    576     //todo "savenano"
     575    //savenano
     576    int all = 1;
     577    dot="";
     578    for(i = 0; i < 256; ++i){
     579        if(!(reader[ridx].b_nano[i] & 0x02)){
     580            all = 0;
     581            break;
     582        }
     583    }
     584    if (all == 1) tpl_printf(vars, 0, "SAVENANO", "all", reader[ridx].maxqlen);
     585    else {
     586        for(i = 0; i < 256; ++i){
     587            if(reader[ridx].b_nano[i] & 0x02) tpl_printf(vars, 1, "SAVENANO", "%s%02x\n", dot, i);
     588            dot=",";
     589        }
     590    }
     591
     592    //blocknano
     593    dot="";
     594    for(i = 0; i < 256; ++i){
     595        if(!(reader[ridx].b_nano[i] & 0x01)){
     596            all = 0;
     597            break;
     598        }
     599    }
     600    if (all == 1) tpl_printf(vars, 0, "BLOCKNANO", "all", reader[ridx].maxqlen);
     601    else {
     602        for(i = 0; i < 256; ++i){
     603            if(reader[ridx].b_nano[i] & 0x01) tpl_printf(vars, 1, "BLOCKNANO", "%s%02x\n", dot, i);
     604            dot=",";
     605        }
     606    }
    577607
    578608    tpl_addVar(vars, 0, "CCCVERSION", reader[ridx].cc_version);
  • branches/monitor-improvement/oscam-http.h

    r1153 r1155  
    382382    <TR><TD>Detect:</TD><TD><input name=\"detect\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##DETECT##\"></TD></TR>\n\
    383383    <TR><TD>Mhz:</TD><TD><input name=\"mhz\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##MHZ##\"></TD></TR>\n\
    384     <TR><TD>Cardmhz:</TD><TD><input name=\"cardmhz\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CARDMHZ##\"></TD></TR>\n"
     384    <TR><TD>Cardmhz:</TD><TD><input name=\"cardmhz\" type=\"text\" size=\"5\" maxlength=\"5\" value=\"##CARDMHZ##\"></TD></TR>\n\
     385    <TR><TD>Blocknano:</TD><TD><input name=\"blocknano\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##BLOCKNANO##\"></TD></TR>\n\
     386    <TR><TD>Savenano:</TD><TD><input name=\"savenano\" type=\"text\" size=\"20\" maxlength=\"20\" value=\"##SAVENANO##\"></TD></TR>\n"
    385387#define TPLREADERCONFIGSMARTBIT "\
    386388        <TR><TD>Device:</TD><TD><input name=\"device\" type=\"text\" size=\"30\" maxlength=\"50\" value=\"##DEVICE####R_PORT####L_PORT##\"></TD></TR>\n\
Note: See TracChangeset for help on using the changeset viewer.