category_id );
$ch = new DBRecord(TBL_PREFIX.CHANNEL_TBL, "id", $r->channel_id );
$arr = array();
$arr['id'] = $r->id;
$arr['station_name'] = $ch->name;
$arr['starttime'] = $r->starttime;
$arr['endtime'] = $r->endtime;
$arr['title'] = "id."\">".htmlspecialchars($r->title,ENT_QUOTES)."";
$arr['description'] = "id."\">".htmlspecialchars($r->description,ENT_QUOTES)."";
$arr['thumb'] = "id."\">path.".jpg\" />";
$arr['cat'] = $cat->name_en;
$arr['mode'] = $RECORD_MODE[$r->mode]['name'];
array_push( $records, $arr );
}
$crecs = DBRecord::createRecords(TBL_PREFIX.CATEGORY_TBL );
$cats = array();
$cats[0]['id'] = 0;
$cats[0]['name'] = "すべて";
$cats[0]['selected'] = $category_id == 0 ? "selected" : "";
foreach( $crecs as $c ) {
$arr = array();
$arr['id'] = $c->id;
$arr['name'] = $c->name_jp;
$arr['selected'] = $c->id == $category_id ? "selected" : "";
array_push( $cats, $arr );
}
$crecs = DBRecord::createRecords(TBL_PREFIX.CHANNEL_TBL );
$stations = array();
$stations[0]['id'] = 0;
$stations[0]['name'] = "すべて";
$stations[0]['selected'] = (! $station) ? "selected" : "";
foreach( $crecs as $c ) {
$arr = array();
$arr['id'] = $c->id;
$arr['name'] = $c->name;
$arr['selected'] = $station == $c->id ? "selected" : "";
array_push( $stations, $arr );
}
$smarty = new Smarty();
$smarty->assign("sitetitle","録画済一覧");
$smarty->assign( "records", $records );
$smarty->assign( "search", $search );
$smarty->assign( "stations", $stations );
$smarty->assign( "cats", $cats );
$smarty->assign( "use_thumbs", USE_THUMBS );
$smarty->display("recordedTable.html");
}
catch( exception $e ) {
exit( $e->getMessage() );
}
?>