人人商城

select-groups.html 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {template 'common/header-gw'}
  2. {template "extension/$action-tabs"}
  3. <div class="clearfix">
  4. <h5 class="page-header">安装 {if $action == 'module'}{$module['title']}{else}模板{/if}</h5>
  5. <div class="alert alert-info">
  6. 您正在安装 {if $action == 'module'}{$module['title']} 模块{else}模板{/if}. 请选择哪些公众号服务套餐组可使用
  7. {if $action == 'module'}{$module['title']} 功能{else}该模板{/if} .
  8. </div>
  9. <form class="form-horizontal form" action="" method="post" id="form1">
  10. <h5 class="page-header">可用的公众号服务套餐组 <small>这里来定义哪些公众号服务套餐组可使用 {if $action == 'module'}{$module['title']} 功能{else}该模板{/if}</small></h5>
  11. <div class="form-group">
  12. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">公众号服务套餐组</label>
  13. <div class="col-sm-10 col-xs-12">
  14. <div class="checkbox disabled">
  15. <label><input type="checkbox" name="" value="" disabled>基础服务</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="label label-info">系统</span>
  16. </div>
  17. <div class="checkbox disabled">
  18. <label><input type="checkbox" name="" value="" checked disabled>所有服务</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="label label-info">系统</span>
  19. </div>
  20. {loop $groups $group}
  21. <div class="checkbox">
  22. <label><input type="checkbox" name="group[]" value="{$group['id']}">{$group['name']}</label>
  23. </div>
  24. {/loop}
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
  29. <div class="col-sm-10 col-xs-12">
  30. <input type="submit" class="btn btn-primary" name="submit" value="确定继续安装 {$module['title']}">
  31. </div>
  32. </div>
  33. <input type="hidden" name="flag" value="1">
  34. <input type="hidden" name="tid" value="{$tid}">
  35. </form>
  36. <script>
  37. $('#form1').submit(function(){
  38. var num = $("input[name='group[]']:checked").length;
  39. if(num == 0) {
  40. return confirm("您没有选择可使用该模块/模板的公众号服务套餐组,模块/模板安装成功后可在 公众号服务套餐 编辑");
  41. }
  42. return true;
  43. });
  44. </script>
  45. </div>
  46. {template 'common/footer-gw'}