{imp:"c_pub/a-dops"}<!--模板继承-->

{block:action}

<?php
if(!empty($bsend)){

    $fs_do = req('fs_do');
    $fs = basReq::arr('fs');
    if(empty($fs_do)) $msg = lang('flow.dops_setop');
    if(empty($fs)) $msg = lang('flow.dops_setitem');
    $cnt = 0; $msgop = '';
    foreach($fs as $id=>$v){ 
        if(in_array($fs_do,array('hidden'))){ //'show',
            $cnt += $dop->opShow($id,$fs_do);
            $msgop = $fs_do=='show' ? lang('flow.dops_checked') : lang('flow.dops_hide');
        }elseif($fs_do=='del'){ 
            $cnt += $dop->opDelete($id);
            $msgop = lang('flow.dops_del');
        }elseif($fs_do=='(xxx)'){ 
            $msgop = '';
        }
    }
    $msg = "$cnt ".lang('flow.dops_okn',$msgop);

}else{

    $dop->sobar("[$gname]".(empty($msg)?'':"<br><span class='cF00'>$msg</span>")); 
    glbHtml::fmt_head('fmlist',"$aurl[1]",'tblist');
    basLang::inc('aflow', 'uc_indoc_list');
    $idfirst = ''; $idend = '';
    if($rs=$dop->getRecs()){ 
        foreach($rs as $r){ 
          $did = $idend = $r['did'];
          if(empty($idfirst)) $idfirst = $did;
          $title = basStr::cutWidth($r['title'],24,'..');
          $title = "<a href='?indoc.$r[did]' target='_blank'>".basStr::filTitle($title)."</a>";
          echo "<tr>\n";
          echo $cv->Select($did);
          echo "<td class='tl'>$title</td>\n";
          echo $cv->Types($r['catid']);
          echo $cv->Show($r['show']);
          echo $cv->Time($r['atime']);
          echo $cv->Field($r['auser']);
          echo $cv->Time($r['etime'],'y');
          echo $cv->Url(lang('flow.dops_edit'),1,"?indoc-iedit&did=$r[did]&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"));
}

?>

{/block:action}

{block:uend}{:parent}{/block:uend}
