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

📄 config_other.asp

📁 漂亮的企业网站系统v11 1、整体修改了上一版的一些BUG。 2、修改了页面底部的统计形式。 3、修改了“公告更新”栏目
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!-- #include file="config.asp" -->
<!-- #include file="skin.asp" -->
<%
index_url="main"
tit_fir=format_menu(index_url)

dim us,table1,table2,table3,table4,c1,c2
 dim uploadpic,pic
    c1=web_var(web_color,5):c2=web_var(web_color,1)
us="fk2"
table1=format_table(1,3)
table2=format_table(5,2)
table3=format_table(3,1)
table4=format_table(3,5)

sub user_data_top(utt,ijt,sh,n_num)
  '积分排行 integral
  '发贴排行 bbs_counter
  '财富排行 emoney
  dim temp1
  temp1=vbcrlf&"<table border=0 width='99%' cellspacing=2 cellpadding=0 align=center class=tf><tr height=0><td width='75%'></td><td width='25%'></td></tr>"
  sql="select top "&n_num&" sex,username,"&utt&" from user_data order by "&utt&" desc,id"
  set rs=conn.execute(sql)
  do while not rs.eof
   if rs("sex")=true then
    temp1=temp1&vbcrlf&"<tr><td height="&space_mod&" class=bw>"&"<img src=images/small/forum_boy.gif> "&format_user_view(rs("username"),1,"")&"</td><td align=center class=red_3>"&rs(utt)&"</td></tr>"
   else
    temp1=temp1&vbcrlf&"<tr><td height="&space_mod&" class=bw>"&"<img src=images/small/forum_girl.gif> "&format_user_view(rs("username"),1,"")&"</td><td align=center class=red_3>"&rs(utt)&"</td></tr>"
   end if
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
  call left_type(temp1,utt,sh)
end sub

sub vote_type(t1,t2,t3,t4)
  call left_type(kong&"<script language=javascript src='vote.asp?id="&t1&"&types="&t2&"&mcolor="&t3&"&bgcolor="&t4&"'></script>","vote",1)
end sub

sub left_type(ltv,pn,ltt)
  if ltt=1 then response.write "<table border=0 width='96%' cellspacing=0 cellpadding=0 align=center><tr><td align=center>"
  response.write kong&format_bar("<img src='images/"&web_var(web_config,5)&"/left_"&pn&".gif' border=0>",ltv,13,2,"","|"&web_var(web_color,6)&"|","")
  if ltt=1 then response.write "</td></tr></table>"
end sub

sub main_down_pic(nnhead,dsql,nt,n_num,c_num)
  dim sk_bar,sk_class,temp1,pic_temp,nid,name,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&" id,name,tim,pic from down where hidden=1"&dsql
  select case nt
  case "hot"
    sql=sql&" order by counter desc,id desc"
    if nhead="" then nhead="热点排行"
  case "good"
    sql=sql&" and types=5 order by id desc"
    if nhead="" then nhead="酷软推荐"
  case else
    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")
    pic_temp="<a href='down_view.asp?id="&nid&"'"&atb&"><img src='"&web_var(web_upload,1)&rs("pic")&"' border=0 width="&web_var(web_down,1)&" height="&web_var(web_down,2)&"></a>"
    temp1=temp1&vbcrlf&"<td width='"&int(100\n_num)&"%'><table border=0 cellspacing=0 cellpadding=2 width='100%' class=tf><tr><td align=center>"&format_rk(pic_temp,2,4,web_var(web_down,1),web_var(web_down,2))&"</td></tr>" & _
	  vbcrlf&"<tr><td align=center class=bw><a href='down_view.asp?id="&nid&"'"&atb&" class=red_3><b>"&code_html(name,1,c_num)&"</b></a></td></tr></table></td>"
    rs.movenext
  loop
  temp1=temp1&"</tr></table>"
  response.write kong&format_bar("<font class="&sk_class&"><b>"&nhead&"</b></font>",temp1,sk_bar,0,0,"||","")
end sub

sub main_down(n_jt,nnhead,nmore,nsql,nt,n_num,n_m,c_num,et,tt)
  dim sk_bar,sk_class,temp1,nid,name,tim,counter,nhead:nhead=nnhead:sk_bar=11:sk_class="end"
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1=vbcrlf&"<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf><tr height=0><td width='70%'></td><td width='28%'></td></tr>"
  sql="select top "&n_num+n_m&" id,name,username,tim,counter from down where hidden=1"&nsql
  select case nt
  case "hot"
    sql=sql&" order by counter desc,id desc"
    if nhead="" then nhead="下载排行"
  case "good"
    sql=sql&" and types=5 order by id desc"
    if nhead="" then nhead="软件推荐"
  case else
    sql=sql&" order by id desc"
    if nhead="" then nhead="软件更新"
  end select
  set rs=conn.execute(sql)
  if n_m>0 then rs.move(n_m)
  do while not rs.eof
    name=rs("name"):tim=rs("tim"):counter=rs("counter")
    temp1=temp1&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&" class=bw>"&n_jt&"<a href='down_view.asp?id="&rs("id")&"'"&atb&" title='软件名称:"&code_html(name,1,0)&"<br>发 布 人:"&rs("username")&"<br>下载人次:"&counter&"<br>整理时间:"&time_type(tim,88)&"'>"&code_html(name,1,c_num)&"</a></td><td>"
    if tt>0 then temp1=temp1&format_end(et,time_type(tim,tt)&",<font class=blue>"&counter&"</font>")
    temp1=temp1&"</td></tr><tr><td height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&vbcrlf&"</table>"
  response.write kong&format_bar("<font class="&sk_class&"><b>"&nhead&"</b></font>",temp1,sk_bar,0,0,"||",nmore)
end sub

sub video_new_hot_pic(nnhead,dsql,nt,n_num,c_num,w,h)
  dim sk_bar,sk_class,temp1,pic_temp,hot,emoney,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&" id,title,username,tim,counter,pic,hot,emoney from video where hidden=1"&dsql
  select case nt
  case "hot"
    sql=sql&" order by counter desc,id desc"
    if nhead="" then nhead="观看排行"
  case "good"
    sql=sql&" and hot=5 order by id desc"
    if nhead="" then nhead="影片推荐"
  case else
    sql=sql&" order by id desc"
    if nhead="" then nhead="影片更新"
  end select
  set rs=conn.execute(sql)
  do while not rs.eof
 pic_temp="<a href='video_view.asp?id="&rs("id")&"'"&atb&"><img src='"&url_true(web_var(web_upload,1),rs("pic"))&"' border=0 width='"&w&"' height='"&h&"' alt='影片名称:"&code_html(rs("title"),1,0)&" <br>发 布 人:"&rs("username")&"<br>观看人气:"&rs("counter")&"<br>整理时间:"&time_type(rs("tim"),33)&"'></a>"

 temp1=temp1&vbcrlf&"<td width='"&int(100\n_num)&"%'><table border=0 cellspacing=0 cellpadding=2 width='100%' class=tf><tr><td align=center class=bw>" & _
   vbcrlf&"<tr><td align=center>"&format_rk(pic_temp,2,4,w,h)&"</td></tr><tr><td align=center class=bw><a href='video_view.asp?id="&rs("id")&"' class=blue><b>"&code_html(rs("title"),1,c_num)&"</b></a></td></tr><tr><td align=center>推荐星级:<img src='images/down/star"&rs("hot")&".gif' border=0></td></tr><tr><td align=center>"&web_var(web_config,8)&":<FONT class=red>"&rs("emoney")&"</FONT>&nbsp;&nbsp;人气:<FONT class=red>"&rs("counter")&"</FONT></td></tr></table></td>"
    rs.movenext
  loop
  temp1=temp1&"</tr></table>"
  response.write kong&format_bar("<font class="&sk_class&"><b>"&nhead&"</b></font>",temp1,sk_bar,0,0,"||","")
end sub

sub main_video(n_jt,nnhead,nmore,nsql,nt,n_num,n_m,c_num,et,tt)
  dim sk_bar,sk_class,temp1,nid,title,tim,counter,nhead:nhead=nnhead:sk_bar=11:sk_class="end"
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1=vbcrlf&"<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  sql="select top "&n_num+n_m&" id,title,username,tim,counter from video where hidden=1"&nsql
  select case nt
  case "hot"
    sql=sql&" order by counter desc,id desc"
    if nhead="" then nhead="观看排行"
  case "good"
    sql=sql&" and types=5 order by id desc"
    if nhead="" then nhead="web_down"
  case else
    sql=sql&" order by id desc"
    if nhead="" then nhead="影片更新"
  end select
  set rs=conn.execute(sql)
  if n_m>0 then rs.move(n_m)
  do while not rs.eof
    title=rs("title"):tim=rs("tim"):counter=rs("counter")
    temp1=temp1&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&" class=bw>"&n_jt&"<a href='video_view.asp?id="&rs("id")&"'"&atb&" title='影片名称:"&code_html(title,1,0)&"<br>发 布 人:"&rs("username")&"<br>观看人次:"&counter&"<br>整理时间:"&time_type(tim,88)&"'>"&code_html(title,1,c_num)&"</a>"
    if tt>0 then temp1=temp1&format_end(et,time_type(tim,tt)&",<font class=blue>"&counter&"</font>")
    temp1=temp1&"</td></tr><tr><td height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&vbcrlf&"</table>"
  response.write kong&format_bar("<font class="&sk_class&"><b>"&nhead&"</b></font>",temp1,sk_bar,0,0,"||",nmore)
end sub

sub main_news(n_jt,a_cid,a_sid,n_num,c_num,et,timt)
  dim temp1,topic,sqladd,nhead,url,ccname
  nhead=n_head(""&a_cid&"",""&a_sid&"","news")
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  sqladd="select top "&n_num&" id,topic,tim,counter from news where hidden=1"
  if a_cid<>"" then sqladd=sqladd&" and c_id="&a_cid&""
  if a_sid<>"" then sqladd=sqladd&" and s_id="&a_sid&""
  sql=sqladd&" order by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    topic=rs("topic")
    temp1=temp1&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,c_num)&"</a>"
    if et>-1 then temp1=temp1&format_end(et,"<font class=gray>"&time_type(rs("tim"),timt)&"</font>,<font class=blue>"&rs("counter")&"</font>")
    temp1=temp1&"</td></tr><tr><td  height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
      response.write kong&format_bar(nhead,temp1,11,0,0,"|"&web_var(web_color,1)&"|100","")&"</td>"
end sub

sub main_article(n_jt,a_cid,a_sid,n_num,c_num,et,timt)
  dim tnum,istop,temp1,topic,sqladd,nhead,url,news_tui
  news_tui="&nbsp;&nbsp;<img src=images/small/tj.gif border=0 title=推荐文章不想看看么?>"
  nhead=n_head(""&a_cid&"",""&a_sid&"","article")
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  sqladd="select top "&n_num&" id,topic,tim,counter,istop from article where hidden=1"
  if a_cid<>"" then sqladd=sqladd&" and c_id="&a_cid&""
  if a_sid<>"" then sqladd=sqladd&" and s_id="&a_sid&""
  sql=sqladd&" order by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    tnum=c_num:istop=""
    if rs("istop")=1 then tnum=tnum-3:istop=news_tui
    topic=rs("topic")
    temp1=temp1&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&">"&n_jt&"<a href='article_view.asp?id="&rs("id")&"'"&atb&" title='"&code_html(topic,1,0)&"'>"&code_html(topic,1,c_num)&"</a>"&istop&""
    if et>-1 then temp1=temp1&format_end(et,"<font class=gray>"&time_type(rs("tim"),timt)&"</font>,<font class=blue>"&rs("counter")&"</font>")
    temp1=temp1&"</td></tr><tr><td  height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
  response.write kong&format_bar(nhead,temp1,11,0,0,"|"&web_var(web_color,1)&"|100","")&"</td>"
  'response.write kong&format_bar(nhead,temp1,21,0,0,"|"&web_var(web_color,1)&"|100","")&"</td>"
end sub

sub main_forum(n_jt,n_num,c_num,et,timt)
  dim temp1,topic
  if n_jt<>"" then n_jt=img_small(n_jt)
  temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf><tr height=0><td width='68%'></td><td width='17%'></td><td width='15%'></td></tr>"
  sql="select top "&n_num&" forum_id,icon,id,topic,tim,counter,re_counter,username,re_username from bbs_topic order by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    topic=rs("topic")
    temp1=temp1&vbcrlf&"<tr onmouseover=""javascript:this.bgColor='"&c1&"';"" onmouseout=""javascript:this.bgColor='"&c2&"';""><td height="&space_mod&"><img border=0 src='images/icon/"&rs("icon")&".gif' align=absmiddle> <a href='forum_view.asp?forum_id="&rs("forum_id")&"&view_id="&rs("id")&"'"&atb&" title='贴子主题:"&code_html(topic,1,0)&"<br>发 贴 人:"&rs("username")&"<br>发贴时间:"&time_type(rs("tim"),88)&"<br>最后回复:"&rs("re_username")&"'>"&code_html(topic,1,c_num)&"</a></td><td height="&space_mod&" align=center class=red_3>"&format_end(et,"<font class=gray>"&time_type(rs("tim"),timt)&"</font></td><td height="&space_mod&" align=right><font class=blue>"&rs("re_counter")&"</font>|<font class=red>"&rs("counter")&"</font>")&"</td></tr><tr><td height=1 background='images/bg_dian.gif'></td></tr>"
    rs.movenext
  loop
  rs.close
  temp1=temp1&"</table>"
  response.write kong&format_bar("<a href='forum.asp'><b><font class=end>"&format_menu("forum")&"</font></b></a>",temp1,11,0,0,"|"&web_var(web_color,1)&"|80","")&"</td>"
end sub

sub main_update_view()
  dim temp1,topic,conn,connstr,rs  
connstr="DBQ="&server.mappath(web_var(web_config,6))&";DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
temp1="<table border=0 width='100%' cellspacing=0 cellpadding=2 class=tf>"
  temp1=temp1&"<marquee scrollamount=1 scrollDelay=5 direction=up width='95%' height='135' onMouseOver=this.stop() onMouseOut=this.start()>"
  sql="select top 5 * from bbs_cast where sort='news' order by id desc"
  set rs=conn.execute(sql)
  do while not rs.eof
    topic=rs("topic")
    temp1=temp1&"<a href='update.asp?action=news&id="&rs("id")&"'>"&code_jk(topic)&"</a><br><br>"&code_jk(rs("word"))&"<br><br><br>"

⌨️ 快捷键说明

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