From 90483f6eb389f041e0dbd0fca8bb766edbc85910 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 17 Mar 2022 21:02:13 +0800 Subject: +init --- template.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 template.php (limited to 'template.php') diff --git a/template.php b/template.php new file mode 100644 index 0000000..04965b6 --- /dev/null +++ b/template.php @@ -0,0 +1,58 @@ + + + +'; + echo '
'; + echo ' '; + echo ' '; + echo '
'; + echo ' ' . $music->title . ''; + echo '' ; +} + +function html_tag($tag) { + echo '' . $tag->name . ''; +} + +function get_html_tag($tag) { + return '' . $tag->name . ''; +} + +function html_music_player($music) { + if($music == null) + return ; + $tags = fetch_music_tags($music->uid) ; + $html_tags = ""; + foreach($tags as $tag){ + $html_tags = $html_tags . get_html_tag($tag); + } + + echo '' ; + echo '' ; + + echo ''; + echo '
'; + + echo ''; + echo '
'; + + echo ''; + echo $html_tags; + echo '
'; + + echo ''; + echo '
'; + + if($music->project != ""){ + echo ''; + echo ''; + } + +} + +?> \ No newline at end of file -- cgit v1.1-26-g67d0