Example #1
0
                        if (isset($OldThisFileInfo['tags'][$ValidTagType])) {
                            echo ' checked="checked"';
                        }
                        break;
                }
            }
            echo '>' . $ValidTagType . '<br>';
        }
        if (count($ValidTagTypes) > 1) {
            echo '<hr><input type="checkbox" name="remove_other_tags" value="1"> Remove non-selected tag formats when writing new tag<br>';
        }
        echo '</td></tr>';
        echo '<tr><td align="right"><b>Comment</b></td><td><textarea cols="30" rows="3" name="Comment" wrap="virtual">' . (isset($OldThisFileInfo['comments']['comment']) && is_array($OldThisFileInfo['comments']['comment']) ? implode("\n", $OldThisFileInfo['comments']['comment']) : '') . '</textarea></td></tr>';
        echo '<tr><td align="right"><b>Picture</b><br>(ID3v2 only)</td><td><input type="file" name="userfile" accept="image/jpeg, image/gif, image/png"><br>';
        echo '<select name="APICpictureType">';
        $APICtypes = GetId3\Module\Tag\Id3v2::APICPictureTypeLookup('', true);
        foreach ($APICtypes as $key => $value) {
            echo '<option value="' . htmlentities($key, ENT_QUOTES) . '">' . htmlentities($value) . '</option>';
        }
        echo '</select></td></tr>';
        echo '<tr><td align="center" colspan="2"><input type="submit" name="WriteTags" value="Save Changes"> ';
        echo '<input type="reset" value="Reset"></td></tr>';
    } else {
        echo '<tr><td align="right"><b>Error</b></td><td>' . htmlentities($Filename) . ' does not exist</td></tr>';
    }
    echo '</table>';
    echo '</form>';
}
?>
</body>
</html>