正在显示
1 个修改的文件
包含
13 行增加
和
1 行删除
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <li class="active"><a href="{:url('volunteer/index')}">志愿者列表</a></li> | 6 | <li class="active"><a href="{:url('volunteer/index')}">志愿者列表</a></li> |
7 | <!--<li><a href="{:url('volunteer/add')}">添加志愿者</a></li>--> | 7 | <!--<li><a href="{:url('volunteer/add')}">添加志愿者</a></li>--> |
8 | </ul> | 8 | </ul> |
9 | - <form class="well form-inline margin-top-20" method="post" action="{:url('volunteer/index')}"> | 9 | + <form id="forms" class="well form-inline margin-top-20" method="post" action="{:url('volunteer/index')}"> |
10 | 分类: | 10 | 分类: |
11 | <select class="form-control" name="category" style="width: 140px;"> | 11 | <select class="form-control" name="category" style="width: 140px;"> |
12 | <option value='0'>全部</option> | 12 | <option value='0'>全部</option> |
@@ -34,6 +34,18 @@ | @@ -34,6 +34,18 @@ | ||
34 | <input type="submit" id="excel" class="btn btn-primary" value="导出" /> | 34 | <input type="submit" id="excel" class="btn btn-primary" value="导出" /> |
35 | <a class="btn btn-danger" href="{:url('volunteer/index')}">清空</a> | 35 | <a class="btn btn-danger" href="{:url('volunteer/index')}">清空</a> |
36 | </form> | 36 | </form> |
37 | + <script type="application/javascript"> | ||
38 | + var search="{:url('volunteer/index')}"; | ||
39 | + var excel="{:url('excels')}"; | ||
40 | + document.getElementById('search').onclick=function () { | ||
41 | + document.getElementById('forms').action=search; | ||
42 | + } | ||
43 | + document.getElementById('excel').onclick=function () { | ||
44 | + document.getElementById('forms').action=excel; | ||
45 | + } | ||
46 | + </script> | ||
47 | + | ||
48 | + | ||
37 | <form class="js-ajax-form" action="" method="post"> | 49 | <form class="js-ajax-form" action="" method="post"> |
38 | <table class="table table-hover table-bordered"> | 50 | <table class="table table-hover table-bordered"> |
39 | <div class="table-actions"> | 51 | <div class="table-actions"> |
-
请 注册 或 登录 后发表评论