Augmenter: hook Augmenters into DataStore and enable augmenting for some Importers
[nonametv.git] / web-admin / listtranscat.php
bloba064a1641f4bb7e066e8ded935e22ab3e42661cb
1 <?php
3 require "config.php";
4 require "common.php";
5 require "mysql.php";
6 require "transcat.php";
8 $debug=false;
10 if( $debug ){
11 dbg( "NonameTV" , $dconf );
15 // connect to main database
17 switch( $dconf['dbtype'] ){
18 case 'mysql':
19 $myc = sql_doconnect();
20 if( !$myc ) exit;
21 break;
25 <html>
26 <head>
27 <title>Categories</title>
28 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29 <link href="css/nonametv.css" rel=stylesheet>
30 </head>
32 <body bgcolor="#FFFFFF" text="#000000">
34 <h1>Categories</h1>
36 <?php
39 // main
40 //
42 $trdb = db_loadTransCats( "" );
43 if( $debug ) dbg( "transcats" , $trdb );
45 if( $trdb ){
46 $trdb = array_sort( $trdb , "type" );
48 print "<table width=\"75%\">\n";
49 print "<tr class=\"tableTitle\">\n";
50 print " <td>Type</td>\n";
51 print " <td>Original</td>\n";
52 print " <td>Category</td>\n";
53 print " <td>Program Type</td>\n";
54 print "</tr>\n";
56 listTransCats( $trdb );
58 print "</table>\n";
62 // disconnect from main database
64 switch( $dconf['dbtype'] ){
65 case 'mysql':
66 sql_dodisconnect( $myc );
67 break;
72 </body>
73 </html>