<!--#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 qx14<>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('网站新闻配置修改成功！');location.href='web_inc.asp';</script>"
end if%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 系统管理 &gt;&gt; 新闻、专题、供求、日志配置 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE1">* 为必添项目</span></td>
      </tr>
      <tr>
        <td height="27" style="font-size:12px;color:#ff0000"><span style="font-size:14px;color:#ffffff">&nbsp;</span>注：本页的操作权限需要具备“系统管理”的操作权限，才可进行！</td>
        <td style="font-size:14px;color:#ffffff">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
  <table border="0" width="95%" cellspacing="1" cellpadding="3" style="border-collapse: collapse" align=center bgcolor="#999999">
  <form name="form1" method="post" action="web_inc.asp?action=save" onSubmit="return ck1()">
  <script language="javascript">
  function ck1()
  {
  if(form1.inc2.value=="")
  {
  alert("请输入调用最新图片新闻的个数!!!")
  form1.inc2.focus()
  return false
  }
  if(form1.inc4.value=="")
  {
  alert("请输入调用最新文字新闻的个数!!!")
  form1.inc4.focus()
  return false
  }
   if(form1.inc6.value=="")
  {
  alert("请输入首页列表调用条数!!!")
  form1.inc6.focus()
  return false
  }
  if(form1.inc7.value=="")
  {
  alert("请输入分类列表每页显示条数!!!")
  form1.inc7.focus()
  return false
  }
   if(form1.inc9.value=="")
  {
  alert("请输入调用最新供求推荐的个数!!!")
  form1.inc9.focus()
  return false
  }
   if(form1.inc11.value=="")
  {
  alert("请输入调用最新求购信息的个数!!!")
  form1.inc11.focus()
  return false
  }
   if(form1.inc13.value=="")
  {
  alert("请输入个数!!!")
  form1.inc13.focus()
  return false
  }
   if(form1.inc14.value=="")
  {
  alert("请输入个数!!!")
  form1.inc14.focus()
  return false
  }
   if(form1.inc16.value=="")
  {
   alert("请输入个数!!!")
  form1.inc16.focus()
  return false
  }
   if(form1.inc18.value=="")
  {
 alert("请输入个数!!!")
  form1.inc18.focus()
  return false
  }
    if(form1.inc20.value=="")
  {
 alert("请输入个数!!!")
  form1.inc20.focus()
  return false
  }
    if(form1.inc22.value=="")
  {
 alert("请输入个数!!!")
  form1.inc22.focus()
  return false
  }
    if(form1.inc23.value=="")
  {
  alert("请输入个数!!!")
  form1.inc23.focus()
  return false
  }
    if(form1.inc25.value=="")
  {
 alert("请输入个数!!!")
  form1.inc25.focus()
  return false
  }
    if(form1.inc27.value=="")
  {
 alert("请输入个数!!!")
  form1.inc27.focus()
  return false
  }
    if(form1.inc29.value=="")
  {
 alert("请输入个数!!!")
  form1.inc29.focus()
  return false
  }
    if(form1.inc31.value=="")
  {
 alert("请输入个数!!!")
  form1.inc31.focus()
  return false
  }
    if(form1.inc32.value=="")
  {
  alert("请输入个数!!!")
  form1.inc32.focus()
  return false
  }

  
  
  }
  </script> 
<%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="#F3F3F3">
      <td height="4" colspan="2"><strong><a name="#news"></a>网站新闻配置 </strong></td>
    </tr><tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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="#F3F3F3">
      <td>首页列表调用条数：</td>
      <td height="0"><input name="inc6" type="text" class="wenbenkuang" id="inc6" value="<%=inc6%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">分类列表每页显示条数：</td>
      <td height="1"><input name="inc7" type="text" class="wenbenkuang" id="inc7" value="<%=inc7%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
	<tr bgcolor="#F3F3F3">
      <td height="4" colspan="2"><a name="#info"></a><strong>网站专题配置 </strong></td>
    </tr><tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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="#F3F3F3">
      <td>首页列表调用条数：</td>
      <td height="0"><input name="inc13" type="text" class="wenbenkuang" id="inc13" value="<%=inc13%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">分类列表每页显示条数：</td>
      <td height="1"><input name="inc14" type="text" class="wenbenkuang" id="inc14" value="<%=inc14%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
	<tr bgcolor="#F3F3F3">
      <td height="4" colspan="2"><a name="#gq"></a><strong>网站供求配置 </strong></td>
    </tr><tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
	<tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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="#F3F3F3">
      <td>首页列表调用条数：</td>
      <td height="0"><input name="inc22" type="text" class="wenbenkuang" id="inc22" value="<%=inc22%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">分类列表每页显示条数：</td>
      <td height="1"><input name="inc23" type="text" class="wenbenkuang" id="inc23" value="<%=inc23%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
	
	<tr bgcolor="#F3F3F3">
      <td height="4" colspan="2"><a name="#rj"></a><strong>网站日记配置 </strong></td>
    </tr><tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
	<tr bgcolor="#F3F3F3">
      <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%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <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="#F3F3F3">
      <td>首页列表调用条数：</td>
      <td height="0"><input name="inc31" type="text" class="wenbenkuang" id="inc31" value="<%=inc31%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="1">分类列表每页显示条数：</td>
      <td height="1"><input name="inc32" type="text" class="wenbenkuang" id="inc32" value="<%=inc32%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="22" colspan="2">
        <div align="center">
          <input type="submit" class="go-wenbenkuang" name="Submit" value="提 交">
&nbsp;&nbsp;
          <input type="reset" class="go-wenbenkuang" name="Submit2" value="恢 复">
      </div></td>
    </tr>
  </form>
</table>
<%rs.Close
          set rs=nothing%>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</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>