Payment_index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <style>.pay_desc a {color:#FB0000;}</style>
  2. <form id="myform" name="myform" action="{:U('Payment/listorder')}" method="post">
  3. <div class="table-list">
  4. <table width="100%" cellspacing="0">
  5. <thead>
  6. <tr>
  7. <th width="40">{:L('listorder')}</th>
  8. <th width="90">{:L('name')}</th>
  9. <th align="left">{:L('description')}</th>
  10. <th align="left" width="80">{:L('version')}</th>
  11. <th align="left" width="80">{:L('author')}</th>
  12. <th width="110">{:L('manage')}</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <volist name="list" id="vo" key="k">
  17. <tr>
  18. <td align="center">{if isset($vo[id])}<input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'>{else}0{/if}</td>
  19. <td align="center">{$vo['pay_name']}</td>
  20. <td class="pay_desc">{$vo['pay_desc']}</td>
  21. <td>{$vo['version']}</td>
  22. <td>{$vo['author']}</td>
  23. <td align="center">
  24. {if $vo['id']}
  25. {if $vo['status']}<a href="{:U('Payment/status',array(id=>$vo['id'],status=>0))}"><font color="red">{:L('disable')}</font></a> {else} <a href="{:U('Payment/status',array(id=>$vo['id'],status=>1))}"><font color="green">{:L('enable')}</font></a> {/if} |
  26. <a href="javascript:openwin('install','{:U('Payment/edit',array(id=>$vo['id']))}','{:L('install')}',600,440)">{:L('config')}</a> |
  27. <a href="javascript:confirm_delete('{:U('Payment/delete',array(id=>$vo['id']))}')">{:L('uninstall')}</a>
  28. {else}
  29. <a href="javascript:openwin('install','{:U('Payment/add',array(code=>$vo['pay_code']))}','{:L('install')}',600,440)">{:L('install')}</a>
  30. {/if}
  31. </td>
  32. </tr>
  33. </volist>
  34. </tbody>
  35. </table>
  36. </div>
  37. <div class="btn"> <input type="button" class="button" name="dosubmit" value="{:L(listorder)}" onclick="myform.action='{:U($module_name.'/listorder')}';$('#myform').submit();" /></div>
  38. </form>