-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbxh-video-am.php
114 lines (110 loc) · 5.76 KB
/
bxh-video-am.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
#####################################
# IPOS V1.0 (TGT 4.5) #
# code by ichphienpro #
# email: ichphien_pro@yahoo.com #
#####################################
define('TGT-MUSIC',true);
include("./tgt/tgt_music.php");
include("./tgt/class.inputfilter.php");
$myFilter = new InputFilter();
if(isset($_GET["act"])) $act = $myFilter->process($_GET['act']);
$up = $tgtdb->databasetgt(" * ","cf"," cf_id = 5");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<? echo SITE_LINK ?>" />
<title>Bảng Xếp Hạng Video Âu Mỹ Tháng <? echo date('m');?></title>
<meta name="title" content="Bảng xếp hạng video Âu Mỹ tháng <? echo date('m');?>" />
<meta name="keywords" content="Bảng xếp hạng video Âu Mỹ tháng <? echo date('m');?>" />
<meta name="description" content="Bảng xếp hạng video Âu Mỹ tháng <? echo date('m');?>" />
<? include("./theme/ip_java.php");?>
</head>
<body>
<div id="main">
<? include("./theme/ip_header.php");?>
<div id="contents" class="contents_bg box">
<table width="100%" cellpadding="0" cellspacing="0" class="bxh_tgt_v4_5">
<tr>
<td width="120" valign="top">
<? include("./theme/ip_bxh.php");?>
</td>
<td width="530" style="padding:0px 5px; border-left: 1px solid #cfcfcf;" valign="top">
<div class="bxh_title v_am_ _bottom"><span>BXH</span> Video Âu Mỹ<a href="BXH/Video/Au-My.html?act=play"><img class="right" src="temp/img/play.gif" border="0" /></a></div>
<div class="bxh_title_s">Bảng Xếp Hạng Tuần <span><? echo $up[0][3];?></span></div>
<? if($act == 'play') {
?>
<div class="_player">
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="400">
<param name="movie" value="<? echo SITE_LINK; ?>tgt_file/player.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="always"/>
<param name="allowfullscreen" value="true"/>
<param name="flashvars" value="file=<? echo SITE_LINK; ?>xml/6/bxh-video-am.xml&playlistsize=0&playlist=bottom&autostart=true&songid=0&uservip=true&zoomsizeon=false&ads=">
<embed id="player" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="100%" height="400" src="<? echo SITE_LINK; ?>tgt_file/player.swf" flashvars="file=<? echo SITE_LINK; ?>xml/6/bxh-video-am.xml&playlistsize=0&playlist=bottom&autostart=true&songid=0&zoomsizeon=false&ads=" />
</object>
</div>
<? } ?>
<div class="bxh_list _delline">
<?
$arr_vn_ = $tgtdb->databasetgt(" m_id, m_title, m_singer, m_img ","data"," m_cat LIKE '%,".IDCATAM.",%' AND m_type = 2 ORDER BY m_viewed_month DESC LIMIT 40");
for($i=0;$i<count($arr_vn_);$i++) {
$list_song .= $arr_vn_[$i][0].',';
$list_song_ = substr($list_song,0,-1);
if(date("w") == 0 && $up[0][4] == '1') {
mysql_query("UPDATE tgt_nhac_cf SET cf_value = '".$list_song_."', cf_date = '".date("d/m/Y")." - ".tinh_tuan(7)."', cf_up = '0' WHERE cf_id = '5'");
}
$singer_vn_ = get_data("singer","singer_name"," singer_id = '".$arr_vn_[$i][2]."'");
$song_vn_ = url_link($arr_vn_[$i][1],$arr_vn_[$i][0],'xem-video');
$singer_url_vn_ = 'tim-kiem/bai-hat.html?key='.text_s($singer_vn_).'&ks=singer';
$singer_img_vn_ = get_data("singer","singer_img"," singer_id = '".$arr_vn_[$i][2]."'");
$number = $i+1;
?>
<div class="list">
<div class="left number"><? echo $number;?>.</div>
<div class="left images"><img src="<? echo check_img($arr_vn_[$i][3]);?>" class="img2" /></div>
<div class="left info">
<h3><a href="<? echo $song_vn_;?>"><? echo $arr_vn_[$i][1];?></a></h3>
<h4><a href="<? echo $singer_url_vn_;?>"><? echo $singer_vn_;?></a></h4>
</div>
<br class="clr" />
</div>
<? } ?>
</div>
</td>
<td width="300" valign="top">
<div class="box w_3">
<h1>Âu Mỹ</h1>
<div class="xxxxx">Tuần <? echo $up[0][5];?></div>
<div class="album">
<?
$arr_song = $tgtdb->databasetgt(" m_id, m_title, m_singer, m_img ","data"," m_id IN (".$up[0][2].") ORDER BY m_viewed_month DESC LIMIT 10");
for($z=0;$z<count($arr_song);$z++) {
$singer_name = get_data("singer","singer_name"," singer_id = '".$arr_song[$z][2]."'");
$singer_url = 'tim-kiem/bai-hat.html?key='.text_s($singer_name).'&ks=singer';
$song_url = url_link($arr_song[$z][1],$arr_song[$z][0],'xem-video');
?>
<div class="top_video">
<div class="x_2">
<a title="Xem Video <?=$arr_song[$z][1]; ?>" href="<?=$song_url; ?>"><img src="<?=$arr_song[$z][3]; ?>"></a>
</div>
<div class="x_3">
<p class="song"><a title="Xem Video <?=$arr_song[$z][1]; ?>" href="<?=$song_url; ?>"><? echo rut_ngan($arr_song[$z][1],3); ?></a></p>
<p><a title="Tìm kiếm bài hát của ca sĩ <? echo $singer_name; ?>" href="<? echo $singer_url; ?>"><? echo rut_ngan($singer_name,3); ?></a></p>
</div>
<div class="clr"></div>
</div>
<? } ?>
</div>
</div>
</td>
</tr>
</table>
</div>
<? include("./theme/ip_footer.php");?>
</div>
</body>
</html>