<!--#include file="inc.asp"-->
<!--#include file="check.asp"-->
<%
id=request("id")
act=request("act")
filename=request("filename")
info=request("info")
title=request("title")
times=request("times")
hits=request("hits")
if act="del" then
set rs=artconn.execute("delete * from [ent] where id="&id)
Response.Write "<script language=javascript>{window.alert('删除成功！');javascript:history.back(1);}</script>"
Response.end
end if
if request("info")<>"" and act="save" then
set rs=server.createobject("adodb.recordset")
sql="select * from [ent] where id="&id&"" 
rs.open sql,artconn,1,3
if rs.eof and rs.bof then
else
rs("info")=request("info")
rs("title")=request("title")
rs("times")=request("times")
rs("hits")=request("hits")
rs.update
end if
set rs=nothing
artconn.close
set artconn=nothing
end if

%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/Admin_Style.css">
<head>
<title>福建音乐视听网 管理中心</title>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<%if act="tohtml" then
Set MyGet=New ClsCollection
MyGet.CreateFolder(filename)
Set MyGet=nothing
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write request("tohtml")
fout.close
set fout=nothing
set fso=nothing%>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="0">
  <tr>
    <td width="100%"><font color="#FF0000">·</font>生成HTML成功,时间<%=Now()%><br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td>
  </tr></table>
<%elseif act="save" then%>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="0">
<form method="POST" action="?id=<%=id%>&act=tohtml">
  <tr>
    <td width="50%"><font color="#FF0000">·</font>下一步，生成HTML<br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td>
  </tr>
<tr><td>
<TEXTAREA type="hidden" name="tohtml" rows=30 cols="150">
<html><head>
<meta name='keywords' content='娱乐新闻,<%=title%>,福建音乐视听网|www.0hao.cn'>
<meta name='description' content='娱乐新闻,<%=title%>,福建音乐视听网|www.0hao.cn'>
<title><%=title%>|娱乐新闻|福建音乐视听网|www.0hao.cn</TITLE>
<style>td{color: #245060;font-size:9pt;line-height:140%}
body {font-size:9pt;line-height:140%
SCROLLBAR-FACE-COLOR: #dbeedd; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: darkseagreen; COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #dbeedd; SCROLLBAR-ARROW-COLOR: darkseagreen; SCROLLBAR-TRACK-COLOR: #f3faf4; SCROLLBAR-DARKSHADOW-COLOR: #f3faf4;
}
a:link       { color: #234B5A; text-decoration: none }
a:visited    { color: #234B5A; text-decoration: none }
a:active     { color: #FF0000; text-decoration: none }
a:hover      { color: #FF6600; text-decoration: underline}
</style>
<script src="/js/js.js"></script>
<script src="/ent/Wimage.js"></script>
</head>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 background="/images/bg.gif">
<TABLE height=106 cellSpacing=0 cellPadding=0 align=center width="100%" border=0>
<TBODY><TR><TD vAlign=top align=middle background=/images/top4_01.jpg height=106>
<TABLE height=106 cellSpacing=0 cellPadding=0 width=100% border=0><TBODY>
<TR><TD vAlign=top width=433 height="60" rowspan="2" ><A href="http://music.0hao.cn/" target=_top><IMG height=60 alt="" src="/images/top4_02.jpg" width=379 border=0 name=top4_02></A></TD>
<TD width=517 height="8" colspan="17" align=right>
<font color="#E800E8">◆</font> <a onclick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://music.0hao.cn');return(false);" href="#"><font color="#FFFFFF">设为首页</font></a>    
<font color="#0000FF">◇</font> <a href="javascript:window.external.addFavorite('http://music.0hao.cn','☆福建音乐网 音乐视听☆')"><font color="#FFFFFF">收藏本站</font></a>        </TD>
</TR><TR><td width="52"><a href="/sclass/1.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('01','','/images1/he001.gif',1)"><img src="/images1/he01.JPG" alt="华人男歌手" name="01" width="52" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="55"><a href="/sclass/2.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('02','','/images1/he002.gif',1)"><img src="/images1/he02.JPG" alt="华人女歌手" name="02" width="55" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="62"><a href="/sclass/3.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('03','','/images1/he003.gif',1)"><img src="/images1/he03.JPG" alt="华人乐队组合" name="03" width="62" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="52"><a href="/sclass/4.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('04','','/images1/he004.gif',1)"><img src="/images1/he04.JPG" alt="日韩男歌手" name="04" width="52" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="55"><a href="/sclass/5.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('05','','/images1/he005.gif',1)"><img src="/images1/he05.JPG" alt="日韩女歌手" name="05" width="55" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="62"><a href="/sclass/6.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('06','','/images1/he006.gif',1)"><img src="/images1/he06.JPG" alt="日韩乐队组合" name="06" width="62" height="44" border="0"></a></td>
<td width="2"><img src="/images/he4.GIF" width="2" height="44"></td>
<td width="67"><a href="/sclass/7.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('07','','/images1/he007.gif',1)"><img src="/images1/he07.JPG" alt="欧美全部歌手" name="07" width="67" height="44" border="0"></a></td>
<td width="3"><img src="/Images/he4.GIF" width="2" height="44"></td>
<td width="63"><a href="/sclass/8.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage
('08','','/images1/he008.gif',1)">
<img src="/images1/he08.JPG" alt="影视其他" name="08" width="63" height="44" border="0"></a></td>
<td width="3"><img src="/Images/he4.GIF" width="2" height="44"></td>
<td width="53"><a href="/"><img src="/images1/he09.JPG" alt="回首页" width="53" height="44" border="0"></a></td>
</TR><TR><TD vAlign=center align=middle colSpan=18 height=1></TD></TR>
<TR><TD colSpan=18 height=44><TABLE height=26 cellSpacing=0 cellPadding=0 width=779 border=0>
<TBODY><TR><TD width=120></TD><TD colSpan=2 align=absMiddle>
<SCRIPT language=javascript src="/js/search.js"></SCRIPT>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

<table width="770" border="0" align="center" cellpadding="0" bgcolor="#FFFFFF" style="border-collapse: collapse">
  <tr><td><div align="center">
<table border="0" width="760" cellpadding="0" style="border-collapse: collapse">
<tr><td height="7"><img border="0" src="/images/special1.gif" width="760" height="10"></td>
</tr></table></div></td></tr></table>
<table width="770" border="0" align="center" cellpadding="0" bgcolor="#FFFFFF" style="border-collapse: collapse">
<tr><td width="10" background="/images/shubei.gif"></td>
<td bgColor=#c2eedb> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" height="16">
<tr><td align="center"></td></tr></table>
<table width="750" height="13" border="0" align="center" cellpadding="0" style="border-collapse: collapse"><TR>
 <TD bgColor=#c7c7c7 colSpan=4 height=1></TD></TR><tr>
  <td width="776" bgcolor="#FFFFFF" height="24"> 
            <font color="#26727A"> <span style="font-size: 9pt"> &nbsp;您的位置：</span></font><span style="font-size: 9pt"><font color="#FF9933"><span style="text-decoration: none"><font color="#26727A"><a href="/"><font color="#26727A">福建音乐网</font></a></font><font color="#26727A">－</font><a href='/ent/'><font color="#26727A">娱乐新闻</font></a><font color="#26727A">－<%=title%></font></span></font></span> <script src='/ent/hits.asp?id=<%=Id%>'></script></td>
</tr><TR> <TD bgColor=#c7c7c7 colSpan=4 height=1></TD></TR>
</table>						
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" height="21">
<tr><td align="center"></td></tr></table>
<table width="96%" border="0" align="center" cellpadding="0" style="border-collapse: collapse">
<tr><td align="center"> 
<table width="100%" border="1" cellpadding="0" cellspacing="4" bordercolor="#BDDBE7" bgcolor="#FFFFFF" style="border-collapse: collapse">
<tr><td valign="top">
<table border="1" width="100%" cellpadding="0" style="border-collapse: collapse" bordercolor="#398995" height="25">
<tr><td bgColor=#d1f7c5><table width="100%" border="0" cellspacing="0" cellpadding="0" height="22">
<tr><td align="center"><%=title%> <i><font color="#638ED6">&nbsp; (<%=times%>)</font></i>
<sub>--<i>文章来源：网络</i></sub></td>
</tr></table></td></tr></table><table border="0" width="100%" cellspacing="0" cellpadding="0" height="6">
<tr><td></td></tr></table>
<table border="1" width="100%" cellpadding="0" bordercolor="#C8E6EA" style="border-collapse: collapse" height="44"><tr>
<td style="text-align: center; background-color: #F4FAFB"><table border="0" style="width: 96%; height: 92%; word-break:break-all" cellspacing="4" cellpadding="0">
<tr><td style="color: #245060">
<%=request("info")%>
</td></tr></table></td></tr></table></td></tr></table></td></tr></table>
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" height="21">
<tr><td align="center">&nbsp;</td></tr></table>
<table width="96%" border="1" align="center" cellpadding="0" cellspacing="4" bordercolor="#A7D6DC" bgcolor="#FFFFFF" style="border-collapse: collapse"><tr><td>
<table border="1" width="100%" cellpadding="0" style="border-collapse: collapse" height="25" bordercolor="#52ABB8">
<tr><td bgColor=#d1f7c5> <table border="0" width="708" cellpadding="0" style="border-collapse: collapse; border-left-width:1px; border-right-width:1px; border-top-width:1px; border-bottom-style:dotted; border-bottom-width:1px">
<tr><td><iframe src="http://c03.caishow.com/kjava_code/760x80code.asp?f=67705&ad_id=5119" height="80" width="710" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
</td></tr></table>
                </td>
</tr>
</table></td></tr></table></td>
<td width="10" background="/images/shubei2.gif"></td>
</tr></table>		   
<table width="770" border="0" align="center" cellpadding="0" bgcolor="#FFFFFF" style="border-collapse: collapse">
  <tr><td> <div align="center"> 
        <table border="0" width="760" cellpadding="0" style="border-collapse: collapse">
          <tr> 
            <td height="7"> <img border="0" src="/images/special2.gif" width="760" height="10"></td>
          </tr></table></div></td></tr><tr height="8"><td bgcolor="#FCFCFC"></td>
</tr></table>
<table width="770" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr><td align="center">Copyright &copy; 2004-2008 <a href=http://www.0hao.cn><font color=#245060>0hao.cn</font></a> All rights Reserved.</td></tr><tr><td><div style="VISIBILITY: hidden"><script src="http://0hao.cn/stat/mystat.asp?siteid=1"></script></div></td></tr></table></body></html>
</TEXTAREA></td></tr>
<tr>
<td colspan=2 align=center>
<input type="hidden" name="filename" value="<%=filename%>">
<input name="change" class=buttonface value="生成HTML" type='submit'> </td>
  </tr>
</form>

</table>
<%else
set rs=server.createobject("adodb.recordset")
sql="select * from [ent] where id="&id&"" 
rs.open sql,artconn,1,1
if rs.eof and rs.bof then 
	response.write "<p align='center'>暂时没有新闻</p>" 
else
Format=replace(replace(replace(rs("addtime"),"-","")," ",""),":","")
MonthFolder=Year(rs("times"))&"-"&Month(rs("times"))
ArtUrl="../ent/"&MonthFolder&"/"&Format&".htm"
info=rs("info")
title=rs("title")
times=rs("times")
hits=rs("hits")
end if
set rs=nothing
artconn.close
set artconn=nothing%>

<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF" style="border-collapse:collapse;">
<tr>
<td width="100%" height="22" align=center class="topbg"><strong>编 辑 新 闻</strong></td>
</tr><tr>
<td width="100%" height="22" class="tdbg" align=center>
<div align="center">
<table width="100%" border="1" cellpadding="2" cellspacing="0" class="border" style="border-collapse:collapse;">
<form method="POST" action="?id=<%=id%>&act=save">
<tr>
<td width="15%" align="right">新闻标题：</td>
<td width="85%"><input type="text" name="title" value="<%=title%>" size="50" style="color:#000000; background-color:#E1F4EE; border-width:1px; border-color:#39867B; border-style:solid;"></td>
</tr>
<tr>
<td width="15%" align="right">发表日期：</td>
<td width="85%"><input type="text" name="times" value="<%=times%>" size="50" style="color:#000000; background-color:#E1F4EE; border-width:1px; border-color:#39867B; border-style:solid;"></td>
</tr>
<tr>
<td width="15%" align="right">浏 览 量：</td>
<td width="85%"><input type="text" name="hits" value="<%=hits%>" size="50" style="color:#000000; background-color:#E1F4EE; border-width:1px; border-color:#39867B; border-style:solid;"></td>
</tr>
<tr>
<td width="15%" align="right">新闻内容：</td>
<td width="85%"><TEXTAREA name="info" rows=24 cols="130"><%=info%></TEXTAREA></td>
</tr>
<tr>
<td colspan=2 align=center>
<input type="hidden" name="filename" value="<%=ArtUrl%>">
<input name="change" class=buttonface value="保存并生成HTML" type='submit'> </td>
  </tr>
</form>
</table>
<%
end if
%>   
</body>    
</html>