12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- {template 'common/header-gw'}
- {template 'extension/service-tabs'}
- <div class="clearfix">
- <div class="panel panel-info">
- <div class="panel-heading">筛选</div>
- <div class="panel-body">
- <form action="./index.php" method="get" class="form-horizontal" role="form">
- <input type="hidden" name="c" value="extension" />
- <input type="hidden" name="a" value="service" />
- <input type="hidden" name="do" value="display" />
- <input type="hidden" name="status" value="{$_GPC['status']}" />
- <div class="form-group">
- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">状态</label>
- <div class="col-sm-8 col-lg-10 col-xs-12">
- <div class="btn-group">
- <a href="{php echo filter_url('status:1');}" class="btn {if $_GPC['status'] == '1' || $_GPC['status'] == ''}btn-primary{else}btn-default{/if}">启用</a>
- <a href="{php echo filter_url('status:0');}" class="btn {if $_GPC['status']== '0'}btn-primary{else}btn-default{/if}">禁用</a>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
- <div class="col-sm-8 col-lg-10 col-xs-12">
- <input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}">
- </div>
- <div class="pull-right col-xs-12 col-sm-2 col-lg-1">
- <button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
- </div>
- </div>
- <div class="form-group">
- </div>
- </form>
- </div>
- </div>
- <div>
- {if $import}
- <div class="alert alert-info">
- <a href="{php echo url('extension/service/import')}">存在可用的服务, 点击这里快速导入</a>
- </div>
- {/if}
- {loop $ds $row}
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <div class="pull-left">
- {$row['name']}
- </div>
- <div class="btn-group pull-right">
- <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>
- <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>
- </div>
- </div>
- <div class="panel-body">
- {$row['description']}
- </div>
- </div>
- {/loop}
- </div>
- {$pager}
- </div>
- {template 'common/footer-gw'}
|