?? down_cx_edit.asp
字號:
<!--#include file="check.asp"-->
<%if CheckAdmin("DownAdminAll",JyDownAdminAdmin) then
else
if CheckAdmin("DownAdmin",JyDownAdminAdmin) then
NotMe=" and user='"&JyDownAdminName&"'"
else
response.write("<li>您沒有進入本頁面的權限!")
response.end
end if
end if
if CheckAdmin("DownTS",admin) then
DownTS="ok"
end if
DownHot=3
if CheckAdmin("DownHot3",JyDownAdminAdmin) then DownHot=3
if CheckAdmin("DownHot4",JyDownAdminAdmin) then DownHot=4
if CheckAdmin("DownHot5",JyDownAdminAdmin) then DownHot=5
if JyDownCheckAdminAll="ok" then DownHot=5
%>
<!--#include file="mdb_path_down.asp"-->
<!--#include file="config.asp"-->
<%
savetime=Now()+webtime/24
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from down where id="&request("id")&""&NotMe&""
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<b>錯誤:</b>此ID號的作品已被刪除或不是你添加的!"
response.end
end if
sqlt="select * from downtype where id="&rs("tid")
Set rst= Server.CreateObject("ADODB.Recordset")
rst.open sqlt,conn,1,1
if not rst.eof then
sortid=rst("id")
tname=rst("tname")
end if
rst.close
rst.open ("select * from downtype where tj>1 order by ts"),conn,1,1
do while not rst.eof
tname2=replace(rst("tname"),"|","->")
if rst("tj")=2 and rst("tn")<>tn then
i=i+1
if i=2 then
i=0
color="#808000"
else
color="#4D9CC8"
end if
end if
tn=rst("tn")
if rst("tstart")<>"" then
else
typelist=typelist&"<option style='COLOR:"&color&"' value='"&rst("id")&"'>"&tname2&"</option>"
end if
rst.MoveNext
loop
rst.close
set rst=nothing
%>
<SCRIPT LANGUAGE="JavaScript">
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
if (swtch == 1){
basic = false;
stprompt = false;
helpstat = true;
} else if (swtch == 0) {
helpstat = false;
stprompt = false;
basic = true;
} else if (swtch == 2) {
helpstat = false;
basic = false;
stprompt = true;
}
}
function AddText(NewCode) {
document.frmAnnounce.body.value+=NewCode
}
function openscriphtml()
{
if (navigator.appName!="Microsoft Internet Explorer")
alert("此功能 Netscape 用戶不能使用!")
else
{newwin=window.open('html_editor.htm','','width=544,height=294');
newwin.focus();
}
}
function runEx(){
//alert('請注意,按下確定將生成頁面,按下后請稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace");
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value));
winEx.document.close();
}
</SCRIPT>
<script language="Javascript">
<!-- hide
function insertsmilie(smilieface){
document.frmAnnounce.body.value+=smilieface;
}
// -->
</script>
<script language="javascript">
function ToSystem(addTitle) {
var revisedTitle;
var currentTitle;
currentTitle = document.frmAnnounce.system.value;
revisedTitle = currentTitle+addTitle;
document.frmAnnounce.system.value=revisedTitle;
document.frmAnnounce.system.focus();
return; }
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta copy="作 品制作 [2flash,網址www.my33.com] ; www.my33.com!">
<title>修改作 品</title>
<style>
td{font-size:9pt;line-height:140%}
body{font-size:9pt;line-height:140%}
a:link { color: #0033CC; text-decoration: none }
a:visited { color: #0033CC; text-decoration: none }
a:active { color: #4D9CC8; text-decoration: none }
a:hover { color: #4D9CC8; text-decoration: underline}
a.JyDownSort:link { color: #FFFFFF; text-decoration: none }
a.JyDownSort:visited { color: #FFFFFF; text-decoration: none }
a.JyDownSort:hover { color: #DFDFDF; text-decoration: underline}
</style>
</head>
<body topmargin="1" leftmargin="1">
<form action="down_cx_edit_save.asp?d=editsave&id=<%=request("id")%>" method=post name="frmAnnounce">
<input type="hidden" name="user" value="<%=rs("user")%>">
<div align="center">
<center>
<table border="0" cellspacing="1" style="border-collapse: collapse" width="600" bgcolor="#cococo" cellpadding="2">
<tr>
<td width="100%" bgcolor="#4D9CC8"><b><a class=JyDownSort href=down_sort.asp>作 品首頁</a>>> <a class=JyDownSort href="down_sort.asp?id=<%=sortid%>"><%=tname%></a> ++(編輯作 品)++</b> <a class=JyDownSort target="_blank" href="../flash/<%=request("id")%>.shtml"><b><%=request("id")%></b></a></td>
</tr>
<%if request("d")="saveok" then%>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" width="100%" cellpadding="0">
<tr>
<td nowrap><font color="#4D9CC8">·</font>成功:修改資料完成!(<%=Now()%>)<%if request("update")="yes" then%>,你選擇了自動生成Html頁,請等待結果:</td>
<td width="100%" nowrap><iframe src='down_makesoft.asp?type=page&id=<%=request("id")%>' width='180' height='100%' frameborder='no' border='0' MARGINWIDTH='0' MARGINHEIGHT='0' SCROLLING='no'></iframe><%end if%></td>
</tr>
</table>
</td>
</tr>
<%end if%>
<tr>
<td width="100%" bgcolor="#F4F4F4"><font color="#000080"><b>作 品信息</b> </font>
<font color="#808080">紅字必填</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2"><font color="#4D9CC8">類別</font>:<select size="1" name="tid">
<option selected value="<%=sortid%>"><%=tname%>(<%=sortid%>)</option>
<%=typelist%></select></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2"><font color="#4D9CC8">FLASH名稱</font>:<input type="text" size=36 name="cxn" value="<%=rs("cxn")%>"><br><font color="#4D9CC8">連接地址:</font><input type="text" size=50 name="cxv" value="<%=rs("cxv")%>"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2">網絡Flash地址:
<select name="cd" size="1">
<option selected value="">
<%
if webDownLb<>"" then
LB=split(webDownLb,",")
for i=0 to ubound(LB)
if LB(i)<>"在線電影" and LB(i)<>"精彩動畫" and LB(i)<>"特別作 品" then
response.write "<option value='"&LB(i)&"'"
if rs("cd")=LB(i) then
response.write " selected"
end if
response.write ">"&LB(i)&"</option>"
end if
next
end if
%>
</select> <br>
網絡圖片路徑:
<select name="sq" size="1">
<option selected value="">
<%
if webDownSq<>"" then
SQ=split(webDownSq,",")
for i=0 to ubound(SQ)
response.write "<option value='"&SQ(i)&"'"
if rs("sq")=SQ(i) then
response.write " selected"
end if
response.write ">"&SQ(i)&"</option>"
next
end if
%>
</select> </td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2"><font color="#4D9CC8">作者:</font><input type="text" size=20 name="ln" value="<%=rs("ln")%>">
<font color="#4D9CC8">大小:</font>
<input type="text" size=9 name="size" value="<%=rs("size")%>">
<font color="#4D9CC8">評價</font>:
<select size="1" name="hot">
<%for i=1 to DownHot%>
<option<%if rs("hot")=i then%> selected<%end if%> value="<%=i%>"><%=i%>星</option>
<%next%>
</select></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2"><a target="_blank" href="<%=rs("pic")%>"><font color="#4D9CC8">作品圖片</font></a>:<input type="text" size=50 name="pic" value="<%=rs("pic")%>"> <font color="<%if rs("show")=1 then%>#4D9CC8<%end if%>"><font color="#4D9CC8">推薦</font></font>
<input type="checkbox" name="show" value="1"<%if rs("show")=1 then%> checked<%end if%>></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" nowrap>圖片上傳:</td>
<td width="99%" bgcolor="#F9F9F9">
<iframe name="JyDownUpload" frameborder="0" width="100%" height="23" scrolling="no" src="upload.htm"></iframe></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" nowrap valign="top"><font color="#4D9CC8">歌手</font>:<br>
<input type="checkbox" name="html" value="yes" checked>HTML<br>
<a href="javascript:openscriphtml()">HTML編輯</a>
</td>
<td width="99%" valign="top" bgcolor="#FFFFFF"><textarea rows="2" name="body" cols="50"><%=rs("body")%></textarea></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" colspan="2"><font color="#4D9CC8">關鍵字</font>:<input type="text" size=20 name="pwd" value="<%=rs("pwd")%>"><%
if DownTS="ok" then%> <input type="checkbox" name="zd_date_yes" value="yes"<%if request("html")="yes" then%> checked<%end if%>>自定修改時間<input type="text" size=19 name="zd_date" value="<%=savetime%>"><%end if%>
最后更新:<%=rs("date")%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" id="upid">
</td>
</tr>
<tr>
<td width="100%" bgcolor="#DFDFDF" align="center">
<input name="change" value="修改" type="submit">
<input name="change1" value="重置" type="reset"><input type="checkbox" name="update" value="yes">
更新HTML頁 <input type="checkbox" name="updatetime" value="yes" checked>更新現在時間<%
if DownTS="ok" then%>
<input type="checkbox" name="updatehits" value="yes">連接數<input type="text" size=6 name="hits" value="<%=rs("hits")%>"><%end if%>
<%if rs("error")<>0 then%>錯誤報數<font color="#4D9CC8"><b><%=rs("error")%></b></font>,如果已修正錯誤請選<input type="checkbox" name="updateerror" value="0"><%end if%></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
<%
set rs=nothing
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -