风讯官方论坛

首页 » FoosunCMS交流区 » Foosun3.x安装使用 » 如何在最新新闻后边加new图标????
ylhzh - 2005-10-19 11:29:00
要在最新新闻后边加new图标,应该怎么解决??
界王神 - 2005-10-19 11:31:00

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>


date1是新闻的添加时间


[此贴子已经被作者于2005-10-19 11:31:31编辑过]

ylhzh - 2005-10-19 11:41:00

把这段代码加在哪里??

界王神 - 2005-10-19 11:43:00
加在你要显示图片的地方啊
ylhzh - 2005-10-19 12:15:00
我想在首页显示,直接加在首页上能行嘛?
界王神 - 2005-10-19 14:13:00
这是ASP
hotla - 2005-10-19 14:21:00
猪哥,你为人为到底就写出来吧.
界王神 - 2005-10-19 15:44:00

已经写好了哇。。这得用到asp 页面里头。。

netfound - 2005-10-19 17:22:00
找到refreshindex.asp文件,修改相关东西吧。
日事日毕 - 2005-10-19 21:01:00
以下是引用netfound在2005-10-19 17:22:00的发言:
找到refreshindex.asp文件,修改相关东西吧。


怎么修改呢??
日事日毕 - 2005-10-19 21:02:00
上面那个文件在哪个文件夹下面呢???
yseawave - 2005-11-14 15:25:00

我也正需要这个呢?说说具体怎么改???

[em02]
laeep - 2005-11-14 15:52:00
在foosun/admin/refresh/下面
屠苏 - 2005-11-15 06:05:00
是放到Function.asp里吧..
酷疯子 - 2005-11-15 10:08:00
在 新闻标签里边的  标题后边加上

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>

wsvip - 2005-11-15 10:38:00
新闻标签在哪里呢?在哪个新闻标签?不要吊人胃口呀?老大
ccyhyxt - 2005-11-15 13:44:00

这是那个文件你想改那?


<% Option Explicit %>
<!--#include file="../../../Inc/Function.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="RefreshFunction.asp" -->
<!--#include file="SelectFunction.asp" -->
<%
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="Function.asp" -->
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P030100") then Call ReturnError1()
Dim SaveFilePath,FSOObj,FSOObj1,PromptInfo,FileStreamObj,FileContent,FileObj,TempletFileName,RefreshTempFileName
PromptInfo = ""
if SysRootDir = "" then
TempletFileName = Server.MapPath("/" & TempletDir) & "\Index.htm"
SaveFilePath = "/index."&confimsn("IndexExtName")&""
else
TempletFileName = Server.MapPath("/" & SysRootDir & "/" & TempletDir) & "\Index.htm"
SaveFilePath = "/" & SysRootDir & "/index."&confimsn("IndexExtName")&""
end if
Set FSOObj = Server.CreateObject(G_FS_FSO)
if FSOObj.FileExists(TempletFileName) = False then
PromptInfo = "Ê×ҳģ°åIndex.htm²»´æÔÚ£¬ÇëÌí¼ÓÊ×ҳģ°åºóÔÙÉú³É£¡"
Call PromptFunction
else
'On Error Resume Next
SetRefreshValue "Index",""
GetAvailableDoMain
Set FileObj = FSOObj.GetFile(TempletFileName)
Set FileStreamObj = FileObj.OpenAsTextStream(1)
if Not FileStreamObj.AtEndOfStream then
  FileContent = FileStreamObj.ReadAll
  FileContent = ReplaceAllServerFlag(ReplaceAllLable(FileContent))
else
  FileContent = "Ä£°åÄÚÈÝΪ¿Õ"
end if
Set FileStreamObj = Nothing
Select Case AvailableRefreshType
  Case 0
  FSOSaveFile FileContent,SaveFilePath
  Case 1
  SaveFile FileContent,SaveFilePath
  Case Else
  FSOSaveFile FileContent,SaveFilePath
End Select
PromptInfo = "Éú³É³É¹¦"
Call PromptFunction
end if
Set FSOObj = Nothing
Sub PromptFunction()
Set Conn = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÐÂÎÅÊ×Ò³Éú³É¹ÜÀí</title>
</head>
<link rel="stylesheet" href="../../../CSS/FS_css.css">
<body topmargin="2" leftmargin="2" oncontextmenu="return false;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="28" class="ButtonListLeft">
<div align="center"><strong>ÐÂÎÅÊ×Ò³Éú³É¹ÜÀí</strong></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td><div align="center"><font color="#FF0000">·µ»ØÐÅÏ¢: <a href="<%=AvailableDoMain%>/index.<%=confimsn("IndexExtName")%>" target="_blank">ä¯ÀÀÊ×Ò³</a></font></div></td>
  </tr>
  <tr>
    <td><div align="center">
        <% = PromptInfo %>
      </div></td>
  </tr>
</table>
</body>
</html>
<%
End Sub
%>

ccyhyxt - 2005-11-15 13:49:00

可能是改RefreshFunction.asp的892行

木偶 - 2005-11-17 01:34:00
以下是引用酷疯子在2005-11-15 10:08:00的发言:
在 新闻标签里边的  标题后边加上

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>


酷哥,再问一下,是在哪个文件里!!谢谢!

木偶 - 2005-11-17 01:34:00
具体怎么添加,可以说详细一点吗?
木偶 - 2005-11-17 02:15:00
救命啊,我等着急用呢。。55555大家救救我吧
木偶 - 2005-11-17 10:33:00

还是没有人来救我。5555

木偶 - 2005-11-17 11:07:00
神啊,救救我 吧。我等着急用呢
木偶 - 2005-11-17 11:08:00
怎么就没有人来帮我呢?我也是风讯的忠实FANS啊。
liao365 - 2005-11-18 10:38:00

我想知道如何改?帮忙一下吧.

lcc1969 - 2006-3-26 16:08:00

搜索了几个相关的帖子,包括修改RefreshFunction文件的,都没看明白到底应该如何修改,很多人需要的!

酷疯子 - 2008-3-14 11:26:00
呵呵  简直有点可爱  ccyhyxt 都给你说了怎么加 杂你还不会噢
ttao - 2008-3-14 15:52:00
:default7:
1
查看完整版本: 如何在最新新闻后边加new图标????