人人商城

service.html 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {template 'common/header-gw'}
  2. {template 'extension/service-tabs'}
  3. <div class="clearfix">
  4. <div class="panel panel-info">
  5. <div class="panel-heading">筛选</div>
  6. <div class="panel-body">
  7. <form action="./index.php" method="get" class="form-horizontal" role="form">
  8. <input type="hidden" name="c" value="extension" />
  9. <input type="hidden" name="a" value="service" />
  10. <input type="hidden" name="do" value="display" />
  11. <input type="hidden" name="status" value="{$_GPC['status']}" />
  12. <div class="form-group">
  13. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">状态</label>
  14. <div class="col-sm-8 col-lg-10 col-xs-12">
  15. <div class="btn-group">
  16. <a href="{php echo filter_url('status:1');}" class="btn {if $_GPC['status'] == '1' || $_GPC['status'] == ''}btn-primary{else}btn-default{/if}">启用</a>
  17. <a href="{php echo filter_url('status:0');}" class="btn {if $_GPC['status']== '0'}btn-primary{else}btn-default{/if}">禁用</a>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
  23. <div class="col-sm-8 col-lg-10 col-xs-12">
  24. <input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}">
  25. </div>
  26. <div class="pull-right col-xs-12 col-sm-2 col-lg-1">
  27. <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. </div>
  32. </form>
  33. </div>
  34. </div>
  35. <div>
  36. {if $import}
  37. <div class="alert alert-info">
  38. <a href="{php echo url('extension/service/import')}">存在可用的服务, 点击这里快速导入</a>
  39. </div>
  40. {/if}
  41. {loop $ds $row}
  42. <div class="panel panel-default">
  43. <div class="panel-heading clearfix">
  44. <div class="pull-left">
  45. {$row['name']}
  46. </div>
  47. <div class="btn-group pull-right">
  48. <a class="btn btn-default btn-xs" href="{php echo url('extension/service/post', array('rid' => $row['id'],'m'=>$row['module']))}"><i class="fa fa-edit"></i> 编辑</a>
  49. <a class="btn btn-default btn-xs" onclick="return confirm('删除规则将同时删除关键字与回复,确认吗?');return false;" href="{php echo url('extension/service/delete', array('rid' => $row['id']))}"><i class="fa fa-times"></i> 删除</a>
  50. </div>
  51. </div>
  52. <div class="panel-body">
  53. {$row['description']}
  54. </div>
  55. </div>
  56. {/loop}
  57. </div>
  58. {$pager}
  59. </div>
  60. {template 'common/footer-gw'}