人人商城

specialreply-post.html 1.7KB

123456789101112131415161718192021222324252627282930313233
  1. {template 'common/header'}
  2. <div class="new-keyword">
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{url 'platform/reply' array('m' => 'special')}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{url 'platform/reply' array('m' => 'special')}">非文字自动回复</a></li>
  6. <li>编辑</li>
  7. </ol>
  8. <div class="we7-form" id="special-reply" ng-controller="PostCtrl">
  9. <form id="reply-form" class="we7-form form" action="{php echo url('platform/reply/post', array('m' => $m, 'rid' => $rid))}" method="post" enctype="multipart/form-data">
  10. <div class="form-group">
  11. <label class="control-label col-sm-2">是否开启</label>
  12. <div class="form-controls col-sm-2">
  13. <label>
  14. <input name="status" type="text" style="display:none" class="form-control" ng-model="status">
  15. <div id="switch" ng-click="change('{$type}', status)" ng-class="switch_class"></div>
  16. </label>
  17. </div>
  18. </div>
  19. <div id="key" ng-hide="status == ''">
  20. {php echo module_build_form('core', $rule_id, array('keyword' => false, 'module' => false))}
  21. </div>
  22. <input type="submit" name="submit" value="保存" class="btn btn-primary" style="padding: 6px 50px;"/>
  23. <input type="hidden" name="token" value="{$_W['token']}">
  24. <input type="hidden" name="m" value="{$m}">
  25. <input type="hidden" name="type" value="{$type}">
  26. </form>
  27. </div>
  28. </div>
  29. <script>
  30. angular.module('replyFormApp').value('config', {'class' : {if !empty($setting[$type]['type'])}'switch switchOn'{else}'switch'{/if}, 'url' : '{php echo url('platform/reply/change_status')}', 'status' : '{$setting[$type]['type']}'});
  31. angular.bootstrap($('#special-reply'), ['replyFormApp']);
  32. </script>
  33. {template 'common/footer'}