?? inc.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
end if
%>
<%dim action
action=request.QueryString("action")
'//保存信息
if action="save" then
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權限!</b></font></div>"
response.End
end if
if qx20<>1 then
response.Write "<div align=center><font size=80 color=red><b>您沒有此項目管理權限!</b></font></div>"
response.End
end if
inc1=trim(request("inc1"))
inc2=trim(request("inc2"))
inc3=trim(request("inc3"))
inc4=trim(request("inc4"))
inc5=trim(request("inc5"))
inc6=trim(request("inc6"))
inc7=trim(request("inc7"))
inc8=trim(request("inc8"))
inc9=trim(request("inc9"))
inc10=trim(request("inc10"))
inc11=trim(request("inc11"))
inc12=trim(request("inc12"))
inc13=trim(request("inc13"))
inc14=trim(request("inc14"))
inc15=trim(request("inc15"))
inc16=trim(request("inc16"))
inc17=trim(request("inc17"))
inc18=trim(request("inc18"))
inc19=trim(request("inc19"))
inc20=trim(request("inc20"))
inc21=trim(request("inc21"))
inc22=trim(request("inc22"))
inc23=trim(request("inc23"))
inc24=trim(request("inc24"))
inc25=trim(request("inc25"))
inc26=trim(request("inc26"))
inc27=trim(request("inc27"))
inc28=trim(request("inc28"))
inc29=trim(request("inc29"))
inc30=trim(request("inc30"))
inc31=trim(request("inc31"))
inc32=trim(request("inc32"))
new_inc=inc1&","&inc2&","&inc3&","&inc4&","&inc5&","&inc6&","&inc7&","&inc8&","&inc9&","&inc10&","&inc11&","&inc12&","&inc13&","&inc14
new_inc=new_inc&","&inc15&","&inc16&","&inc17&","&inc18&","&inc19&","&inc20&","&inc21&","&inc22&","&inc23&","&inc24&","&inc25&","&inc26
new_inc=new_inc&","&inc27&","&inc28&","&inc29&","&inc30&","&inc31&","&inc32
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_config ",conn,1,3
rs("news_inc")=new_inc
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('網站新聞配置修改成功!');history.go(-1);</script>"
end if%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
<tr>
<td width="1%"> </td>
<td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="30%" height="32" style="font-size:14px;color:#000000"> <strong><font color="#000000">網站新聞信息設置</font></strong></td>
<td width="70%" align="right"> </td>
</tr>
</table></td>
</tr>
</table><br>
<table border="0" width="90%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" align=center bgcolor="#9DB2D4">
<form name="form1" method="post" action="inc.asp?action=save">
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_config",conn,1,1
news_inc_2=rs("news_inc")
news_inc_2=split(news_inc_2,",")
inc1=news_inc_2(0)
inc2=news_inc_2(1)
inc3=news_inc_2(2)
inc4=news_inc_2(3)
inc5=news_inc_2(4)
inc6=news_inc_2(5)
inc7=news_inc_2(6)
inc8=news_inc_2(7)
inc9=news_inc_2(8)
inc10=news_inc_2(9)
inc11=news_inc_2(10)
inc12=news_inc_2(11)
inc13=news_inc_2(12)
inc14=news_inc_2(13)
inc15=news_inc_2(14)
inc16=news_inc_2(15)
inc17=news_inc_2(16)
inc18=news_inc_2(17)
inc19=news_inc_2(18)
inc20=news_inc_2(19)
inc21=news_inc_2(20)
inc22=news_inc_2(21)
inc23=news_inc_2(22)
inc24=news_inc_2(23)
inc25=news_inc_2(24)
inc26=news_inc_2(25)
inc27=news_inc_2(26)
inc28=news_inc_2(27)
inc29=news_inc_2(28)
inc30=news_inc_2(29)
inc31=news_inc_2(30)
inc32=news_inc_2(31)
%><tr bgcolor="#F0F3F8">
<td height="4" colspan="2"><strong><a name="#news"></a>網站新聞配置 </strong></td>
</tr><tr bgcolor="#F0F3F8">
<td width="140" height="0">是否調用最新圖片新聞:</td>
<td width="460" height="-2"><select name="inc1" id="inc1">
<option value="1" <%if inc1=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc1=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc2" type="text" class="wenbenkuang" id="inc2" value="<%=inc2%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新文字新聞:</td>
<td height="0">
<select name="inc3" id="inc3">
<option value="1" <%if inc3=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc3=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc4" type="text" class="wenbenkuang" id="inc4" value="<%=inc4%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">是否調用新聞搜索:</td>
<td height="0">
<select name="inc5" id="inc5">
<option value="1" <%if inc5=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc5=2 then%>selected<%end if%>>不調用</option>
</select>
</td>
</tr>
<tr bgcolor="#F0F3F8">
<td>首頁列表調用條數:</td>
<td height="0"><input name="inc6" type="text" class="wenbenkuang" id="inc6" value="<%=inc6%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">分類列表每頁顯示條數:</td>
<td height="1"><input name="inc7" type="text" class="wenbenkuang" id="inc7" value="<%=inc7%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="4" colspan="2"><a name="#info"></a><strong>網站專題配置 </strong></td>
</tr><tr bgcolor="#F0F3F8">
<td width="140" height="0">是否調用最新圖片專題:</td>
<td width="460" height="-2"><select name="inc8" id="inc8">
<option value="1" <%if inc8=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc8=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc9" type="text" class="wenbenkuang" id="inc9" value="<%=inc9%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新文字專題:</td>
<td height="0">
<select name="inc10" id="inc10">
<option value="1" <%if inc10=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc10=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc11" type="text" class="wenbenkuang" id="inc11" value="<%=inc11%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">是否調用新聞專題搜索:</td>
<td height="0">
<select name="inc12" id="inc12">
<option value="1" <%if inc12=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc12=2 then%>selected<%end if%>>不調用</option>
</select>
</td>
</tr>
<tr bgcolor="#F0F3F8">
<td>首頁列表調用條數:</td>
<td height="0"><input name="inc13" type="text" class="wenbenkuang" id="inc13" value="<%=inc13%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">分類列表每頁顯示條數:</td>
<td height="1"><input name="inc14" type="text" class="wenbenkuang" id="inc14" value="<%=inc14%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="4" colspan="2"><a name="#gq"></a><strong>網站供求配置 </strong></td>
</tr><tr bgcolor="#F0F3F8">
<td width="140" height="0">是否調用最新供求推薦:</td>
<td width="460" height="-2"><select name="inc15" id="inc15">
<option value="1" <%if inc15=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc15=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc16" type="text" class="wenbenkuang" id="inc16" value="<%=inc16%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新求購信息:</td>
<td height="0">
<select name="inc17" id="inc17">
<option value="1" <%if inc17=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc17=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc18" type="text" class="wenbenkuang" id="inc18" value="<%=inc18%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新出售信息:</td>
<td height="0">
<select name="inc19" id="inc19">
<option value="1" <%if inc19=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc19=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc20" type="text" class="wenbenkuang" id="inc20" value="<%=inc20%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">是否調用供求搜索:</td>
<td height="0">
<select name="inc21" id="inc21">
<option value="1" <%if inc21=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc21=2 then%>selected<%end if%>>不調用</option>
</select>
</td>
</tr>
<tr bgcolor="#F0F3F8">
<td>首頁列表調用條數:</td>
<td height="0"><input name="inc22" type="text" class="wenbenkuang" id="inc22" value="<%=inc22%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">分類列表每頁顯示條數:</td>
<td height="1"><input name="inc23" type="text" class="wenbenkuang" id="inc23" value="<%=inc23%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="4" colspan="2"><a name="#rj"></a><strong>網站日記配置 </strong></td>
</tr><tr bgcolor="#F0F3F8">
<td width="140" height="0">是否調用最新日記推薦:</td>
<td width="460" height="-2"><select name="inc24" id="inc24">
<option value="1" <%if inc24=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc24=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc25" type="text" class="wenbenkuang" id="inc25" value="<%=inc25%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新熱門日記:</td>
<td height="0">
<select name="inc26" id="inc26">
<option value="1" <%if inc26=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc26=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc27" type="text" class="wenbenkuang" id="inc27" value="<%=inc27%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="0">是否調用最新置頂日記:</td>
<td height="0">
<select name="inc28" id="inc28">
<option value="1" <%if inc28=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc28=2 then%>selected<%end if%>>不調用</option>
</select>
調用多少條:
<input name="inc29" type="text" class="wenbenkuang" id="inc29" value="<%=inc29%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">是否調用日記搜索:</td>
<td height="0">
<select name="inc30" id="inc30">
<option value="1" <%if inc30=1 then%>selected<%end if%>>調用</option>
<option value="2" <%if inc30=2 then%>selected<%end if%>>不調用</option>
</select>
</td>
</tr>
<tr bgcolor="#F0F3F8">
<td>首頁列表調用條數:</td>
<td height="0"><input name="inc31" type="text" class="wenbenkuang" id="inc31" value="<%=inc31%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="1">分類列表每頁顯示條數:</td>
<td height="1"><input name="inc32" type="text" class="wenbenkuang" id="inc32" value="<%=inc32%>"></td>
</tr>
<tr bgcolor="#F0F3F8">
<td height="22" colspan="2">
<div align="center">
<input type="submit" class="go-wenbenkuang" name="Submit" value="提 交">
<input type="reset" class="go-wenbenkuang" name="Submit2" value="恢 復">
</div></td>
</tr>
</form>
</table>
<%rs.Close
set rs=nothing%>
<!--#include file="copyright.asp"-->
</body>
</html>
<script>
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -