- New Track Page Info layout,

- Improve Play Page Link layout.
This commit is contained in:
agibert 2012-12-02 09:04:06 +00:00
parent fd2a36b8ea
commit 98288ec0c6
2 changed files with 618 additions and 175 deletions

View File

@ -5,6 +5,12 @@ html, body
background-color: black; background-color: black;
} }
/*--------------------------------------------*/
/* TABLE */
/*--------------------------------------------*/
table table
{ {
vertical-align: top; vertical-align: top;
@ -16,61 +22,25 @@ table
margin-right: auto; margin-right: auto;
} }
td
{
vertical-align: top;
text-align: center;
}
td.border
{
vertical-align: top;
text-align: left;
width: 70px;
height: 70px
}
td.menu-bg
{
vertical-align: top;
text-align: center;
height: 20px;
background-color: transparent;
background-image: url(/images/menu-bg.png);
background-repeat: repeat-x;
background-attachment: scroll;
}
td.menu-item
{
vertical-align: top;
text-align: center;
height: 20px;
}
td.body
{
vertical-align: middle;
text-align: left;
}
td.line-bg
{
vertical-align: top;
text-align: center;
height: 20px;
background-color: transparent;
background-image: url(/images/line-m.png);
background-repeat: repeat-x;
background-attachment: scroll;
}
table.list table.list
{ {
vertical-align: top; vertical-align: top;
text-align: left; text-align: left;
width: 100%; width: 100%;
height: auto; height: auto;
/* height: 100%; */
margin-left: auto;
margin-right: auto;
table-layout: auto;
/* border: 10px solid #888888;*/
}
table.tab
{
vertical-align: top;
text-align: left;
width: 100%;
height: 100%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
table-layout: auto; table-layout: auto;
@ -79,6 +49,10 @@ table.list
/*--------------------------------------------*/
/* TR */
/*--------------------------------------------*/
tr.row0 tr.row0
{ {
height: 10px; height: 10px;
@ -239,6 +213,48 @@ tr.play2
tr.intro0
{
height: 24px;
color: white;
background-color: #222222;
}
tr.intro1
{
height: auto;
background-color: #111111;
}
tr.intro2
{
height: auto;
background-color: #111111;
}
tr.hardware0
{
height: 24px;
color: white;
background-color: #222222;
}
tr.hardware1
{
height: auto;
background-color: #111111;
}
tr.hardware2
{
height: auto;
background-color: #111111;
}
tr.tracks0 tr.tracks0
{ {
height: auto; height: auto;
@ -325,20 +341,41 @@ tr.extras2
tr.links0 tr.links0
{ {
height: auto; height: 24px;
color: white; color: white;
background-color: #222222; background-color: #222222;
} }
tr.links1 tr.links1
{ {
height: 32px; height: auto;
background-color: #111111; background-color: #111111;
} }
tr.links2 tr.links2
{ {
height: 32px; height: auto;
background-color: #111111;
}
tr.thanks0
{
height: 24px;
color: white;
background-color: #222222;
}
tr.thanks1
{
height: auto;
background-color: #111111;
}
tr.thanks2
{
height: auto;
background-color: #111111; background-color: #111111;
} }
@ -346,9 +383,9 @@ tr.links2
tr.info0 tr.info0
{ {
height: auto; height: 24px;
color: black; color: white;
background-color: #EEEEEE; background-color: #222222;
} }
tr.info1 tr.info1
@ -365,7 +402,14 @@ tr.info2
tr.lyric1 tr.lyrics0
{
height: 24px;
color: white;
background-color: #222222;
}
tr.lyrics1
{ {
height: auto; height: auto;
background-color: #333333; background-color: #333333;
@ -377,6 +421,55 @@ tr.lyric1
/* TD */ /* TD */
/*--------------------------------------------*/ /*--------------------------------------------*/
td
{
vertical-align: top;
text-align: center;
}
td.border
{
vertical-align: top;
text-align: left;
width: 70px;
height: 70px
}
td.menu-bg
{
vertical-align: top;
text-align: center;
height: 20px;
background-color: transparent;
background-image: url(/images/menu-bg.png);
background-repeat: repeat-x;
background-attachment: scroll;
}
td.menu-item
{
vertical-align: top;
text-align: center;
height: 20px;
}
td.body
{
vertical-align: middle;
text-align: left;
}
td.line-bg
{
vertical-align: top;
text-align: center;
height: 20px;
background-color: transparent;
background-image: url(/images/line-m.png);
background-repeat: repeat-x;
background-attachment: scroll;
}
td.col1 td.col1
{ {
vertical-align: middle; vertical-align: middle;
@ -642,12 +735,18 @@ td.text_l
{ {
vertical-align: middle; vertical-align: middle;
text-align: left; text-align: left;
background-color: #111111;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
font-size: 16px;
} }
td.text_r td.text_r
{ {
vertical-align: middle; vertical-align: middle;
text-align: right; text-align: right;
background-color: #111111;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
font-size: 16px;
} }
td.title_l td.title_l
@ -696,6 +795,105 @@ td.logo-r
td.intro0,
td.intro00,
td.intro01,
td.intro1,
td.intro2
{
vertical-align: middle;
text-align: left;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
font-size: 14px;
}
td.intro0
{
text-align: right;
width: 96px;
background-color: #222222;
font-size: 24px;
font-weight: bold;
padding-right: 10px;
padding-left: 10px;
}
td.intro00
{
width: 10px;
background-color: #000000;
}
td.intro01
{
width: 20px;
}
td.intro1
{
text-align: right;
padding-right: 10px;
padding-left: 10px;
}
td.intro2
{
text-align: center;
width: 24px;
font-size: 1px;
}
td.hardware0,
td.hardware00,
td.hardware01,
td.hardware1,
td.hardware2
{
vertical-align: middle;
text-align: left;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
font-size: 14px;
}
td.hardware0
{
text-align: left;
width: 96px;
background-color: #222222;
font-size: 24px;
font-weight: bold;
padding-right: 10px;
padding-left: 10px;
}
td.hardware00
{
width: 10px;
background-color: #000000;
}
td.hardware01
{
width: 20px;
}
td.hardware1
{
padding-right: 10px;
padding-left: 10px;
}
td.hardware2
{
text-align: center;
width: 24px;
font-size: 1px;
}
td.tracks0, td.tracks0,
td.tracks00, td.tracks00,
td.tracks1, td.tracks1,
@ -988,6 +1186,8 @@ td.links0
background-color: #222222; background-color: #222222;
font-size: 24px; font-size: 24px;
font-weight: bold; font-weight: bold;
padding-right: 10px;
padding-left: 10px;
} }
td.links00 td.links00
@ -1004,14 +1204,64 @@ td.links01
td.links1 td.links1
{ {
text-align: right; text-align: right;
padding-right: 5px;
padding-left: 5px;
} }
td.links2 td.links2
{ {
text-align: center; text-align: center;
width: 32px; width: 24px;
font-size: 16px; font-size: 1px;
}
td.thanks0,
td.thanks00,
td.thanks01,
td.thanks1,
td.thanks2
{
vertical-align: middle;
text-align: left;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
font-size: 14px;
}
td.thanks0
{
text-align: left;
width: 96px;
background-color: #222222;
font-size: 24px;
font-weight: bold; font-weight: bold;
padding-right: 10px;
padding-left: 10px;
}
td.thanks00
{
width: 10px;
background-color: #000000;
}
td.thanks01
{
width: 20px;
}
td.thanks1
{
padding-right: 10px;
padding-left: 10px;
}
td.thanks2
{
text-align: center;
width: 24px;
font-size: 1px;
} }
@ -1028,8 +1278,13 @@ td.info2
td.info0 td.info0
{ {
text-align: right;
width: 96px; width: 96px;
background-color: #222222; background-color: #222222;
font-size: 24px;
font-weight: bold;
padding-right: 10px;
padding-left: 10px;
} }
td.info00 td.info00
@ -1043,11 +1298,15 @@ td.info1
width: 130px; width: 130px;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
padding-right: 10px;
padding-left: 10px;
} }
td.info2 td.info2
{ {
text-align: right; text-align: right;
padding-right: 10px;
padding-left: 10px;
} }
td.info3 td.info3
@ -1082,30 +1341,36 @@ td.info9
td.lyric0, td.lyrics0,
td.lyric00, td.lyrics00,
td.lyric1 td.lyrics1
{ {
vertical-align: middle; vertical-align: middle;
text-align: center; text-align: center;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
} }
td.lyric0 td.lyrics0
{ {
text-align: left;
width: 96px; width: 96px;
background-color: #222222; background-color: #222222;
font-size: 24px;
font-weight: bold;
padding-right: 10px;
padding-left: 10px;
} }
td.lyric00 td.lyrics00
{ {
width: 10px; width: 10px;
background-color: #000000; background-color: #000000;
} }
td.lyric1 td.lyrics1
{ {
font-size: 14px; font-size: 14px;
background-color: #111111;
} }
@ -1153,6 +1418,28 @@ img.menu-item
/* A */ /* A */
/*--------------------------------------------*/ /*--------------------------------------------*/
a:link
{
color:#6644FF;
}
a:visited
{
color:#FF00FF;
}
a:hover
{
color:#FF2222;
}
a:active
{
color:#0066FF;
}
a.menu-home_page, a.menu-home_page,
a.menu-about, a.menu-about,
a.menu-discography, a.menu-discography,

View File

@ -1,8 +1,8 @@
<? <?
// $RCSfile: lmbrowse.php,v $ // $RCSfile: lmbrowse.php,v $
// $Revision: 1.1 $ // $Revision: 1.2 $
// $Name: $ // $Name: $
// $Date: 2012/12/01 16:27:04 $ // $Date: 2012/12/02 09:04:06 $
// $Author: agibert $ // $Author: agibert $
/* /*
@ -461,7 +461,7 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_
<td class=\"menu-bg\"></td> <td class=\"menu-bg\"></td>
"; ";
lmb_menu($id); lmb_menu($page_id);
// include "$lmb_body_2"; // include "$lmb_body_2";
@ -945,14 +945,20 @@ function lmb_play_intro( $play_type, $play_id, $play_priority)
<td colspan=\"2\" style=\"height: 40px;\"> <td colspan=\"2\" style=\"height: 40px;\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr class=\"row0\"> <tr class=\"intro0\">
<td class=\"title_r\">Introduction&nbsp;</td> <td class=\"intro0\">Introduction</td>
</tr> </tr>
<tr> <tr class=\"intro1\">
<td class=\"text_r\"> <td class=\"intro1\">
<br>
"; ";
include "{$play_path}/.intro";
$intro_file = "{$play_path}/.intro";
$intro_string = file_get_contents( "{$intro_file}");
echo " ".lmb_html_text_format( "{$intro_string}")."<br>
";
echo " <br> echo " <br>
</td> </td>
</tr> </tr>
@ -984,16 +990,21 @@ function lmb_play_intro( $play_type, $play_id, $play_priority)
<td colspan=\"2\" style=\"height: 40px;\"> <td colspan=\"2\" style=\"height: 40px;\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr> <tr class=\"hardware1\">
<td class=\"text_l\"> <td class=\"hardware1\">
<br> <br>
"; ";
include "{$play_path}/.hardware";
echo " <br> $hardware_file = "{$play_path}/.hardware";
</td> $hardware_string = file_get_contents( "{$hardware_file}");
echo " ".lmb_html_text_format( "{$hardware_string}")."<br>
";
echo " </td>
</tr> </tr>
<tr class=\"row0\"> <tr class=\"hardware0\">
<td class=\"title_l\">&nbsp;Hardware</td> <td class=\"hardware0\">Hardware &amp; Software</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -1022,7 +1033,7 @@ function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id)
$track_info = array(); $track_info = array();
$cmd="eval \$( metaflac --export-tags-to=- \"${track_file}\" | grep -v -e \".* .*=\" -e \".*-.*=\" | sed -e 's/=/=\\\"/' -e 's/$/\"/') $cmd="eval \$( metaflac --export-tags-to=- \"${track_file}\" | grep -v -e \".* .*=\" -e \".*-.*=\" | sed -e 's/=/=\\\"/' -e 's/$/\"/')
echo -e \"\${TRACKNUMBER}\t\$(basename ${track_file} .flac)\t\${ARTIST}\t\${ALBUM}\t\$(echo \${TITLE} | sed 's/ (.*//')\t\$(echo \${TITLE} | sed -e 's/.* (//' -e 's/)$//')\t\${COMPOSER}\t\${COMMENT}\t\$(metaflac --show-sample-rate \"${track_file}\")\t\$(metaflac --show-total-samples \"${track_file}\")\t \t\${SAFECREATIVE}\""; echo -e \"\${TRACKNUMBER}\t\$(basename ${track_file} .flac)\t\${ARTIST}\t\${ALBUM}\t\$(echo \${TITLE} | sed 's/ (.*//')\t\$(echo \${TITLE} | sed -e 's/.* (//' -e 's/)$//')\t\${COMPOSER}\t\${COMMENT}\t\$(metaflac --show-sample-rate \"${track_file}\")\t\$(metaflac --show-total-samples \"${track_file}\")\t\${SAFECREATIVE}\"";
exec($cmd, $line); exec($cmd, $line);
@ -1149,7 +1160,7 @@ function lmb_tracklist( $play_type, $play_id, $play_priority)
echo " <tr class=\"tracks{$css_row}\" style=\"height: {$height}px;\">"; echo " <tr class=\"tracks{$css_row}\" style=\"height: {$height}px;\">";
echo "<td class=\"tracks1\">&nbsp;{$track_info["id"]}&nbsp;</td><td class=\"tracks2\">&nbsp;<a href=\"{$track_url}\">{$track_info["title"]}</a>&nbsp;</td><td class=\"tracks3\">&nbsp;{$track_info["mix"]}&nbsp;</td><td class=\"tracks4\">&nbsp;{$track_info["length"]}&nbsp;</td><td class=\"tracks5\">&nbsp;{$track_info["composer"]}&nbsp;</td><td class=\"tracks6\">&nbsp;{$track_info["comment"]}&nbsp;</td>{$file_tag}</tr> echo "<td class=\"tracks1\">&nbsp;{$track_info["id"]}&nbsp;</td><td class=\"tracks2\">&nbsp;<a href=\"{$track_url}\">{$track_info["title"]}</a>&nbsp;</td><td class=\"tracks3\">&nbsp;<a href=\"{$track_url}\">{$track_info["mix"]}</a>&nbsp;</td><td class=\"tracks4\">&nbsp;{$track_info["length"]}&nbsp;</td><td class=\"tracks5\">&nbsp;{$track_info["composer"]}&nbsp;</td><td class=\"tracks6\">&nbsp;{$track_info["comment"]}&nbsp;</td>{$file_tag}</tr>
"; ";
} }
@ -1592,10 +1603,8 @@ function lmb_links_tab( $play_type, $play_id, $play_priority)
exec( $cmd, $line); exec( $cmd, $line);
echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> echo " <table class=\"tab\" border=\"0\" cellpadding=\"0\" cellspacing=\"5\" style=\"\">
<tbody> <tbody>
<tr class=\"links1\">
<td class=\"links1\">
"; ";
for( $i = 0; $i < count($line); $i++) for( $i = 0; $i < count($line); $i++)
@ -1607,14 +1616,19 @@ function lmb_links_tab( $play_type, $play_id, $play_priority)
$link = htmlentities( "{$tab[1]}"); $link = htmlentities( "{$tab[1]}");
$image = "{$tab[2]}"; $image = "{$tab[2]}";
echo " <a href=\"{$link}\">{$text}</a>&nbsp;&nbsp;&nbsp;<a href=\"{$link}\"><img src=\"{$image}\" width=\"16\" height=\"16\" alt=\"\"></a><br> echo " <tr class=\"links1\">
<td class=\"links1\">
<a href=\"{$link}\">{$text}</a>
</td>
<td class=\"links2\">
<a href=\"{$link}\"><img src=\"{$image}\" width=\"16\" height=\"16\" alt=\"\"></a>
</td>
</tr>
"; ";
} }
echo "</td> echo " <tr class=\"links0\">
</tr> <td class=\"links0\" colspan=\"2\">Links</td>
<tr class=\"links0\">
<td class=\"links0\" colspan=\"1\">Links&nbsp;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -1629,27 +1643,33 @@ function lmb_links_tab( $play_type, $play_id, $play_priority)
function lmb_play_last( $play_type, $play_id, $play_priority) function lmb_play_last( $play_type, $play_id, $play_priority)
{ {
$play_path="discography/{$play_type}/{$play_priority}-{$play_id}"; $play_path = "discography/{$play_type}/{$play_priority}-{$play_id}";
echo " <tr> echo " <tr>
<td class=\"body\" colspan=\"3\" rowspan=\"1\"> <td class=\"body\" colspan=\"3\" rowspan=\"1\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\"> <table class=\"tab\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td style=\"width: 66%;\"> <td style=\"width: 66%;\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"tab\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr class=\"row0\"> <tr class=\"thanks0\">
<td class=\"title_l\">&nbsp;Thanks</td> <td class=\"thanks0\">Thanks</td>
</tr> </tr>
<tr> <tr class=\"thanks1\">
<td class=\"text_l\"> <td class=\"thanks1\">
<br>
"; ";
include "{$play_path}/.thanks";
echo " <br> $thanks_file = "{$play_path}/.thanks";
</td> $thanks_string = file_get_contents( "{$thanks_file}");
echo " ".lmb_html_text_format( "{$thanks_string}")."<br>
";
echo " </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -1808,47 +1828,123 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id)
echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody> <tbody>
<tr class=\"info1\" style=\"height: {$height}px;\"> <tr class=\"info0\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Group Name</td> <td class=\"info0\" colspan=\"2\">Informations</td>
<td class=\"info2\"><a href=\"{$lmb_url}?page=discography\">{$track_info["artist"]}</a>&nbsp;</td>
<td class=\"info00\"rowspan=\"$rowspan\">&nbsp;</td>
<td class=\"info0\" rowspan=\"$rowspan\"><img src=\"/images/tab-info-r.png\" alt=\"\"></td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Album</td>
<td class=\"info2\"><a href=\"{$lmb_url}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}\">{$track_info["album"]}</a>&nbsp;</td>
</tr> </tr>
<tr class=\"info1\" style=\"height: {$height}px;\"> <tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Track Number</td> <td class=\"info1\">Group Name</td>
<td class=\"info2\">{$track_info["id"]}&nbsp;</td> <td class=\"info2\"><a href=\"{$lmb_url}?page=discography\">{$track_info["artist"]}</a></td>
</tr> </tr>
<tr class=\"info2\" style=\"height: {$height}px;\"> <tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Track Name</td> <td class=\"info1\">Album</td>
<td class=\"info2\">{$track_info["title"]}&nbsp;</td> <td class=\"info2\"><a href=\"{$lmb_url}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}\">{$track_info["album"]}</a></td>
</tr> </tr>
<tr class=\"info1\" style=\"height: {$height}px;\"> <tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Mix Name</td> <td class=\"info1\">Track Number</td>
<td class=\"info2\">{$track_info["mix"]}&nbsp;</td> <td class=\"info2\">{$track_info["id"]}</td>
</tr> </tr>
<tr class=\"info2\" style=\"height: {$height}px;\"> <tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Composer</td> <td class=\"info1\">Track Name</td>
<td class=\"info2\">{$track_info["composer"]}&nbsp;</td> <td class=\"info2\">{$track_info["title"]}</td>
</tr> </tr>
<tr class=\"info1\" style=\"height: {$height}px;\"> <tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Comment</td> <td class=\"info1\">Mix Name</td>
<td class=\"info2\">{$track_info["comment"]}&nbsp;</td> <td class=\"info2\">{$track_info["mix"]}</td>
</tr> </tr>
<tr class=\"info2\" style=\"height: {$height}px;\"> <tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Length</td> <td class=\"info1\">Composer</td>
<td class=\"info2\">{$track_info["length"]}&nbsp;</td> <td class=\"info2\">{$track_info["composer"]}</td>
</tr>
<tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Comment</td>
<td class=\"info2\">{$track_info["comment"]}</td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">Length</td>
<td class=\"info2\">{$track_info["length"]}</td>
</tr> </tr>
"; ";
if ($track_info["safe_creative"] != "") if ($track_info["safe_creative"] != "")
{ {
echo " <tr class=\"info1\" style=\"height: {$height}px;\"> echo " <tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">&nbsp;Safe Creative</td> <td class=\"info1\">Safe Creative</td>
<td class=\"info2\"><a href=\"{$track_info["safe_creative"]}\">Link</a>&nbsp;</td> <td class=\"info2\"><a href=\"{$track_info["safe_creative"]}\">Link</a></td>
</tr>
";
}
echo " </tbody>
</table>
";
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Track Info */
/*--------------------------------------------------------------------------------------------------------------------*/
function lmb_track_info_old( $play_type, $play_id, $play_priority, $track_id)
{
global $lmb_url;
$track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id);
$height=220/8;
if ($track_info["safe_creative"] != "")
{
$rowspan = 9;
}
else
{
$rowspan = 8;
}
echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody>
<tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Group Name</td>
<td class=\"info2\"><a href=\"{$lmb_url}?page=discography\">{$track_info["artist"]}</a></td>
<td class=\"info00\"rowspan=\"$rowspan\"></td>
<td class=\"info0\" rowspan=\"$rowspan\"><img src=\"/images/tab-info-r.png\" alt=\"\"></td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">Album</td>
<td class=\"info2\"><a href=\"{$lmb_url}?page=play&amp;type={$play_type}&amp;id={$play_id}&amp;priority={$play_priority}\">{$track_info["album"]}</a></td>
</tr>
<tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Track Number</td>
<td class=\"info2\">{$track_info["id"]}</td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">Track Name</td>
<td class=\"info2\">{$track_info["title"]}</td>
</tr>
<tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Mix Name</td>
<td class=\"info2\">{$track_info["mix"]}</td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">Composer</td>
<td class=\"info2\">{$track_info["composer"]}</td>
</tr>
<tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Comment</td>
<td class=\"info2\">{$track_info["comment"]}</td>
</tr>
<tr class=\"info2\" style=\"height: {$height}px;\">
<td class=\"info1\">Length</td>
<td class=\"info2\">{$track_info["length"]}</td>
</tr>
";
if ($track_info["safe_creative"] != "")
{
echo " <tr class=\"info1\" style=\"height: {$height}px;\">
<td class=\"info1\">Safe Creative</td>
<td class=\"info2\"><a href=\"{$track_info["safe_creative"]}\">Link</a></td>
</tr> </tr>
"; ";
} }
@ -1873,6 +1969,51 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra
$lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt";
echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody>
<tr class=\"lyrics1\">
<td class=\"lyrics1\">
<br>
";
if( file_exists( "{$lyrics_file}"))
{
$lyrics_string = file_get_contents( "{$lyrics_file}");
}
else
{
$lyrics_string = "No lyrics found...\n";
}
echo str_replace( "\n", "<br>\n ", "{$lyrics_string}");
echo "<br>
</td>
</tr>
<tr class=\"lyrics0\">
<td class=\"lyrics0\" colspan=\"2\">Lyrics</td>
</tr>
</tbody>
</table>
";
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Track Lyrics */
/*--------------------------------------------------------------------------------------------------------------------*/
function lmb_track_lyrics_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix)
{
$play_path = "discography/{$play_type}/{$play_priority}-{$play_id}";
$cover_path = "{$play_path}/covers/{$play_id}-cover";
$logo_path = "{$play_path}/logos/{$play_id}-logo";
$track_path = "{$play_path}/tracks";
$lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt";
echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> echo " <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tbody> <tbody>
<tr class=\"lyric1\"> <tr class=\"lyric1\">
@ -2039,80 +2180,95 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac
$border1_size= $cover_size + 30; $border1_size= $cover_size + 30;
$border2_size= $cover_size + 10; $border2_size= $cover_size + 10;
echo " <tr><td><br></td></tr> echo " <tr><td><br></td></tr>
<tr> <tr>
<td class=\"body\" colspan=\"3\" rowspan=\"1\"> <td class=\"body\" colspan=\"3\" rowspan=\"1\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td rowspan=\"2\" style=\"width: {$border1_size}px; height: {$border1_size}px;\"> <td>
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-1-1024.png\"><img src=\"{$cover_path}-1-{$cover_size}.png\" alt=\"\"></a></td> <td rowspan=\"2\" style=\"width: {$border1_size}px; height: {$border1_size}px;\">
</tr> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
</tbody> <tbody>
</table> <tr>
</td> <td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-1-1024.png\"><img src=\"{$cover_path}-1-{$cover_size}.png\" alt=\"\"></a></td>
<td colspan=\"2\" style=\"height: 40px;\"> </tr>
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> </tbody>
<tbody> </table>
<tr> </td>
<td> <td style=\"height: 40px; width: auto;\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody>
<tr>
<td>
"; ";
lmb_track_info( $play_type, $play_id, $play_priority, $track_id); lmb_track_info( $play_type, $play_id, $play_priority, $track_id);
// echo "<br>"; // echo "<br>";
echo " </td> echo " </td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan=\"1\" style=\"height: 40px;\">
</td>
<td colspan=\"1\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody>
<tr> <tr>
<td> <td>
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody>
<tr>
<td>
"; ";
lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix);
echo " </td> echo " </td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan=\"2\" style=\"height: 100%; vertical-align:bottom\"> <td>
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"text-align: left; width: 100%; height: 100%;\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td style=\"height: 100%;\"> <td style=\"height: 100%; vertical-align:bottom\">
</td> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"text-align: left; width: 100%; height: 100%;\">
</tr> <tbody>
<tr> <tr>
<td> <td style=\"height: 100%;\">
</td>
</tr>
<tr>
<td>
"; ";
lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix);
echo " </td> echo " </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</td> </td>
<td rowspan=\"1\" style=\"width: {$border1_size}px; height: {$border1_size}px; vertical-align:bottom\"> <td style=\"width: {$border1_size}px; height: {$border1_size}px; vertical-align:bottom\">
<table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\"> <table class=\"list\" border=\"0\" cellpadding=\"0\" cellspacing=\"10\" style=\"\">
<tbody> <tbody>
<tr> <tr>
<td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-2-1024.png\"><img src=\"{$cover_path}-2-{$cover_size}.png\" alt=\"\"></a></td> <td class=\"cover\" style=\"width: {$border2_size}px; height: {$border2_size}px;\"><a href=\"{$cover_path}-2-1024.png\"><img src=\"{$cover_path}-2-{$cover_size}.png\" alt=\"\"></a></td>
</tr>
</tbody>
</table>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -2166,7 +2322,7 @@ function lmb_track_intro_old( $play_type, $play_id, $play_priority, $track_id, $
<td> <td>
"; ";
lmb_track_info( $play_type, $play_id, $play_priority, $track_id); lmb_track_info_old( $play_type, $play_id, $play_priority, $track_id);
echo " </td> echo " </td>
@ -2208,7 +2364,7 @@ echo " </tr>
<td> <td>
"; ";
lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); lmb_track_lyrics_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix);
echo " </td> echo " </td>
</tr> </tr>
@ -2292,10 +2448,10 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t
$css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3; $css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3;
echo " <tr class=\"row${css_row}\"> echo " <tr class=\"row${css_row}\">
<td class=\"track2\">{$mix_tab[$k]["track_name"]}</td> <td class=\"tracks2\">{$mix_tab[$k]["track_name"]}</td>
<td class=\"track2\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["mix_name"]}</a></td> <td class=\"tracks3\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["mix_name"]}</a></td>
<td class=\"track2\">{$mix_tab[$k]["play_type_name"]}</td> <td class=\"tracks2\">{$mix_tab[$k]["play_type_name"]}</td>
<td class=\"track2\"><a href=\"{$mix_tab[$k]["play_url"]}\">{$mix_tab[$k]["play_name"]}</a></td> <td class=\"tracks3\"><a href=\"{$mix_tab[$k]["play_url"]}\">{$mix_tab[$k]["play_name"]}</a></td>
</tr> </tr>
"; ";
} }
@ -2330,7 +2486,7 @@ function lmb_track_body( $play_type, $play_id, $play_priority, $track_id)
$track_mix = $tab[2]; $track_mix = $tab[2];
/* --- Introduction --- */ /* --- Introduction --- */
lmb_track_intro_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix);
/* --- Download --- */ /* --- Download --- */
lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix);
@ -2350,8 +2506,8 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id)
$track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id);
$track_title = "Track - {$track_info["title"]} ({$track_info["mix"]})"; $track_title = "Track - {$track_info["title"]} ({$track_info["mix"]})";
// lmb_header( 4, "Langueur Monotone - Track Page", "/images/title-track.png", "Track", 962); lmb_header( 4, "Langueur Monotone - Track Page", "/images/title-track.png", "Track", 962);
lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 1234); // lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 1234);
lmb_track_body( $play_type, $play_id, $play_priority, $track_id); lmb_track_body( $play_type, $play_id, $play_priority, $track_id);
lmb_footer(); lmb_footer();
} }