<?php require APPPATH_MVC.'views/header.php'; ?>
<div class="w960 clearfix mt10 pepcenterBox">
<?php require APPPATH_MVC.'views/left.php'; ?>
    <!--会员左侧 End-->
  <div class="user-main user-main02">
		 	<div class="hd-bar pos-r">
        	 <h2>我的问答</h2> <a href="<?php echo GB_SELL_URL;?>/asking.html" class="btn1 tiwen" target="_blank">我要提问</a>
        </div>
   		 <div class="user-main user-main03">

        <div class="mod-list ask source-manger03">
        <?php
        if(is_array($asklist) && !empty($asklist)){
        $n=1;
        foreach($asklist as $key=>$value){
          //获取答案数
          $q_num = $this->ask_model->getaskqnum($value['q_id']);
          //查询是否有未读答案
          $q_read = $this->ask_model->getaskread($value['q_id']);
        ?>

            <?php  if($value['q_esta']==1){?>
             <div class="list-inner clearfix <?php if($n%2==0)echo 'odd';?>">
             <a href="<?php echo USER_CENTER.'user/qdetail/'.$value['q_id'];?>" class="ask" target="_blank"><?php echo $value['q_message'];?></a>
            <?php }else{?>
             <div class="list-inner list-inner02 clearfix <?php if($n%2==0)echo 'odd';?>">
             <span  class="ask" ><?php echo $value['q_message'];?></span>
             <?php }?>

                <?php if($q_read>0){?>
                <img src="<?php echo USER_CENTER.'images/new.png';?>" width="29" height="14">
                <?php }?>
                <span class="ask-time"><?php echo date("Y-m-d",$value['q_dateline']);?></span><span class="ask-rep2"><?php  if($value['q_esta']==1){?>
                <a href="<?php echo get_questioninfo_url($value['q_id']);?>" target="_blank"><?php echo $q_num;?></a>条回复
                <?php }else{?>
                待审核
                <?php }?>
            </span>
            </div>
        <?php $n++;}}else{?>
            <div class="mod-list h-source">
                <div class="no-result">您还没有发布问题，去发布问题吧。<a target="_blank" href="<?php echo GB_SELL_URL;?>/asking.html">立即前往&gt;&gt;</a></div>
             </div>
        <?php }?>

        </div>
				<div class="solidDiv">&nbsp;</div>
        <div class="cut-page">
        	<?php echo page_uri($page,$pages,USER_CENTER.'user/myask');?>
        </div>
        <div class="hd-bar bor-t pos-r">
        	 <h2>优秀专家推荐</h2>
        </div>
        <div class="expert-inner clearfix">
        <?php
        if(is_array($expertslist) && !empty($expertslist)){
        $n=1;
        foreach($expertslist as $key=>$value){
             $brokerdetail = $this->broker_model->getbrokerdetail($value['lc_uid']);

             $smallphoto = $brokerdetail['smallphoto'] !='' ? $brokerdetail['smallphoto'] : USER_CENTER.'images/userface.gif';
        ?>
        	<dl class="exp">
            	<dt><a href="<?php echo GB_BROKER_URL.'/'.$brokerdetail['username'];?>" target="_blank"><img src="<?php echo $smallphoto;?>" width="90" height="110" /></a></dt>
                <dd>
                	<p class="exp-name"><a href="<?php echo GB_BROKER_URL.'/'.$brokerdetail['username'];?>" target="_blank"><?php echo $brokerdetail['truename'];?></a></p>
                    <p class="exp-where"><?php echo $brokerdetail['agentshortname'];?></p>
                    <p class="exp-tel"><?php echo $brokerdetail['telno'];?></p>
                </dd>
            </dl>
        <?php }}?>
        </div>
    </div>
	</div>
    <!--会员右侧 End-->

</div>
<!--引导-->
<?php
        if(is_array($asklist) && !empty($asklist)){
?>
<script>
function buyListGuidePop(){
	$("#myAskGuidePop").css({
		// "display":"block",
		"width":$(window).width() < 960 ? 960 : $(window).width() +"px",
		"height":$(document).height()+"px"
	});
	$("#myAskGuide").css({
		// "display":"block",
		"left":$(".mod-list").offset().left - 25  +"px",
		"top":$(".mod-list").offset().top - 74 +"px"
	});
};
$(function(){
    var cookieTag = getCookie('askListGuide');
    if(cookieTag != 1)
	{
	buyListGuidePop()
	$(window).resize(function(event){
			buyListGuidePop()
	});
    }
	$("#myAskGuide .closeGuide").live("click",function(){
            SetCookie('askListGuide',1);
			$("#myAskGuidePop,#myAskGuide").hide();
             setTimeout("location.reload()",300);
	})
})
</script>
<?php }?>
<style>
#myAskGuidePop{ display:none; background:#000; opacity:0.2; filter:alpha(opacity=20); position:absolute; left:0; top:0; z-index:999998;}
#myAskGuide{ display:none;width:813px; height:126px; overflow:hidden; position:absolute;z-index:999999;}
#myAskGuide .inner{ width:813px; height:126px; overflow:hidden;  background:url(http://www.house365.com/center/images/guide_img/myAskGuide.png) no-repeat 0 0;_background:transparent;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.house365.com/center/images/guide_img/myAskGuide.png');}
#myAskGuide .closeGuide{ width:63px; height:18px; cursor:pointer; overflow:hidden; text-indent:-999px; position:absolute; left:215px; top:45px;}
</style>
<div id="myAskGuidePop">&nbsp;</div>
<div id="myAskGuide">
	<div class="inner">
			<div class="closeGuide" title="我知道了">我知道了</div>
	</div>
</div>

<?php
if($isa_website!=''){
?>
<script type="text/javascript">
	var website="2";
	var isa_website = "<?=$isa_website?>";
	var isa_city = "<?=$isa_city?>";
	var isa_addones = "<?=$isa_addones?>";

	var _analyze365 = (('https:' == document.location.protocol) ? ' https://': ' http://');
	document.write(unescape('%3Cscript src="'+ _analyze365 + '<?=$isa_url?>" type="text/javascript"%3E%3C/script%3E'));
</script>
<?php
}
?>
<script type='text/javascript'>
    var ga_city = "<?=$isa_city?>";
    var ga_channel = 'center';
    var ga_page= "/个人中心/问答";
</script>
<script language="javascript" src="http://stat.house365.com/365count.js"></script>

<!--引导结束-->
<?php require APPPATH_MVC.'views/footer.php'; ?>