Example #1
0
function picksrvidform()
{
    global $myc;
    print "<h1>Pick EPG server</h1>\n";
    print "<form name=epgserver action=\"listnetworks.php\" method=post>\n";
    $srvdb = sql_loadEPGservers($myc, '', '');
    print "  <table>\n";
    print "    <tr>\n";
    print "      <td class=\"tableBody\">\n";
    print "        <div align=\"right\">Name</div>\n";
    print "      </td>\n";
    print "      <td class=\"tableBody\">\n";
    print "        <select name=\"srvid\">\n";
    reset($srvdb);
    while (list($sk, $sv) = each($srvdb)) {
        print "          <option value=\"" . $sv['id'] . "\">" . $sv['name'] . "</option>\n";
    }
    print "        </select>\n";
    print "      </td>\n";
    print "    </tr>\n";
    print "  </table>\n";
    print "  <input name=\"Action\" value=\"Continue\" type=\"submit\" class=\"gumb\">\n";
    print "</form>\n";
}
Example #2
0
<html>
<head>
<title>List EPG servers</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/nonametv.css" rel=stylesheet>
<link href="css/viewepg.css" rel=stylesheet>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<?php 
//
// main
//
print "<h1>" . $lngstr['title'] . "</h1>\n";
$edb = sql_loadEPGservers($myc, '', '');
if ($debug) {
    dbg("epgservers", $edb);
}
if ($edb) {
    print "<table width=\"80%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
    print "<tr class=\"tableTitle\">\n";
    print "  <td>" . $lngstr['name'] . "</td>\n";
    print "  <td>" . $lngstr['description'] . "</td>\n";
    print "</tr>\n";
    $rowstyle = 0;
    reset($edb);
    while (list($ek, $ev) = each($edb)) {
        print "<tr class=\"tableEPGServer\">\n";
        print "  <td>" . $ev['name'] . "</td>\n";
        print "  <td>" . $ev['description'] . "</td>\n";