home.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {template 'common/header'}
  2. <div class="we7-page-search">
  3. <form method="get" class="form-inline">
  4. <input type="hidden" name="a" value="manage-account">
  5. <input type="hidden" name="c" value="module">
  6. <div class="input-group we7-margin-bottom col-sm-4">
  7. <input class="form-control " name="keyword" value="{$_GPC['keyword']}" type="text" placeholder="名称" >
  8. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  9. </div>
  10. </form>
  11. </div>
  12. <div class="js-module-display" ng-controller="ModuleMoreCtrl" ng-cloak>
  13. <div we7-initial-searchbar we7-search-callback="searchModule(letter)"></div>
  14. <div class="ext-apply-list clearfix">
  15. {loop $modules $row}
  16. <div class="ext-apply-item {if $row['shortcut']}apply-show{/if}" >
  17. <img src="{$row['logo']}" class="apply-img {if !$row['enabled']}gray{/if}" />
  18. <h2 class="apply-title">{$row['title']}</h2>
  19. <span class="color-green">
  20. {if $row['enabled']}
  21. 启用
  22. {else}
  23. 禁用
  24. {/if}
  25. </span>
  26. <div class="mask">
  27. <a href="{url 'home/welcome/ext' array('m' => $row['name'])}" class="entry">
  28. 进入应用 <i class="wi wi-angle-right"></i>
  29. </a>
  30. {if $row['shortcut']}
  31. <a href="{php echo url('module/manage-account/shortcut', array('modulename' => $row['name'], 'shortcut' => STATUS_OFF))}" onclick="return ajaxopen(this.href);" class="cut-btn" title="移出菜单">
  32. <i class="wi wi-remove"></i>
  33. </a>
  34. {else}
  35. <a href="{php echo url('module/manage-account/shortcut', array('modulename' => $row['name'], 'shortcut' => STATUS_ON))}" onclick="return ajaxopen(this.href);" class="cut-btn" title="显示到菜单">
  36. <i class="wi wi-eye"></i>
  37. </a>
  38. {/if}
  39. <a href="{php echo url('module/manage-account/top', array('modulename' => $row['name']))}" class="stick">
  40. <i class="wi wi-stick-sign" title="置顶1"></i>
  41. </a>
  42. </div>
  43. </div>
  44. {/loop}
  45. </div>
  46. <div class="text-right">{$pager}</div>
  47. </div>
  48. <script type="text/javascript">
  49. angular.module('moduleApp').value('config', {
  50. searchurl : "{php echo url('xzapp/home/display')}"
  51. });
  52. angular.bootstrap($('.js-module-display'), ['moduleApp']);
  53. </script>
  54. {template 'common/footer'}