6 require "epgservers.php";
7 require "language.php";
12 dbg( "NonameTV" , $dconf );
16 // connect to main database
18 switch( $dconf['dbtype'] ){
20 $myc = sql_doconnect();
25 $lngstr = loadlanguage( 'listepgservers' );
26 if( $debug ) dbg("language strings" , $lngstr );
31 <title
>List EPG servers
</title
>
32 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
33 <link href
="css/nonametv.css" rel
=stylesheet
>
36 <body bgcolor
="#FFFFFF" text
="#000000">
40 print "<h1>" . $lngstr['title'] . "</h1>\n";
44 <input type
="button" value
="Add new server" class="gumb" onClick
="javascript:window.location.href='editepgserver.php?action=new'">
52 $sdb = sql_loadEPGservers( $myc , '' , '' );
53 if( $debug ) dbg( "epgservers" , $sdb );
56 print "<table width=\"80%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
57 print "<tr class=\"tableTitle\">\n";
58 print " <td>" . $lngstr['name'] . "</td>\n";
59 print " <td>" . $lngstr['active'] . "</td>\n";
60 print " <td>" . $lngstr['description'] . "</td>\n";
66 while( list( $sk , $sv ) = each( $sdb ) ){
68 print "<tr class=\"tableBody\">\n";
69 print " <td><a href=\"editepgserver.php?id=" . $sv['id'] . "\">" . $sv['name'] . "</a></td>\n";
70 print " <td>" . $sv['active'] . "</td>\n";
71 print " <td>" . $sv['description'] . "</td>\n";
74 $rowstyle = 1 - $rowstyle;
81 // disconnect from main database
83 switch( $dconf['dbtype'] ){
85 sql_dodisconnect( $myc );