Changeset 30052


Ignore:
Timestamp:
09/22/14 20:26:26 (9 years ago)
Author:
obi
Message:

[webif] translate mainmenu step 1

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpd.h

    r30030 r30052  
    298298                m_unlock(&status.waitrcmutex, 24);
    299299        }
     300        else if(ostrcmp(query, "getchannellist") == 0)
     301        {
     302                m_lock(&status.waitrcmutex, 24);
     303                buf = webgetchannellist(fmt);
     304                m_unlock(&status.waitrcmutex, 24);
     305        }
    300306        else if(ostrcmp(query, "getsatchannel") == 0 && param != NULL)
    301307        {
  • titan/titan/httpdfunc.h

    r30047 r30052  
    48434843}
    48444844
     4845char* webgetchannellist(int fmt)
     4846{
     4847        char* buf = NULL;
     4848        buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">", 1, 0);
     4849        buf = ostrcat(buf, "<link rel=stylesheet type=text/css href=titan.css><script type=text/javascript src=titan.js></script>", 1, 0);
     4850        buf = ostrcat(buf, "</head><body class=body id=\"channellist\">", 1, 0);
     4851
     4852        buf = ostrcat(buf, "<table cellpadding=3 cellspacing=0><tr><td nowrap>", 1, 0);
     4853        buf = ostrcat(buf, "<a class=linelink2 href=query?getallchannel target=main>", 1, 0);
     4854        buf = ostrcat(buf, _("All"), 1, 0);
     4855        buf = ostrcat(buf, "</a> ", 1, 0);
     4856        buf = ostrcat(buf, "<a class=linelink2 href=query?getsat target=main>", 1, 0);
     4857        buf = ostrcat(buf, _("SAT"), 1, 0);
     4858        buf = ostrcat(buf, "</a> ", 1, 0);
     4859        buf = ostrcat(buf, "<a class=linelink2 href=query?getprovider target=main>", 1, 0);
     4860        buf = ostrcat(buf, _("Provider"), 1, 0);
     4861        buf = ostrcat(buf, "</a> ", 1, 0);
     4862        buf = ostrcat(buf, "<a class=linelink2 href=query?getaz target=main>", 1, 0);
     4863        buf = ostrcat(buf, _("A-Z"), 1, 0);
     4864        buf = ostrcat(buf, "</a> ", 1, 0);
     4865        buf = ostrcat(buf, "<a class=linelink2 href=query?getbouquet target=main>", 1, 0);
     4866        buf = ostrcat(buf, _("Bouquets"), 1, 0);
     4867        buf = ostrcat(buf, "</a> ", 1, 0);
     4868        buf = ostrcat(buf, "</td></tr></table></body></html>", 1, 0);
     4869
     4870        debug(10, "buf: %s", buf);
     4871        printf("buf: %s\n", buf);
     4872        return buf;
     4873}
     4874
    48454875#endif
Note: See TracChangeset for help on using the changeset viewer.