<?php
namespace imcat;
(!defined('RUN_INIT')) && die('No Init');

//$dop->dskey  = $dop->so->dskey  = 'mtel'; //改变默认搜索字段
$dop->sobar($dop->msgBar($msg));
glbHtml::fmt_head('fmlist',"$aurl[1]",'tblist');
basLang::inc('aflow', 'inread_list');
$idfirst = ''; $idend = '';
if($rs=$dop->getRecs()){ 
    foreach($rs as $r){ 
      $cid = $idend = $r['cid'];
      if(empty($idfirst)) $idfirst = $cid;
      echo $cv->Select($cid);
      echo $cv->PTitle('indoc',$r['pid'],"/plus/api/redir.php?indoc.{$r['pid']}");
      echo $cv->PTitle('users',$r['auser'],'#');
      echo $cv->Field($r['auser']);
      echo $cv->Field($r['readcnt']); 
      echo $cv->Time($r['atime']);
      echo $cv->Field($r['aip']);
      echo $cv->Time($r['etime']);
      echo $cv->Field($r['eip']);
      echo $cv->Url(lang('flow.dops_edit'),1,"$aurl[1]&view=form&cid=$r[cid]&recbk=ref","");
      echo "</tr>"; 
    }
    $dop->pgbar($idfirst,$idend);
}else{
    echo "\n<tr><td class='tc' colspan='15'>".lang('flow.dops_nodata')."</td></tr>\n";
}
glbHtml::fmt_end(array("mod|$mod"));
