1 {dede:php} 2 $thisid = $refObj->Fields['id']; 3 $row = $dsql->GetOne("Select typeid From `ybs_archives(这里是你的内容的表名)` where id='$thisid' "); 4 $thisid=GetTopid($row['typeid']); 5 if ($thisid==57) {echo "<a href='/f4/' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 6 } else if ($thisid==62) {echo "<a href='/zhuanti/zaoxie/' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 7 } else if ($thisid==67) {echo "<a href='/zhuanti/jsjmqz/' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 8 } else if ($thisid==73) {echo "<a href='/zhuanti/jrsy/' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 9 } else if ($thisid==80) {echo "<a href='/news/4130.html' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 10 } else if ($thisid==81) {echo "<a href='/qwjs/13208.html' target='_blank'><img src='/adimages/pindao/art_".$thisid.".jpg' width='303' height='115' alt=''></a>"; 11 } else { 12 echo "<a href='/zhuanti/2012xgn' target='_blank'><img src='/adimages/pindao/art_qita.jpg' width='303' height='115'></a>"; 13 } 14 {/dede:php}