plugin.tpl.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php include mymps_tpl('inc_head');?>
  2. <!--<div id="<?=MPS_SOFTNAME?>">
  3. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  4. <tr class="firstr">
  5. <td colspan="2">相关说明</td>
  6. </tr>
  7. <tr bgcolor="#ffffff">
  8. <td id="menu_tip">
  9. <li>插件目录是相对于/plugin目录下,安装新插件之前,请将插件目录上传至/plugin目录下</li>
  10. </td>
  11. </tr>
  12. </table>
  13. </div>-->
  14. <?php if($mymps_global['cfg_if_corp'] != 1){?>
  15. <div class="ccc2">
  16. <ul>
  17. <img src="../images/warn.gif" align="absmiddle"> 提示:当前你的<font color="red">商家功能已经关闭,团购插件,优惠券插件,商品插件已自动被禁用</font>,您可以在<a href="config.php">系统配置 -> 会员相关设置</a>里开启商家功能
  18. </ul>
  19. </div>
  20. <div class="clear"></div>
  21. <?php }?>
  22. <form action="?part=list" method="post">
  23. <input name="url" type="hidden" value="<?=GetUrl()?>">
  24. <div id="<?=MPS_SOFTNAME?>">
  25. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  26. <tr style="font-weight:bold; background-color:#dff6ff">
  27. <td>编号</td>
  28. <td>状态</td>
  29. <td>名称</td>
  30. <td>标识</td>
  31. <td>目录</td>
  32. <td>版本</td>
  33. <td>核心</td>
  34. <td>操作</td>
  35. </tr>
  36. <?php foreach($plugin as $list){?>
  37. <tr bgcolor="white">
  38. <td><i><?=$list[id]?>.</i></td>
  39. <td><?php if($list[disable] == 1){?><font color="red">&times;</font><?php }else{?><font color="green">√</font><?}?></td>
  40. <td><b><?=$list[name]?></b></td>
  41. <td><?=$list[flag]?></td>
  42. <td><?=$list[directory]?></td>
  43. <td><?=$list[version]?></td>
  44. <td><?php echo $list[iscore] == 1 ? '√' : '—'; ?></td>
  45. <td align="left"><?php if($list[iscore] != 1){?><a href="plugin.php?op=edit&id=<?=$list[id]?>">配置</a> | <a href="../<?=$list[flag]?>.php" target="_blank">预览首页</a> | <?php if($list[disable] == 0){?><a href="?op=disable&id=<?=$list[id]?>" style="color:red; text-decoration:underline;">禁用&raquo;</a><?}else{?><a href="?op=able&id=<?=$list[id]?>" style="color:green; text-decoration:underline;">启用&raquo;</a><?}?> <?php } else {?>N/A<?php }?></td>
  46. </tr>
  47. <?php }?>
  48. <!--<tr bgcolor="#FFFFFF" valign="top">
  49. <td align="center"><b>安装</b></td>
  50. <td bgcolor="#f5fbff" ><input name="add[name]" value="" type="text" class="text" style="width:100px"/></td>
  51. <td><input name="add[flag]" value="" type="text" class="text" style="width:100px"/></td>
  52. <td bgcolor="#f5fbff"><input name="add[directory]" type="text" class="text" style="width:100px; margin-bottom:2px"><br />相对/plugin目录</td>
  53. <td><input name="add[version]" type="text" class="text" style="width:100px"></td>
  54. <td bgcolor="#f5fbff"><input name="add[author]" type="text" class="text" style="width:100px"></td>
  55. <td colspan="3"> -> 请先将插件目录上传至/plugin目录下</td>
  56. </tr>-->
  57. </table>
  58. </div>
  59. <center><input type="submit" value="更新插件缓存" class="mymps large" name="<?php echo CURSCRIPT; ?>_submit"/></center>
  60. </form>
  61. <?php mymps_admin_tpl_global_foot();?>