⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config_other.asp

📁 漂亮的企业网站系统v11 1、整体修改了上一版的一些BUG。 2、修改了页面底部的统计形式。 3、修改了“公告更新”栏目
💻 ASP
📖 第 1 页 / 共 3 页
字号:
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</marquee>"
  temp1=temp1&"<tr><td class=gray align=center>[<a href='update.asp?action=news'>网站公告</a>]        [<a href='update.asp?action=forum'>论坛公告</a>]</td></tr></table>"
  response.write kong&format_bar("<a href='update.asp'><b><font class=end>公告更新</font></b></a>",temp1,11,0,0,"|"&web_var(web_color,1)&"|80","")&"</td>"
end sub

sub main_update(n_jt,n_num,c_num,et,timt)
  dim temp1,topic,word
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  sql="select top "&n_num&" id,topic,word,tim from bbs_cast where sort='news' order by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    topic=rs("topic")
    word=rs("word")
    temp1=temp1&vbcrlf&"<tr><td align=center height="&space_mod&"><a href='update.asp?action=news&id="&rs("id")&"' title='"&code_html(topic,1,0)&"'>"&code_html(topic,1,c_num)&"</a></td></tr><tr><td align=center height=65><MARQUEE id=typhoon onmouseover=typhoon.stop() onmouseout=typhoon.start() scrollAmount=1 scrollDelay=5 direction=up width=210 height=65 border=0>      "&word&format_end(et,"<font class=gray>"&time_type(rs("tim"),timt)&"</font>")&"</MARQUEE></td></tr><tr><td align=center valign=bottom height=25>[ <a href=update.asp?action=news>更多网站公告</a> ]    [ <a href=update.asp?action=forum>更多论坛公告</a> ]</td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
  response.write kong&format_bar("<a href='update.asp'><b><font class=end>网站公告</font></b></a>",temp1,11,0,0,"|"&web_var(web_color,1)&"|80","")&"</td>"
end sub
sub news_fpic(fsql,t_num,n_jt,n_num,c_num,et,timt)
  dim tnum,news_tui,istop,topic,temp1,rs,sql,nid,sk_bar,sk_class,temp2,new_tu,cnum,tim,ispic,pic_temp
  news_tui="&nbsp;&nbsp;<img src=images/small/tj.gif border=0 title=推荐新闻不想看看么?>"
  new_tu="<font class=gray>   <img src='images/small/IMAGE.GIF' border=0 title=图片新闻不想看看么?></font>"
  atb=" target=_blank":sk_bar=11:sk_class="end"
  sql="select top 1 id,topic,pic,tim,username,counter from news where hidden=1 and istop=1 and ispic=1 "&fsql&" order by id desc"
  set rs=conn.execute(sql)
  if not(rs.eof and rs.bof) then
    nid=rs("id"):topic=rs("topic")
    pic_temp="<img src='"&url_true(web_var(web_upload,1),rs("pic"))&"' border=0 title='新闻标题:"&code_html(rs("topic"),1,0)&"<br>发 布 人:"&rs("username")&"<br>浏览人次:"&rs("counter")&"<br>整理时间:"&rs("tim")&"' width="&web_var(web_num,7)&" height="&web_var(web_num,8)&">"
    temp1="<table border=0 width='100%' class=tf>" & _
	  vbcrlf&"<tr align=center><td width='100%'>" & _
	  vbcrlf&"  <table border=0>" & _
	  vbcrlf&"  <tr><td align=center><a href='news_view.asp?id="&nid&"' target =_blank class=red_3>"&format_rk(pic_temp,2,4,web_var(web_num,7),web_var(web_num,8))&"</a></td></tr>" & _
	  vbcrlf&"  <tr><td height=18 align=center class=btd><a href='news_view.asp?id="&nid&"' target=_blank class=red_3>"&code_html(rs("topic"),1,t_num)&"</a></td></tr>" & _
	  vbcrlf&"  </table>" & _
	  vbcrlf&"</td></tr></table>"
 end if
  rs.close

  if n_jt<>"" then n_jt=img_small(n_jt)
  temp2="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf><tr height=0><td width='75%'></td><td width='20%'></td></tr>"
  sql="select top "&n_num&" id,topic,tim,counter,ispic,istop from news where hidden=1 order  by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    tnum=c_num:istop=""
    if rs("istop")=true then tnum=tnum-3:istop=news_tui
    cnum=c_num:ispic="":topic=rs("topic"):tim=rs("tim")
    if rs("ispic")=true then cnum=cnum-2:ispic=new_tu
    temp2=temp2&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&">"&n_jt&"<a href='news_view.asp?id="&rs("id")&"'"&atb&" title='"&code_html(topic,1,0)&"'>"&code_html( topic,1,cnum)&ispic&"</a>"&istop&"</td><td>"
    if et>-1 then temp2=temp2&format_end(et,"<font class=gray>"&time_type(rs("tim") ,timt)&"</font>,<font class=blue>"&rs("counter")&"</font>")
    temp2=temp2&"</td></tr><tr><td height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp2=temp2&"</table>"
  temp1="<table border=0 width='100%'><tr><td width='33%'>"&temp1&"</td><td  width='1%'></td><td width='66%' valign='top'><table width='100%' border=0><tr><td>"&temp2 &"</td></tr></table></td></tr></table>"
  response.write kong&format_bar("<a href='news.asp'><font class="&sk_class&"><b>今日图片新闻</b></font></a>",temp1,sk_bar,0,0,"||","")
end sub

sub links_main(lt,nummer)
  dim temp1,nname
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=0>"
  sql="select * from links where sort='"&lt&"' and hidden=1 order by orders"
  set rs=conn.execute(sql)
  do while not rs.eof
    temp1=temp1&vbcrlf&"<tr align=center height=40>"
    for i=1 to nummer
      if rs.eof then exit for
      temp1=temp1&vbcrlf&"<td width='16%'><a href='"&rs("url")&"' target=_blank>"
      if lt="txt" then
        temp1=temp1&code_html(rs("nname"),1,0)
      else
        temp1=temp1&"<img src='"&rs("pic")&"' border=0 width=88 height=31 title='"&code_html(rs("nname"),1,0)&"'>"
      end if
      temp1=temp1&"</a></td>"
      rs.movenext
    next
    temp1=temp1&vbcrlf&"</tr>"
  loop
  rs.close
  temp1=temp1&"</table>"
  response.write temp1
end sub

sub web_search(wt)
  if wt=1 then response.write ukong
%>
  <table border=0>
  <form action='search.asp' method=get>
  <tr>
  <td><%response.write img_small("new")%>站内搜索:</td>
  <td>&nbsp;<input type=text name=keyword value='' size=20 maxlength=20></td>
  <td>&nbsp;&nbsp;<select name=sea_type>
<option value='forum'>论坛</option>
<option value='news'>新闻</option>
<option value='article'>文栏</option>
<option value='down'>下载</option>
<option value='paste'>图片</option>
<option value='video'>影视</option>
<option value='flash'>Flash</option>
<option value='website'>网站</option>
</select>&nbsp;&nbsp;</td>
  <td><input type=checkbox name=celerity value='yes'></td>
  <td>快速搜索&nbsp;&nbsp;</td>
  <td valign=top><input type=image src='images/small/web_sea.gif' border=0></td>
  <td>&nbsp;&nbsp;<a href='search.asp?action=help' title='多功能搜索'>搜索帮助</a></td>
  </tr>
  </form>
  </table>
<%
end sub

sub ip_search
%>
<table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td colspan=2 align=left height=24>&nbsp;&nbsp;请输入正确的 IP 地址</td></tr>
<form action='ip_address.asp' method=post>
<tr height=26><td align=center><input type=text name=ip size=18></td>
<td><input type=submit value='搜索' style=""width:35;""></td></tr></form></table>

<%
end sub

sub vouch_top(ijt,sh,n_num)
  dim temp1,n_jt,et
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  sql="select top "&n_num&" name,url,remark from website where isgood=1 and hidden=1 order by counter desc,id"
  set rs=conn.execute(sql)
  do while not rs.eof
    temp1=temp1&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&" class=bw><img border=0 src='images/"&web_var(web_config,5)&"/jt13.gif'>&nbsp;<a href="&rs("url")&" target='_blank' title="&rs("remark")&">"&code_html(rs("name"),1,8)&"</a></td></tr><tr><td height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
  response.write kong&table1%>
<tr<%response.write table2%>><td class=end> <%response.write img_small(us)%>  <b>最新推荐</b></td></tr>
<tr<%response.write table3%>><td align=center>
  <table border=0 width='98%' cellspacing=0 cellpadding=0>
  <tr><td align=center><% response.write temp1%></td></tr>
  </table>
</td></tr>
</table>
<%
end sub

sub main_gallery_pic(nnhead,dsql,nt,n_num,c_num,w,h)
  dim sk_bar,sk_class,temp1,temp2,nid,cid,sid,name,uname,tim,pic,spic,nhead:nhead=nnhead:sk_bar=11:sk_class="end"
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2><tr align=center valign=top>"
  sql="select top "&n_num&" * from gallery where hidden=1 and types='"&nt&"'"&dsql
  select case nt
  case "paste"
    sql=sql&" order by id desc"
    if nhead="" then nhead="最新贴图" 
  end select
  set rs=conn.execute(sql)
  do while not rs.eof
    name=rs("name"):nid=rs("id"):cid=rs("c_id"):sid=rs("s_id"):uname=rs("username"):tim=rs("tim")
 pic=rs("pic"):spic=rs("spic")
    temp1=temp1&vbcrlf&"<td width='"&int(100\n_num)&"%'>"
 if nt="paste" then
 temp2="<table border=0 cellspacing=0 cellpadding=2 width='100%' class=tf><tr><td align=center><a href='gallery.asp?types=view&action=paste&c_id="&cid&"&s_id="&sid&"&id="&nid&"'"&atb&"><img src='"&url_true(web_var(web_upload,1),pic)&"' border=0 width='"&w&"' height='"&h&"' alt='图片名称:"&code_html(name,1,0)&" <br>发 布 人:"&rs("username")&"<br>整理时间:"&time_type(tim,33)&"'></a></td></tr>" & _
   vbcrlf&"<tr><td align=center class=bw><a href='gallery.asp?types=view&action=paste&c_id="&cid&"&s_id="&sid&"&id="&nid&"'"&atb&" class=red_3><b>"&code_html(name,1,c_num)&"</b></a></td></tr></table>"
 temp1=temp1&vbcrlf&format_k(temp2,1,5,w+7,h+30)&"</td>"
 else
 end if
    rs.movenext
  loop
  temp1=temp1&"</tr></table>"
  response.write kong&table1%>
<tr<%response.write table2%>><td class=end> <%response.write img_small(us)%>  <b>精彩贴图</b></td></tr>
<tr<%response.write table3%>><td align=center>
  <table border=0 width='98%' cellspacing=0 cellpadding=0>
  <tr><td align=center><% response.write temp1%></td></tr>
  </table>
</td></tr>
</table>
<%
end sub

sub main_flash_pic(nnhead,dsql,nt,n_num,c_num,w,h)
  dim sk_bar,sk_class,temp1,temp2,nid,cid,sid,name,uname,tim,pic,spic,nhead:nhead=nnhead:sk_bar=11:sk_class="end"
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2><tr align=center valign=top>"
  sql="select top "&n_num&" * from flash where hidden=1 and types='"&nt&"'"&dsql
  select case nt
  case "flash"
    sql=sql&" order by id desc"
    if nhead="" then nhead="最新Flash"
  end select
  set rs=conn.execute(sql)
  do while not rs.eof
    name=rs("name"):nid=rs("id"):cid=rs("c_id"):sid=rs("s_id"):uname=rs("username"):tim=rs("tim")
 pic=rs("pic"):spic=rs("spic")
    temp1=temp1&vbcrlf&"<td width='"&int(100\n_num)&"%'>"
 if nt="flash" then
 temp2="<table border=0 cellspacing=0 cellpadding=2 width='100%' class=tf><tr><td align=center><a href='flash.asp?types=view&action=flash&c_id="&cid&"&s_id="&sid&"&id="&nid&"'"&atb&"><img src='"&url_true(web_var(web_upload,1),spic)&"' border=0 width='"&w&"' height='"&h&"' alt='Flash名称:"&code_html(name,1,0)&" <br>发 布 人:"&rs("username")&"<br>整理时间:"&time_type(tim,33)&"'></a></td></tr>" & _
   vbcrlf&"<tr><td align=center class=bw><a href='flash.asp?types=view&action=flash&c_id="&cid&"&s_id="&sid&"&id="&nid&"'"&atb&" class=red_3><b>"&code_html(name,1,c_num)&"</b></a></td></tr></table>"
 temp1=temp1&vbcrlf&format_k(temp2,1,5,w+10,h+30)&"</td>"
 else
 end if
    rs.movenext
  loop
  temp1=temp1&"</tr></table>"
  response.write kong&table1%>
<tr<%response.write table2%>><td class=end> <%response.write img_small(us)%>  <b>闪客剧场</b></td></tr>
<tr<%response.write table3%>><td align=center>
  <table border=0 width='98%' cellspacing=0 cellpadding=0>
  <tr><td align=center><% response.write temp1%></td></tr>
  </table>
</td></tr>
</table>
<%
end sub

sub links_up(sl,lt,nummer)
  dim temp1,nname
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=0><tr><td height='10'></td></tr><tr><td><marquee scrollamount=1 scrollDelay=5 direction=up height='155' onMouseOver=this.stop() onMouseOut=this.start()><table border=0 width='100%' cellspacing=0 cellpadding=0>"
  sql="select top "&sl&" * from links where sort='"&lt&"' and hidden=1 order by orders"
  set rs=conn.execute(sql)
  do while not rs.eof
    temp1=temp1&vbcrlf&"<tr align=center height=40>"
    for i=1 to nummer
      if rs.eof then exit for
      temp1=temp1&vbcrlf&"<td width='16%'><a href='"&rs("url")&"' target=_blank>"
      if lt="txt" then
        temp1=temp1&code_html(rs("nname"),1,0)
      else
        temp1=temp1&"<img src='"&rs("pic")&"' border=0 width=88 height=31 title='"&code_html(rs("nname"),1,0)&"'>"
      end if
      temp1=temp1&"</a></td>"
      rs.movenext
    next

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -