29 lines
854 B
PHP
29 lines
854 B
PHP
<form id="search-form" class="form-inline" name="mysearch" action="{{url()}}" method="get">
|
|
|
|
<div class="pull-right">
|
|
@if(isset($access['destroy']))
|
|
<button type="button" onclick="optionDelete('#myform','{{url('destroy')}}');" class="btn btn-sm btn-danger"><i class="icon icon-remove"></i> 删除</button>
|
|
@endif
|
|
</div>
|
|
|
|
@if(isset($access['add']))
|
|
<a href="{{url('add')}}" class="btn btn-sm btn-info"><i class="icon icon-plus"></i> 新建</a>
|
|
@endif
|
|
|
|
@include('searchForm')
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#search-form').searchForm({
|
|
data:{{json_encode($search['forms'])}},
|
|
init:function(e) {
|
|
var self = this;
|
|
e.post = function(i) {
|
|
self._select({{search_select($types)}}, i);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script> |