exit; } $c .= ' <a href="' . $f . '?xqid=' . $r_res['xqid'] . '&id=' . $r_res['hdid'] . '&mr=1">设置为首页默认活动</a>'; } } $c .= '</div><div class="active_cnt clearfix">'; $q_rep = sprintf('select a.id from %s as a, %s as b where a.tid=b.tid and b.hdid=%s order by a.dateline desc', $dbprefix . 'topic_image', $yjl_dbprefix . 'hd_topic', $hdid); $a_rep = mysql_query($q_rep) or die(''); $tr_rep = mysql_num_rows($a_rep); if ($tr_rep > 0) { $c .= '<p class="tit">活动照片<span>( <a href="activeimg-' . $xqid . '-' . $hdid . '.html"' . ($user_id > 0 ? '' : ' rel="#overlay_login"') . '>全部 ' . $tr_rep . ' 张</a>)</span></p><div class="act_pic">'; $q_l_rep = sprintf('%s limit 6', $q_rep); $rep = mysql_query($q_l_rep) or die(''); $r_rep = mysql_fetch_assoc($rep); do { $up = yjl_imgpath($r_rep['id']); $c .= '<a href="activeimg-' . $xqid . '-' . $hdid . '-' . $r_rep['id'] . '.html"' . ($user_id > 0 ? '' : ' rel="#overlay_login"') . '><img src="' . $yjl_tpath . 'images/topic/' . $up[1] . $r_rep['id'] . '_s.jpg" /></a>'; } while ($r_rep = mysql_fetch_assoc($rep)); mysql_free_result($rep); $c .= '</div>'; } mysql_free_result($a_rep); $c .= '<div class="act_detl"> <p class="stit">活动详情</p> <p>' . $r_res['content'] . '</p> </div> </div>'; if ($iscy > 0) { $isupimg = 1; $js_a = 'upimg_a_0(response);'; $js_ac = 'upimg_ac_0();';
function yjl_face($u, $f, $t = 0) { global $yjl_tpath; $face = 'images/no_' . ($t > 0 ? '128' : '50') . '.gif'; if ($f != '') { $pa = yjl_imgpath($u); $face = 'images/face/' . $pa[1] . $u; if ($f == './images/face/' . $pa[1] . $u . '_s.jpg') { $face = $yjl_tpath . 'images/face/' . $pa[1] . $u . '_' . ($t > 0 ? 'b' : 's') . '.jpg'; } } return $face; }