diff options
author | chai <chaifix@163.com> | 2022-03-19 12:26:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-19 12:26:19 +0800 |
commit | 627b8e416d138112ad20b1299aca21dccebcd11c (patch) | |
tree | e522a5e7204e81649a36451e31c2c91b1a8342e3 /admin_template.php | |
parent | a90ed9f20c76fbb4b340e51e6ba05500540feba5 (diff) |
*admin music page
Diffstat (limited to 'admin_template.php')
-rw-r--r-- | admin_template.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/admin_template.php b/admin_template.php new file mode 100644 index 0000000..b745e44 --- /dev/null +++ b/admin_template.php @@ -0,0 +1,25 @@ +<?php require_once 'music.php'?> +<?php require_once 'utils.php'?> + +<?php + +function html_admin_music($music) { + echo '<div class="admin-music">'; + echo '<img class="admin-music-cover" src="' . $music->cover . '"/>'; + echo '<label class="admin-music-name">' . $music->title .'</label>'; + echo '<label class="admin-music-id">' . $music->uid . '</label>'; + echo '<a class="admin-music-delete" href="./uber.php?op=DEL_MUSIC$mid='. $music->uid .'">Delete</a>'; + echo '<a class="admin-music-modify" href="./uber.php?op=MOD_MUSIC$mid=' . $music->uid . '">Modify</a>'; + echo '<div style="clear:both"></div>'; + echo '</div>'; +} + +function html_admin_paginate_link($url, $pagei) { + echo '<a href="' . $url . '&p=' . $pagei . '">' . ($pagei + 1) . '</a>'; +} + +function html_admin_paginate_link_current($url, $pagei) { + echo '<a class="current" href="' . $url . '&p=' . $pagei . '">' . ($pagei + 1) . '</a>'; +} + +?>
\ No newline at end of file |