<?php

include_once $CFG->dirroot . "/lib/classes/" . "application/Audio.Class.php5";
$audioObj = new Audio();
$GeneralObj->getRequestVars();
$section = 'Audio';
$mode = $_REQUEST['mode'];
$iAudioCategoryId = $_REQUEST['iAudioCategoryId'];
if ($mode == "Update") {
    $audioObj->select($iAudioId);
    $audioObj->getAllVar();
} else {
    $mode = "Add";
}
if ($file != '') {
    $link = "index.php?file=" . $file . "&mode=" . $mode . "&listfile=" . $listfile;
}
$TOP_HEADER = $mode . ' ' . $section;
if ($mode == 'Update') {
    $TOP_HEADER .= ' [' . $vAudioName . ']';
}
?>
<form name="frmadd" method="post" enctype="multipart/form-data" action="index.php?file=m-audioadd_a" onsubmit="return CheckExtension('vAudiopath')">
	<input type="hidden" id="mode" name="mode" value="<?php 
echo $mode;
?>
">
	<input type="hidden" id="SAMPM" name="SAMPM" value="<?php 
echo $SAMPM;
?>
">