DasErsteDE: handle rating attribute, ignore end times for now, leads to DataStore...
[nonametv.git] / web-admin / listepgservers.php
blobbd4bb885ed52ac446d2366adbc77568501edef4a
1 <?php
3 require "config.php";
4 require "common.php";
5 require "mysql.php";
6 require "epgservers.php";
7 require "language.php";
9 $debug=false;
11 if( $debug ){
12 dbg( "NonameTV" , $dconf );
16 // connect to main database
18 switch( $dconf['dbtype'] ){
19 case 'mysql':
20 $myc = sql_doconnect();
21 if( !$myc ) exit;
22 break;
25 $lngstr = loadlanguage( 'listepgservers' );
26 if( $debug ) dbg("language strings" , $lngstr );
29 <html>
30 <head>
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>
34 </head>
36 <body bgcolor="#FFFFFF" text="#000000">
38 <?php
40 print "<h1>" . $lngstr['title'] . "</h1>\n";
43 <form name="new">
44 <input type="button" value="Add new server" class="gumb" onClick="javascript:window.location.href='editepgserver.php?action=new'">
45 </form>
46 <?php
49 // main
52 $sdb = sql_loadEPGservers( $myc , '' , '' );
53 if( $debug ) dbg( "epgservers" , $sdb );
55 if( $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";
61 print "</tr>\n";
63 $rowstyle = 0;
65 reset( $sdb );
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";
72 print "</tr>\n";
74 $rowstyle = 1 - $rowstyle;
77 print "</table>\n";
81 // disconnect from main database
83 switch( $dconf['dbtype'] ){
84 case 'mysql':
85 sql_dodisconnect( $myc );
86 break;
91 </body>
92 </html>