<!-- type --> <div class="fileinfo left"> <h3>type</h3> <select <?php echo readonly($edit_id); ?> name="audio_type"> <option value="0">--</option> <?php for ($i = 1; $i < 5; $i++) { echo "<option value=\"" . $i . "\" "; if ($fields['audio_type'] == $i) { echo " selected "; } echo readonly($edit_id); echo ">" . getmediatypename($i) . "</option>\n"; } ?> </select> </div> <!-- size --> <div class="fileinfo center"> <h3>size</h3> <?php if ($fields['filelocal'] == 1) { echo "<input " . readonly($edit_id) . "type=\"text\" readonly=\"readonly\" "; echo "value=\"" . getmegabyte($fields['audio_size']) . " MB\" />";
echo showflash("backend/emff_list.swf?src=" . $link, 90, 19); //ist it Quicktime-compatible? Show us the Quicktime plugin!! } else { if ($type == "2" or $type == "5" or $type == "6" or $type == "9" or $type == "12" or $type == "14" or $type == "10" or $type == "13" or $type == "7") { $src = $settings['url'] . "/loudblog/backend/clicktoplayback.mov"; $target = "myself"; //ist it a video or enhanced podcast? Link to external player! if ($type == "14" or $type == "10" or $type == "13" or $type == "7") { $target = "quicktimeplayer"; } //build html-code for quicktime plugin (audio) echo showquicktime($src, $link, 90, 20, $target, "false"); } else { //if its not an mp3 or quicktime, show a simple link! if ($showtable[$i]['audio_file'] != "") { echo "<a href=\"" . $link . "\">\n " . getmediatypename($showtable[$i]['audio_type']) . "</a>"; echo "</td>\n"; } } } //showing audio length in minutes echo "<td>" . getminutes($showtable[$i]['audio_length']) . "</td>\n"; //the status radio buttons $temp = $showtable[$i]['status']; echo "<td>\n"; if ($temp == 1) { echo "<span style=\"color:#dd0067;\">" . bla("draft") . "</span>"; } if ($temp == 2) { echo "<span style=\"color:#090;\">" . bla("finished") . "</span>"; }
function audiotype() { //returns the type of an audio-file (works within postings-loop) global $postings; global $currentid; return getmediatypename($postings[$currentid]['audio_type']); }