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

{block:action}
<?php
$cfgs = basLang::ucfg('cfgbase.indoc_types');
$uname = @$user->uinfo['uname'];
?>
<!-- // {if ($user->userFlag=='Guest')}{else}{/if} -->
<div class="umc-mitem">
    {loop $cfgs $key $vc}
    <h3><i>{=$key}-docu</i>{=$vc}: </h3>
    <dl>
        <?php 
            $where = \imcat\umc\texIndoc::expwhr($user,"i$key",0,'no'); 
            if($key=='dep') $where .= " AND touser NOT LIKE '%$uname%' "; 
            $recn = 0; 
        ?>
        {tag:indocs1=[List][modid,$this->mod][where,$where][limit,5]}
        {:row}
        <dt class="list">
        {php echo \imcat\umc\texIndoc::isread($user,$t_did); } 
        <a href="{surl($this->mod.".$t_did")}" target="_blank">{title($t_title,32,$v)}</a>
        </dt>
        <dd class="list">
        {sopt($t_rdtip,indoc.rdtip,0,"&nbsp;")}
        {stime($t_atime,Y-m-d)}
        {sopt($t_indep,indep,0,"&nbsp;")}
        </dd>
        {php $recn=count($T_indocs1); }
        {/row}
        {/tag:indocs1}
        {if $recn<5 }
        <?php 
            $where = \imcat\umc\texIndoc::expwhr($user,"i$key",0,'in'); 
            if($key=='dep') $where .= " AND touser NOT LIKE '%$uname%' "; 
            $recm=5-$recn; 
        ?>
        {tag:indocs2=[List][modid,$this->mod][where,$where][limit,$recm]}
        {:row}
        <dt class="list">
        {php echo \imcat\umc\texIndoc::isread($user,$t_did); } 
        <a href="{surl($this->mod.".$t_did")}" target="_blank">{title($t_title,32,$v)}</a>
        </dt>
        <dd class="list">
        {sopt($t_rdtip,indoc.rdtip,0,"&nbsp;")}
        {stime($t_atime,Y-m-d)}
        {sopt($t_indep,indep,0,"&nbsp;")}
        </dd>
        {/row}
        {/tag:indocs2}
        {/if}
    </dl>
    <div class="h20 clear">&nbsp;</div>
    {/loop}
</div>
{/block:action}
