Ejemplo n.º 1
0
    private function print_list($question_list, $count)
    {
        if ($question_list == NULL) {
            echo '<div id="question_error">暂无' . $this->sign . '列表</div>';
        } else {
            $Page = new Page($count, $this->setting['question_per_page']);
            $show = $Page->show();
            foreach ($question_list as $k => $v) {
                $solve = $v['issolve'] == 1 ? '已解决' : '未解决';
                echo '
                        	<div class="q_wrapper">
                                <div class="avatar_wrapper" >
                                    <img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . get_avatar($v['uid'], 'min') . '" class="avatar" />
                                    <img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/avatar_cover.png" class="avatar_cover" /> 
									<input type="hidden" value="' . $v['uid'] . '" class="avatar_hidden" />
                                </div>
                                <div class="q_list">
                                <a href="' . U('Question/view?qid=' . $v['id']) . '" target="' . $this->setting['link_open'] . '">' . $v['title'] . '</a>
                                    <div class="opt">
                                        <div class="q_option_left"></div>
                                        <div class="q_option_mid">
                                            时间:' . time_mode($v['pubtime']) . '<img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/devider.png" />
                                            浏览:' . $v['viewcount'] . '<img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/devider.png" />
                                           	回复:' . $v['answercount'] . '<img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/devider.png" />
                                            关注:' . $v['focuscount'] . '<img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/devider.png" />
                                            推荐:' . $v['recommendcount'] . '<img src="' . C('TMPL_PARSE_STRING.__PUBLIC__') . '/css/devider.png" />
                                            状态:' . $solve . '
                                        </div>
                                        <div class="q_option_right"></div>
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        ';
            }
            echo '<div id="page" align="center">' . $show . '</div>';
        }
    }
   	    <td class="td7_right"></td>
   	    <td class="td8"></td>
   	    <td class="td9_right">
           	<div class="avatar_wrapper reply_avatar_right">
                    <img src="__PUBLIC__';
   echo get_avatar($v['uid'], 'min');
   echo '" class="avatar" />
                    <img src="__PUBLIC__/css/avatar_cover.png" class="avatar_cover" /> 
                    <input type="hidden" value="' . $v['uid'] . '" class="avatar_hidden" /> 
               </div>
           </td>
 	    </tr>
 	  </table>
      <div class="clear"></div>
      <div class="reply_opt_right">
      		<div class="reply_icon_time">时间:' . time_mode($v['addtime']) . '</div>
           <div class="reply_icon_agree">顶:<a>' . $v['agreecount'] . '</a></div>
           <div class="reply_icon_against">踩:<a>' . $v['againstcount'] . '</a></div>
           <div class="reply_icon_useless">无帮助:<a>' . $v['uselesscount'] . '</a></div>
           <input type="hidden" value="' . $v['bestanswer'] . '" class="best_answer_hidden" />
            ';
   if ($question['issolve'] == 0 || $setting['is_quora'] == 0) {
       echo '<div class="reply_icon_reply">回复</a></div>';
   }
   if ($is_me && $question['issolve'] == 0 && $setting['is_quora'] == 1) {
       echo '<div class="reply_icon_adopting hidden">设为答案</div>';
   }
   echo '
           <input type="hidden" class="aid_hidden" value="' . $v['id'] . '" />
           <input type="hidden" class="auid_hidden" value="' . $v['uid'] . '" />
      </div>