 ע
A.òоѧϰκҵ;߹棡
B.غ24СʱڽɾԴhttp://www.17cha8.cnеɴ˶κηɾף
C.òȨԭߡ


  
ð汾: Discuz! X1.5  
Ա: GBK   
: love322093 վվ  
Ȩ: love322093 վվ  
֧վ: http://woyoubanfa.com/dx15  
: ͼƬ˵ӦǷǳѡһֱûбҪΪͼƬչʾװNļĲΪֱ۵ı﷽ʽر˵love322093²ŵɣٴαʾл  

[  վվ  2010-10-13 21:08 ༭ ]

ϸǲǸĵĴ󣬰汾ԲԣԶԲԣϸ룬ʵŪãõͼƬбַ   Ҳģȫ  
28ſʼбŷģԭ仯Ҳǳ˽10죬Լˣ
϶вȴֺʹȤѿоо


޸ķ
һ
----------------------------------------------------------------
/source/module/forum/forum_forumdisplay.php


while(($querysticky && $thread = DB::fetch($querysticky)) || ($query && $thread = DB::fetch($query))) {

//ͼƬ ߣlove322093 Զԭߵĸм֮飬뱣룬Ӱκν棬лκʽĸİ棡

$thread['aticon'] = DB::result_first("SELECT attachment FROM ".DB::table('forum_attachment')." WHERE isimage = 1 AND tid=".$thread['tid']."");

$thread['thumb'] = DB::result_first("SELECT thumb FROM ".DB::table('forum_attachment')." WHERE isimage = 1 AND tid=".$thread['tid']."");

if($thread['aticon'] && !$thread['thumb'] ){

require_once libfile('class/image');

$image = new image;

$r = $image->Thumb($_G['setting']['attachurl'].'forum/'.$thread['aticon'], '', 200, 200, 2);//ͼ,400  ͼƬĴС.

if ($r) {

DB::update('forum_attachment', array('thumb' => 1), "isimage = 1 AND tid=".$thread['tid']."");

} else {

$error = $image->error();

showmessage($error);

}

}

if($thread['thumb'] && $thread['aticon']!=null){

// $thread['aticon']=$_G['setting']['attachurl'].'forum/'.$thread['aticon'].".thumb.jpg";

$thread['aticon']='<img src='.$_G['setting']['attachurl'].'forum/'.$thread['aticon'].".thumb.jpg".'>'; 

}else{

$thread['aticon']="<img class='pic_li_img' src='static/image/common/nopic.gif'>";

}

//echo $thread['aticon'];

//ͼƬ ߣlove322093 Զԭߵĸм֮飬뱣룬Ӱκν棬лκʽĸİ棡

ڶ
/template/default/forum/forumdisplay.htm

<!--{hook/forumdisplay_postbutton_top}-->



                        </div>


 

<!--{if (!$simplestyle || !$_G['forum']['allowside']) && !empty($announcement)}-->

                        <div  class="forumdisplay_announcement"style="margin-bottom: 10px;">

                                <tbody>

                                        <tr>

                                                <td class="icn"><img src="{IMGDIR}/ann_icon.gif" alt="{lang announcement}" /></td>

                                                <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td class="o"> </td><!--{/if}-->

                                                <th><strong class="xst"><font style="font-size: 18px;font-family:''">{lang announcement}: <!--{if empty($announcement['type'])}--><a href="forum.php?mod=announcement&id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></font></strong></th>

                                                <td class="by">

                                                        <cite><a href="home.php?mod=space&uid=$announcement[authorid]" c="1">$announcement[author]</a></cite>

                                                        

                                                </td>

                                                <td class="num"><em>$announcement[starttime]</em></td>

                                        </tr>

                                </tbody>

                        </div>

                        <!--{/if}-->


/template/default/forum/forumdisplay_list.htm
   "forum.php?mod=topicadmin&action=moderate&fid=$_G[fid]&infloat=yes&nopost=yes">

   <input type="hidden" name="formhash" value="{FORMHASH}" />

<!--ͼƬʾģ+վվ+ʼ-->

   <!--{if in_array($_G['fid'], array(36,110))}--> 

   <table summary="forum_$_G[fid]" {if !$separatepos}id="forum_$_G[fid]"{/if} cellspacing="0" cellpadding="0">

   

<div class="show_topic_div" >

<ul class="show_topic_ul" >

<!--{if $_G['forum_threadcount']}-->

    <!--{loop $_G['forum_threadlist'] $key $thread}-->



    <!--{if $separatepos <= $key + 1}-->

     <!--{ad/threadlist}-->

    <!--{/if}-->

<li id="show_topic_li"class="off" onMouseOver="this.className='on'"onmouseout="this.className='off'" title="$thread[subject]">

<!--{if $thread['weeknew']}-->

<div style="margin-bottom:-36px;"><img src="{STATICURL}image/filetype/new.gif" alt="鿴·" /></div>

<!--{/if}-->



<!--{if $_G['uid']}-->

<a href='forum.php?mod=viewthread&tid=$thread[tid]'alt='$thread[subject]' title='$thread[subject]'>$thread['aticon']</a>

<!--{/if}-->



<!--{if $gid || !$_G['uid']}-->

<a>$thread['aticon']</a>

<!--{/if}-->



<em style="float:left; display:block;width:200px;white-space:nowrap;overflow:hidden;text-align: center;text-overflow:ellipsis;" > 

<!--{if $_G['uid']}-->

<dd style="float:left;width:200px;font-size: 14px;height:18px;margin-top:3px;white-space:nowrap;overflow:hidden;text-align: center; text-overflow:ellipsis;">

<a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1} target="_blank"{/if} onclick="atarget(this)" >$thread[subject]</a>

</dd>

<!--{/if}-->

<!--{if $gid || !$_G['uid']}-->

<dd style="float:left; display:block;width:200px;white-space:nowrap;overflow:hidden;text-align: center; text-overflow:ellipsis;">

<font color=#46A815>Ȩͼ </font><a href="member.php?mod=register" target="_blank"><b><font color=#FF6600>ע</font></b></a><font color=#46A815></font><a href="member.php?mod=logging&action=login" target="_blank"><b><font color=#FF6600>¼</font></b></a></dd><br>

<!--{/if}-->

</em>

<dd style="float:left;width:188px;">

ߣ<a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><br>

ʱ䣺{eval $days=date('Y-n-j',time());}

<!--{if $thread[dateline]==$days}-->

<font color="#0099FF">$thread[dateline]</font>

<!--{else}-->

$thread[dateline]

<!--{/if}--><br> 

ۣ<a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a>

<br>

ע<font color=#009AFF>$thread[views]</font>  : <font color=#17A801>$thread[replies]</font></dd> <br>



<!---------ͼ꿪ʼ------------>

<em>

<!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->

      

       <!--{if $thread['fid'] == $_G[fid]}-->

        <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->

         <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />

        <!--{else}-->

         <input type="checkbox" disabled="disabled" />

        <!--{/if}-->

       <!--{else}-->

        <input type="checkbox" disabled="disabled" />

       <!--{/if}-->

     

      <!--{/if}-->



<!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->

       <!--{if $thread['price'] > 0}-->

        <!--{if $thread['special'] == '3'}-->

        - <span style="color: #C60">[{lang thread_reward}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][2]][unit]}]</span>

        <!--{else}-->

        - [{lang price} {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][title]} <span class="bold">$thread[price]</span> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][1]][unit]}]

        <!--{/if}-->

       <!--{elseif $thread['special'] == '3' && $thread['price'] < 0}-->

        - [{lang reward_solved}]



       <!--{/if}-->

       <!--{if $thread['attachment'] == 2}-->

        <img src="{STATICURL}image/filetype/image_s.gif" alt="attach_img" title="{lang attach_img}" align="absmiddle" />

       <!--{elseif $thread['attachment'] == 1}-->

        <img src="{STATICURL}image/filetype/common.gif" alt="attachment" title="{lang attachment}" align="absmiddle" />

       <!--{/if}-->

       <!--{if $thread['displayorder'] == 0}-->

        <!--{if $thread[recommendicon] && $filter != 'recommend'}-->

         <img src="{IMGDIR}/recommend_$thread[recommendicon].gif" align="absmiddle" alt="recommend" title="{lang thread_recommend} $thread[recommends]" />

        <!--{/if}-->

        <!--{if $thread[heatlevel]}-->

         <img src="{IMGDIR}/hot_$thread[heatlevel].gif" align="absmiddle" alt="heatlevel" title="$thread[heatlevel] {lang heats}" />

        <!--{/if}-->

        <!--{if $thread['digest'] > 0 && $filter != 'digest'}-->

         <img src="{IMGDIR}/digest_$thread[digest].gif" align="absmiddle" alt="digest" title="{lang thread_digest} $thread[digest]" />

        <!--{/if}-->

        </em>

        <!--{if $thread['rate'] > 0}-->

         <div id="2" style="

float:right;margin-top:-70px;margin-right:-7px;" ><img src="{IMGDIR}/wq.png" align="absmiddle" alt="agree" title="{lang rate_credit_add}" /></div>

        <!--{elseif $thread['rate'] < 0}-->

         <img src="{IMGDIR}/disagree.gif" align="absmiddle" alt="disagree" title="{lang posts_deducted}" />

        <!--{/if}-->

       <!--{/if}-->

       <!--{if $thread[multipage]}-->

        <span class="tps">$thread[multipage]</span>

</li>

                           <!--{/if}-->

<!-----ͼ-------->

<!--{/loop}-->

    </ul>

<!--{else}-->

</div>

   <!--{/if}-->

   </table>

<!--{/if}-->

<!--ͼƬʾģ+վվ+-->

<!--ͨʾģ+վվ+ʼ-->

<!--{if in_array($_G['fid'], array(2,100))}-->



{else}5{/if}"><p class="emp">{lang forum_nothreads}</p></th></tr></tbody>

                        <!--{/if}-->

                        </table>


   <!--{/if}-->

<!--ͨʾģ+վվ+-->


common.css

1021ո
#show_topic_li a img{ height:200px; width:200px; vertical-align: middle; opacity: 0.40;/**Opera9.0+Firefox1.5+SafariChrom.**/ FILTER: alpha(opacity=40)" onMouseOver="nereidFade(this,100,0,10)}
#show_topic_li a:hover img{ height:200px; width:200px; vertical-align: middle; opacity: 0.9;/**Opera9.0+Firefox1.5+SafariChrom.**/FILTER:}

/* -------------------------------ͼƬб CSS ʽ */

.show_topic_list{ color: {TEXT}; padding: 0 10px 0 10px; height:30px; background:{WRAPBG}; line-height: 26px; border-top: 1px dashed {COMMONBORDER};}



.show_topic_div{ margin-left:auto;margin-right:auto; border-top: 1px dashed {COMMONBORDER}; padding-top:5px;padding-left:3px;}

.show_topic_ul{ width:100%; overflow: hidden; padding:2px; 0 0 0 }

#show_topic_li { margin:10px; padding:5px; width:200px; height: 312px; float: left; text-align:left; list-style-type: none; border: 1px solid #E8E8E8; }

#show_topic_li a img{ height:200px; width:200px; vertical-align: middle; opacity: 0.40;/**Opera9.0+Firefox1.5+SafariChrom.**/ FILTER: alpha(opacity=40)" onMouseOut="nereidFade(this,40,10,10)" onMouseOver="nereidFade(this,100,0,10)}

#show_topic_li a:hover img{ height:200px; width:200px; vertical-align: middle; opacity: 0.9;/**Opera9.0+Firefox1.5+SafariChrom.**/FILTER:}

.show_topic_li img { height:200px; width:200px; border: 1px solid #FFFFFF;}



.off{overflow: hidden; background:#F9F9F9;}

.on{ overflow: hidden; background:#99C531;}

.show_topic_Newico { margin-bottom:-36px;}

  


δҪر˵

Լ޸ĻǸδ붼Ҫע޸
һ<!--{if in_array($_G['fid'], array(36,100))}-->
ϣЩʾͼƬֿľϣʾͼƬIDҲ(36,120,13,14,100)ɾ
ڶ<!--{if in_array($_G['fid'], array(2,110))}-->
ͨʾͼƬʾаid֣Ҳ
[attach]809219[/attach]
ǰҲҪС޸


ֻչʾԭ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!--ͼƬʾģ+վվ+ʼ-->
<!--{if in_array($_G['fid'], array(36,37,38,39))}-->ͼƬƵIDֻǾ
<table width="200" border="1">
  <tr>
    <td>ͼƬʾ </td>
  </tr>
</table>
<!--{/if}-->
<!--ͼƬʾģ+վվ+-->

<!--ͨʾģ+վվ+ʼ-->
<!--{if in_array($_G['fid'], array(100,101,102,103))}-->ͨʾID
<table width="200" border="1">
  <tr>
    <td>ͨʾ </td>
  </tr>
</table>
<!--{/if}-->
<!--ͨʾģ+վվ+-->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


ҽһרŵBeyond Compare 2Աȹ޸

wq.png 
ϴ/static/image/common/wq.png

 
new.gif 

ϴ/static/image/common/new.gif

 
nopic.gif 

ϴ/static/image/common/nopic.gif


