
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<!-- start sms list -->
<div class="list-div" id="listDiv">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th>{$lang.sms_name}</th>
    <th width="40%">{$lang.sms_desc}</th>
    <th>{$lang.version}</th>
    <th>{$lang.sms_author}</th>
   
    <th>{$lang.sort_order}</th>
    <th>{$lang.handler}</th>
  </tr>
  {foreach from=$modules item=module}
  <tr>
    <td class="first-cell" valign="top" style="vertical-align: middle;">
      {if $module.install == 1}
        <span onclick="listTable.edit(this, 'edit_name', '{$module.code}'); return false;">{$module.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;{if $module.code == 'ecmoban'}<span style="color:red">推荐使用</span>{/if}
      {else}
        {$module.name}{if $module.code == 'ecmoban'}&nbsp;&nbsp;<span style="color:red">推荐使用</span>{/if}
      {/if}
    </td>
    <td>{$module.desc|nl2br}</td>
    <td valign="top" align="center">{$module.version}</td>
    <td valign="top" align="center"><a href="{$module.website}">{$module.author}</a></td>
    <td align="right" valign="top"> {if $module.install == 1} <span onclick="listTable.edit(this, 'edit_order', '{$module.code}'); return false;">{$module.sms_order}</span> {else} &nbsp; {/if} </td>
    <td align="center" valign="top">
      {if $module.install == "1"}
          <a href="javascript:confirm_redirect(lang_removeconfirm, 'sms.php?act=uninstall&code={$module.code}')">{$lang.uninstall}</a>
          <a href="sms.php?act=edit&code={$module.code}">{$lang.edit}</a>
      {else}
          <a href="sms.php?act=install&code={$module.code}">{$lang.install}</a>
      {/if}	
          
    </td>
  </tr>
  {/foreach}
</table>
</div>
<!-- end sms list -->
<script type="Text/Javascript" language="JavaScript">
<!--
{literal}
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}
{/literal}
//-->
</script>
{include file="pagefooter.htm"}