Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑问] news_category.html.php原文件发一份给我

[复制链接]
fanzhurong 发表于 2009-8-30 05:38:22 | 显示全部楼层 |阅读模式
news_category.html.php的原文件麻烦发一份给我,我的被改了,变成资讯栏目下,显示所有资讯内容,而不分类了,
如:“玛莉机(http://www.2007114.com/category-1.html)” 和
“互联网络(http://www.2007114.com/category-2.html)”,这两个分类下的内容都变成一样了,不分类了
我的news_category.html.php模版是:
                                            <!--根分类最新日志列表-->


                    






                          <script type="text/javascript">
<!--
function onloadEvent(func){
var one=window.onload
if(typeof window.onload!='function'){
  window.onload=func
}
else{
  window.onload=function(){
   one();
   func();
  }
}
}
function showtable(){
var tableid='table';  //表格的id
var overcolor='#c0e2f2'; //鼠标经过颜色
var color1='#ffffff';  //第一种颜色
var color2='#ffffff';  //第二种颜色
var tablename=document.getElementById(tableid)
var dl=tablename.getElementsByTagName("dl")
for(var i=1 ;i<dl.length;i++){
  dl.onmouseover=function(){
   this.style.backgroundColor=overcolor;
  }
  dl.onmouseout=function(){
   if(this.rowIndex%2==0){
    this.style.backgroundColor=color1;
   }else{
    this.style.backgroundColor=color2;
   }
  }
  if(i%2==0){
   dl.className="color1";
  }else{

   dl.className="color2";
  }
}
}
onloadEvent(showtable);
-->
</script>
<style>
.huangye_list {padding:10px 10px 10px 10px;}
.huangye_list dl{  height:100px;padding:10px 10px 10px 10px;  width:645px; margin:0 10px 10px; color:#444; border-bottom:#999 1px dashed; overflow:hidden}
.huangye_list dl dt{ float:left; height:100px; width:100px; margin-right:20px;}
.huangye_list dl dt img{ width:90px; height:90px; padding:2px; background:#fff; border:#999 1px solid}
.huangye_list dl div{ float:left; height:100px; width:300px;}
.huangye_list dl h4{text-align:left; line-height:25px; height:25px;width:300px; overflow: hidden; font-weight:normal; color:#0a2bb6}
.huangye_list dl h4 a{color:#0a2bb6;}
.huangye_list dl dd{ float:left; width:300px; height:98px; overflow:hidden}
.huangye_list dl dd.time{ width:100px; float:right; height:100px; line-height:100px; }
.huangye_list dl dd.jg{ line-height:100px; float:right;  margin:0 10px; height:100px; width:50px;}
            .paixuselect{ position:relative; top:5px; right:30px;}
                        * + html .paixuselect{ position:relative; top:3px; right:40px;}
                        * html .paixuselect{ position:relative; top:5px; right:-5px;}
        .category_menu_search{ padding:0; margin:0;}
        .category_menu_search h3{ line-height:30px; padding:0 10px; background:#c0e2f2; border-bottom:#999 1px dashed}
        .category_menu_search ul{}
        .category_menu_search ul li{ float:left; padding:5px; line-height:30px; font-weight:bold}
</style>
<div id="table" class="huangye_list clearfix" >
<dl style="height:1px; padding:0; margin:0; overflow:hidden; border:none"></dl>

<!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,10/cachetime/900/subjectlen/50/showdetail/1/messagelen/100/cachename/newnews/tpl/data"}--><!--资讯图文混排-->




<!--{loop $_SBLOCK['newnews'] $value}-->


<!--{eval $url = $value[url]}-->
<!--{eval $message = $value[message]}-->
<!--{eval $subject = $value[subject]}-->
<dl>
  <!--{block name="spacenews" parameter="sql/SELECT%20thumbpath%20FROM%20%60supe_attachments%60%20WHERE%20aid%3D$value[picid]/limit/0,1/cachetime/900/showdetail/1/cachename/newnews2/tpl/data"}--><!--资讯图文混排-->
   <!--{loop $_SBLOCK['newnews2'] $value}-->
   <!--{eval $img = $value[thumbpath]}-->
<dt class="clearfix">
<a href="$url"><img src="./attachments/$img" align="left" class="img_max300"/></a>
</dt>
<!--{/loop}-->
<dd>
<div class="clearfix">
<h4><a href="$url">$subject</a></h4>
$message
</div>
<dd class="time"><span class="fgreen listtime">
<!--{eval $dqtime=($showtime=time());}-->
<!--{eval $xqtime=($dqtime-$value[dateline]);}-->
<!--{eval $ftime=floor($xqtime/60);}-->
<!--{eval $fztime=floor($ftime-60);}-->
<!--{if $fztime < 60}-->刚刚发布<!--{elseif $fztime < 120}-->一小时前<!--{elseif $fztime < 180}-->两小时前<!--{elseif $fztime < 240}-->三小时前<!--{elseif $fztime < 300}-->四小时前<!--{elseif $fztime < 360}-->五小时前<!--{elseif $fztime < 420}-->六小时前<!--{elseif $fztime < 480}-->七小时前<!--{elseif $fztime < 540}-->八小时前<!--{elseif $fztime < 600}-->九小时前<!--{elseif $fztime < 660}-->十小时前<!--{elseif $fztime < 720}-->半晌前<!--{elseif $fztime < 900}-->十五小时前<!--{elseif $fztime < 1440}-->一天前<!--{elseif $fztime < 2880}-->两天前<!--{elseif $fztime < 4320}-->三天前<!--{else}-->#date("Y年m月d日", $value[dateline])#<!--{/if}--></span></dd>
  </dd>
</dl>

<!--{/loop}-->
</div>
回复

使用道具 举报

58298822 发表于 2009-8-30 13:11:16 | 显示全部楼层
我晕了
你重新下载一份程序然后解压出你要的文件再上传就是了啦
这么简单的问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-13 07:44 , Processed in 0.116547 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表