📄 nextnum.asp
字号:
<!--#include file="../../checkuser.asp" -->
<%
m_ver = Trim(request("ver"))
if m_ver="cn" then
tmpstr_t="[中文版]"
elseif m_ver="en" then
tmpstr_t="[英文版]"
else
response.write "错误访问页面,请重试"
response.end
End If%>
<!--#include file="../../../Include/db_conn.asp" -->
<html>
<head>
<META NAME="robots" CONTENT="none">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body { font-size: 9pt; line-height: 14pt}
td {font-size:12px;line-height: 14pt}
p,li,input,select {font-size:12px;}
.box1 { border: 1px #CCCCCC solid; font-size: 9pt;}
.pc1 { font-size: 9pt; line-height: 13pt}
.p14 { font-size: 14.8px; line-height: 20px}
.box { border: 1px solid; font-size: 9pt; border-color: black #000000}
.unline { border: solid; font-size: 9pt ; border-color: #ffffff black #CCCCCC solid; border-width: 1px 0px 1px 0px}
.s02 {border-left:1 ridge #ffffff;border-top:1 ridge #ffffff;border-bottom:1;border-right:1;border-style:ridge;background-color:#cccccc;font-size:9pt; }
.p9 { font-size: 9pt}
.s9 { font-size: 9pt; line-height: 13pt}
a:visited { color: #0033CC; font-size: 9pt}
a:link { color: #0033CC; font-size: 9pt}
a:hover { font-size: 9pt; color: #FF0000}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftMargin=0 marginwidth="0" topmargin=0>
<%
set myrs=server.CreateObject("Adodb.recordset")
if request("cid")="" then
sqlstr="select * from news_type where version='"&m_ver&"' order by orderid "
else
sqlstr="select * from news_type where version='"&m_ver&"' order by orderid"
end if
myrs.Open sqlstr,conn,1,1
if not myrs.EOF then
%>
<script language="javascript">
function upsel(){
var findex=document.form2.news_link_select.selectedIndex;
if(findex < 1) return;
var ftext=document.form2.news_link_select.options[findex].text;
var fvalue=document.form2.news_link_select.options[findex].value;
var qvalue=document.form2.news_link_select.options[findex-1].value;
var qtext=document.form2.news_link_select.options[findex-1].text;
document.form2.news_link_select.options[findex-1].text=ftext;
document.form2.news_link_select.options[findex-1].value=fvalue;
document.form2.news_link_select.options[findex].text=qtext;
document.form2.news_link_select.options[findex].value=qvalue;
document.form2.news_link_select.selectedIndex=findex-1;
}
function downsel() {
var nIndex=document.form2.news_link_select.length;
var findex=document.form2.news_link_select.selectedIndex;
if((findex >= nIndex-1) || findex < 0) return;
var fvalue=document.form2.news_link_select.options[findex].value;
var ftext=document.form2.news_link_select.options[findex].text;
var hvalue=document.form2.news_link_select.options[findex+1].value;
var htext=document.form2.news_link_select.options[findex+1].text;
document.form2.news_link_select.options[findex+1].text=ftext;
document.form2.news_link_select.options[findex+1].value=fvalue;
document.form2.news_link_select.options[findex].text=htext;
document.form2.news_link_select.options[findex].value=hvalue;
document.form2.news_link_select.selectedIndex=findex+1;
}
function released_news_str1(){
document.form2.button_qd.disabled=true;
var link_str="";
var current_link_id;
for(var i=0; i<(document.form2.news_link_select.options.length); i++){
current_link_id=document.form2.news_link_select.options[i].value+",";
link_str+=current_link_id;
}
document.form2.released_news_str.value=link_str;
document.form2.submit();
}
</script>
<form name="form2" action="setup_obinfo_ok.asp" method="post" class="p9">
<table width="105%" border="0" cellspacing="0" cellpadding="0">
<tr class="p9">
<td colspan=6 bgcolor="#ffffff">栏目顺序排列</td>
</tr>
<tr bgcolor=#f0f0f0>
<td align=center>
<select size=5 name="news_link_select" multiple style="WIDTH: 220px;HEIGHT: 150px;COLOR: navy;" language=javascript >
<%
do until myrs.eof%>
<option value="<%=myrs("ID")%>"><%=myrs("title")%></option>
<%myrs.movenext
loop%>
</select>
<input type="hidden" name="released_news_str">
<input type="hidden" name="ver" value="<%=m_ver%>">
</td>
<td width="80" height="41" class="p9" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="p9">
<tr align="center" valign="top">
<td height="40">
<input type="button" name="button_3" value="↑上 移" class="input" style="WIDTH: 70px;HEIGHT: 22px;BACKGROUND-COLOR: #ffffff" onClick="upsel();">
</td>
</tr>
<tr align="center" valign="top">
<td height="40">
<input type="button" name="button_32" value="↓下 移" class="input" style="WIDTH: 70px;HEIGHT: 22px;BACKGROUND-COLOR: #ffffff" onClick="downsel();">
</td>
</tr>
<tr align="center" valign="top">
<td height="40">
<input type="button" name="button_34" value="恢 复" class="input" style="WIDTH: 70px;HEIGHT: 22px;BACKGROUND-COLOR: #ffffff" onClick="javascript:location.href='nextnum.asp';">
</td>
</tr>
<tr align="center" valign="top">
<td height="40">
<input type="button" name="button_qd" value="确 定" class="input" style="WIDTH: 70px;HEIGHT: 22px;BACKGROUND-COLOR: #ffffff" onClick="javascript:released_news_str1();">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%
end if
myrs.Close
set myrs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -