<form>
<h3 class="title">模块列表</h3>
 <div class="in">
 <table width="100%">
    <thead>
      <tr>
      <th>ID</th>
        <th>模块名称</th>        
        <th>说明</th>
        <th>作者</th>
        <th>版本</th>
        <th>发布日期</th>
        <th width="60">应用</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($arg_0 as $id=>$v){ ?>
      <tr>
      <td><?=$id?><strong style="color:#339966"><?=module_exists($id)?'√':''?></strong></td>
        <td><?=htmlxlang($v['name'])?></td>
        <td><?=htmlxlang($v['doc'])?></td>
        <td><?=html($v['author'])?></td>  
        <td><?=html($v['ver'])?></td>      
        <td><?=html($v['build'])?></td>
        
        <td>
        <?php if($v['is_install']){?>
        <a href="javascript:void(0)" onclick="yun_send('<?=url(RPG.$id.'/_install/')?>','确定要安装吗?');return false;
"> <img height="16" width="16" src="<?=THEMEPATH?>images/icons/user.png" title="安装"/> </a>
        <?php }?>
        <?php if($v['is_update']){?>
        <a href="javascript:void(0)" onclick="yun_send('<?=url(RPG.$id.'/_update/')?>','确定要升级吗?');return false;
"> <img height="16" width="16" src="<?=THEMEPATH?>images/icons/user_edit.png" title="升级"/></a>
        <?php }?>
        <?php if($v['is_uninstall']){?>
        <a href="javascript:void(0)" onclick="yun_send('<?=url(RPG.$id.'/_uninstall/')?>','确定要卸载吗?');return false;
"> <img height="16" width="16" src="<?=THEMEPATH?>images/icons/user_delete.png" title="卸载"/></a>
<?php }?>
</td>
     </tr>     
      <?php }?>

    </tbody>
  </table>
</div>
</form>

