<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
 $imgurl = $_DCACHE['stylecss'][21];
 if(empty($imgurl)){
	$imgurl=' templates/default/images/';
 }
$user_AddDate = gmdate("Y-m-d H:i:s",$user_AddDate+getUserTimeZoneOffset());
foreach($userintegral as $userintegralarr);
?>
<div id="nav_top">
<table cellpadding="0" cellspacing="6" width="100%" align=center style="word-break:break-all;">
<tr align="left">
<td width="22%" valign="top">
<table align="center" style="width:100%" height="100%" cellspacing="0" cellpadding="5" class="tableborder1">
<tr id="user_nav"><td align="center"><a href="forum_savvy.php" target="_blank"><b><font color="#FF6600"><?=$lang['know.strinfo1']?></font></b></a></td></tr>
<tr><td class="mtd tablebody5" style="padding-left:10px;"><a href="?action=all"><?=$lang['know.strinfo2']?></a></td></tr>
<tr><td class="mtd tablebody5" style="padding-left:10px;"><a href="?action=overdue"><?=$lang['know.strinfo3']?></a></td></tr>
<tr><td class="mtd tablebody5" style="padding-left:10px;"><a href="?action=allanswer"><?=$lang['know.strinfo4']?></a></td></tr>
<tr><td class="mtd tablebody5" style="padding-left:10px;"><a href="?action=adoptanswer"><?=$lang['know.strinfo5']?></a></td></tr>
<tr id="user_nav"><td align="center" class="mtd tablebody5">-=> <?=$lang['know.strinfo6']?> <=-</td></tr>
<tr><td align="left" class="mtd tablebody5" style="padding-left:10px;background-color:#fff;"><?=$lang['know.strinfo7']?>  <?=together_zero($userintegralarr['answercount'])?>  <br>
<?=$lang['know.strinfo8']?> <?=together_zero($userintegralarr['answeradopt'])?>  <br>
<?=$lang['know.strinfo9']?> <?=$userintegralarr['answeradopt']/$userintegralarr['answercount']*100?>% 
</th></td>
<tr id="user_nav"><td  align="center" class="mtd tablebody5"> <?=$lang['know.strinfo10']?> </td></tr>
<tr><td align="left" class="mtd tablebody5" style="padding-left:10px;10px;background-color:#fff;"><?=$lang['know.strinfo11']?>  <?=together_zero($userintegralarr['askcount'])?>  <br>
<?=$lang['know.strinfo12']?> <?=together_zero($userintegralarr['askdonecount'])?>  <br>
<?=$lang['know.strinfo13']?> <?=together_zero($userintegralarr['askdoningcount'])?>  <br>
<?=$lang['know.strinfo14']?> <?=together_zero($userintegralarr['asknodonecount'])?> 
</th></td>
<tr id="user_nav"><td  align="center" class="mtd tablebody5">-=> <?=$lang['know.strinfo15']?> <=-</td></tr>
<tr><td align="left" class="mtd tablebody5" style="padding-left:10px;10px;background-color:#fff;">
<?=$lang['know.strinfo16']?>  <?=together_zero($userintegralarr['wealthcount'])?> <br>
<?=$lang['know.strinfo17']?> <?=together_zero($userintegralarr['answerwealth'])?> <br>
<?=$lang['know.strinfo18']?> <?=together_zero($userintegralarr['savvy_hortation'])?> <br>
<?=$lang['know.strinfo19']?> -<?=together_zero($userintegralarr['offer_pay'])?> <br>
<?=$lang['know.strinfo20']?> -<?=together_zero($userintegralarr['anonymity_ask'])?>  <br>
<?=$lang['know.strinfo25']?> -<?=together_zero($userintegralarr['punishother'])?> 
</th></td>
</table>
</td>
<td width="80%" valign="top">
<div id="user_right">
	<div id="tabtitle">
	<div id="topicbody">
	<div class="user_nav_topic">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr id="user_nav">
<td><?=$lang['know.strinfo21']?></td>
<td><?=$lang['know.strinfo22']?></td>
<td><?=$lang['know.strinfo23']?></td>
<td><?=$lang['know.strinfo24']?></td>
</tr>
<?
	if(!empty($list)){
		if(is_array($list)){
			foreach ($list as $result){
				if($action=='overdue' or $action=='all' or $action==''){
					$topictitle=$result['title'];
					$topictrueid=$result['topicid'];
				}else{
					$topictitle=$result['title'];
					$topictrueid=$result['rootid'];
				}
?>
<tr>
<td align="left" style="padding-left:10px;" width="50%">
<a target="_blank" href="savvy_dispbbs.php?boardid=<?=$result['boardid']?>&amp;id=<?=$topictrueid?>&amp;page=<?=$page?>">
<?=$topictitle?>
</a>
</td>
<td width="10%"><?=$result['child']?></td>
<td width="10%">
	<?if(empty($result['solve'])){?><img src="<?=$imgurl.'icn_time.gif'?>"><?}elseif(intval($result['solve'])==1){?><img src="<?=$imgurl.'icn_ok.gif'?>"><?}else{echo '<img src='.$imgurl.'icn_cancel.gif border="0">';}?>
</td>
<td width="30%"><?=gmdate('Y-m-d H:i:s',$result['dateandtime']+getUserTimeZoneOffset())?></td>
</tr>

<?
			}
		}
	}	
?>

</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="height:30px;">
	<?
		if($total > 0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['tpl.sms.str36'],$lang['mycontrolbar.str2'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
	</td>
  </tr>
</table>
</td>
</tr>
</table> 
</div></div></div></div></div>