<?php
    // check the default settings
    require_once "defaultsettings.php";

    // get strings
    $txt = new Object;
    $txt->mediapluginmp3 = get_string( 'mediapluginmp3','admin' );
    $txt->mediapluginswf = get_string( 'mediapluginswf','admin' );
    $txt->mediapluginswfnote = get_string( 'mediapluginswfnote','admin' );
    $txt->mediapluginmov = get_string( 'mediapluginmov','admin' );
    $txt->mediapluginwmv = get_string( 'mediapluginwmv','admin' );
    $txt->mediapluginmpg = get_string( 'mediapluginmpg','admin' );
    $txt->mediapluginavi = get_string( 'mediapluginavi','admin' );
    $txt->mediapluginflv = get_string( 'mediapluginflv','admin' );
    $txt->mediapluginram = get_string( 'mediapluginram','admin' );
    $txt->mediapluginrpm = get_string( 'mediapluginrpm','admin' );
    $txt->mediapluginrm  = get_string( 'mediapluginrm','admin' );
    $txt->yes = get_string( 'yes' );
    $txt->no = get_string( 'no' );

    $yesno = array( $txt->no, $txt->yes );
?>

<table cellpadding="9" cellspacing="0">
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginmp3 ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mp3',
             $CFG->filter_mediaplugin_enable_mp3 ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginswf?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_swf',
             $CFG->filter_mediaplugin_enable_swf ); ?></td> 
        <td><?php echo $txt->mediapluginswfnote ?></td>
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginmov ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mov',
             $CFG->filter_mediaplugin_enable_mov ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginwmv ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_wmv',
             $CFG->filter_mediaplugin_enable_wmv ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginmpg ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_mpg',
             $CFG->filter_mediaplugin_enable_mpg ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginavi ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_avi',
             $CFG->filter_mediaplugin_enable_avi ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginflv ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_flv',
             $CFG->filter_mediaplugin_enable_flv ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginram ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_ram',
             $CFG->filter_mediaplugin_enable_ram ); ?></td> 
        <td />
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginrpm ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_rpm',
             $CFG->filter_mediaplugin_enable_rpm ); ?></td> 
    </tr>
    <tr valign="top">
        <td align="right"><?php echo $txt->mediapluginrm ?></td>
        <td><?php choose_from_menu( $yesno,'filter_mediaplugin_enable_rm',
             $CFG->filter_mediaplugin_enable_rm ); ?></td> 
        <td />
    </tr>
</table>
