我正在尝试使用js过滤通过php提取到表中的数据。
我试图让这个工作的页面如下: http://awaluminium.com/orcadev-v2/layout1/order-list.php
正如您所看到的,顶部示例工作正常,并允许您使用多个搜索条件过滤数据。但是,当您尝试过滤底部示例时,它根本不会执行任何操作。
底部表格的代码如下:
<div class="portlet light portlet-fit bordered calendar">
<div class="portlet-body">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="panel">
<div class="panel-header panel-controls">
<h3><i class="icon-bulb"></i>All Orders</h3>
</div>
<div class="panel-content">
<?php
//create a database connection
mysql_connect("localhost","#","#") or die("Error:".mysqlerror());
//select database
mysql_select_db("#");
?>
<table class="table table-hover table-dynamic filter-head">
<thead>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
</tr>
</thead>
<?php
//create the query
$result = mysql_query("select * from cemarking");
//return the array and loop through each row
while ($row = mysql_fetch_array($result))
{
?>
<tr class="LightboxTrigger" data-lightboxid="<?php echo $row['ID'];?>">
<td style='display:none'><?php echo $row['ID'];?></td>
<td><?php print $row['jobnumber'];?></td>
<td><?php print $row['system'];?></a></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
任何人都可以看到为什么数据不会在底部表中过滤?
编辑:请在下面找到有问题的JS。
<script src="http://www.awaluminium.com/orcadev-v2/assets/global/plugins/datatables/jquery.dataTables.min.js"></script> <!-- Tables Filtering, Sorting & Editing -->
<script src="http://www.awaluminium.com/orcadev-v2/assets/global/js/pages/table_dynamic.js"></script>