<!doctype html>
<html>
<head>


<!---->
<div id="centre" class="layout">
		<div class="centreInner ">
				<div class="mainInner radius5 "> 
						<!---->
						<div class="personalBox_top">
								<div class="personalBox radius5 inner personalBox2">
                                    <div class="sata_hd"> <span class="name">姓名：<b class="n_color"><?=$info['truename'] ?></b></span><span class="d_fg">星级：<strong class="d_color lv<?=$info['level']?>"><?=$broker_new_info[0]['starlevel']?>星</strong></span><span class="fg_c">|</span><span class="dj_fg">房豆：<strong class="color_num"><?= $info['credit'] ?></strong></span><a href="<?=$documentation['what_credit']?>" class="link" target="_blank">房豆有什么用？</a></span> </div>
									
                                </div>
						</div>
						<!---->
						
                        	
                        <?php if($display_diff){?>
						<div class="titleTabBox titleTabBoxAsk">
                            <div class="titleTab">
                                <div class="titleTabB clearfix">
                                    <dl class="list">
                                        <dd class="item <?php if($diff==1){ echo 'itemOn';}?>">
                                            <a href="/ask/to_answer/" class="link">
                                                <span class="t"><em class="t_i">难度系数</em><i class="img">&nbsp;</i><i class="img">&nbsp;</i><i class="img">&nbsp;</i></span>
                                                <span class="t_s">挑战难题点这里</span>		
                                            </a> 
                                         </dd>
                                        <dd class="item <?php if($diff==2){ echo 'itemOn';}?>"> 
                                            <a href="/ask/to_answer/?diff=2" class="link">
                                                    <span class="t"><em class="t_i">难度系数</em><i class="img">&nbsp;</i><i class="img">&nbsp;</i></span>
                                                    <span class="t_s">轻松答题点这里</span>		
                                            </a> 
                                        </dd>
                                    </dl>
                                </div>
                            </div>
                        </div>
						
                        <?php } ?>
						
					
                        
						<div class="belongBox radius5 belongBoxAskBox" style="overflow: visible;"> 
								   <form id="search_form" name="search_form" method="get" action="">
								<!---->
								<div class="forms functionBox functionBox2">
										<dl class="list">
												<dd class="list_item clearfix">
														<div class="fields ">
																<h3 class="allAskH3">全部问题</h3>
																<!---->
																<div class="fgInputRight"> 
																		<!---->
																		<div class="fgInput jsFgInput">
																				<div class="imitateSelect">
																						<label class="labelImitate" >全部</label>
                                                                                        <input name="qtypename" class="imitate imitateIe" type="text"  readonly="" value="<?php $get_param['qtypename'] = isset($get_param['qtypename'] ) ? $get_param['qtypename'] : '';    if($get_param['qtypename']=='不限'){echo '全部';}else{ echo $get_param['qtypename'];} ?>">
                                                                                        <input type="hidden" name="qtype" class="jsImitateHidden" value="<?php if(isset($get_param['qtype'])){ echo $get_param['qtype']; } else { echo 0;}?>"/>

																						<div class="listImitate" style="display: none;">
																								<dl class="inner">
																										   <dd><a oid="0" class="link" href="####" onclick="getQaClassById(0)">不限</a></dd>
                                                                                                    <?php foreach($qtypearr as $key=>$value){ ?>
                                                                                                          <dd><a class="link" oid="<?=$value['t_id']?>" href="####" onclick="getQaClassById(<?=$value['t_id']?>)"><?=$value['t_name']?></a></dd>
                                                                                                    <?php }?>
																								</dl>
																						</div>
																				</div>
																		</div>
																		<p class="textFg textFg2">&nbsp;</p>
                                                                        <div class="fgInput jsFgInput">
																				<div class="imitateSelect">
																						<label id="ja_labelImitate_0922" class="labelImitate" >全部</label>
																						 <input name="qclassname" id="qclassname" class="imitate imitateIe" type="text"  readonly="" value="<?php $get_param['qclassname'] = isset($get_param['qclassname'] ) ? $get_param['qclassname'] : '';    if($get_param['qclassname']=='不限'){echo '全部';}else{ echo $get_param['qclassname'];} ?>">
                                                                                        <input id="qclass" type="hidden" name="qclass"  class="jsImitateHidden" value="<?php if(isset($get_param['qclass'])){ echo $get_param['qclass']; } else { echo 0;}?>"/>
																						<div class="listImitate" >
																								<dl class="inner subclass">		
                                                                                                    <?php foreach($qclassarr as $key=>$value){ ?>
                                                                                                          <dd><a class="link" oid="<?=$value['t_id']?>" href="####" onclick="getQaClassById(<?=$value['t_id']?>)"><?=$value['t_name']?></a></dd>
                                                                                                    <?php }?>
																								</dl>
																						</div>
																				</div>
																		</div>
																		<p class="textFg textFg2">&nbsp;</p>
																		<!---->
																		<div class="fgInput  nameInput "> 
																				<!---->
																				<p class="textFg textFg2">&nbsp;</p>
																				<div class="fgInput"> <a href="####" class="btn btnCon radius5 classSubmit" >分类筛选</a> </div>
																				<p class="textFg textFg2">&nbsp;</p>
																				<p class="textFg textFg2">&nbsp;</p>
																				<!----> 
																		</div>
																		<!----> 
																</div>
														</div>
												</dd>
										</dl>
								</div>
								
								<!---->
								
								<div class="allAskTable">
										<div class="allAskTableItem allAskTableTitle">
												<table class="table">
														<tr>
																<td class="td w86">编号</td>
																<td class="td w504">问题</td>
																<td class="td w150">提问时间</td>
																<td class="td">操作</td>
														</tr>
												</table>
										</div>
										<!---->
                                        <?php if(is_array($data_info)&&!empty($data_info)){?>
                                        <?php foreach($data_info as $key=>$value){?>
                                        <div class="allAskTableItem <?php  if($key%2!=0) echo "allAskTableItemBg";?>" >
												<table class="table">
														<tr>
																<td class="td w86"><?=$value['q_id']?></td>
																<td class="td w504"><div class="tdInner"><?=$value['q_message']?></div></td>
																<td class="td w150"><?php echo date('Y-m-d',$value['q_dateline']);?></td>
																<td class="td"><a class="jsClickLink clickLink" href="javascript:void(0);" id="<?=$value['q_id']?>">查看详情</a></td>
														</tr>
												</table>
										</div>
                                        
                                         <?php }?>
								
										 <?php }else{?>											   
											
											<div style="text-align:center;padding:25px 0 15px;">很遗憾，没有找到相关问题哦！
                                       </div>
                                         <?php }?>				
										
                                       

								</div>
                                
                                  <input id="page" type='hidden' name='page' value='<?php echo $page; ?>'>
                             </form>
								<!--翻页-->
                                  <?php if (!empty($pagination)) { ?>
								<div class="picPreviewPagBox">
										<div class="picPreviewPag">
												 <?php echo $pagination; ?>
										</div>
                                  
								</div>
                                 <?php } ?>
                                
								<!----> 
						</div>
				</div>
		</div>
</div>


</body>
</html>
<script type="text/javascript">
function getQaClassById(id)
{    
    $("#qclassname").val('全部');
	$("#qclass").val("");
	$.get("/ask/subClassAjax/?action=getqaclass&sid="+id,function(date){
		 $("#ja_labelImitate_0922").hide();
		$(".subclass").html(date);
	});
}

$(".classSubmit").click(function(){ 
	$("#page").val(1);
    $("#search_form").submit();
})
</script>