我的结果来自特定的api。我没有数据库。我正在使用bootstrap表进行分页和列,行对齐。如何在客户端本身或使用php,ajax?
进行搜索过滤器下拉列表例如
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Date</th>
<th>Caller</th>
</tr>
</thead>
[objects] => Array
(
[0] => Array
(
[customer_name] => dominic
[start_time] => 2017-06-23 08:40:32+05:30
)
[19] => Array
(
[customer_name] => celestine
[start_time] => 2017-06-23 08:40:32+05:30
)
)
<?php foreach($json['objects'] as $res){ ?>
echo '<tr>';
echo '<td>'.$res['customer_name'].'</td>';
echo '<td>'.$res['start_time'].'</td>';
echo '</tr>'
<?php } ?>
</tbody>
</table>
<select onchange="functioname()">
<option>Dominic</option>
</select>
<select id="date">
<option>date</option>
</select>