{imp:"faqs/a-layout"}<!--模板继承-->

{block:main}
<?php 
$pmod = 'qarep'; 
$did = $this->vars['did'];
$null = '---';
$bugid || $bugid = '---';
?>
<h1 class="news_title">{title($title,96,$this->vars)}</h1>
<div class="news_bar"> {lang(user.qa_pub)}:<i class="atime">{stime($atime,min)}</i> &nbsp; 
  {lang(user.qa_click)}:<i id="jsid_field_{=$this->mod}:{=$did}:click">{=$click}<!--,add1--></i>{lang(user.qa_times)} &nbsp; 
  {lang(user.qa_rep)}:<i id="cnt_qarep">0</i>{lang(user.qa_cnt)} </div>
<div class="news_text">
 <?php echo tex('texFaqs')->showDetail($detail,$mdshow); ?>
</div>
<div class="news_bar">
  <i class="left">{lang(user.qa_state)}:{sopt($bugst,faqs.bugst,0,$null)}</i>
  <i class="right"><?php echo tex('texFaqs')->showMdshow($mdshow,$did); ?></i>
  {sopt($hinfo,faqs.hinfo,0,$null)}
  &nbsp; 
  {lang(user.qa_bugid)}: {=$bugid}
</div>
{if !empty($tags) }
<div class="cst-tag1 ph5">{php echo tex('texFaqs')->navTags($this,$tags); }</div>
{/if}
<div class="news_rem">
  <div class="rembar"> 
  <span class="remadd"><!--a href="{surl(0)}?{=$pmod}&pid={=$did}"-->{lang(user.qa_rep)}(<i id="jsid_count_{=$pmod}:{=$did}">0<!--`{=$this->mod},cnt_{=$pmod}`--></i>{lang(user.qa_cnt)})</a> &nbsp; <a {php vopCell::vOpen($pmod,$did); }>&gt;&gt;{lang(user.qa_irep)}</a></span> 
  <span class="remtitle">{lang(user.qa_relist)}</span> 
  </div><!--[cache,60]--> 
  {tag:dlist=[List][modid,$pmod][pid,$did][limit,20]}
  {:row}
  <dl>
    <dt class="pa5 f16 c069">
    <span class="right f12 c666">{lang(user.qa_pub)}:<i class="atime">{stime($t_atime,min)} </i></span>
    <?php echo $i_v+1 ?># {title($t_title,48,$v)}
    </dt>
    <dd>
    <?php echo tex('texFaqs')->showDetail($t_detail,$t_mdshow); ?>
    <p class="tc">
    <span>by: {=$t_mname}</span> 
    &nbsp;
    {lang(user.qa_imid)}: {if empty($t_miuid) } --- {else}{title($t_miuid,48,$v)}{/if} 
    <i class="right">
      <?php echo tex('texFaqs')->showMdshow($t_mdshow,$t_cid,1); ?>
    </i>
    </p>
    </dd>
  </dl>
  {/row}
  {/tag:dlist}
</div>
<div class="clear"></div>
{/block:main}

{block:uend}{:parent}{php}
$jstr = "var qas_id='".(empty($this->vars['catid'])?'_allt':$this->vars['catid'])."', qat_id='detail';";
echo "<script>$('#qat_detail').show();$jstr</script>"; 
{/php}<script>
$(document).ready(function(){
  $('.news_text a').each(function(i, e) {
        var url = $(e).attr("href"); 
    if(url.indexOf('://')>0) $(e).attr("target",'_blank');
    });
});
</script>{/block:uend}